diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index aa49c59..f82b69e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -420,3 +420,40 @@ jobs:
# popd > /dev/null
- name: Remove components
run: gu remove espresso llvm-toolchain nodejs python ruby wasm
+ test-sbom:
+ name: test 'native-image-enable-sbom' option
+ runs-on: ${{ matrix.os }}
+ permissions:
+ contents: write
+ strategy:
+ matrix:
+ java-version: ['24-ea', 'latest-ea']
+ distribution: ['graalvm']
+ os: [macos-latest, windows-latest, ubuntu-latest]
+ set-gds-token: [false]
+ components: ['']
+ steps:
+ - uses: actions/checkout@v4
+ - name: Run setup-graalvm action
+ uses: ./
+ with:
+ java-version: ${{ matrix.java-version }}
+ distribution: ${{ matrix.distribution }}
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ components: ${{ matrix.components }}
+ gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
+ native-image-enable-sbom: 'true'
+ - name: Build Maven project and verify that SBOM was generated and its contents
+ run: |
+ cd __tests__/sbom/main-test-app
+ mvn --no-transfer-progress -Pnative package
+ bash verify-sbom.sh
+ shell: bash
+ if: runner.os != 'Windows'
+ - name: Build Maven project and verify that SBOM was generated and its contents (Windows)
+ run: |
+ cd __tests__\sbom\main-test-app
+ mvn --no-transfer-progress -Pnative package
+ cmd /c verify-sbom.cmd
+ shell: cmd
+ if: runner.os == 'Windows'
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 18e337d..ed52253 100644
--- a/.gitignore
+++ b/.gitignore
@@ -96,4 +96,7 @@ Thumbs.db
# Ignore built ts files
__tests__/runner/*
-lib/**/*
\ No newline at end of file
+lib/**/*
+
+# Ignore target directory in __tests__
+__tests__/**/target
diff --git a/README.md b/README.md
index 58a589a..a8590ee 100644
--- a/README.md
+++ b/README.md
@@ -205,6 +205,7 @@ This actions can be configured with the following options:
| `native-image-job-reports` *) | `'false'` | If set to `'true'`, post a job summary containing a Native Image build report. |
| `native-image-pr-reports` *) | `'false'` | If set to `'true'`, post a comment containing a Native Image build report on pull requests. Requires `write` permissions for the [`pull-requests` scope][gha-permissions]. |
| `native-image-pr-reports-update-existing` *) | `'false'` | Instead of posting another comment, update an existing PR comment with the latest Native Image build report. Requires `native-image-pr-reports` to be `true`. |
+| `native-image-enable-sbom` | `'false'` | If set to `'true'`, generate a minimal SBOM based on the Native Image static analysis and submit it to GitHub's dependency submission API. This enables the [dependency graph feature](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph) for dependency tracking and vulnerability analysis. Requires `write` permissions for the [`contents` scope][gha-permissions] and the dependency graph to be actived (on by default for public repositories - see [how to activate](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-the-dependency-graph#enabling-and-disabling-the-dependency-graph-for-a-private-repository)). Only available in Oracle GraalVM for JDK 24 or later. |
| `components` | `''` | Comma-separated list of GraalVM components (e.g., `native-image` or `ruby,nodejs`) that will be installed by the [GraalVM Updater][gu]. |
| `version` | `''` | `X.Y.Z` (e.g., `22.3.0`) for a specific [GraalVM release][releases] up to `22.3.2`
`mandrel-X.Y.Z.W` or `X.Y.Z.W-Final` (e.g., `mandrel-21.3.0.0-Final` or `21.3.0.0-Final`) for a specific [Mandrel release][mandrel-releases],
`mandrel-latest` or `latest` for the latest Mandrel stable release. |
| `gds-token` | `''` Download token for the GraalVM Download Service. If a non-empty token is provided, the action will set up Oracle GraalVM (see [Oracle GraalVM via GDS template](#template-for-oracle-graalvm-via-graalvm-download-service)) or GraalVM Enterprise Edition (see [GraalVM EE template](#template-for-graalvm-enterprise-edition)) via GDS. |
diff --git a/__tests__/cleanup.test.ts b/__tests__/cleanup.test.ts
index b43d151..9a70f2a 100644
--- a/__tests__/cleanup.test.ts
+++ b/__tests__/cleanup.test.ts
@@ -49,7 +49,7 @@ describe('cleanup', () => {
resetState()
})
- it('does not fail nor warn even when the save provess throws a ReserveCacheError', async () => {
+ it('does not fail nor warn even when the save process throws a ReserveCacheError', async () => {
spyCacheSave.mockImplementation((paths: string[], key: string) =>
Promise.reject(
new cache.ReserveCacheError(
diff --git a/__tests__/sbom.test.ts b/__tests__/sbom.test.ts
new file mode 100644
index 0000000..f0fabf6
--- /dev/null
+++ b/__tests__/sbom.test.ts
@@ -0,0 +1,306 @@
+import * as c from '../src/constants'
+import {setUpSBOMSupport, processSBOM} from '../src/features/sbom'
+import * as core from '@actions/core'
+import * as github from '@actions/github'
+import * as glob from '@actions/glob'
+import {join} from 'path'
+import {tmpdir} from 'os'
+import {mkdtempSync, writeFileSync, rmSync} from 'fs'
+
+jest.mock('@actions/glob')
+jest.mock('@actions/github', () => ({
+ getOctokit: jest.fn(() => ({
+ request: jest.fn().mockResolvedValue(undefined)
+ })),
+ context: {
+ repo: {
+ owner: 'test-owner',
+ repo: 'test-repo'
+ },
+ sha: 'test-sha',
+ ref: 'test-ref',
+ workflow: 'test-workflow',
+ job: 'test-job',
+ runId: '12345'
+ }
+}))
+
+function mockFindSBOM(files: string[]) {
+ const mockCreate = jest.fn().mockResolvedValue({
+ glob: jest.fn().mockResolvedValue(files)
+ })
+ ;(glob.create as jest.Mock).mockImplementation(mockCreate)
+}
+
+// Mocks the GitHub dependency submission API return value
+// 'undefined' is treated as a successful request
+function mockGithubAPIReturnValue(returnValue: Error | undefined = undefined) {
+ const mockOctokit = {
+ request:
+ returnValue === undefined
+ ? jest.fn().mockResolvedValue(returnValue)
+ : jest.fn().mockRejectedValue(returnValue)
+ }
+ ;(github.getOctokit as jest.Mock).mockReturnValue(mockOctokit)
+ return mockOctokit
+}
+
+describe('sbom feature', () => {
+ let spyInfo: jest.SpyInstance>
+ let spyWarning: jest.SpyInstance>
+ let spyExportVariable: jest.SpyInstance<
+ void,
+ Parameters
+ >
+ let workspace: string
+ let originalEnv: NodeJS.ProcessEnv
+ const javaVersion = '24.0.0'
+ const distribution = c.DISTRIBUTION_GRAALVM
+
+ beforeEach(() => {
+ originalEnv = process.env
+
+ process.env = {
+ ...process.env,
+ GITHUB_REPOSITORY: 'test-owner/test-repo',
+ GITHUB_TOKEN: 'fake-token'
+ }
+
+ workspace = mkdtempSync(join(tmpdir(), 'setup-graalvm-sbom-'))
+ mockGithubAPIReturnValue()
+
+ spyInfo = jest.spyOn(core, 'info').mockImplementation(() => null)
+ spyWarning = jest.spyOn(core, 'warning').mockImplementation(() => null)
+ spyExportVariable = jest
+ .spyOn(core, 'exportVariable')
+ .mockImplementation(() => null)
+ jest.spyOn(core, 'getInput').mockImplementation((name: string) => {
+ if (name === 'native-image-enable-sbom') {
+ return 'true'
+ }
+ if (name === 'github-token') {
+ return 'fake-token'
+ }
+ return ''
+ })
+ })
+
+ afterEach(() => {
+ process.env = originalEnv
+ jest.clearAllMocks()
+ spyInfo.mockRestore()
+ spyWarning.mockRestore()
+ spyExportVariable.mockRestore()
+ rmSync(workspace, {recursive: true, force: true})
+ })
+
+ describe('setup', () => {
+ it('should throw an error when the distribution is not Oracle GraalVM', () => {
+ const not_supported_distributions = [
+ c.DISTRIBUTION_GRAALVM_COMMUNITY,
+ c.DISTRIBUTION_MANDREL,
+ c.DISTRIBUTION_LIBERICA,
+ ''
+ ]
+ for (const distribution of not_supported_distributions) {
+ expect(() => setUpSBOMSupport(javaVersion, distribution)).toThrow()
+ }
+ })
+
+ it('should throw an error when the java-version is not supported', () => {
+ const not_supported_versions = ['23', '23-ea', '21.0.3', 'dev', '17', '']
+ for (const version of not_supported_versions) {
+ expect(() => setUpSBOMSupport(version, distribution)).toThrow()
+ }
+ })
+
+ it('should not throw an error when the java-version is supported', () => {
+ const supported_versions = ['24', '24-ea', '24.0.2', 'latest-ea']
+ for (const version of supported_versions) {
+ expect(() => setUpSBOMSupport(version, distribution)).not.toThrow()
+ }
+ })
+
+ it('should set the SBOM option when activated', () => {
+ setUpSBOMSupport(javaVersion, distribution)
+
+ expect(spyExportVariable).toHaveBeenCalledWith(
+ c.NATIVE_IMAGE_OPTIONS_ENV,
+ expect.stringContaining('--enable-sbom=export')
+ )
+ expect(spyInfo).toHaveBeenCalledWith(
+ 'Enabled SBOM generation for Native Image build'
+ )
+ expect(spyWarning).not.toHaveBeenCalled()
+ })
+
+ it('should not set the SBOM option when not activated', () => {
+ jest.spyOn(core, 'getInput').mockReturnValue('false')
+ setUpSBOMSupport(javaVersion, distribution)
+
+ expect(spyExportVariable).not.toHaveBeenCalled()
+ expect(spyInfo).not.toHaveBeenCalled()
+ expect(spyWarning).not.toHaveBeenCalled()
+ })
+ })
+
+ describe('process', () => {
+ async function setUpAndProcessSBOM(sbom: object): Promise {
+ setUpSBOMSupport(javaVersion, distribution)
+ spyInfo.mockClear()
+
+ // Mock 'native-image' invocation by creating the SBOM file
+ const sbomPath = join(workspace, 'test.sbom.json')
+ writeFileSync(sbomPath, JSON.stringify(sbom, null, 2))
+
+ mockFindSBOM([sbomPath])
+
+ await processSBOM()
+ }
+
+ const sampleSBOM = {
+ bomFormat: 'CycloneDX',
+ specVersion: '1.5',
+ version: 1,
+ serialNumber: 'urn:uuid:52c977f8-6d04-3c07-8826-597a036d61a6',
+ components: [
+ {
+ type: 'library',
+ group: 'org.json',
+ name: 'json',
+ version: '20241224',
+ purl: 'pkg:maven/org.json/json@20241224',
+ 'bom-ref': 'pkg:maven/org.json/json@20241224',
+ properties: [
+ {
+ name: 'syft:cpe23',
+ value: 'cpe:2.3:a:json:json:20241224:*:*:*:*:*:*:*'
+ }
+ ]
+ },
+ {
+ type: 'library',
+ group: 'com.oracle',
+ name: 'main-test-app',
+ version: '1.0-SNAPSHOT',
+ purl: 'pkg:maven/com.oracle/main-test-app@1.0-SNAPSHOT',
+ 'bom-ref': 'pkg:maven/com.oracle/main-test-app@1.0-SNAPSHOT'
+ }
+ ],
+ dependencies: [
+ {
+ ref: 'pkg:maven/com.oracle/main-test-app@1.0-SNAPSHOT',
+ dependsOn: ['pkg:maven/org.json/json@20241224']
+ },
+ {
+ ref: 'pkg:maven/org.json/json@20241224',
+ dependsOn: []
+ }
+ ]
+ }
+
+ it('should process SBOM and display components', async () => {
+ await setUpAndProcessSBOM(sampleSBOM)
+
+ expect(spyInfo).toHaveBeenCalledWith(
+ 'Found SBOM: ' + join(workspace, 'test.sbom.json')
+ )
+ expect(spyInfo).toHaveBeenCalledWith('=== SBOM Content ===')
+ expect(spyInfo).toHaveBeenCalledWith('- pkg:maven/org.json/json@20241224')
+ expect(spyInfo).toHaveBeenCalledWith(
+ '- pkg:maven/com.oracle/main-test-app@1.0-SNAPSHOT'
+ )
+ expect(spyInfo).toHaveBeenCalledWith(
+ ' depends on: pkg:maven/org.json/json@20241224'
+ )
+ expect(spyWarning).not.toHaveBeenCalled()
+ })
+
+ it('should handle components without purl', async () => {
+ const sbomWithoutPurl = {
+ ...sampleSBOM,
+ components: [
+ {
+ type: 'library',
+ name: 'no-purl-package',
+ version: '1.0.0',
+ 'bom-ref': 'no-purl-package@1.0.0'
+ }
+ ]
+ }
+ await setUpAndProcessSBOM(sbomWithoutPurl)
+
+ expect(spyInfo).toHaveBeenCalledWith('=== SBOM Content ===')
+ expect(spyInfo).toHaveBeenCalledWith('- no-purl-package@1.0.0')
+ expect(spyWarning).not.toHaveBeenCalled()
+ })
+
+ it('should handle missing SBOM file', async () => {
+ setUpSBOMSupport(javaVersion, distribution)
+ spyInfo.mockClear()
+
+ mockFindSBOM([])
+
+ await expect(processSBOM()).rejects.toBeInstanceOf(Error)
+ })
+
+ it('should throw when JSON contains an invalid SBOM', async () => {
+ const invalidSBOM = {
+ 'out-of-spec-field': {}
+ }
+ try {
+ await setUpAndProcessSBOM(invalidSBOM)
+ fail('Expected an error since invalid JSON was passed')
+ } catch (error) {
+ expect(error).toBeInstanceOf(Error)
+ }
+ })
+
+ it('should submit dependencies when processing valid SBOM', async () => {
+ const mockOctokit = mockGithubAPIReturnValue(undefined)
+ await setUpAndProcessSBOM(sampleSBOM)
+
+ expect(mockOctokit.request).toHaveBeenCalledWith(
+ 'POST /repos/{owner}/{repo}/dependency-graph/snapshots',
+ expect.objectContaining({
+ owner: 'test-owner',
+ repo: 'test-repo',
+ version: expect.any(Number),
+ sha: 'test-sha',
+ ref: 'test-ref',
+ job: expect.objectContaining({
+ correlator: 'test-workflow_test-job',
+ id: '12345'
+ }),
+ manifests: expect.objectContaining({
+ 'test.sbom.json': expect.objectContaining({
+ name: 'test.sbom.json',
+ resolved: expect.objectContaining({
+ json: expect.objectContaining({
+ package_url: 'pkg:maven/org.json/json@20241224',
+ dependencies: []
+ }),
+ 'main-test-app': expect.objectContaining({
+ package_url:
+ 'pkg:maven/com.oracle/main-test-app@1.0-SNAPSHOT',
+ dependencies: ['pkg:maven/org.json/json@20241224']
+ })
+ })
+ })
+ })
+ })
+ )
+ expect(spyInfo).toHaveBeenCalledWith(
+ 'Dependency snapshot submitted successfully.'
+ )
+ })
+
+ it('should handle GitHub API submission errors gracefully', async () => {
+ mockGithubAPIReturnValue(new Error('API submission failed'))
+
+ await expect(setUpAndProcessSBOM(sampleSBOM)).rejects.toBeInstanceOf(
+ Error
+ )
+ })
+ })
+})
diff --git a/__tests__/sbom/main-test-app/pom.xml b/__tests__/sbom/main-test-app/pom.xml
new file mode 100644
index 0000000..ec9ae9f
--- /dev/null
+++ b/__tests__/sbom/main-test-app/pom.xml
@@ -0,0 +1,54 @@
+
+
+ 4.0.0
+
+ com.oracle
+ main-test-app
+ 1.0.0
+
+
+ 17
+ 17
+
+
+
+
+ org.json
+ json
+ 20241224
+
+
+
+
+
+ native
+
+
+
+ org.graalvm.buildtools
+ native-maven-plugin
+ 0.10.3
+
+
+
+ compile-no-fork
+
+ package
+
+
+
+ com.oracle.sbom.SBOMTestApplication
+
+ -Ob
+ --no-fallback
+ -H:+ReportExceptionStackTraces
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/__tests__/sbom/main-test-app/src/main/java/com/oracle/sbom/SBOMTestApplication.java b/__tests__/sbom/main-test-app/src/main/java/com/oracle/sbom/SBOMTestApplication.java
new file mode 100644
index 0000000..5164f7b
--- /dev/null
+++ b/__tests__/sbom/main-test-app/src/main/java/com/oracle/sbom/SBOMTestApplication.java
@@ -0,0 +1,12 @@
+package com.oracle.sbom;
+
+import org.json.JSONObject;
+
+public class SBOMTestApplication {
+ public static void main(String argv[]) {
+ JSONObject jo = new JSONObject();
+ jo.put("lorem", "ipsum");
+ jo.put("dolor", "sit amet");
+ System.out.println(jo);
+ }
+}
diff --git a/__tests__/sbom/main-test-app/verify-sbom.cmd b/__tests__/sbom/main-test-app/verify-sbom.cmd
new file mode 100644
index 0000000..de5cd0c
--- /dev/null
+++ b/__tests__/sbom/main-test-app/verify-sbom.cmd
@@ -0,0 +1,14 @@
+@echo off
+set "SCRIPT_DIR=%~dp0"
+
+for %%p in (
+ "\"pkg:maven/org.json/json@20241224\""
+ "\"main-test-app\""
+ "\"svm\""
+ "\"nativeimage\""
+) do (
+ echo Checking for %%p
+ findstr /c:%%p "%SCRIPT_DIR%target\main-test-app.sbom.json" || exit /b 1
+)
+
+echo SBOM was successfully generated and contained the expected components
\ No newline at end of file
diff --git a/__tests__/sbom/main-test-app/verify-sbom.sh b/__tests__/sbom/main-test-app/verify-sbom.sh
new file mode 100644
index 0000000..c9c2f7d
--- /dev/null
+++ b/__tests__/sbom/main-test-app/verify-sbom.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+required_patterns=(
+ '"pkg:maven/org.json/json@20241224"'
+ '"main-test-app"'
+ '"svm"'
+ '"nativeimage"'
+)
+
+for pattern in "${required_patterns[@]}"; do
+ echo "Checking for $pattern"
+ if ! grep -q "$pattern" "$script_dir/target/main-test-app.sbom.json"; then
+ echo "Pattern not found: $pattern"
+ exit 1
+ fi
+done
+
+echo "SBOM was successfully generated and contained the expected components"
\ No newline at end of file
diff --git a/action.yml b/action.yml
index 47fa5b6..a261d35 100644
--- a/action.yml
+++ b/action.yml
@@ -51,6 +51,10 @@ inputs:
required: false
description: 'Instead of posting another comment, update an existing PR comment with the latest Native Image build report.'
default: 'false'
+ native-image-enable-sbom:
+ required: false
+ description: 'Automatically generate an SBOM and submit it to the GitHub dependency submission API for vulnerability and dependency tracking.'
+ default: 'false'
version:
required: false
description: 'GraalVM version (release, latest, dev).'
diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js
index c6bc466..c5ff2b6 100644
--- a/dist/cleanup/index.js
+++ b/dist/cleanup/index.js
@@ -44,10 +44,7 @@ const core = __importStar(__nccwpck_require__(2186));
const path = __importStar(__nccwpck_require__(1017));
const utils = __importStar(__nccwpck_require__(1518));
const cacheHttpClient = __importStar(__nccwpck_require__(8245));
-const cacheTwirpClient = __importStar(__nccwpck_require__(2502));
-const config_1 = __nccwpck_require__(5147);
const tar_1 = __nccwpck_require__(6490);
-const constants_1 = __nccwpck_require__(8840);
class ValidationError extends Error {
constructor(message) {
super(message);
@@ -91,39 +88,15 @@ exports.isFeatureAvailable = isFeatureAvailable;
* Restores cache from keys
*
* @param paths a list of file paths to restore from the cache
- * @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching.
- * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
+ * @param primaryKey an explicit key for restoring the cache
+ * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for key
* @param downloadOptions cache download options
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
* @returns string returns the key for the cache hit, otherwise returns undefined
*/
function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
return __awaiter(this, void 0, void 0, function* () {
- const cacheServiceVersion = (0, config_1.getCacheServiceVersion)();
- core.debug(`Cache service version: ${cacheServiceVersion}`);
checkPaths(paths);
- switch (cacheServiceVersion) {
- case 'v2':
- return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
- case 'v1':
- default:
- return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
- }
- });
-}
-exports.restoreCache = restoreCache;
-/**
- * Restores cache using the legacy Cache Service
- *
- * @param paths a list of file paths to restore from the cache
- * @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching.
- * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
- * @param options cache download options
- * @param enableCrossOsArchive an optional boolean enabled to restore on Windows any cache created on any platform
- * @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* () {
restoreKeys = restoreKeys || [];
const keys = [primaryKey, ...restoreKeys];
core.debug('Resolved Keys:');
@@ -185,85 +158,7 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
return undefined;
});
}
-/**
- * Restores cache using Cache Service v2
- *
- * @param paths a list of file paths to restore from the cache
- * @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching
- * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
- * @param downloadOptions cache download options
- * @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
- * @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* () {
- // Override UploadOptions to force the use of Azure
- options = Object.assign(Object.assign({}, options), { useAzureSdk: true });
- restoreKeys = restoreKeys || [];
- const keys = [primaryKey, ...restoreKeys];
- core.debug('Resolved Keys:');
- core.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 = '';
- try {
- const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
- const compressionMethod = yield utils.getCompressionMethod();
- const request = {
- key: primaryKey,
- restoreKeys,
- version: utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive)
- };
- const response = yield twirpClient.GetCacheEntryDownloadURL(request);
- if (!response.ok) {
- core.warning(`Cache not found for keys: ${keys.join(', ')}`);
- return undefined;
- }
- core.info(`Cache hit for: ${request.key}`);
- if (options === null || options === void 0 ? void 0 : options.lookupOnly) {
- core.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}`);
- 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);
- }
- yield (0, tar_1.extractTar)(archivePath, compressionMethod);
- core.info('Cache restored successfully');
- return response.matchedKey;
- }
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else {
- // Supress all non-validation cache related errors because caching should be optional
- core.warning(`Failed to restore: ${error.message}`);
- }
- }
- finally {
- try {
- if (archivePath) {
- yield utils.unlinkFile(archivePath);
- }
- }
- catch (error) {
- core.debug(`Failed to delete archive: ${error}`);
- }
- }
- return undefined;
- });
-}
+exports.restoreCache = restoreCache;
/**
* Saves a list of files with the specified key
*
@@ -274,33 +169,10 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
* @returns number returns cacheId if the cache was saved successfully and throws an error if save fails
*/
function saveCache(paths, key, options, enableCrossOsArchive = false) {
- return __awaiter(this, void 0, void 0, function* () {
- const cacheServiceVersion = (0, config_1.getCacheServiceVersion)();
- core.debug(`Cache service version: ${cacheServiceVersion}`);
- checkPaths(paths);
- checkKey(key);
- switch (cacheServiceVersion) {
- case 'v2':
- return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
- case 'v1':
- default:
- return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
- }
- });
-}
-exports.saveCache = saveCache;
-/**
- * Save cache using the legacy Cache Service
- *
- * @param paths
- * @param key
- * @param options
- * @param enableCrossOsArchive
- * @returns
- */
-function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
var _a, _b, _c, _d, _e;
return __awaiter(this, void 0, void 0, function* () {
+ checkPaths(paths);
+ checkKey(key);
const compressionMethod = yield utils.getCompressionMethod();
let cacheId = -1;
const cachePaths = yield utils.resolvePaths(paths);
@@ -321,7 +193,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
core.debug(`File Size: ${archiveFileSize}`);
// For GHES, this check will take place in ReserveCache API with enterprise file size limit
- if (archiveFileSize > fileSizeLimit && !(0, config_1.isGhes)()) {
+ if (archiveFileSize > fileSizeLimit && !utils.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');
@@ -340,95 +212,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
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})`);
- 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}`);
- }
- }
- finally {
- // Try to delete the archive to save space
- try {
- yield utils.unlinkFile(archivePath);
- }
- catch (error) {
- core.debug(`Failed to delete archive: ${error}`);
- }
- }
- return cacheId;
- });
-}
-/**
- * Save cache using Cache Service v2
- *
- * @param paths a list of file paths to restore from the cache
- * @param key an explicit key for restoring the cache
- * @param options cache upload options
- * @param enableCrossOsArchive an optional boolean enabled to save cache on windows which could be restored on any platform
- * @returns
- */
-function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
- return __awaiter(this, void 0, void 0, function* () {
- // Override UploadOptions to force the use of Azure
- // ...options goes first because we want to override the default values
- // set in UploadOptions with these specific figures
- options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true });
- const compressionMethod = yield utils.getCompressionMethod();
- const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
- let cacheId = -1;
- const cachePaths = yield utils.resolvePaths(paths);
- core.debug('Cache Paths:');
- core.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}`);
- try {
- yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod);
- if (core.isDebug()) {
- yield (0, tar_1.listTar)(archivePath, compressionMethod);
- }
- const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
- core.debug(`File Size: ${archiveFileSize}`);
- // For GHES, this check will take place in ReserveCache API with enterprise file size limit
- 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.`);
- }
- // Set the archive size in the options, will be used to display the upload progress
- options.archiveSizeBytes = archiveFileSize;
- core.debug('Reserving Cache');
- const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
- const request = {
- key,
- version
- };
- const response = yield twirpClient.CreateCacheEntry(request);
- if (!response.ok) {
- 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}`);
- yield cacheHttpClient.saveCache(cacheId, archivePath, response.signedUploadUrl, options);
- const finalizeRequest = {
- key,
- version,
- sizeBytes: `${archiveFileSize}`
- };
- const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
- core.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);
+ yield cacheHttpClient.saveCache(cacheId, archivePath, options);
}
catch (error) {
const typedError = error;
@@ -454,1753 +238,11 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
return cacheId;
});
}
+exports.saveCache = saveCache;
//# sourceMappingURL=cache.js.map
/***/ }),
-/***/ 4469:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.Timestamp = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const runtime_6 = __nccwpck_require__(4061);
-const runtime_7 = __nccwpck_require__(4061);
-// @generated message type with reflection information, may provide speed optimized methods
-class Timestamp$Type extends runtime_7.MessageType {
- constructor() {
- super("google.protobuf.Timestamp", [
- { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
- ]);
- }
- /**
- * Creates a new `Timestamp` for the current time.
- */
- now() {
- const msg = this.create();
- const ms = Date.now();
- msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();
- msg.nanos = (ms % 1000) * 1000000;
- return msg;
- }
- /**
- * Converts a `Timestamp` to a JavaScript Date.
- */
- toDate(message) {
- return new Date(runtime_6.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
- }
- /**
- * Converts a JavaScript Date to a `Timestamp`.
- */
- fromDate(date) {
- const msg = this.create();
- const ms = date.getTime();
- msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();
- msg.nanos = (ms % 1000) * 1000000;
- return msg;
- }
- /**
- * In JSON format, the `Timestamp` type is encoded as a string
- * in the RFC 3339 format.
- */
- internalJsonWrite(message, options) {
- let ms = runtime_6.PbLong.from(message.seconds).toNumber() * 1000;
- if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
- throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
- if (message.nanos < 0)
- throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
- let z = "Z";
- if (message.nanos > 0) {
- let nanosStr = (message.nanos + 1000000000).toString().substring(1);
- if (nanosStr.substring(3) === "000000")
- z = "." + nanosStr.substring(0, 3) + "Z";
- else if (nanosStr.substring(6) === "000")
- z = "." + nanosStr.substring(0, 6) + "Z";
- else
- z = "." + nanosStr + "Z";
- }
- return new Date(ms).toISOString().replace(".000Z", z);
- }
- /**
- * In JSON format, the `Timestamp` type is encoded as a string
- * in the RFC 3339 format.
- */
- internalJsonRead(json, options, target) {
- if (typeof json !== "string")
- throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_5.typeofJsonValue)(json) + ".");
- let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
- if (!matches)
- throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
- let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
- if (Number.isNaN(ms))
- throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
- if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
- throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
- if (!target)
- target = this.create();
- target.seconds = runtime_6.PbLong.from(ms / 1000).toString();
- target.nanos = 0;
- if (matches[7])
- target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
- return target;
- }
- create(value) {
- const message = { seconds: "0", nanos: 0 };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* int64 seconds */ 1:
- message.seconds = reader.int64().toString();
- break;
- case /* int32 nanos */ 2:
- message.nanos = reader.int32();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* int64 seconds = 1; */
- if (message.seconds !== "0")
- writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
- /* int32 nanos = 2; */
- if (message.nanos !== 0)
- writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message google.protobuf.Timestamp
- */
-exports.Timestamp = new Timestamp$Type();
-//# sourceMappingURL=timestamp.js.map
-
-/***/ }),
-
-/***/ 4388:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheService = exports.LookupCacheEntryResponse = exports.LookupCacheEntryRequest = exports.ListCacheEntriesResponse = exports.ListCacheEntriesRequest = exports.DeleteCacheEntryResponse = exports.DeleteCacheEntryRequest = exports.GetCacheEntryDownloadURLResponse = exports.GetCacheEntryDownloadURLRequest = exports.FinalizeCacheEntryUploadResponse = exports.FinalizeCacheEntryUploadRequest = exports.CreateCacheEntryResponse = exports.CreateCacheEntryRequest = void 0;
-// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies
-// @generated from protobuf file "results/api/v1/cache.proto" (package "github.actions.results.api.v1", syntax proto3)
-// tslint:disable
-const runtime_rpc_1 = __nccwpck_require__(12);
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const cacheentry_1 = __nccwpck_require__(3639);
-const cachemetadata_1 = __nccwpck_require__(7988);
-// @generated message type with reflection information, may provide speed optimized methods
-class CreateCacheEntryRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.CreateCacheEntryRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* string version */ 3:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* string version = 3; */
- if (message.version !== "")
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.CreateCacheEntryRequest
- */
-exports.CreateCacheEntryRequest = new CreateCacheEntryRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.CreateCacheEntryResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, signedUploadUrl: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* string signed_upload_url */ 2:
- message.signedUploadUrl = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* string signed_upload_url = 2; */
- if (message.signedUploadUrl !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.CreateCacheEntryResponse
- */
-exports.CreateCacheEntryResponse = new CreateCacheEntryResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class FinalizeCacheEntryUploadRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", sizeBytes: "0", version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* int64 size_bytes */ 3:
- message.sizeBytes = reader.int64().toString();
- break;
- case /* string version */ 4:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* int64 size_bytes = 3; */
- if (message.sizeBytes !== "0")
- writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
- /* string version = 4; */
- if (message.version !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeCacheEntryUploadRequest
- */
-exports.FinalizeCacheEntryUploadRequest = new FinalizeCacheEntryUploadRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, entryId: "0" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* int64 entry_id */ 2:
- message.entryId = reader.int64().toString();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* int64 entry_id = 2; */
- if (message.entryId !== "0")
- writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeCacheEntryUploadResponse
- */
-exports.FinalizeCacheEntryUploadResponse = new FinalizeCacheEntryUploadResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class GetCacheEntryDownloadURLRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
- { no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", restoreKeys: [], version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* repeated string restore_keys */ 3:
- message.restoreKeys.push(reader.string());
- break;
- case /* string version */ 4:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* repeated string restore_keys = 3; */
- for (let i = 0; i < message.restoreKeys.length; i++)
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
- /* string version = 4; */
- if (message.version !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLRequest
- */
-exports.GetCacheEntryDownloadURLRequest = new GetCacheEntryDownloadURLRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class GetCacheEntryDownloadURLResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "signed_download_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "matched_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, signedDownloadUrl: "", matchedKey: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* string signed_download_url */ 2:
- message.signedDownloadUrl = reader.string();
- break;
- case /* string matched_key */ 3:
- message.matchedKey = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* string signed_download_url = 2; */
- if (message.signedDownloadUrl !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedDownloadUrl);
- /* string matched_key = 3; */
- if (message.matchedKey !== "")
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.matchedKey);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLResponse
- */
-exports.GetCacheEntryDownloadURLResponse = new GetCacheEntryDownloadURLResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class DeleteCacheEntryRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.DeleteCacheEntryRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.DeleteCacheEntryRequest
- */
-exports.DeleteCacheEntryRequest = new DeleteCacheEntryRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class DeleteCacheEntryResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.DeleteCacheEntryResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, entryId: "0" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* int64 entry_id */ 2:
- message.entryId = reader.int64().toString();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* int64 entry_id = 2; */
- if (message.entryId !== "0")
- writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.DeleteCacheEntryResponse
- */
-exports.DeleteCacheEntryResponse = new DeleteCacheEntryResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class ListCacheEntriesRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.ListCacheEntriesRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", restoreKeys: [] };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* repeated string restore_keys */ 3:
- message.restoreKeys.push(reader.string());
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* repeated string restore_keys = 3; */
- for (let i = 0; i < message.restoreKeys.length; i++)
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.ListCacheEntriesRequest
- */
-exports.ListCacheEntriesRequest = new ListCacheEntriesRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class ListCacheEntriesResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.ListCacheEntriesResponse", [
- { no: 1, name: "entries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => cacheentry_1.CacheEntry }
- ]);
- }
- create(value) {
- const message = { entries: [] };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* repeated github.actions.results.entities.v1.CacheEntry entries */ 1:
- message.entries.push(cacheentry_1.CacheEntry.internalBinaryRead(reader, reader.uint32(), options));
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* repeated github.actions.results.entities.v1.CacheEntry entries = 1; */
- for (let i = 0; i < message.entries.length; i++)
- cacheentry_1.CacheEntry.internalBinaryWrite(message.entries[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.ListCacheEntriesResponse
- */
-exports.ListCacheEntriesResponse = new ListCacheEntriesResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class LookupCacheEntryRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.LookupCacheEntryRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
- { no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", restoreKeys: [], version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* repeated string restore_keys */ 3:
- message.restoreKeys.push(reader.string());
- break;
- case /* string version */ 4:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* repeated string restore_keys = 3; */
- for (let i = 0; i < message.restoreKeys.length; i++)
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
- /* string version = 4; */
- if (message.version !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.LookupCacheEntryRequest
- */
-exports.LookupCacheEntryRequest = new LookupCacheEntryRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class LookupCacheEntryResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.LookupCacheEntryResponse", [
- { no: 1, name: "exists", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "entry", kind: "message", T: () => cacheentry_1.CacheEntry }
- ]);
- }
- create(value) {
- const message = { exists: false };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool exists */ 1:
- message.exists = reader.bool();
- break;
- case /* github.actions.results.entities.v1.CacheEntry entry */ 2:
- message.entry = cacheentry_1.CacheEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool exists = 1; */
- if (message.exists !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.exists);
- /* github.actions.results.entities.v1.CacheEntry entry = 2; */
- if (message.entry)
- cacheentry_1.CacheEntry.internalBinaryWrite(message.entry, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.LookupCacheEntryResponse
- */
-exports.LookupCacheEntryResponse = new LookupCacheEntryResponse$Type();
-/**
- * @generated ServiceType for protobuf service github.actions.results.api.v1.CacheService
- */
-exports.CacheService = new runtime_rpc_1.ServiceType("github.actions.results.api.v1.CacheService", [
- { name: "CreateCacheEntry", options: {}, I: exports.CreateCacheEntryRequest, O: exports.CreateCacheEntryResponse },
- { name: "FinalizeCacheEntryUpload", options: {}, I: exports.FinalizeCacheEntryUploadRequest, O: exports.FinalizeCacheEntryUploadResponse },
- { name: "GetCacheEntryDownloadURL", options: {}, I: exports.GetCacheEntryDownloadURLRequest, O: exports.GetCacheEntryDownloadURLResponse },
- { name: "DeleteCacheEntry", options: {}, I: exports.DeleteCacheEntryRequest, O: exports.DeleteCacheEntryResponse },
- { name: "ListCacheEntries", options: {}, I: exports.ListCacheEntriesRequest, O: exports.ListCacheEntriesResponse },
- { name: "LookupCacheEntry", options: {}, I: exports.LookupCacheEntryRequest, O: exports.LookupCacheEntryResponse }
-]);
-//# sourceMappingURL=cache.js.map
-
-/***/ }),
-
-/***/ 267:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.createCacheServiceServer = exports.CacheServiceMethodList = exports.CacheServiceMethod = exports.CacheServiceClientProtobuf = exports.CacheServiceClientJSON = void 0;
-const twirp_ts_1 = __nccwpck_require__(6465);
-const cache_1 = __nccwpck_require__(4388);
-class CacheServiceClientJSON {
- constructor(rpc) {
- this.rpc = rpc;
- this.CreateCacheEntry.bind(this);
- this.FinalizeCacheEntryUpload.bind(this);
- this.GetCacheEntryDownloadURL.bind(this);
- this.DeleteCacheEntry.bind(this);
- this.ListCacheEntries.bind(this);
- this.LookupCacheEntry.bind(this);
- }
- CreateCacheEntry(request) {
- const data = cache_1.CreateCacheEntryRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "CreateCacheEntry", "application/json", data);
- return promise.then((data) => cache_1.CreateCacheEntryResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- FinalizeCacheEntryUpload(request) {
- const data = cache_1.FinalizeCacheEntryUploadRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "FinalizeCacheEntryUpload", "application/json", data);
- return promise.then((data) => cache_1.FinalizeCacheEntryUploadResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- GetCacheEntryDownloadURL(request) {
- const data = cache_1.GetCacheEntryDownloadURLRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/json", data);
- return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- DeleteCacheEntry(request) {
- const data = cache_1.DeleteCacheEntryRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "DeleteCacheEntry", "application/json", data);
- return promise.then((data) => cache_1.DeleteCacheEntryResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- ListCacheEntries(request) {
- const data = cache_1.ListCacheEntriesRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "ListCacheEntries", "application/json", data);
- return promise.then((data) => cache_1.ListCacheEntriesResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- LookupCacheEntry(request) {
- const data = cache_1.LookupCacheEntryRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "LookupCacheEntry", "application/json", data);
- return promise.then((data) => cache_1.LookupCacheEntryResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
-}
-exports.CacheServiceClientJSON = CacheServiceClientJSON;
-class CacheServiceClientProtobuf {
- constructor(rpc) {
- this.rpc = rpc;
- this.CreateCacheEntry.bind(this);
- this.FinalizeCacheEntryUpload.bind(this);
- this.GetCacheEntryDownloadURL.bind(this);
- this.DeleteCacheEntry.bind(this);
- this.ListCacheEntries.bind(this);
- this.LookupCacheEntry.bind(this);
- }
- CreateCacheEntry(request) {
- const data = cache_1.CreateCacheEntryRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "CreateCacheEntry", "application/protobuf", data);
- return promise.then((data) => cache_1.CreateCacheEntryResponse.fromBinary(data));
- }
- FinalizeCacheEntryUpload(request) {
- const data = cache_1.FinalizeCacheEntryUploadRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "FinalizeCacheEntryUpload", "application/protobuf", data);
- return promise.then((data) => cache_1.FinalizeCacheEntryUploadResponse.fromBinary(data));
- }
- GetCacheEntryDownloadURL(request) {
- const data = cache_1.GetCacheEntryDownloadURLRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/protobuf", data);
- return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromBinary(data));
- }
- DeleteCacheEntry(request) {
- const data = cache_1.DeleteCacheEntryRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "DeleteCacheEntry", "application/protobuf", data);
- return promise.then((data) => cache_1.DeleteCacheEntryResponse.fromBinary(data));
- }
- ListCacheEntries(request) {
- const data = cache_1.ListCacheEntriesRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "ListCacheEntries", "application/protobuf", data);
- return promise.then((data) => cache_1.ListCacheEntriesResponse.fromBinary(data));
- }
- LookupCacheEntry(request) {
- const data = cache_1.LookupCacheEntryRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "LookupCacheEntry", "application/protobuf", data);
- return promise.then((data) => cache_1.LookupCacheEntryResponse.fromBinary(data));
- }
-}
-exports.CacheServiceClientProtobuf = CacheServiceClientProtobuf;
-var CacheServiceMethod;
-(function (CacheServiceMethod) {
- CacheServiceMethod["CreateCacheEntry"] = "CreateCacheEntry";
- CacheServiceMethod["FinalizeCacheEntryUpload"] = "FinalizeCacheEntryUpload";
- CacheServiceMethod["GetCacheEntryDownloadURL"] = "GetCacheEntryDownloadURL";
- CacheServiceMethod["DeleteCacheEntry"] = "DeleteCacheEntry";
- CacheServiceMethod["ListCacheEntries"] = "ListCacheEntries";
- CacheServiceMethod["LookupCacheEntry"] = "LookupCacheEntry";
-})(CacheServiceMethod || (exports.CacheServiceMethod = CacheServiceMethod = {}));
-exports.CacheServiceMethodList = [
- CacheServiceMethod.CreateCacheEntry,
- CacheServiceMethod.FinalizeCacheEntryUpload,
- CacheServiceMethod.GetCacheEntryDownloadURL,
- CacheServiceMethod.DeleteCacheEntry,
- CacheServiceMethod.ListCacheEntries,
- CacheServiceMethod.LookupCacheEntry,
-];
-function createCacheServiceServer(service) {
- return new twirp_ts_1.TwirpServer({
- service,
- packageName: "github.actions.results.api.v1",
- serviceName: "CacheService",
- methodList: exports.CacheServiceMethodList,
- matchRoute: matchCacheServiceRoute,
- });
-}
-exports.createCacheServiceServer = createCacheServiceServer;
-function matchCacheServiceRoute(method, events) {
- switch (method) {
- case "CreateCacheEntry":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "CreateCacheEntry" });
- yield events.onMatch(ctx);
- return handleCacheServiceCreateCacheEntryRequest(ctx, service, data, interceptors);
- });
- case "FinalizeCacheEntryUpload":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "FinalizeCacheEntryUpload" });
- yield events.onMatch(ctx);
- return handleCacheServiceFinalizeCacheEntryUploadRequest(ctx, service, data, interceptors);
- });
- case "GetCacheEntryDownloadURL":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "GetCacheEntryDownloadURL" });
- yield events.onMatch(ctx);
- return handleCacheServiceGetCacheEntryDownloadURLRequest(ctx, service, data, interceptors);
- });
- case "DeleteCacheEntry":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "DeleteCacheEntry" });
- yield events.onMatch(ctx);
- return handleCacheServiceDeleteCacheEntryRequest(ctx, service, data, interceptors);
- });
- case "ListCacheEntries":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "ListCacheEntries" });
- yield events.onMatch(ctx);
- return handleCacheServiceListCacheEntriesRequest(ctx, service, data, interceptors);
- });
- case "LookupCacheEntry":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "LookupCacheEntry" });
- yield events.onMatch(ctx);
- return handleCacheServiceLookupCacheEntryRequest(ctx, service, data, interceptors);
- });
- default:
- events.onNotFound();
- const msg = `no handler found`;
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceCreateCacheEntryRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceCreateCacheEntryJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceCreateCacheEntryProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceFinalizeCacheEntryUploadRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceFinalizeCacheEntryUploadJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceFinalizeCacheEntryUploadProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceGetCacheEntryDownloadURLRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceGetCacheEntryDownloadURLJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceGetCacheEntryDownloadURLProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceDeleteCacheEntryRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceDeleteCacheEntryJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceDeleteCacheEntryProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceListCacheEntriesRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceListCacheEntriesJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceListCacheEntriesProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceLookupCacheEntryRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceLookupCacheEntryJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceLookupCacheEntryProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceCreateCacheEntryJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.CreateCacheEntryRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.CreateCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.CreateCacheEntry(ctx, request);
- }
- return JSON.stringify(cache_1.CreateCacheEntryResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceFinalizeCacheEntryUploadJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.FinalizeCacheEntryUploadRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.FinalizeCacheEntryUpload(ctx, inputReq);
- });
- }
- else {
- response = yield service.FinalizeCacheEntryUpload(ctx, request);
- }
- return JSON.stringify(cache_1.FinalizeCacheEntryUploadResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceGetCacheEntryDownloadURLJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.GetCacheEntryDownloadURLRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.GetCacheEntryDownloadURL(ctx, inputReq);
- });
- }
- else {
- response = yield service.GetCacheEntryDownloadURL(ctx, request);
- }
- return JSON.stringify(cache_1.GetCacheEntryDownloadURLResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceDeleteCacheEntryJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.DeleteCacheEntryRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.DeleteCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.DeleteCacheEntry(ctx, request);
- }
- return JSON.stringify(cache_1.DeleteCacheEntryResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceListCacheEntriesJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.ListCacheEntriesRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.ListCacheEntries(ctx, inputReq);
- });
- }
- else {
- response = yield service.ListCacheEntries(ctx, request);
- }
- return JSON.stringify(cache_1.ListCacheEntriesResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceLookupCacheEntryJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.LookupCacheEntryRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.LookupCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.LookupCacheEntry(ctx, request);
- }
- return JSON.stringify(cache_1.LookupCacheEntryResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceCreateCacheEntryProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.CreateCacheEntryRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.CreateCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.CreateCacheEntry(ctx, request);
- }
- return Buffer.from(cache_1.CreateCacheEntryResponse.toBinary(response));
- });
-}
-function handleCacheServiceFinalizeCacheEntryUploadProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.FinalizeCacheEntryUploadRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.FinalizeCacheEntryUpload(ctx, inputReq);
- });
- }
- else {
- response = yield service.FinalizeCacheEntryUpload(ctx, request);
- }
- return Buffer.from(cache_1.FinalizeCacheEntryUploadResponse.toBinary(response));
- });
-}
-function handleCacheServiceGetCacheEntryDownloadURLProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.GetCacheEntryDownloadURLRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.GetCacheEntryDownloadURL(ctx, inputReq);
- });
- }
- else {
- response = yield service.GetCacheEntryDownloadURL(ctx, request);
- }
- return Buffer.from(cache_1.GetCacheEntryDownloadURLResponse.toBinary(response));
- });
-}
-function handleCacheServiceDeleteCacheEntryProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.DeleteCacheEntryRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.DeleteCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.DeleteCacheEntry(ctx, request);
- }
- return Buffer.from(cache_1.DeleteCacheEntryResponse.toBinary(response));
- });
-}
-function handleCacheServiceListCacheEntriesProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.ListCacheEntriesRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.ListCacheEntries(ctx, inputReq);
- });
- }
- else {
- response = yield service.ListCacheEntries(ctx, request);
- }
- return Buffer.from(cache_1.ListCacheEntriesResponse.toBinary(response));
- });
-}
-function handleCacheServiceLookupCacheEntryProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.LookupCacheEntryRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.LookupCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.LookupCacheEntry(ctx, request);
- }
- return Buffer.from(cache_1.LookupCacheEntryResponse.toBinary(response));
- });
-}
-//# sourceMappingURL=cache.twirp.js.map
-
-/***/ }),
-
-/***/ 3639:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheEntry = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const timestamp_1 = __nccwpck_require__(4469);
-// @generated message type with reflection information, may provide speed optimized methods
-class CacheEntry$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.entities.v1.CacheEntry", [
- { no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 2, name: "hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 4, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 5, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 6, name: "created_at", kind: "message", T: () => timestamp_1.Timestamp },
- { no: 7, name: "last_accessed_at", kind: "message", T: () => timestamp_1.Timestamp },
- { no: 8, name: "expires_at", kind: "message", T: () => timestamp_1.Timestamp }
- ]);
- }
- create(value) {
- const message = { key: "", hash: "", sizeBytes: "0", scope: "", version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* string key */ 1:
- message.key = reader.string();
- break;
- case /* string hash */ 2:
- message.hash = reader.string();
- break;
- case /* int64 size_bytes */ 3:
- message.sizeBytes = reader.int64().toString();
- break;
- case /* string scope */ 4:
- message.scope = reader.string();
- break;
- case /* string version */ 5:
- message.version = reader.string();
- break;
- case /* google.protobuf.Timestamp created_at */ 6:
- message.createdAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
- break;
- case /* google.protobuf.Timestamp last_accessed_at */ 7:
- message.lastAccessedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastAccessedAt);
- break;
- case /* google.protobuf.Timestamp expires_at */ 8:
- message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* string key = 1; */
- if (message.key !== "")
- writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.key);
- /* string hash = 2; */
- if (message.hash !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.hash);
- /* int64 size_bytes = 3; */
- if (message.sizeBytes !== "0")
- writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
- /* string scope = 4; */
- if (message.scope !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.scope);
- /* string version = 5; */
- if (message.version !== "")
- writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.version);
- /* google.protobuf.Timestamp created_at = 6; */
- if (message.createdAt)
- timestamp_1.Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* google.protobuf.Timestamp last_accessed_at = 7; */
- if (message.lastAccessedAt)
- timestamp_1.Timestamp.internalBinaryWrite(message.lastAccessedAt, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* google.protobuf.Timestamp expires_at = 8; */
- if (message.expiresAt)
- timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheEntry
- */
-exports.CacheEntry = new CacheEntry$Type();
-//# sourceMappingURL=cacheentry.js.map
-
-/***/ }),
-
-/***/ 7988:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheMetadata = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const cachescope_1 = __nccwpck_require__(3749);
-// @generated message type with reflection information, may provide speed optimized methods
-class CacheMetadata$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.entities.v1.CacheMetadata", [
- { no: 1, name: "repository_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 2, name: "scope", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => cachescope_1.CacheScope }
- ]);
- }
- create(value) {
- const message = { repositoryId: "0", scope: [] };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* int64 repository_id */ 1:
- message.repositoryId = reader.int64().toString();
- break;
- case /* repeated github.actions.results.entities.v1.CacheScope scope */ 2:
- message.scope.push(cachescope_1.CacheScope.internalBinaryRead(reader, reader.uint32(), options));
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* int64 repository_id = 1; */
- if (message.repositoryId !== "0")
- writer.tag(1, runtime_1.WireType.Varint).int64(message.repositoryId);
- /* repeated github.actions.results.entities.v1.CacheScope scope = 2; */
- for (let i = 0; i < message.scope.length; i++)
- cachescope_1.CacheScope.internalBinaryWrite(message.scope[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheMetadata
- */
-exports.CacheMetadata = new CacheMetadata$Type();
-//# sourceMappingURL=cachemetadata.js.map
-
-/***/ }),
-
-/***/ 3749:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheScope = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-// @generated message type with reflection information, may provide speed optimized methods
-class CacheScope$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.entities.v1.CacheScope", [
- { no: 1, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 2, name: "permission", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
- ]);
- }
- create(value) {
- const message = { scope: "", permission: "0" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* string scope */ 1:
- message.scope = reader.string();
- break;
- case /* int64 permission */ 2:
- message.permission = reader.int64().toString();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* string scope = 1; */
- if (message.scope !== "")
- writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.scope);
- /* int64 permission = 2; */
- if (message.permission !== "0")
- writer.tag(2, runtime_1.WireType.Varint).int64(message.permission);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheScope
- */
-exports.CacheScope = new CacheScope$Type();
-//# sourceMappingURL=cachescope.js.map
-
-/***/ }),
-
/***/ 8245:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@@ -2239,21 +281,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = void 0;
+exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = exports.getCacheVersion = void 0;
const core = __importStar(__nccwpck_require__(2186));
const http_client_1 = __nccwpck_require__(6255);
const auth_1 = __nccwpck_require__(5526);
+const crypto = __importStar(__nccwpck_require__(6113));
const fs = __importStar(__nccwpck_require__(7147));
const url_1 = __nccwpck_require__(7310);
const utils = __importStar(__nccwpck_require__(1518));
-const uploadUtils_1 = __nccwpck_require__(1786);
const downloadUtils_1 = __nccwpck_require__(5500);
const options_1 = __nccwpck_require__(6215);
const requestUtils_1 = __nccwpck_require__(3981);
-const config_1 = __nccwpck_require__(5147);
-const user_agent_1 = __nccwpck_require__(580);
+const versionSalt = '1.0';
function getCacheApiUrl(resource) {
- const baseUrl = (0, config_1.getCacheServiceURL)();
+ const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
if (!baseUrl) {
throw new Error('Cache Service Url not found, unable to restore cache.');
}
@@ -2275,12 +316,29 @@ function getRequestOptions() {
function createHttpClient() {
const token = process.env['ACTIONS_RUNTIME_TOKEN'] || '';
const bearerCredentialHandler = new auth_1.BearerCredentialHandler(token);
- return new http_client_1.HttpClient((0, user_agent_1.getUserAgentString)(), [bearerCredentialHandler], getRequestOptions());
+ return new http_client_1.HttpClient('actions/cache', [bearerCredentialHandler], getRequestOptions());
}
+function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
+ // don't pass changes upstream
+ const components = paths.slice();
+ // Add compression method to cache version to restore
+ // compressed cache as per compression method
+ if (compressionMethod) {
+ components.push(compressionMethod);
+ }
+ // Only check for windows platforms if enableCrossOsArchive is false
+ if (process.platform === 'win32' && !enableCrossOsArchive) {
+ components.push('windows-only');
+ }
+ // Add salt to cache version to support breaking changes in cache entry
+ components.push(versionSalt);
+ return crypto.createHash('sha256').update(components.join('|')).digest('hex');
+}
+exports.getCacheVersion = getCacheVersion;
function getCacheEntry(keys, paths, options) {
return __awaiter(this, void 0, void 0, function* () {
const httpClient = createHttpClient();
- const version = utils.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
+ const version = 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}`;
const response = yield (0, requestUtils_1.retryTypedResponse)('getCacheEntry', () => __awaiter(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); }));
// Cache not found
@@ -2351,7 +409,7 @@ exports.downloadCache = downloadCache;
function reserveCache(key, paths, options) {
return __awaiter(this, void 0, void 0, function* () {
const httpClient = createHttpClient();
- const version = utils.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
+ const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
const reserveCacheRequest = {
key,
version,
@@ -2433,30 +491,20 @@ function commitCache(httpClient, cacheId, filesize) {
}));
});
}
-function saveCache(cacheId, archivePath, signedUploadURL, options) {
+function saveCache(cacheId, archivePath, options) {
return __awaiter(this, void 0, void 0, function* () {
- const uploadOptions = (0, options_1.getUploadOptions)(options);
- if (uploadOptions.useAzureSdk) {
- // Use Azure storage SDK to upload caches directly to Azure
- 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.debug('Upload cache');
- yield uploadFile(httpClient, cacheId, archivePath, options);
- // Commit Cache
- core.debug('Commiting cache');
- const cacheSize = utils.getArchiveFileSizeInBytes(archivePath);
- core.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.info('Cache saved successfully');
+ const httpClient = createHttpClient();
+ core.debug('Upload cache');
+ yield uploadFile(httpClient, cacheId, archivePath, options);
+ // Commit Cache
+ core.debug('Commiting cache');
+ const cacheSize = utils.getArchiveFileSizeInBytes(archivePath);
+ core.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.info('Cache saved successfully');
});
}
exports.saveCache = saveCache;
@@ -2509,18 +557,17 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
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;
+exports.isGhes = exports.assertDefined = exports.getGnuTarPathOnWindows = exports.getCacheFileName = exports.getCompressionMethod = exports.unlinkFile = exports.resolvePaths = exports.getArchiveFileSizeInBytes = exports.createTempDirectory = void 0;
const core = __importStar(__nccwpck_require__(2186));
const exec = __importStar(__nccwpck_require__(1514));
const glob = __importStar(__nccwpck_require__(1597));
const io = __importStar(__nccwpck_require__(7436));
-const crypto = __importStar(__nccwpck_require__(6113));
const fs = __importStar(__nccwpck_require__(7147));
const path = __importStar(__nccwpck_require__(1017));
const semver = __importStar(__nccwpck_require__(3771));
const util = __importStar(__nccwpck_require__(3837));
+const uuid_1 = __nccwpck_require__(4138);
const constants_1 = __nccwpck_require__(8840);
-const versionSalt = '1.0';
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
function createTempDirectory() {
return __awaiter(this, void 0, void 0, function* () {
@@ -2542,7 +589,7 @@ function createTempDirectory() {
}
tempDirectory = path.join(baseLocation, 'actions', 'temp');
}
- const dest = path.join(tempDirectory, crypto.randomUUID());
+ const dest = path.join(tempDirectory, (0, uuid_1.v4)());
yield io.mkdirP(dest);
return dest;
});
@@ -2658,76 +705,15 @@ function assertDefined(name, value) {
return value;
}
exports.assertDefined = assertDefined;
-function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
- // don't pass changes upstream
- const components = paths.slice();
- // Add compression method to cache version to restore
- // compressed cache as per compression method
- if (compressionMethod) {
- components.push(compressionMethod);
- }
- // Only check for windows platforms if enableCrossOsArchive is false
- if (process.platform === 'win32' && !enableCrossOsArchive) {
- components.push('windows-only');
- }
- // Add salt to cache version to support breaking changes in cache entry
- components.push(versionSalt);
- return crypto.createHash('sha256').update(components.join('|')).digest('hex');
-}
-exports.getCacheVersion = getCacheVersion;
-function getRuntimeToken() {
- const token = process.env['ACTIONS_RUNTIME_TOKEN'];
- if (!token) {
- throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable');
- }
- return token;
-}
-exports.getRuntimeToken = getRuntimeToken;
-//# sourceMappingURL=cacheUtils.js.map
-
-/***/ }),
-
-/***/ 5147:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getCacheServiceURL = exports.getCacheServiceVersion = exports.isGhes = void 0;
function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
- const isGheHost = hostname.endsWith('.GHE.COM');
- const isLocalHost = hostname.endsWith('.LOCALHOST');
- return !isGitHubHost && !isGheHost && !isLocalHost;
+ const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
+ return !isGitHubHost && !isGheHost;
}
exports.isGhes = isGhes;
-function getCacheServiceVersion() {
- // Cache service v2 is not supported on GHES. We will default to
- // cache service v1 even if the feature flag was enabled by user.
- if (isGhes())
- return 'v1';
- return process.env['ACTIONS_CACHE_SERVICE_V2'] ? 'v2' : 'v1';
-}
-exports.getCacheServiceVersion = getCacheServiceVersion;
-function getCacheServiceURL() {
- const version = getCacheServiceVersion();
- // Based on the version of the cache service, we will determine which
- // URL to use.
- switch (version) {
- case 'v1':
- return (process.env['ACTIONS_CACHE_URL'] ||
- process.env['ACTIONS_RESULTS_URL'] ||
- '');
- case 'v2':
- return process.env['ACTIONS_RESULTS_URL'] || '';
- default:
- throw new Error(`Unsupported cache service version: ${version}`);
- }
-}
-exports.getCacheServiceURL = getCacheServiceURL;
-//# sourceMappingURL=config.js.map
+//# sourceMappingURL=cacheUtils.js.map
/***/ }),
@@ -2737,7 +723,7 @@ exports.getCacheServiceURL = getCacheServiceURL;
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheFileSizeLimit = exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0;
+exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0;
var CacheFilename;
(function (CacheFilename) {
CacheFilename["Gzip"] = "cache.tgz";
@@ -2770,7 +756,6 @@ exports.GnuTarPathOnWindows = `${process.env['PROGRAMFILES']}\\Git\\usr\\bin\\ta
exports.SystemTarPathOnWindows = `${process.env['SYSTEMDRIVE']}\\Windows\\System32\\tar.exe`;
exports.TarFilename = 'cache.tar';
exports.ManifestFilename = 'manifest.txt';
-exports.CacheFileSizeLimit = 10 * Math.pow(1024, 3); // 10GiB per repository
//# sourceMappingURL=constants.js.map
/***/ }),
@@ -3304,270 +1289,6 @@ exports.retryHttpClientResponse = retryHttpClientResponse;
/***/ }),
-/***/ 2502:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.internalCacheTwirpClient = void 0;
-const core_1 = __nccwpck_require__(2186);
-const user_agent_1 = __nccwpck_require__(580);
-const errors_1 = __nccwpck_require__(8223);
-const config_1 = __nccwpck_require__(5147);
-const cacheUtils_1 = __nccwpck_require__(1518);
-const auth_1 = __nccwpck_require__(5526);
-const http_client_1 = __nccwpck_require__(6255);
-const cache_twirp_1 = __nccwpck_require__(267);
-/**
- * This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
- *
- * It adds retry logic to the request method, which is not present in the generated client.
- *
- * This class is used to interact with cache service v2.
- */
-class CacheServiceClient {
- constructor(userAgent, maxAttempts, baseRetryIntervalMilliseconds, retryMultiplier) {
- this.maxAttempts = 5;
- this.baseRetryIntervalMilliseconds = 3000;
- this.retryMultiplier = 1.5;
- const token = (0, cacheUtils_1.getRuntimeToken)();
- this.baseUrl = (0, config_1.getCacheServiceURL)();
- if (maxAttempts) {
- this.maxAttempts = maxAttempts;
- }
- if (baseRetryIntervalMilliseconds) {
- this.baseRetryIntervalMilliseconds = baseRetryIntervalMilliseconds;
- }
- if (retryMultiplier) {
- this.retryMultiplier = retryMultiplier;
- }
- this.httpClient = new http_client_1.HttpClient(userAgent, [
- new auth_1.BearerCredentialHandler(token)
- ]);
- }
- // This function satisfies the Rpc interface. It is compatible with the JSON
- // JSON generated client.
- request(service, method, contentType, data) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href;
- (0, core_1.debug)(`[Request] ${method} ${url}`);
- const headers = {
- 'Content-Type': contentType
- };
- try {
- const { body } = yield this.retryableRequest(() => __awaiter(this, void 0, void 0, function* () { return this.httpClient.post(url, JSON.stringify(data), headers); }));
- return body;
- }
- catch (error) {
- throw new Error(`Failed to ${method}: ${error.message}`);
- }
- });
- }
- retryableRequest(operation) {
- return __awaiter(this, void 0, void 0, function* () {
- let attempt = 0;
- let errorMessage = '';
- let rawBody = '';
- while (attempt < this.maxAttempts) {
- let isRetryable = false;
- try {
- const response = yield operation();
- const statusCode = response.message.statusCode;
- rawBody = yield response.readBody();
- (0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
- (0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
- const body = JSON.parse(rawBody);
- (0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);
- if (this.isSuccessStatusCode(statusCode)) {
- return { response, body };
- }
- isRetryable = this.isRetryableHttpStatusCode(statusCode);
- errorMessage = `Failed request: (${statusCode}) ${response.message.statusMessage}`;
- if (body.msg) {
- if (errors_1.UsageError.isUsageErrorMessage(body.msg)) {
- throw new errors_1.UsageError();
- }
- errorMessage = `${errorMessage}: ${body.msg}`;
- }
- }
- catch (error) {
- if (error instanceof SyntaxError) {
- (0, core_1.debug)(`Raw Body: ${rawBody}`);
- }
- if (error instanceof errors_1.UsageError) {
- throw error;
- }
- if (errors_1.NetworkError.isNetworkErrorCode(error === null || error === void 0 ? void 0 : error.code)) {
- throw new errors_1.NetworkError(error === null || error === void 0 ? void 0 : error.code);
- }
- isRetryable = true;
- errorMessage = error.message;
- }
- if (!isRetryable) {
- throw new Error(`Received non-retryable error: ${errorMessage}`);
- }
- if (attempt + 1 === this.maxAttempts) {
- throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${errorMessage}`);
- }
- const retryTimeMilliseconds = this.getExponentialRetryTimeMilliseconds(attempt);
- (0, core_1.info)(`Attempt ${attempt + 1} of ${this.maxAttempts} failed with error: ${errorMessage}. Retrying request in ${retryTimeMilliseconds} ms...`);
- yield this.sleep(retryTimeMilliseconds);
- attempt++;
- }
- throw new Error(`Request failed`);
- });
- }
- isSuccessStatusCode(statusCode) {
- if (!statusCode)
- return false;
- return statusCode >= 200 && statusCode < 300;
- }
- isRetryableHttpStatusCode(statusCode) {
- if (!statusCode)
- return false;
- const retryableStatusCodes = [
- http_client_1.HttpCodes.BadGateway,
- http_client_1.HttpCodes.GatewayTimeout,
- http_client_1.HttpCodes.InternalServerError,
- http_client_1.HttpCodes.ServiceUnavailable,
- http_client_1.HttpCodes.TooManyRequests
- ];
- return retryableStatusCodes.includes(statusCode);
- }
- sleep(milliseconds) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise(resolve => setTimeout(resolve, milliseconds));
- });
- }
- getExponentialRetryTimeMilliseconds(attempt) {
- if (attempt < 0) {
- throw new Error('attempt should be a positive integer');
- }
- if (attempt === 0) {
- return this.baseRetryIntervalMilliseconds;
- }
- const minTime = this.baseRetryIntervalMilliseconds * Math.pow(this.retryMultiplier, attempt);
- const maxTime = minTime * this.retryMultiplier;
- // returns a random number between minTime and maxTime (exclusive)
- return Math.trunc(Math.random() * (maxTime - minTime) + minTime);
- }
-}
-function internalCacheTwirpClient(options) {
- const client = new CacheServiceClient((0, user_agent_1.getUserAgentString)(), options === null || options === void 0 ? void 0 : options.maxAttempts, options === null || options === void 0 ? void 0 : options.retryIntervalMs, options === null || options === void 0 ? void 0 : options.retryMultiplier);
- return new cache_twirp_1.CacheServiceClientJSON(client);
-}
-exports.internalCacheTwirpClient = internalCacheTwirpClient;
-//# sourceMappingURL=cacheTwirpClient.js.map
-
-/***/ }),
-
-/***/ 8223:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.UsageError = exports.NetworkError = exports.GHESNotSupportedError = exports.CacheNotFoundError = exports.InvalidResponseError = exports.FilesNotFoundError = void 0;
-class FilesNotFoundError extends Error {
- constructor(files = []) {
- let message = 'No files were found to upload';
- if (files.length > 0) {
- message += `: ${files.join(', ')}`;
- }
- super(message);
- this.files = files;
- this.name = 'FilesNotFoundError';
- }
-}
-exports.FilesNotFoundError = FilesNotFoundError;
-class InvalidResponseError extends Error {
- constructor(message) {
- super(message);
- this.name = 'InvalidResponseError';
- }
-}
-exports.InvalidResponseError = InvalidResponseError;
-class CacheNotFoundError extends Error {
- constructor(message = 'Cache not found') {
- super(message);
- this.name = 'CacheNotFoundError';
- }
-}
-exports.CacheNotFoundError = CacheNotFoundError;
-class GHESNotSupportedError extends Error {
- constructor(message = '@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES.') {
- super(message);
- this.name = 'GHESNotSupportedError';
- }
-}
-exports.GHESNotSupportedError = GHESNotSupportedError;
-class NetworkError extends Error {
- constructor(code) {
- const message = `Unable to make request: ${code}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;
- super(message);
- this.code = code;
- this.name = 'NetworkError';
- }
-}
-exports.NetworkError = NetworkError;
-NetworkError.isNetworkErrorCode = (code) => {
- if (!code)
- return false;
- return [
- 'ECONNRESET',
- 'ENOTFOUND',
- 'ETIMEDOUT',
- 'ECONNREFUSED',
- 'EHOSTUNREACH'
- ].includes(code);
-};
-class UsageError extends Error {
- constructor() {
- const message = `Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;
- super(message);
- this.name = 'UsageError';
- }
-}
-exports.UsageError = UsageError;
-UsageError.isUsageErrorMessage = (msg) => {
- if (!msg)
- return false;
- return msg.includes('insufficient usage');
-};
-//# sourceMappingURL=errors.js.map
-
-/***/ }),
-
-/***/ 580:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getUserAgentString = void 0;
-// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
-const packageJson = __nccwpck_require__(9167);
-/**
- * Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
- */
-function getUserAgentString() {
- return `@actions/cache-${packageJson.version}`;
-}
-exports.getUserAgentString = getUserAgentString;
-//# sourceMappingURL=user-agent.js.map
-
-/***/ }),
-
/***/ 6490:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@@ -3847,180 +1568,6 @@ exports.createTar = createTar;
/***/ }),
-/***/ 1786:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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.uploadCacheArchiveSDK = exports.UploadProgress = void 0;
-const core = __importStar(__nccwpck_require__(2186));
-const storage_blob_1 = __nccwpck_require__(4100);
-const errors_1 = __nccwpck_require__(8223);
-/**
- * Class for tracking the upload state and displaying stats.
- */
-class UploadProgress {
- constructor(contentLength) {
- this.contentLength = contentLength;
- this.sentBytes = 0;
- this.displayedComplete = false;
- this.startTime = Date.now();
- }
- /**
- * Sets the number of bytes sent
- *
- * @param sentBytes the number of bytes sent
- */
- setSentBytes(sentBytes) {
- this.sentBytes = sentBytes;
- }
- /**
- * Returns the total number of bytes transferred.
- */
- getTransferredBytes() {
- return this.sentBytes;
- }
- /**
- * Returns true if the upload is complete.
- */
- isDone() {
- return this.getTransferredBytes() === this.contentLength;
- }
- /**
- * Prints the current upload stats. Once the upload completes, this will print one
- * last line and then stop.
- */
- display() {
- if (this.displayedComplete) {
- return;
- }
- const transferredBytes = this.sentBytes;
- const percentage = (100 * (transferredBytes / this.contentLength)).toFixed(1);
- const elapsedTime = Date.now() - this.startTime;
- const uploadSpeed = (transferredBytes /
- (1024 * 1024) /
- (elapsedTime / 1000)).toFixed(1);
- core.info(`Sent ${transferredBytes} of ${this.contentLength} (${percentage}%), ${uploadSpeed} MBs/sec`);
- if (this.isDone()) {
- this.displayedComplete = true;
- }
- }
- /**
- * Returns a function used to handle TransferProgressEvents.
- */
- onProgress() {
- return (progress) => {
- this.setSentBytes(progress.loadedBytes);
- };
- }
- /**
- * Starts the timer that displays the stats.
- *
- * @param delayInMs the delay between each write
- */
- startDisplayTimer(delayInMs = 1000) {
- const displayCallback = () => {
- this.display();
- if (!this.isDone()) {
- this.timeoutHandle = setTimeout(displayCallback, delayInMs);
- }
- };
- this.timeoutHandle = setTimeout(displayCallback, delayInMs);
- }
- /**
- * Stops the timer that displays the stats. As this typically indicates the upload
- * is complete, this will display one last line, unless the last line has already
- * been written.
- */
- stopDisplayTimer() {
- if (this.timeoutHandle) {
- clearTimeout(this.timeoutHandle);
- this.timeoutHandle = undefined;
- }
- this.display();
- }
-}
-exports.UploadProgress = UploadProgress;
-/**
- * Uploads a cache archive directly to Azure Blob Storage using the Azure SDK.
- * This function will display progress information to the console. Concurrency of the
- * upload is determined by the calling functions.
- *
- * @param signedUploadURL
- * @param archivePath
- * @param options
- * @returns
- */
-function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
- var _a;
- return __awaiter(this, void 0, void 0, function* () {
- const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
- const blockBlobClient = blobClient.getBlockBlobClient();
- const uploadProgress = new UploadProgress((_a = options === null || options === void 0 ? void 0 : options.archiveSizeBytes) !== null && _a !== void 0 ? _a : 0);
- // Specify data transfer options
- const uploadOptions = {
- blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
- concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
- maxSingleShotSize: 128 * 1024 * 1024,
- onProgress: uploadProgress.onProgress()
- };
- try {
- uploadProgress.startDisplayTimer();
- core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
- const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
- // TODO: better management of non-retryable errors
- if (response._response.status >= 400) {
- throw new errors_1.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${response._response.status}`);
- }
- return response;
- }
- catch (error) {
- core.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${error.message}`);
- throw error;
- }
- finally {
- uploadProgress.stopDisplayTimer();
- }
- });
-}
-exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;
-//# sourceMappingURL=uploadUtils.js.map
-
-/***/ }),
-
/***/ 6215:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@@ -4058,16 +1605,11 @@ const core = __importStar(__nccwpck_require__(2186));
* @param copy the original upload options
*/
function getUploadOptions(copy) {
- // Defaults if not overriden
const result = {
- useAzureSdk: false,
uploadConcurrency: 4,
uploadChunkSize: 32 * 1024 * 1024
};
if (copy) {
- if (typeof copy.useAzureSdk === 'boolean') {
- result.useAzureSdk = copy.useAzureSdk;
- }
if (typeof copy.uploadConcurrency === 'number') {
result.uploadConcurrency = copy.uploadConcurrency;
}
@@ -4075,18 +1617,6 @@ function getUploadOptions(copy) {
result.uploadChunkSize = copy.uploadChunkSize;
}
}
- /**
- * Add env var overrides
- */
- // Cap the uploadConcurrency at 32
- result.uploadConcurrency = !isNaN(Number(process.env['CACHE_UPLOAD_CONCURRENCY']))
- ? Math.min(32, Number(process.env['CACHE_UPLOAD_CONCURRENCY']))
- : result.uploadConcurrency;
- // Cap the uploadChunkSize at 128MiB
- 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.debug(`Use Azure SDK: ${result.useAzureSdk}`);
core.debug(`Upload concurrency: ${result.uploadConcurrency}`);
core.debug(`Upload chunk size: ${result.uploadChunkSize}`);
return result;
@@ -6856,6 +4386,221 @@ function coerce (version, options) {
}
+/***/ }),
+
+/***/ 4138:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var v1 = __nccwpck_require__(1610);
+var v4 = __nccwpck_require__(8373);
+
+var uuid = v4;
+uuid.v1 = v1;
+uuid.v4 = v4;
+
+module.exports = uuid;
+
+
+/***/ }),
+
+/***/ 5694:
+/***/ ((module) => {
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+var byteToHex = [];
+for (var i = 0; i < 256; ++i) {
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
+}
+
+function bytesToUuid(buf, offset) {
+ var i = offset || 0;
+ var bth = byteToHex;
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
+ return ([
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]]
+ ]).join('');
+}
+
+module.exports = bytesToUuid;
+
+
+/***/ }),
+
+/***/ 4069:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+// Unique ID creation requires a high quality random # generator. In node.js
+// this is pretty straight-forward - we use the crypto API.
+
+var crypto = __nccwpck_require__(6113);
+
+module.exports = function nodeRNG() {
+ return crypto.randomBytes(16);
+};
+
+
+/***/ }),
+
+/***/ 1610:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var rng = __nccwpck_require__(4069);
+var bytesToUuid = __nccwpck_require__(5694);
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+
+var _nodeId;
+var _clockseq;
+
+// Previous uuid creation time
+var _lastMSecs = 0;
+var _lastNSecs = 0;
+
+// See https://github.com/uuidjs/uuid for API details
+function v1(options, buf, offset) {
+ var i = buf && offset || 0;
+ var b = buf || [];
+
+ options = options || {};
+ var node = options.node || _nodeId;
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
+
+ // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+ if (node == null || clockseq == null) {
+ var seedBytes = rng();
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [
+ seedBytes[0] | 0x01,
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
+ ];
+ }
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ }
+
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
+
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
+
+ // Time since last uuid creation (in msecs)
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
+
+ // Per 4.2.1.2, Bump clockseq on clock regression
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ }
+
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ }
+
+ // Per 4.2.1.2 Throw error if too many uuids are requested
+ if (nsecs >= 10000) {
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq;
+
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+ msecs += 12219292800000;
+
+ // `time_low`
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff;
+
+ // `time_mid`
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff;
+
+ // `time_high_and_version`
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+ b[i++] = tmh >>> 16 & 0xff;
+
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+ b[i++] = clockseq >>> 8 | 0x80;
+
+ // `clock_seq_low`
+ b[i++] = clockseq & 0xff;
+
+ // `node`
+ for (var n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf ? buf : bytesToUuid(b);
+}
+
+module.exports = v1;
+
+
+/***/ }),
+
+/***/ 8373:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var rng = __nccwpck_require__(4069);
+var bytesToUuid = __nccwpck_require__(5694);
+
+function v4(options, buf, offset) {
+ var i = buf && offset || 0;
+
+ if (typeof(options) == 'string') {
+ buf = options === 'binary' ? new Array(16) : null;
+ options = null;
+ }
+ options = options || {};
+
+ var rnds = options.random || (options.rng || rng)();
+
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
+
+ // Copy bytes to buffer, if provided
+ if (buf) {
+ for (var ii = 0; ii < 16; ++ii) {
+ buf[i + ii] = rnds[ii];
+ }
+ }
+
+ return buf || bytesToUuid(rnds);
+}
+
+module.exports = v4;
+
+
/***/ }),
/***/ 7351:
@@ -6865,11 +4610,7 @@ function coerce (version, options) {
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -6882,7 +4623,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -6944,13 +4685,13 @@ class Command {
}
}
function escapeData(s) {
- return (0, utils_1.toCommandValue)(s)
+ return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A');
}
function escapeProperty(s) {
- return (0, utils_1.toCommandValue)(s)
+ return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A')
@@ -6968,11 +4709,7 @@ function escapeProperty(s) {
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -6985,7 +4722,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -6999,7 +4736,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
+exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = __nccwpck_require__(7351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(5278);
@@ -7019,7 +4756,7 @@ var ExitCode;
* A code indicating that the action was a failure
*/
ExitCode[ExitCode["Failure"] = 1] = "Failure";
-})(ExitCode || (exports.ExitCode = ExitCode = {}));
+})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
//-----------------------------------------------------------------------
// Variables
//-----------------------------------------------------------------------
@@ -7030,13 +4767,13 @@ var ExitCode;
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable(name, val) {
- const convertedVal = (0, utils_1.toCommandValue)(val);
+ const convertedVal = utils_1.toCommandValue(val);
process.env[name] = convertedVal;
const filePath = process.env['GITHUB_ENV'] || '';
if (filePath) {
- return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val));
+ return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
}
- (0, command_1.issueCommand)('set-env', { name }, convertedVal);
+ command_1.issueCommand('set-env', { name }, convertedVal);
}
exports.exportVariable = exportVariable;
/**
@@ -7044,7 +4781,7 @@ exports.exportVariable = exportVariable;
* @param secret value of the secret
*/
function setSecret(secret) {
- (0, command_1.issueCommand)('add-mask', {}, secret);
+ command_1.issueCommand('add-mask', {}, secret);
}
exports.setSecret = setSecret;
/**
@@ -7054,10 +4791,10 @@ exports.setSecret = setSecret;
function addPath(inputPath) {
const filePath = process.env['GITHUB_PATH'] || '';
if (filePath) {
- (0, file_command_1.issueFileCommand)('PATH', inputPath);
+ file_command_1.issueFileCommand('PATH', inputPath);
}
else {
- (0, command_1.issueCommand)('add-path', {}, inputPath);
+ command_1.issueCommand('add-path', {}, inputPath);
}
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
}
@@ -7132,10 +4869,10 @@ exports.getBooleanInput = getBooleanInput;
function setOutput(name, value) {
const filePath = process.env['GITHUB_OUTPUT'] || '';
if (filePath) {
- return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value));
+ return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
}
process.stdout.write(os.EOL);
- (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value));
+ command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
}
exports.setOutput = setOutput;
/**
@@ -7144,7 +4881,7 @@ exports.setOutput = setOutput;
*
*/
function setCommandEcho(enabled) {
- (0, command_1.issue)('echo', enabled ? 'on' : 'off');
+ command_1.issue('echo', enabled ? 'on' : 'off');
}
exports.setCommandEcho = setCommandEcho;
//-----------------------------------------------------------------------
@@ -7175,7 +4912,7 @@ exports.isDebug = isDebug;
* @param message debug message
*/
function debug(message) {
- (0, command_1.issueCommand)('debug', {}, message);
+ command_1.issueCommand('debug', {}, message);
}
exports.debug = debug;
/**
@@ -7184,7 +4921,7 @@ exports.debug = debug;
* @param properties optional properties to add to the annotation.
*/
function error(message, properties = {}) {
- (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
+ command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.error = error;
/**
@@ -7193,7 +4930,7 @@ exports.error = error;
* @param properties optional properties to add to the annotation.
*/
function warning(message, properties = {}) {
- (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
+ command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.warning = warning;
/**
@@ -7202,7 +4939,7 @@ exports.warning = warning;
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
- (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
+ command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/**
@@ -7221,14 +4958,14 @@ exports.info = info;
* @param name The name of the output group
*/
function startGroup(name) {
- (0, command_1.issue)('group', name);
+ command_1.issue('group', name);
}
exports.startGroup = startGroup;
/**
* End an output group.
*/
function endGroup() {
- (0, command_1.issue)('endgroup');
+ command_1.issue('endgroup');
}
exports.endGroup = endGroup;
/**
@@ -7266,9 +5003,9 @@ exports.group = group;
function saveState(name, value) {
const filePath = process.env['GITHUB_STATE'] || '';
if (filePath) {
- return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value));
+ return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
}
- (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value));
+ command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
}
exports.saveState = saveState;
/**
@@ -7304,10 +5041,6 @@ var path_utils_1 = __nccwpck_require__(2981);
Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } }));
Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } }));
Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }));
-/**
- * Platform utilities exports
- */
-exports.platform = __importStar(__nccwpck_require__(5243));
//# sourceMappingURL=core.js.map
/***/ }),
@@ -7320,11 +5053,7 @@ exports.platform = __importStar(__nccwpck_require__(5243));
// For internal use, subject to change.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -7337,7 +5066,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -7345,9 +5074,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
-const crypto = __importStar(__nccwpck_require__(6113));
const fs = __importStar(__nccwpck_require__(7147));
const os = __importStar(__nccwpck_require__(2037));
+const uuid_1 = __nccwpck_require__(8974);
const utils_1 = __nccwpck_require__(5278);
function issueFileCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`];
@@ -7357,14 +5086,14 @@ function issueFileCommand(command, message) {
if (!fs.existsSync(filePath)) {
throw new Error(`Missing file at path: ${filePath}`);
}
- fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, {
+ fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
encoding: 'utf8'
});
}
exports.issueFileCommand = issueFileCommand;
function prepareKeyValueMessage(key, value) {
- const delimiter = `ghadelimiter_${crypto.randomUUID()}`;
- const convertedValue = (0, utils_1.toCommandValue)(value);
+ const delimiter = `ghadelimiter_${uuid_1.v4()}`;
+ const convertedValue = utils_1.toCommandValue(value);
// These should realistically never happen, but just in case someone finds a
// way to exploit uuid generation let's not allow keys or values that contain
// the delimiter.
@@ -7449,9 +5178,9 @@ class OidcClient {
const encodedAudience = encodeURIComponent(audience);
id_token_url = `${id_token_url}&audience=${encodedAudience}`;
}
- (0, core_1.debug)(`ID token url is ${id_token_url}`);
+ core_1.debug(`ID token url is ${id_token_url}`);
const id_token = yield OidcClient.getCall(id_token_url);
- (0, core_1.setSecret)(id_token);
+ core_1.setSecret(id_token);
return id_token;
}
catch (error) {
@@ -7472,11 +5201,7 @@ exports.OidcClient = OidcClient;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -7489,7 +5214,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -7534,107 +5259,6 @@ exports.toPlatformPath = toPlatformPath;
/***/ }),
-/***/ 5243:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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 __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0;
-const os_1 = __importDefault(__nccwpck_require__(2037));
-const exec = __importStar(__nccwpck_require__(1514));
-const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, {
- silent: true
- });
- const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, {
- silent: true
- });
- return {
- name: name.trim(),
- version: version.trim()
- };
-});
-const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- var _a, _b, _c, _d;
- const { stdout } = yield exec.getExecOutput('sw_vers', undefined, {
- silent: true
- });
- const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
- const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '';
- return {
- name,
- version
- };
-});
-const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
- silent: true
- });
- const [name, version] = stdout.trim().split('\n');
- return {
- name,
- version
- };
-});
-exports.platform = os_1.default.platform();
-exports.arch = os_1.default.arch();
-exports.isWindows = exports.platform === 'win32';
-exports.isMacOS = exports.platform === 'darwin';
-exports.isLinux = exports.platform === 'linux';
-function getDetails() {
- return __awaiter(this, void 0, void 0, function* () {
- return Object.assign(Object.assign({}, (yield (exports.isWindows
- ? getWindowsInfo()
- : exports.isMacOS
- ? getMacOsInfo()
- : getLinuxInfo()))), { platform: exports.platform,
- arch: exports.arch,
- isWindows: exports.isWindows,
- isMacOS: exports.isMacOS,
- isLinux: exports.isLinux });
- });
-}
-exports.getDetails = getDetails;
-//# sourceMappingURL=platform.js.map
-
-/***/ }),
-
/***/ 1327:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@@ -7972,6 +5596,652 @@ exports.toCommandProperties = toCommandProperties;
/***/ }),
+/***/ 8974:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(1595));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(6993));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(1472));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(6217));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(2381));
+
+var _version = _interopRequireDefault(__nccwpck_require__(427));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(6385));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 5842:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2381:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6385:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6230:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9784:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 8844:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 1458:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).substr(1));
+}
+
+function stringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 1595:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(9784));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.default)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6993:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5920));
+
+var _md = _interopRequireDefault(__nccwpck_require__(5842));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 5920:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = _default;
+exports.URL = exports.DNS = void 0;
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(6385));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function _default(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (namespace.length !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.default)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 1472:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(9784));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.default)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6217:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5920));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(8844));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2609:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(6230));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 427:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.substr(14, 1), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
/***/ 1514:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@@ -9005,7 +7275,7 @@ function hashFiles(patterns, currentWorkspace = '', options, verbose = false) {
followSymbolicLinks = options.followSymbolicLinks;
}
const globber = yield create(patterns, { followSymbolicLinks });
- return (0, internal_hash_files_1.hashFiles)(globber, currentWorkspace, verbose);
+ return internal_hash_files_1.hashFiles(globber, currentWorkspace, verbose);
});
}
exports.hashFiles = hashFiles;
@@ -9020,11 +7290,7 @@ exports.hashFiles = hashFiles;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9037,7 +7303,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9052,8 +7318,7 @@ function getOptions(copy) {
followSymbolicLinks: true,
implicitDescendants: true,
matchDirectories: true,
- omitBrokenSymbolicLinks: true,
- excludeHiddenFiles: false
+ omitBrokenSymbolicLinks: true
};
if (copy) {
if (typeof copy.followSymbolicLinks === 'boolean') {
@@ -9072,10 +7337,6 @@ function getOptions(copy) {
result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks;
core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`);
}
- if (typeof copy.excludeHiddenFiles === 'boolean') {
- result.excludeHiddenFiles = copy.excludeHiddenFiles;
- core.debug(`excludeHiddenFiles '${result.excludeHiddenFiles}'`);
- }
}
return result;
}
@@ -9091,11 +7352,7 @@ exports.getOptions = getOptions;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9108,7 +7365,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9162,21 +7419,19 @@ class DefaultGlobber {
return this.searchPaths.slice();
}
glob() {
- var _a, e_1, _b, _c;
+ var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const result = [];
try {
- for (var _d = true, _e = __asyncValues(this.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
- _c = _f.value;
- _d = false;
- const itemPath = _c;
+ for (var _b = __asyncValues(this.globGenerator()), _c; _c = yield _b.next(), !_c.done;) {
+ const itemPath = _c.value;
result.push(itemPath);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
- if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
@@ -9234,10 +7489,6 @@ class DefaultGlobber {
if (!stats) {
continue;
}
- // Hidden file or directory?
- if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) {
- continue;
- }
// Directory
if (stats.isDirectory()) {
// Matched
@@ -9343,11 +7594,7 @@ exports.DefaultGlobber = DefaultGlobber;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9360,7 +7607,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9389,21 +7636,19 @@ const stream = __importStar(__nccwpck_require__(2781));
const util = __importStar(__nccwpck_require__(3837));
const path = __importStar(__nccwpck_require__(1017));
function hashFiles(globber, currentWorkspace, verbose = false) {
- var _a, e_1, _b, _c;
- var _d;
+ var e_1, _a;
+ var _b;
return __awaiter(this, void 0, void 0, function* () {
const writeDelegate = verbose ? core.info : core.debug;
let hasMatch = false;
const githubWorkspace = currentWorkspace
? currentWorkspace
- : (_d = process.env['GITHUB_WORKSPACE']) !== null && _d !== void 0 ? _d : process.cwd();
+ : (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : 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 = _g.done, !_a; _e = true) {
- _c = _g.value;
- _e = false;
- const file = _c;
+ for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) {
+ const file = _d.value;
writeDelegate(file);
if (!file.startsWith(`${githubWorkspace}${path.sep}`)) {
writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`);
@@ -9426,7 +7671,7 @@ function hashFiles(globber, currentWorkspace, verbose = false) {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
- if (!_e && !_a && (_b = _f.return)) yield _b.call(_f);
+ if (_d && !_d.done && (_a = _c.return)) yield _a.call(_c);
}
finally { if (e_1) throw e_1.error; }
}
@@ -9466,7 +7711,7 @@ var MatchKind;
MatchKind[MatchKind["File"] = 2] = "File";
/** Matched */
MatchKind[MatchKind["All"] = 3] = "All";
-})(MatchKind || (exports.MatchKind = MatchKind = {}));
+})(MatchKind = exports.MatchKind || (exports.MatchKind = {}));
//# sourceMappingURL=internal-match-kind.js.map
/***/ }),
@@ -9478,11 +7723,7 @@ var MatchKind;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9495,7 +7736,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9545,8 +7786,8 @@ exports.dirname = dirname;
* or `C:` are expanded based on the current working directory.
*/
function ensureAbsoluteRoot(root, itemPath) {
- (0, assert_1.default)(root, `ensureAbsoluteRoot parameter 'root' must not be empty`);
- (0, assert_1.default)(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`);
+ assert_1.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`);
+ assert_1.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`);
// Already rooted
if (hasAbsoluteRoot(itemPath)) {
return itemPath;
@@ -9556,7 +7797,7 @@ function ensureAbsoluteRoot(root, itemPath) {
// Check for itemPath like C: or C:foo
if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) {
let cwd = process.cwd();
- (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`);
+ assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`);
// Drive letter matches cwd? Expand to cwd
if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) {
// Drive only, e.g. C:
@@ -9581,11 +7822,11 @@ function ensureAbsoluteRoot(root, itemPath) {
// Check for itemPath like \ or \foo
else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) {
const cwd = process.cwd();
- (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`);
+ assert_1.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.default)(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`);
+ assert_1.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`);
// Otherwise ensure root ends with a separator
if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) {
// Intentionally empty
@@ -9602,7 +7843,7 @@ exports.ensureAbsoluteRoot = ensureAbsoluteRoot;
* `\\hello\share` and `C:\hello` (and using alternate separator).
*/
function hasAbsoluteRoot(itemPath) {
- (0, assert_1.default)(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`);
+ assert_1.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`);
// Normalize separators
itemPath = normalizeSeparators(itemPath);
// Windows
@@ -9619,7 +7860,7 @@ exports.hasAbsoluteRoot = hasAbsoluteRoot;
* `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator).
*/
function hasRoot(itemPath) {
- (0, assert_1.default)(itemPath, `isRooted parameter 'itemPath' must not be empty`);
+ assert_1.default(itemPath, `isRooted parameter 'itemPath' must not be empty`);
// Normalize separators
itemPath = normalizeSeparators(itemPath);
// Windows
@@ -9687,11 +7928,7 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9704,7 +7941,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9729,7 +7966,7 @@ class Path {
this.segments = [];
// String
if (typeof itemPath === 'string') {
- (0, assert_1.default)(itemPath, `Parameter 'itemPath' must not be empty`);
+ assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`);
// Normalize slashes and trim unnecessary trailing slash
itemPath = pathHelper.safeTrimTrailingSeparator(itemPath);
// Not rooted
@@ -9756,24 +7993,24 @@ class Path {
// Array
else {
// Must not be empty
- (0, assert_1.default)(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`);
+ assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`);
// Each segment
for (let i = 0; i < itemPath.length; i++) {
let segment = itemPath[i];
// Must not be empty
- (0, assert_1.default)(segment, `Parameter 'itemPath' must not contain any empty segments`);
+ assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`);
// Normalize slashes
segment = pathHelper.normalizeSeparators(itemPath[i]);
// Root segment
if (i === 0 && pathHelper.hasRoot(segment)) {
segment = pathHelper.safeTrimTrailingSeparator(segment);
- (0, assert_1.default)(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`);
+ assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`);
this.segments.push(segment);
}
// All other segments
else {
// Must not contain slash
- (0, assert_1.default)(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`);
+ assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`);
this.segments.push(segment);
}
}
@@ -9811,11 +8048,7 @@ exports.Path = Path;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9828,7 +8061,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9916,11 +8149,7 @@ exports.partialMatch = partialMatch;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9933,7 +8162,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9965,9 +8194,9 @@ class Pattern {
else {
// Convert to pattern
segments = segments || [];
- (0, assert_1.default)(segments.length, `Parameter 'segments' must not empty`);
+ 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`);
+ 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}`;
@@ -10061,13 +8290,13 @@ class Pattern {
*/
static fixupPattern(pattern, homedir) {
// Empty
- (0, assert_1.default)(pattern, 'pattern cannot be empty');
+ assert_1.default(pattern, 'pattern cannot be empty');
// Must not contain `.` segment, unless first segment
// Must not contain `..` segment
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.`);
+ assert_1.default(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`);
// Must not contain globs in root, e.g. Windows UNC path \\foo\b*r
- (0, assert_1.default)(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`);
+ assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`);
// Normalize slashes
pattern = pathHelper.normalizeSeparators(pattern);
// Replace leading `.` segment
@@ -10077,8 +8306,8 @@ class Pattern {
// Replace leading `~` segment
else if (pattern === '~' || pattern.startsWith(`~${path.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}'`);
+ assert_1.default(homedir, 'Unable to determine HOME directory');
+ assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`);
pattern = Pattern.globEscape(homedir) + pattern.substr(1);
}
// Replace relative drive root, e.g. pattern is C: or C:foo
@@ -10848,7 +9077,7 @@ class HttpClient {
}
const usingSsl = parsedUrl.protocol === 'https:';
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
- token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
+ token: `${proxyUrl.username}:${proxyUrl.password}`
})));
this._proxyAgentDispatcher = proxyAgent;
if (usingSsl && this._ignoreSslError) {
@@ -10962,11 +9191,11 @@ function getProxyUrl(reqUrl) {
})();
if (proxyVar) {
try {
- return new DecodedURL(proxyVar);
+ return new URL(proxyVar);
}
catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
- return new DecodedURL(`http://${proxyVar}`);
+ return new URL(`http://${proxyVar}`);
}
}
else {
@@ -11025,19 +9254,6 @@ function isLoopbackAddress(host) {
hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
}
-class DecodedURL extends URL {
- constructor(url, base) {
- super(url, base);
- this._decodedUsername = decodeURIComponent(super.username);
- this._decodedPassword = decodeURIComponent(super.password);
- }
- get username() {
- return this._decodedUsername;
- }
- get password() {
- return this._decodedPassword;
- }
-}
//# sourceMappingURL=proxy.js.map
/***/ }),
@@ -11545,11 +9761,7 @@ function copyFile(srcFile, destFile, force) {
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -11562,7 +9774,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -11592,11 +9804,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
let file;
for (const candidate of candidates) {
const version = candidate.version;
- (0, core_1.debug)(`check ${version} satisfies ${versionSpec}`);
+ core_1.debug(`check ${version} satisfies ${versionSpec}`);
if (semver.satisfies(version, versionSpec) &&
(!stable || candidate.stable === stable)) {
file = candidate.files.find(item => {
- (0, core_1.debug)(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
+ core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
let chk = item.arch === archFilter && item.platform === platFilter;
if (chk && item.platform_version) {
const osVersion = module.exports._getOsVersion();
@@ -11610,7 +9822,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
return chk;
});
if (file) {
- (0, core_1.debug)(`matched ${candidate.version}`);
+ core_1.debug(`matched ${candidate.version}`);
match = candidate;
break;
}
@@ -11648,7 +9860,10 @@ function _getOsVersion() {
if (parts.length === 2 &&
(parts[0].trim() === 'VERSION_ID' ||
parts[0].trim() === 'DISTRIB_RELEASE')) {
- version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
+ version = parts[1]
+ .trim()
+ .replace(/^"/, '')
+ .replace(/"$/, '');
break;
}
}
@@ -11681,11 +9896,7 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -11698,7 +9909,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -11775,11 +9986,7 @@ exports.RetryHelper = RetryHelper;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -11792,7 +9999,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -11805,11 +10012,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
const core = __importStar(__nccwpck_require__(2186));
const io = __importStar(__nccwpck_require__(7436));
-const crypto = __importStar(__nccwpck_require__(6113));
const fs = __importStar(__nccwpck_require__(7147));
const mm = __importStar(__nccwpck_require__(2473));
const os = __importStar(__nccwpck_require__(2037));
@@ -11819,6 +10028,7 @@ const semver = __importStar(__nccwpck_require__(562));
const stream = __importStar(__nccwpck_require__(2781));
const util = __importStar(__nccwpck_require__(3837));
const assert_1 = __nccwpck_require__(9491);
+const v4_1 = __importDefault(__nccwpck_require__(7468));
const exec_1 = __nccwpck_require__(1514);
const retry_helper_1 = __nccwpck_require__(8279);
class HTTPError extends Error {
@@ -11843,7 +10053,7 @@ const userAgent = 'actions/tool-cache';
*/
function downloadTool(url, dest, auth, headers) {
return __awaiter(this, void 0, void 0, function* () {
- dest = dest || path.join(_getTempDirectory(), crypto.randomUUID());
+ dest = dest || path.join(_getTempDirectory(), v4_1.default());
yield io.mkdirP(path.dirname(dest));
core.debug(`Downloading ${url}`);
core.debug(`Destination ${dest}`);
@@ -11932,8 +10142,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
*/
function extract7z(file, dest, _7zPath) {
return __awaiter(this, void 0, void 0, function* () {
- (0, assert_1.ok)(IS_WINDOWS, 'extract7z() not supported on current OS');
- (0, assert_1.ok)(file, 'parameter "file" is required');
+ assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
+ assert_1.ok(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
const originalCwd = process.cwd();
process.chdir(dest);
@@ -11950,7 +10160,7 @@ function extract7z(file, dest, _7zPath) {
const options = {
silent: true
};
- yield (0, exec_1.exec)(`"${_7zPath}"`, args, options);
+ yield exec_1.exec(`"${_7zPath}"`, args, options);
}
finally {
process.chdir(originalCwd);
@@ -11979,7 +10189,7 @@ function extract7z(file, dest, _7zPath) {
};
try {
const powershellPath = yield io.which('powershell', true);
- yield (0, exec_1.exec)(`"${powershellPath}"`, args, options);
+ yield exec_1.exec(`"${powershellPath}"`, args, options);
}
finally {
process.chdir(originalCwd);
@@ -12007,7 +10217,7 @@ function extractTar(file, dest, flags = 'xz') {
// Determine whether GNU tar
core.debug('Checking tar --version');
let versionOutput = '';
- yield (0, exec_1.exec)('tar --version', [], {
+ yield exec_1.exec('tar --version', [], {
ignoreReturnCode: true,
silent: true,
listeners: {
@@ -12043,7 +10253,7 @@ function extractTar(file, dest, flags = 'xz') {
args.push('--overwrite');
}
args.push('-C', destArg, '-f', fileArg);
- yield (0, exec_1.exec)(`tar`, args);
+ yield exec_1.exec(`tar`, args);
return dest;
});
}
@@ -12058,8 +10268,8 @@ exports.extractTar = extractTar;
*/
function extractXar(file, dest, flags = []) {
return __awaiter(this, void 0, void 0, function* () {
- (0, assert_1.ok)(IS_MAC, 'extractXar() not supported on current OS');
- (0, assert_1.ok)(file, 'parameter "file" is required');
+ assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
+ assert_1.ok(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
let args;
if (flags instanceof Array) {
@@ -12073,7 +10283,7 @@ function extractXar(file, dest, flags = []) {
args.push('-v');
}
const xarPath = yield io.which('xar', true);
- yield (0, exec_1.exec)(`"${xarPath}"`, _unique(args));
+ yield exec_1.exec(`"${xarPath}"`, _unique(args));
return dest;
});
}
@@ -12127,7 +10337,7 @@ function extractZipWin(file, dest) {
pwshCommand
];
core.debug(`Using pwsh at path: ${pwshPath}`);
- yield (0, exec_1.exec)(`"${pwshPath}"`, args);
+ yield exec_1.exec(`"${pwshPath}"`, args);
}
else {
const powershellCommand = [
@@ -12148,7 +10358,7 @@ function extractZipWin(file, dest) {
];
const powershellPath = yield io.which('powershell', true);
core.debug(`Using powershell at path: ${powershellPath}`);
- yield (0, exec_1.exec)(`"${powershellPath}"`, args);
+ yield exec_1.exec(`"${powershellPath}"`, args);
}
});
}
@@ -12160,7 +10370,7 @@ function extractZipNix(file, dest) {
args.unshift('-q');
}
args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
- yield (0, exec_1.exec)(`"${unzipPath}"`, args, { cwd: dest });
+ yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
});
}
/**
@@ -12337,7 +10547,7 @@ function _createExtractFolder(dest) {
return __awaiter(this, void 0, void 0, function* () {
if (!dest) {
// create a temp dir
- dest = path.join(_getTempDirectory(), crypto.randomUUID());
+ dest = path.join(_getTempDirectory(), v4_1.default());
}
yield io.mkdirP(dest);
return dest;
@@ -12410,7 +10620,7 @@ exports.evaluateVersions = evaluateVersions;
*/
function _getCacheDirectory() {
const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
- (0, assert_1.ok)(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
+ assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
return cacheDirectory;
}
/**
@@ -12418,7 +10628,7 @@ function _getCacheDirectory() {
*/
function _getTempDirectory() {
const tempDirectory = process.env['RUNNER_TEMP'] || '';
- (0, assert_1.ok)(tempDirectory, 'Expected RUNNER_TEMP to be defined');
+ assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
return tempDirectory;
}
/**
@@ -14089,6 +12299,90 @@ function coerce (version, options) {
}
+/***/ }),
+
+/***/ 7701:
+/***/ ((module) => {
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+var byteToHex = [];
+for (var i = 0; i < 256; ++i) {
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
+}
+
+function bytesToUuid(buf, offset) {
+ var i = offset || 0;
+ var bth = byteToHex;
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
+ return ([
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]]
+ ]).join('');
+}
+
+module.exports = bytesToUuid;
+
+
+/***/ }),
+
+/***/ 7269:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+// Unique ID creation requires a high quality random # generator. In node.js
+// this is pretty straight-forward - we use the crypto API.
+
+var crypto = __nccwpck_require__(6113);
+
+module.exports = function nodeRNG() {
+ return crypto.randomBytes(16);
+};
+
+
+/***/ }),
+
+/***/ 7468:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var rng = __nccwpck_require__(7269);
+var bytesToUuid = __nccwpck_require__(7701);
+
+function v4(options, buf, offset) {
+ var i = buf && offset || 0;
+
+ if (typeof(options) == 'string') {
+ buf = options === 'binary' ? new Array(16) : null;
+ options = null;
+ }
+ options = options || {};
+
+ var rnds = options.random || (options.rng || rng)();
+
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
+
+ // Copy bytes to buffer, if provided
+ if (buf) {
+ for (var ii = 0; ii < 16; ++ii) {
+ buf[i + ii] = rnds[ii];
+ }
+ }
+
+ return buf || bytesToUuid(rnds);
+}
+
+module.exports = v4;
+
+
/***/ }),
/***/ 2557:
@@ -46464,7 +44758,7 @@ var import_graphql = __nccwpck_require__(8467);
var import_auth_token = __nccwpck_require__(9379);
// pkg/dist-src/version.js
-var VERSION = "5.2.0";
+var VERSION = "5.1.0";
// pkg/dist-src/index.js
var noop = () => {
@@ -46631,7 +44925,7 @@ module.exports = __toCommonJS(dist_src_exports);
var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js
-var VERSION = "9.0.5";
+var VERSION = "9.0.4";
// pkg/dist-src/defaults.js
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -47016,7 +45310,7 @@ var import_request3 = __nccwpck_require__(6234);
var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js
-var VERSION = "7.1.0";
+var VERSION = "7.0.2";
// pkg/dist-src/with-defaults.js
var import_request2 = __nccwpck_require__(6234);
@@ -49841,7 +48135,7 @@ var import_endpoint = __nccwpck_require__(9440);
var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js
-var VERSION = "8.4.0";
+var VERSION = "8.2.0";
// pkg/dist-src/is-plain-object.js
function isPlainObject(value) {
@@ -49866,7 +48160,7 @@ function getBufferResponse(response) {
// pkg/dist-src/fetch-wrapper.js
function fetchWrapper(requestOptions) {
- var _a, _b, _c, _d;
+ var _a, _b, _c;
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
@@ -49887,9 +48181,8 @@ function fetchWrapper(requestOptions) {
return fetch(requestOptions.url, {
method: requestOptions.method,
body: requestOptions.body,
- redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
headers: requestOptions.headers,
- signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
+ signal: (_c = requestOptions.request) == null ? void 0 : _c.signal,
// duplex must be set if request.body is ReadableStream or Async Iterables.
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
...requestOptions.body && { duplex: "half" }
@@ -52745,4940 +51038,6 @@ exports.VERSION = void 0;
exports.VERSION = '1.8.0';
//# sourceMappingURL=version.js.map
-/***/ }),
-
-/***/ 9912:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.ClientStreamingCall = void 0;
-/**
- * A client streaming RPC call. This means that the clients sends 0, 1, or
- * more messages to the server, and the server replies with exactly one
- * message.
- */
-class ClientStreamingCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.requests = request;
- this.headers = headers;
- this.response = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * Instead of awaiting the response status and trailers, you can
- * just as well await this call itself to receive the server outcome.
- * Note that it may still be valid to send more request messages.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- headers,
- response,
- status,
- trailers
- };
- });
- }
-}
-exports.ClientStreamingCall = ClientStreamingCall;
-
-
-/***/ }),
-
-/***/ 5702:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.Deferred = exports.DeferredState = void 0;
-var DeferredState;
-(function (DeferredState) {
- DeferredState[DeferredState["PENDING"] = 0] = "PENDING";
- DeferredState[DeferredState["REJECTED"] = 1] = "REJECTED";
- DeferredState[DeferredState["RESOLVED"] = 2] = "RESOLVED";
-})(DeferredState = exports.DeferredState || (exports.DeferredState = {}));
-/**
- * A deferred promise. This is a "controller" for a promise, which lets you
- * pass a promise around and reject or resolve it from the outside.
- *
- * Warning: This class is to be used with care. Using it can make code very
- * difficult to read. It is intended for use in library code that exposes
- * promises, not for regular business logic.
- */
-class Deferred {
- /**
- * @param preventUnhandledRejectionWarning - prevents the warning
- * "Unhandled Promise rejection" by adding a noop rejection handler.
- * Working with calls returned from the runtime-rpc package in an
- * async function usually means awaiting one call property after
- * the other. This means that the "status" is not being awaited when
- * an earlier await for the "headers" is rejected. This causes the
- * "unhandled promise reject" warning. A more correct behaviour for
- * calls might be to become aware whether at least one of the
- * promises is handled and swallow the rejection warning for the
- * others.
- */
- constructor(preventUnhandledRejectionWarning = true) {
- this._state = DeferredState.PENDING;
- this._promise = new Promise((resolve, reject) => {
- this._resolve = resolve;
- this._reject = reject;
- });
- if (preventUnhandledRejectionWarning) {
- this._promise.catch(_ => { });
- }
- }
- /**
- * Get the current state of the promise.
- */
- get state() {
- return this._state;
- }
- /**
- * Get the deferred promise.
- */
- get promise() {
- return this._promise;
- }
- /**
- * Resolve the promise. Throws if the promise is already resolved or rejected.
- */
- resolve(value) {
- if (this.state !== DeferredState.PENDING)
- throw new Error(`cannot resolve ${DeferredState[this.state].toLowerCase()}`);
- this._resolve(value);
- this._state = DeferredState.RESOLVED;
- }
- /**
- * Reject the promise. Throws if the promise is already resolved or rejected.
- */
- reject(reason) {
- if (this.state !== DeferredState.PENDING)
- throw new Error(`cannot reject ${DeferredState[this.state].toLowerCase()}`);
- this._reject(reason);
- this._state = DeferredState.REJECTED;
- }
- /**
- * Resolve the promise. Ignore if not pending.
- */
- resolvePending(val) {
- if (this._state === DeferredState.PENDING)
- this.resolve(val);
- }
- /**
- * Reject the promise. Ignore if not pending.
- */
- rejectPending(reason) {
- if (this._state === DeferredState.PENDING)
- this.reject(reason);
- }
-}
-exports.Deferred = Deferred;
-
-
-/***/ }),
-
-/***/ 7042:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.DuplexStreamingCall = void 0;
-/**
- * A duplex streaming RPC call. This means that the clients sends an
- * arbitrary amount of messages to the server, while at the same time,
- * the server sends an arbitrary amount of messages to the client.
- */
-class DuplexStreamingCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.requests = request;
- this.headers = headers;
- this.responses = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * Instead of awaiting the response status and trailers, you can
- * just as well await this call itself to receive the server outcome.
- * Note that it may still be valid to send more request messages.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- headers,
- status,
- trailers,
- };
- });
- }
-}
-exports.DuplexStreamingCall = DuplexStreamingCall;
-
-
-/***/ }),
-
-/***/ 12:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-// Public API of the rpc runtime.
-// Note: we do not use `export * from ...` to help tree shakers,
-// webpack verbose output hints that this should be useful
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-var service_type_1 = __nccwpck_require__(4107);
-Object.defineProperty(exports, "ServiceType", ({ enumerable: true, get: function () { return service_type_1.ServiceType; } }));
-var reflection_info_1 = __nccwpck_require__(4331);
-Object.defineProperty(exports, "readMethodOptions", ({ enumerable: true, get: function () { return reflection_info_1.readMethodOptions; } }));
-Object.defineProperty(exports, "readMethodOption", ({ enumerable: true, get: function () { return reflection_info_1.readMethodOption; } }));
-Object.defineProperty(exports, "readServiceOption", ({ enumerable: true, get: function () { return reflection_info_1.readServiceOption; } }));
-var rpc_error_1 = __nccwpck_require__(3159);
-Object.defineProperty(exports, "RpcError", ({ enumerable: true, get: function () { return rpc_error_1.RpcError; } }));
-var rpc_options_1 = __nccwpck_require__(7386);
-Object.defineProperty(exports, "mergeRpcOptions", ({ enumerable: true, get: function () { return rpc_options_1.mergeRpcOptions; } }));
-var rpc_output_stream_1 = __nccwpck_require__(6637);
-Object.defineProperty(exports, "RpcOutputStreamController", ({ enumerable: true, get: function () { return rpc_output_stream_1.RpcOutputStreamController; } }));
-var test_transport_1 = __nccwpck_require__(7008);
-Object.defineProperty(exports, "TestTransport", ({ enumerable: true, get: function () { return test_transport_1.TestTransport; } }));
-var deferred_1 = __nccwpck_require__(5702);
-Object.defineProperty(exports, "Deferred", ({ enumerable: true, get: function () { return deferred_1.Deferred; } }));
-Object.defineProperty(exports, "DeferredState", ({ enumerable: true, get: function () { return deferred_1.DeferredState; } }));
-var duplex_streaming_call_1 = __nccwpck_require__(7042);
-Object.defineProperty(exports, "DuplexStreamingCall", ({ enumerable: true, get: function () { return duplex_streaming_call_1.DuplexStreamingCall; } }));
-var client_streaming_call_1 = __nccwpck_require__(9912);
-Object.defineProperty(exports, "ClientStreamingCall", ({ enumerable: true, get: function () { return client_streaming_call_1.ClientStreamingCall; } }));
-var server_streaming_call_1 = __nccwpck_require__(66);
-Object.defineProperty(exports, "ServerStreamingCall", ({ enumerable: true, get: function () { return server_streaming_call_1.ServerStreamingCall; } }));
-var unary_call_1 = __nccwpck_require__(164);
-Object.defineProperty(exports, "UnaryCall", ({ enumerable: true, get: function () { return unary_call_1.UnaryCall; } }));
-var rpc_interceptor_1 = __nccwpck_require__(1680);
-Object.defineProperty(exports, "stackIntercept", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackIntercept; } }));
-Object.defineProperty(exports, "stackDuplexStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackDuplexStreamingInterceptors; } }));
-Object.defineProperty(exports, "stackClientStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackClientStreamingInterceptors; } }));
-Object.defineProperty(exports, "stackServerStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackServerStreamingInterceptors; } }));
-Object.defineProperty(exports, "stackUnaryInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackUnaryInterceptors; } }));
-var server_call_context_1 = __nccwpck_require__(5320);
-Object.defineProperty(exports, "ServerCallContextController", ({ enumerable: true, get: function () { return server_call_context_1.ServerCallContextController; } }));
-
-
-/***/ }),
-
-/***/ 4331:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * Turns PartialMethodInfo into MethodInfo.
- */
-function normalizeMethodInfo(method, service) {
- var _a, _b, _c;
- let m = method;
- m.service = service;
- m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name);
- // noinspection PointlessBooleanExpressionJS
- m.serverStreaming = !!m.serverStreaming;
- // noinspection PointlessBooleanExpressionJS
- m.clientStreaming = !!m.clientStreaming;
- m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};
- m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;
- return m;
-}
-exports.normalizeMethodInfo = normalizeMethodInfo;
-/**
- * Read custom method options from a generated service client.
- *
- * @deprecated use readMethodOption()
- */
-function readMethodOptions(service, methodName, extensionName, extensionType) {
- var _a;
- const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
- return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
-}
-exports.readMethodOptions = readMethodOptions;
-function readMethodOption(service, methodName, extensionName, extensionType) {
- var _a;
- const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
- if (!options) {
- return undefined;
- }
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readMethodOption = readMethodOption;
-function readServiceOption(service, extensionName, extensionType) {
- const options = service.options;
- if (!options) {
- return undefined;
- }
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readServiceOption = readServiceOption;
-
-
-/***/ }),
-
-/***/ 3159:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.RpcError = void 0;
-/**
- * An error that occurred while calling a RPC method.
- */
-class RpcError extends Error {
- constructor(message, code = 'UNKNOWN', meta) {
- super(message);
- this.name = 'RpcError';
- // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example
- Object.setPrototypeOf(this, new.target.prototype);
- this.code = code;
- this.meta = meta !== null && meta !== void 0 ? meta : {};
- }
- toString() {
- const l = [this.name + ': ' + this.message];
- if (this.code) {
- l.push('');
- l.push('Code: ' + this.code);
- }
- if (this.serviceName && this.methodName) {
- l.push('Method: ' + this.serviceName + '/' + this.methodName);
- }
- let m = Object.entries(this.meta);
- if (m.length) {
- l.push('');
- l.push('Meta:');
- for (let [k, v] of m) {
- l.push(` ${k}: ${v}`);
- }
- }
- return l.join('\n');
- }
-}
-exports.RpcError = RpcError;
-
-
-/***/ }),
-
-/***/ 1680:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * Creates a "stack" of of all interceptors specified in the given `RpcOptions`.
- * Used by generated client implementations.
- * @internal
- */
-function stackIntercept(kind, transport, method, options, input) {
- var _a, _b, _c, _d;
- if (kind == "unary") {
- let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);
- for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {
- const next = tail;
- tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);
- }
- return tail(method, input, options);
- }
- if (kind == "serverStreaming") {
- let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);
- for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {
- const next = tail;
- tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);
- }
- return tail(method, input, options);
- }
- if (kind == "clientStreaming") {
- let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);
- for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {
- const next = tail;
- tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);
- }
- return tail(method, options);
- }
- if (kind == "duplex") {
- let tail = (mtd, opt) => transport.duplex(mtd, opt);
- for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {
- const next = tail;
- tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);
- }
- return tail(method, options);
- }
- runtime_1.assertNever(kind);
-}
-exports.stackIntercept = stackIntercept;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackUnaryInterceptors(transport, method, input, options) {
- return stackIntercept("unary", transport, method, options, input);
-}
-exports.stackUnaryInterceptors = stackUnaryInterceptors;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackServerStreamingInterceptors(transport, method, input, options) {
- return stackIntercept("serverStreaming", transport, method, options, input);
-}
-exports.stackServerStreamingInterceptors = stackServerStreamingInterceptors;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackClientStreamingInterceptors(transport, method, options) {
- return stackIntercept("clientStreaming", transport, method, options);
-}
-exports.stackClientStreamingInterceptors = stackClientStreamingInterceptors;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackDuplexStreamingInterceptors(transport, method, options) {
- return stackIntercept("duplex", transport, method, options);
-}
-exports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;
-
-
-/***/ }),
-
-/***/ 7386:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.mergeRpcOptions = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * Merges custom RPC options with defaults. Returns a new instance and keeps
- * the "defaults" and the "options" unmodified.
- *
- * Merges `RpcMetadata` "meta", overwriting values from "defaults" with
- * values from "options". Does not append values to existing entries.
- *
- * Merges "jsonOptions", including "jsonOptions.typeRegistry", by creating
- * a new array that contains types from "options.jsonOptions.typeRegistry"
- * first, then types from "defaults.jsonOptions.typeRegistry".
- *
- * Merges "binaryOptions".
- *
- * Merges "interceptors" by creating a new array that contains interceptors
- * from "defaults" first, then interceptors from "options".
- *
- * Works with objects that extend `RpcOptions`, but only if the added
- * properties are of type Date, primitive like string, boolean, or Array
- * of primitives. If you have other property types, you have to merge them
- * yourself.
- */
-function mergeRpcOptions(defaults, options) {
- if (!options)
- return defaults;
- let o = {};
- copy(defaults, o);
- copy(options, o);
- for (let key of Object.keys(options)) {
- let val = options[key];
- switch (key) {
- case "jsonOptions":
- o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions);
- break;
- case "binaryOptions":
- o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions);
- break;
- case "meta":
- o.meta = {};
- copy(defaults.meta, o.meta);
- copy(options.meta, o.meta);
- break;
- case "interceptors":
- o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat();
- break;
- }
- }
- return o;
-}
-exports.mergeRpcOptions = mergeRpcOptions;
-function copy(a, into) {
- if (!a)
- return;
- let c = into;
- for (let [k, v] of Object.entries(a)) {
- if (v instanceof Date)
- c[k] = new Date(v.getTime());
- else if (Array.isArray(v))
- c[k] = v.concat();
- else
- c[k] = v;
- }
-}
-
-
-/***/ }),
-
-/***/ 6637:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.RpcOutputStreamController = void 0;
-const deferred_1 = __nccwpck_require__(5702);
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * A `RpcOutputStream` that you control.
- */
-class RpcOutputStreamController {
- constructor() {
- this._lis = {
- nxt: [],
- msg: [],
- err: [],
- cmp: [],
- };
- this._closed = false;
- }
- // --- RpcOutputStream callback API
- onNext(callback) {
- return this.addLis(callback, this._lis.nxt);
- }
- onMessage(callback) {
- return this.addLis(callback, this._lis.msg);
- }
- onError(callback) {
- return this.addLis(callback, this._lis.err);
- }
- onComplete(callback) {
- return this.addLis(callback, this._lis.cmp);
- }
- addLis(callback, list) {
- list.push(callback);
- return () => {
- let i = list.indexOf(callback);
- if (i >= 0)
- list.splice(i, 1);
- };
- }
- // remove all listeners
- clearLis() {
- for (let l of Object.values(this._lis))
- l.splice(0, l.length);
- }
- // --- Controller API
- /**
- * Is this stream already closed by a completion or error?
- */
- get closed() {
- return this._closed !== false;
- }
- /**
- * Emit message, close with error, or close successfully, but only one
- * at a time.
- * Can be used to wrap a stream by using the other stream's `onNext`.
- */
- notifyNext(message, error, complete) {
- runtime_1.assert((message ? 1 : 0) + (error ? 1 : 0) + (complete ? 1 : 0) <= 1, 'only one emission at a time');
- if (message)
- this.notifyMessage(message);
- if (error)
- this.notifyError(error);
- if (complete)
- this.notifyComplete();
- }
- /**
- * Emits a new message. Throws if stream is closed.
- *
- * Triggers onNext and onMessage callbacks.
- */
- notifyMessage(message) {
- runtime_1.assert(!this.closed, 'stream is closed');
- this.pushIt({ value: message, done: false });
- this._lis.msg.forEach(l => l(message));
- this._lis.nxt.forEach(l => l(message, undefined, false));
- }
- /**
- * Closes the stream with an error. Throws if stream is closed.
- *
- * Triggers onNext and onError callbacks.
- */
- notifyError(error) {
- runtime_1.assert(!this.closed, 'stream is closed');
- this._closed = error;
- this.pushIt(error);
- this._lis.err.forEach(l => l(error));
- this._lis.nxt.forEach(l => l(undefined, error, false));
- this.clearLis();
- }
- /**
- * Closes the stream successfully. Throws if stream is closed.
- *
- * Triggers onNext and onComplete callbacks.
- */
- notifyComplete() {
- runtime_1.assert(!this.closed, 'stream is closed');
- this._closed = true;
- this.pushIt({ value: null, done: true });
- this._lis.cmp.forEach(l => l());
- this._lis.nxt.forEach(l => l(undefined, undefined, true));
- this.clearLis();
- }
- /**
- * Creates an async iterator (that can be used with `for await {...}`)
- * to consume the stream.
- *
- * Some things to note:
- * - If an error occurs, the `for await` will throw it.
- * - If an error occurred before the `for await` was started, `for await`
- * will re-throw it.
- * - If the stream is already complete, the `for await` will be empty.
- * - If your `for await` consumes slower than the stream produces,
- * for example because you are relaying messages in a slow operation,
- * messages are queued.
- */
- [Symbol.asyncIterator]() {
- // init the iterator state, enabling pushIt()
- if (!this._itState) {
- this._itState = { q: [] };
- }
- // if we are closed, we are definitely not receiving any more messages.
- // but we can't let the iterator get stuck. we want to either:
- // a) finish the new iterator immediately, because we are completed
- // b) reject the new iterator, because we errored
- if (this._closed === true)
- this.pushIt({ value: null, done: true });
- else if (this._closed !== false)
- this.pushIt(this._closed);
- // the async iterator
- return {
- next: () => {
- let state = this._itState;
- runtime_1.assert(state, "bad state"); // if we don't have a state here, code is broken
- // there should be no pending result.
- // did the consumer call next() before we resolved our previous result promise?
- runtime_1.assert(!state.p, "iterator contract broken");
- // did we produce faster than the iterator consumed?
- // return the oldest result from the queue.
- let first = state.q.shift();
- if (first)
- return ("value" in first) ? Promise.resolve(first) : Promise.reject(first);
- // we have no result ATM, but we promise one.
- // as soon as we have a result, we must resolve promise.
- state.p = new deferred_1.Deferred();
- return state.p.promise;
- },
- };
- }
- // "push" a new iterator result.
- // this either resolves a pending promise, or enqueues the result.
- pushIt(result) {
- let state = this._itState;
- if (!state)
- return;
- // is the consumer waiting for us?
- if (state.p) {
- // yes, consumer is waiting for this promise.
- const p = state.p;
- runtime_1.assert(p.state == deferred_1.DeferredState.PENDING, "iterator contract broken");
- // resolve the promise
- ("value" in result) ? p.resolve(result) : p.reject(result);
- // must cleanup, otherwise iterator.next() would pick it up again.
- delete state.p;
- }
- else {
- // we are producing faster than the iterator consumes.
- // push result onto queue.
- state.q.push(result);
- }
- }
-}
-exports.RpcOutputStreamController = RpcOutputStreamController;
-
-
-/***/ }),
-
-/***/ 5320:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ServerCallContextController = void 0;
-class ServerCallContextController {
- constructor(method, headers, deadline, sendResponseHeadersFn, defaultStatus = { code: 'OK', detail: '' }) {
- this._cancelled = false;
- this._listeners = [];
- this.method = method;
- this.headers = headers;
- this.deadline = deadline;
- this.trailers = {};
- this._sendRH = sendResponseHeadersFn;
- this.status = defaultStatus;
- }
- /**
- * Set the call cancelled.
- *
- * Invokes all callbacks registered with onCancel() and
- * sets `cancelled = true`.
- */
- notifyCancelled() {
- if (!this._cancelled) {
- this._cancelled = true;
- for (let l of this._listeners) {
- l();
- }
- }
- }
- /**
- * Send response headers.
- */
- sendResponseHeaders(data) {
- this._sendRH(data);
- }
- /**
- * Is the call cancelled?
- *
- * When the client closes the connection before the server
- * is done, the call is cancelled.
- *
- * If you want to cancel a request on the server, throw a
- * RpcError with the CANCELLED status code.
- */
- get cancelled() {
- return this._cancelled;
- }
- /**
- * Add a callback for cancellation.
- */
- onCancel(callback) {
- const l = this._listeners;
- l.push(callback);
- return () => {
- let i = l.indexOf(callback);
- if (i >= 0)
- l.splice(i, 1);
- };
- }
-}
-exports.ServerCallContextController = ServerCallContextController;
-
-
-/***/ }),
-
-/***/ 66:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.ServerStreamingCall = void 0;
-/**
- * A server streaming RPC call. The client provides exactly one input message
- * but the server may respond with 0, 1, or more messages.
- */
-class ServerStreamingCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.request = request;
- this.headers = headers;
- this.responses = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * Instead of awaiting the response status and trailers, you can
- * just as well await this call itself to receive the server outcome.
- * You should first setup some listeners to the `request` to
- * see the actual messages the server replied with.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- request: this.request,
- headers,
- status,
- trailers,
- };
- });
- }
-}
-exports.ServerStreamingCall = ServerStreamingCall;
-
-
-/***/ }),
-
-/***/ 4107:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ServiceType = void 0;
-const reflection_info_1 = __nccwpck_require__(4331);
-class ServiceType {
- constructor(typeName, methods, options) {
- this.typeName = typeName;
- this.methods = methods.map(i => reflection_info_1.normalizeMethodInfo(i, this));
- this.options = options !== null && options !== void 0 ? options : {};
- }
-}
-exports.ServiceType = ServiceType;
-
-
-/***/ }),
-
-/***/ 7008:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.TestTransport = void 0;
-const rpc_error_1 = __nccwpck_require__(3159);
-const runtime_1 = __nccwpck_require__(4061);
-const rpc_output_stream_1 = __nccwpck_require__(6637);
-const rpc_options_1 = __nccwpck_require__(7386);
-const unary_call_1 = __nccwpck_require__(164);
-const server_streaming_call_1 = __nccwpck_require__(66);
-const client_streaming_call_1 = __nccwpck_require__(9912);
-const duplex_streaming_call_1 = __nccwpck_require__(7042);
-/**
- * Transport for testing.
- */
-class TestTransport {
- /**
- * Initialize with mock data. Omitted fields have default value.
- */
- constructor(data) {
- /**
- * Suppress warning / error about uncaught rejections of
- * "status" and "trailers".
- */
- this.suppressUncaughtRejections = true;
- this.headerDelay = 10;
- this.responseDelay = 50;
- this.betweenResponseDelay = 10;
- this.afterResponseDelay = 10;
- this.data = data !== null && data !== void 0 ? data : {};
- }
- /**
- * Sent message(s) during the last operation.
- */
- get sentMessages() {
- if (this.lastInput instanceof TestInputStream) {
- return this.lastInput.sent;
- }
- else if (typeof this.lastInput == "object") {
- return [this.lastInput.single];
- }
- return [];
- }
- /**
- * Sending message(s) completed?
- */
- get sendComplete() {
- if (this.lastInput instanceof TestInputStream) {
- return this.lastInput.completed;
- }
- else if (typeof this.lastInput == "object") {
- return true;
- }
- return false;
- }
- // Creates a promise for response headers from the mock data.
- promiseHeaders() {
- var _a;
- const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : TestTransport.defaultHeaders;
- return headers instanceof rpc_error_1.RpcError
- ? Promise.reject(headers)
- : Promise.resolve(headers);
- }
- // Creates a promise for a single, valid, message from the mock data.
- promiseSingleResponse(method) {
- if (this.data.response instanceof rpc_error_1.RpcError) {
- return Promise.reject(this.data.response);
- }
- let r;
- if (Array.isArray(this.data.response)) {
- runtime_1.assert(this.data.response.length > 0);
- r = this.data.response[0];
- }
- else if (this.data.response !== undefined) {
- r = this.data.response;
- }
- else {
- r = method.O.create();
- }
- runtime_1.assert(method.O.is(r));
- return Promise.resolve(r);
- }
- /**
- * Pushes response messages from the mock data to the output stream.
- * If an error response, status or trailers are mocked, the stream is
- * closed with the respective error.
- * Otherwise, stream is completed successfully.
- *
- * The returned promise resolves when the stream is closed. It should
- * not reject. If it does, code is broken.
- */
- streamResponses(method, stream, abort) {
- return __awaiter(this, void 0, void 0, function* () {
- // normalize "data.response" into an array of valid output messages
- const messages = [];
- if (this.data.response === undefined) {
- messages.push(method.O.create());
- }
- else if (Array.isArray(this.data.response)) {
- for (let msg of this.data.response) {
- runtime_1.assert(method.O.is(msg));
- messages.push(msg);
- }
- }
- else if (!(this.data.response instanceof rpc_error_1.RpcError)) {
- runtime_1.assert(method.O.is(this.data.response));
- messages.push(this.data.response);
- }
- // start the stream with an initial delay.
- // if the request is cancelled, notify() error and exit.
- try {
- yield delay(this.responseDelay, abort)(undefined);
- }
- catch (error) {
- stream.notifyError(error);
- return;
- }
- // if error response was mocked, notify() error (stream is now closed with error) and exit.
- if (this.data.response instanceof rpc_error_1.RpcError) {
- stream.notifyError(this.data.response);
- return;
- }
- // regular response messages were mocked. notify() them.
- for (let msg of messages) {
- stream.notifyMessage(msg);
- // add a short delay between responses
- // if the request is cancelled, notify() error and exit.
- try {
- yield delay(this.betweenResponseDelay, abort)(undefined);
- }
- catch (error) {
- stream.notifyError(error);
- return;
- }
- }
- // error status was mocked, notify() error (stream is now closed with error) and exit.
- if (this.data.status instanceof rpc_error_1.RpcError) {
- stream.notifyError(this.data.status);
- return;
- }
- // error trailers were mocked, notify() error (stream is now closed with error) and exit.
- if (this.data.trailers instanceof rpc_error_1.RpcError) {
- stream.notifyError(this.data.trailers);
- return;
- }
- // stream completed successfully
- stream.notifyComplete();
- });
- }
- // Creates a promise for response status from the mock data.
- promiseStatus() {
- var _a;
- const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : TestTransport.defaultStatus;
- return status instanceof rpc_error_1.RpcError
- ? Promise.reject(status)
- : Promise.resolve(status);
- }
- // Creates a promise for response trailers from the mock data.
- promiseTrailers() {
- var _a;
- const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : TestTransport.defaultTrailers;
- return trailers instanceof rpc_error_1.RpcError
- ? Promise.reject(trailers)
- : Promise.resolve(trailers);
- }
- maybeSuppressUncaught(...promise) {
- if (this.suppressUncaughtRejections) {
- for (let p of promise) {
- p.catch(() => {
- });
- }
- }
- }
- mergeOptions(options) {
- return rpc_options_1.mergeRpcOptions({}, options);
- }
- unary(method, input, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
- .catch(_ => {
- })
- .then(delay(this.responseDelay, options.abort))
- .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseStatus()), trailersPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = { single: input };
- return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise);
- }
- serverStreaming(method, input, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
- .then(delay(this.responseDelay, options.abort))
- .catch(() => {
- })
- .then(() => this.streamResponses(method, outputStream, options.abort))
- .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
- .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
- .then(() => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = { single: input };
- return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise);
- }
- clientStreaming(method, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
- .catch(_ => {
- })
- .then(delay(this.responseDelay, options.abort))
- .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseStatus()), trailersPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = new TestInputStream(this.data, options.abort);
- return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise);
- }
- duplex(method, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
- .then(delay(this.responseDelay, options.abort))
- .catch(() => {
- })
- .then(() => this.streamResponses(method, outputStream, options.abort))
- .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
- .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
- .then(() => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = new TestInputStream(this.data, options.abort);
- return new duplex_streaming_call_1.DuplexStreamingCall(method, requestHeaders, this.lastInput, headersPromise, outputStream, statusPromise, trailersPromise);
- }
-}
-exports.TestTransport = TestTransport;
-TestTransport.defaultHeaders = {
- responseHeader: "test"
-};
-TestTransport.defaultStatus = {
- code: "OK", detail: "all good"
-};
-TestTransport.defaultTrailers = {
- responseTrailer: "test"
-};
-function delay(ms, abort) {
- return (v) => new Promise((resolve, reject) => {
- if (abort === null || abort === void 0 ? void 0 : abort.aborted) {
- reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
- }
- else {
- const id = setTimeout(() => resolve(v), ms);
- if (abort) {
- abort.addEventListener("abort", ev => {
- clearTimeout(id);
- reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
- });
- }
- }
- });
-}
-class TestInputStream {
- constructor(data, abort) {
- this._completed = false;
- this._sent = [];
- this.data = data;
- this.abort = abort;
- }
- get sent() {
- return this._sent;
- }
- get completed() {
- return this._completed;
- }
- send(message) {
- if (this.data.inputMessage instanceof rpc_error_1.RpcError) {
- return Promise.reject(this.data.inputMessage);
- }
- const delayMs = this.data.inputMessage === undefined
- ? 10
- : this.data.inputMessage;
- return Promise.resolve(undefined)
- .then(() => {
- this._sent.push(message);
- })
- .then(delay(delayMs, this.abort));
- }
- complete() {
- if (this.data.inputComplete instanceof rpc_error_1.RpcError) {
- return Promise.reject(this.data.inputComplete);
- }
- const delayMs = this.data.inputComplete === undefined
- ? 10
- : this.data.inputComplete;
- return Promise.resolve(undefined)
- .then(() => {
- this._completed = true;
- })
- .then(delay(delayMs, this.abort));
- }
-}
-
-
-/***/ }),
-
-/***/ 164:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.UnaryCall = void 0;
-/**
- * A unary RPC call. Unary means there is exactly one input message and
- * exactly one output message unless an error occurred.
- */
-class UnaryCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.request = request;
- this.headers = headers;
- this.response = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * If you are only interested in the final outcome of this call,
- * you can await it to receive a `FinishedUnaryCall`.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- request: this.request,
- headers,
- response,
- status,
- trailers
- };
- });
- }
-}
-exports.UnaryCall = UnaryCall;
-
-
-/***/ }),
-
-/***/ 4253:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;
-/**
- * assert that condition is true or throw error (with message)
- */
-function assert(condition, msg) {
- if (!condition) {
- throw new Error(msg);
- }
-}
-exports.assert = assert;
-/**
- * assert that value cannot exist = type `never`. throw runtime error if it does.
- */
-function assertNever(value, msg) {
- throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);
-}
-exports.assertNever = assertNever;
-const FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;
-function assertInt32(arg) {
- if (typeof arg !== "number")
- throw new Error('invalid int 32: ' + typeof arg);
- if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN)
- throw new Error('invalid int 32: ' + arg);
-}
-exports.assertInt32 = assertInt32;
-function assertUInt32(arg) {
- if (typeof arg !== "number")
- throw new Error('invalid uint 32: ' + typeof arg);
- if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0)
- throw new Error('invalid uint 32: ' + arg);
-}
-exports.assertUInt32 = assertUInt32;
-function assertFloat32(arg) {
- if (typeof arg !== "number")
- throw new Error('invalid float 32: ' + typeof arg);
- if (!Number.isFinite(arg))
- return;
- if (arg > FLOAT32_MAX || arg < FLOAT32_MIN)
- throw new Error('invalid float 32: ' + arg);
-}
-exports.assertFloat32 = assertFloat32;
-
-
-/***/ }),
-
-/***/ 196:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.base64encode = exports.base64decode = void 0;
-// lookup table from base64 character to byte
-let encTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
-// lookup table from base64 character *code* to byte because lookup by number is fast
-let decTable = [];
-for (let i = 0; i < encTable.length; i++)
- decTable[encTable[i].charCodeAt(0)] = i;
-// support base64url variants
-decTable["-".charCodeAt(0)] = encTable.indexOf("+");
-decTable["_".charCodeAt(0)] = encTable.indexOf("/");
-/**
- * Decodes a base64 string to a byte array.
- *
- * - ignores white-space, including line breaks and tabs
- * - allows inner padding (can decode concatenated base64 strings)
- * - does not require padding
- * - understands base64url encoding:
- * "-" instead of "+",
- * "_" instead of "/",
- * no padding
- */
-function base64decode(base64Str) {
- // estimate byte size, not accounting for inner padding and whitespace
- let es = base64Str.length * 3 / 4;
- // if (es % 3 !== 0)
- // throw new Error('invalid base64 string');
- if (base64Str[base64Str.length - 2] == '=')
- es -= 2;
- else if (base64Str[base64Str.length - 1] == '=')
- es -= 1;
- let bytes = new Uint8Array(es), bytePos = 0, // position in byte array
- groupPos = 0, // position in base64 group
- b, // current byte
- p = 0 // previous byte
- ;
- for (let i = 0; i < base64Str.length; i++) {
- b = decTable[base64Str.charCodeAt(i)];
- if (b === undefined) {
- // noinspection FallThroughInSwitchStatementJS
- switch (base64Str[i]) {
- case '=':
- groupPos = 0; // reset state when padding found
- case '\n':
- case '\r':
- case '\t':
- case ' ':
- continue; // skip white-space, and padding
- default:
- throw Error(`invalid base64 string.`);
- }
- }
- switch (groupPos) {
- case 0:
- p = b;
- groupPos = 1;
- break;
- case 1:
- bytes[bytePos++] = p << 2 | (b & 48) >> 4;
- p = b;
- groupPos = 2;
- break;
- case 2:
- bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;
- p = b;
- groupPos = 3;
- break;
- case 3:
- bytes[bytePos++] = (p & 3) << 6 | b;
- groupPos = 0;
- break;
- }
- }
- if (groupPos == 1)
- throw Error(`invalid base64 string.`);
- return bytes.subarray(0, bytePos);
-}
-exports.base64decode = base64decode;
-/**
- * Encodes a byte array to a base64 string.
- * Adds padding at the end.
- * Does not insert newlines.
- */
-function base64encode(bytes) {
- let base64 = '', groupPos = 0, // position in base64 group
- b, // current byte
- p = 0; // carry over from previous byte
- for (let i = 0; i < bytes.length; i++) {
- b = bytes[i];
- switch (groupPos) {
- case 0:
- base64 += encTable[b >> 2];
- p = (b & 3) << 4;
- groupPos = 1;
- break;
- case 1:
- base64 += encTable[p | b >> 4];
- p = (b & 15) << 2;
- groupPos = 2;
- break;
- case 2:
- base64 += encTable[p | b >> 6];
- base64 += encTable[b & 63];
- groupPos = 0;
- break;
- }
- }
- // padding required?
- if (groupPos) {
- base64 += encTable[p];
- base64 += '=';
- if (groupPos == 1)
- base64 += '=';
- }
- return base64;
-}
-exports.base64encode = base64encode;
-
-
-/***/ }),
-
-/***/ 4921:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;
-/**
- * This handler implements the default behaviour for unknown fields.
- * When reading data, unknown fields are stored on the message, in a
- * symbol property.
- * When writing data, the symbol property is queried and unknown fields
- * are serialized into the output again.
- */
-var UnknownFieldHandler;
-(function (UnknownFieldHandler) {
- /**
- * The symbol used to store unknown fields for a message.
- * The property must conform to `UnknownFieldContainer`.
- */
- UnknownFieldHandler.symbol = Symbol.for("protobuf-ts/unknown");
- /**
- * Store an unknown field during binary read directly on the message.
- * This method is compatible with `BinaryReadOptions.readUnknownField`.
- */
- UnknownFieldHandler.onRead = (typeName, message, fieldNo, wireType, data) => {
- let container = is(message) ? message[UnknownFieldHandler.symbol] : message[UnknownFieldHandler.symbol] = [];
- container.push({ no: fieldNo, wireType, data });
- };
- /**
- * Write unknown fields stored for the message to the writer.
- * This method is compatible with `BinaryWriteOptions.writeUnknownFields`.
- */
- UnknownFieldHandler.onWrite = (typeName, message, writer) => {
- for (let { no, wireType, data } of UnknownFieldHandler.list(message))
- writer.tag(no, wireType).raw(data);
- };
- /**
- * List unknown fields stored for the message.
- * Note that there may be multiples fields with the same number.
- */
- UnknownFieldHandler.list = (message, fieldNo) => {
- if (is(message)) {
- let all = message[UnknownFieldHandler.symbol];
- return fieldNo ? all.filter(uf => uf.no == fieldNo) : all;
- }
- return [];
- };
- /**
- * Returns the last unknown field by field number.
- */
- UnknownFieldHandler.last = (message, fieldNo) => UnknownFieldHandler.list(message, fieldNo).slice(-1)[0];
- const is = (message) => message && Array.isArray(message[UnknownFieldHandler.symbol]);
-})(UnknownFieldHandler = exports.UnknownFieldHandler || (exports.UnknownFieldHandler = {}));
-/**
- * Merges binary write or read options. Later values override earlier values.
- */
-function mergeBinaryOptions(a, b) {
- return Object.assign(Object.assign({}, a), b);
-}
-exports.mergeBinaryOptions = mergeBinaryOptions;
-/**
- * Protobuf binary format wire types.
- *
- * A wire type provides just enough information to find the length of the
- * following value.
- *
- * See https://developers.google.com/protocol-buffers/docs/encoding#structure
- */
-var WireType;
-(function (WireType) {
- /**
- * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum
- */
- WireType[WireType["Varint"] = 0] = "Varint";
- /**
- * Used for fixed64, sfixed64, double.
- * Always 8 bytes with little-endian byte order.
- */
- WireType[WireType["Bit64"] = 1] = "Bit64";
- /**
- * Used for string, bytes, embedded messages, packed repeated fields
- *
- * Only repeated numeric types (types which use the varint, 32-bit,
- * or 64-bit wire types) can be packed. In proto3, such fields are
- * packed by default.
- */
- WireType[WireType["LengthDelimited"] = 2] = "LengthDelimited";
- /**
- * Used for groups
- * @deprecated
- */
- WireType[WireType["StartGroup"] = 3] = "StartGroup";
- /**
- * Used for groups
- * @deprecated
- */
- WireType[WireType["EndGroup"] = 4] = "EndGroup";
- /**
- * Used for fixed32, sfixed32, float.
- * Always 4 bytes with little-endian byte order.
- */
- WireType[WireType["Bit32"] = 5] = "Bit32";
-})(WireType = exports.WireType || (exports.WireType = {}));
-
-
-/***/ }),
-
-/***/ 5210:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.BinaryReader = exports.binaryReadOptions = void 0;
-const binary_format_contract_1 = __nccwpck_require__(4921);
-const pb_long_1 = __nccwpck_require__(7777);
-const goog_varint_1 = __nccwpck_require__(433);
-const defaultsRead = {
- readUnknownField: true,
- readerFactory: bytes => new BinaryReader(bytes),
-};
-/**
- * Make options for reading binary data form partial options.
- */
-function binaryReadOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
-}
-exports.binaryReadOptions = binaryReadOptions;
-class BinaryReader {
- constructor(buf, textDecoder) {
- this.varint64 = goog_varint_1.varint64read; // dirty cast for `this`
- /**
- * Read a `uint32` field, an unsigned 32 bit varint.
- */
- this.uint32 = goog_varint_1.varint32read; // dirty cast for `this` and access to protected `buf`
- this.buf = buf;
- this.len = buf.length;
- this.pos = 0;
- this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
- this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder("utf-8", {
- fatal: true,
- ignoreBOM: true,
- });
- }
- /**
- * Reads a tag - field number and wire type.
- */
- tag() {
- let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;
- if (fieldNo <= 0 || wireType < 0 || wireType > 5)
- throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType);
- return [fieldNo, wireType];
- }
- /**
- * Skip one element on the wire and return the skipped data.
- * Supports WireType.StartGroup since v2.0.0-alpha.23.
- */
- skip(wireType) {
- let start = this.pos;
- // noinspection FallThroughInSwitchStatementJS
- switch (wireType) {
- case binary_format_contract_1.WireType.Varint:
- while (this.buf[this.pos++] & 0x80) {
- // ignore
- }
- break;
- case binary_format_contract_1.WireType.Bit64:
- this.pos += 4;
- case binary_format_contract_1.WireType.Bit32:
- this.pos += 4;
- break;
- case binary_format_contract_1.WireType.LengthDelimited:
- let len = this.uint32();
- this.pos += len;
- break;
- case binary_format_contract_1.WireType.StartGroup:
- // From descriptor.proto: Group type is deprecated, not supported in proto3.
- // But we must still be able to parse and treat as unknown.
- let t;
- while ((t = this.tag()[1]) !== binary_format_contract_1.WireType.EndGroup) {
- this.skip(t);
- }
- break;
- default:
- throw new Error("cant skip wire type " + wireType);
- }
- this.assertBounds();
- return this.buf.subarray(start, this.pos);
- }
- /**
- * Throws error if position in byte array is out of range.
- */
- assertBounds() {
- if (this.pos > this.len)
- throw new RangeError("premature EOF");
- }
- /**
- * Read a `int32` field, a signed 32 bit varint.
- */
- int32() {
- return this.uint32() | 0;
- }
- /**
- * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
- */
- sint32() {
- let zze = this.uint32();
- // decode zigzag
- return (zze >>> 1) ^ -(zze & 1);
- }
- /**
- * Read a `int64` field, a signed 64-bit varint.
- */
- int64() {
- return new pb_long_1.PbLong(...this.varint64());
- }
- /**
- * Read a `uint64` field, an unsigned 64-bit varint.
- */
- uint64() {
- return new pb_long_1.PbULong(...this.varint64());
- }
- /**
- * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
- */
- sint64() {
- let [lo, hi] = this.varint64();
- // decode zig zag
- let s = -(lo & 1);
- lo = ((lo >>> 1 | (hi & 1) << 31) ^ s);
- hi = (hi >>> 1 ^ s);
- return new pb_long_1.PbLong(lo, hi);
- }
- /**
- * Read a `bool` field, a variant.
- */
- bool() {
- let [lo, hi] = this.varint64();
- return lo !== 0 || hi !== 0;
- }
- /**
- * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.
- */
- fixed32() {
- return this.view.getUint32((this.pos += 4) - 4, true);
- }
- /**
- * Read a `sfixed32` field, a signed, fixed-length 32-bit integer.
- */
- sfixed32() {
- return this.view.getInt32((this.pos += 4) - 4, true);
- }
- /**
- * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
- */
- fixed64() {
- return new pb_long_1.PbULong(this.sfixed32(), this.sfixed32());
- }
- /**
- * Read a `fixed64` field, a signed, fixed-length 64-bit integer.
- */
- sfixed64() {
- return new pb_long_1.PbLong(this.sfixed32(), this.sfixed32());
- }
- /**
- * Read a `float` field, 32-bit floating point number.
- */
- float() {
- return this.view.getFloat32((this.pos += 4) - 4, true);
- }
- /**
- * Read a `double` field, a 64-bit floating point number.
- */
- double() {
- return this.view.getFloat64((this.pos += 8) - 8, true);
- }
- /**
- * Read a `bytes` field, length-delimited arbitrary data.
- */
- bytes() {
- let len = this.uint32();
- let start = this.pos;
- this.pos += len;
- this.assertBounds();
- return this.buf.subarray(start, start + len);
- }
- /**
- * Read a `string` field, length-delimited data converted to UTF-8 text.
- */
- string() {
- return this.textDecoder.decode(this.bytes());
- }
-}
-exports.BinaryReader = BinaryReader;
-
-
-/***/ }),
-
-/***/ 4354:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.BinaryWriter = exports.binaryWriteOptions = void 0;
-const pb_long_1 = __nccwpck_require__(7777);
-const goog_varint_1 = __nccwpck_require__(433);
-const assert_1 = __nccwpck_require__(4253);
-const defaultsWrite = {
- writeUnknownFields: true,
- writerFactory: () => new BinaryWriter(),
-};
-/**
- * Make options for writing binary data form partial options.
- */
-function binaryWriteOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
-}
-exports.binaryWriteOptions = binaryWriteOptions;
-class BinaryWriter {
- constructor(textEncoder) {
- /**
- * Previous fork states.
- */
- this.stack = [];
- this.textEncoder = textEncoder !== null && textEncoder !== void 0 ? textEncoder : new TextEncoder();
- this.chunks = [];
- this.buf = [];
- }
- /**
- * Return all bytes written and reset this writer.
- */
- finish() {
- this.chunks.push(new Uint8Array(this.buf)); // flush the buffer
- let len = 0;
- for (let i = 0; i < this.chunks.length; i++)
- len += this.chunks[i].length;
- let bytes = new Uint8Array(len);
- let offset = 0;
- for (let i = 0; i < this.chunks.length; i++) {
- bytes.set(this.chunks[i], offset);
- offset += this.chunks[i].length;
- }
- this.chunks = [];
- return bytes;
- }
- /**
- * Start a new fork for length-delimited data like a message
- * or a packed repeated field.
- *
- * Must be joined later with `join()`.
- */
- fork() {
- this.stack.push({ chunks: this.chunks, buf: this.buf });
- this.chunks = [];
- this.buf = [];
- return this;
- }
- /**
- * Join the last fork. Write its length and bytes, then
- * return to the previous state.
- */
- join() {
- // get chunk of fork
- let chunk = this.finish();
- // restore previous state
- let prev = this.stack.pop();
- if (!prev)
- throw new Error('invalid state, fork stack empty');
- this.chunks = prev.chunks;
- this.buf = prev.buf;
- // write length of chunk as varint
- this.uint32(chunk.byteLength);
- return this.raw(chunk);
- }
- /**
- * Writes a tag (field number and wire type).
- *
- * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.
- *
- * Generated code should compute the tag ahead of time and call `uint32()`.
- */
- tag(fieldNo, type) {
- return this.uint32((fieldNo << 3 | type) >>> 0);
- }
- /**
- * Write a chunk of raw bytes.
- */
- raw(chunk) {
- if (this.buf.length) {
- this.chunks.push(new Uint8Array(this.buf));
- this.buf = [];
- }
- this.chunks.push(chunk);
- return this;
- }
- /**
- * Write a `uint32` value, an unsigned 32 bit varint.
- */
- uint32(value) {
- assert_1.assertUInt32(value);
- // write value as varint 32, inlined for speed
- while (value > 0x7f) {
- this.buf.push((value & 0x7f) | 0x80);
- value = value >>> 7;
- }
- this.buf.push(value);
- return this;
- }
- /**
- * Write a `int32` value, a signed 32 bit varint.
- */
- int32(value) {
- assert_1.assertInt32(value);
- goog_varint_1.varint32write(value, this.buf);
- return this;
- }
- /**
- * Write a `bool` value, a variant.
- */
- bool(value) {
- this.buf.push(value ? 1 : 0);
- return this;
- }
- /**
- * Write a `bytes` value, length-delimited arbitrary data.
- */
- bytes(value) {
- this.uint32(value.byteLength); // write length of chunk as varint
- return this.raw(value);
- }
- /**
- * Write a `string` value, length-delimited data converted to UTF-8 text.
- */
- string(value) {
- let chunk = this.textEncoder.encode(value);
- this.uint32(chunk.byteLength); // write length of chunk as varint
- return this.raw(chunk);
- }
- /**
- * Write a `float` value, 32-bit floating point number.
- */
- float(value) {
- assert_1.assertFloat32(value);
- let chunk = new Uint8Array(4);
- new DataView(chunk.buffer).setFloat32(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `double` value, a 64-bit floating point number.
- */
- double(value) {
- let chunk = new Uint8Array(8);
- new DataView(chunk.buffer).setFloat64(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
- */
- fixed32(value) {
- assert_1.assertUInt32(value);
- let chunk = new Uint8Array(4);
- new DataView(chunk.buffer).setUint32(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
- */
- sfixed32(value) {
- assert_1.assertInt32(value);
- let chunk = new Uint8Array(4);
- new DataView(chunk.buffer).setInt32(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
- */
- sint32(value) {
- assert_1.assertInt32(value);
- // zigzag encode
- value = ((value << 1) ^ (value >> 31)) >>> 0;
- goog_varint_1.varint32write(value, this.buf);
- return this;
- }
- /**
- * Write a `fixed64` value, a signed, fixed-length 64-bit integer.
- */
- sfixed64(value) {
- let chunk = new Uint8Array(8);
- let view = new DataView(chunk.buffer);
- let long = pb_long_1.PbLong.from(value);
- view.setInt32(0, long.lo, true);
- view.setInt32(4, long.hi, true);
- return this.raw(chunk);
- }
- /**
- * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
- */
- fixed64(value) {
- let chunk = new Uint8Array(8);
- let view = new DataView(chunk.buffer);
- let long = pb_long_1.PbULong.from(value);
- view.setInt32(0, long.lo, true);
- view.setInt32(4, long.hi, true);
- return this.raw(chunk);
- }
- /**
- * Write a `int64` value, a signed 64-bit varint.
- */
- int64(value) {
- let long = pb_long_1.PbLong.from(value);
- goog_varint_1.varint64write(long.lo, long.hi, this.buf);
- return this;
- }
- /**
- * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
- */
- sint64(value) {
- let long = pb_long_1.PbLong.from(value),
- // zigzag encode
- sign = long.hi >> 31, lo = (long.lo << 1) ^ sign, hi = ((long.hi << 1) | (long.lo >>> 31)) ^ sign;
- goog_varint_1.varint64write(lo, hi, this.buf);
- return this;
- }
- /**
- * Write a `uint64` value, an unsigned 64-bit varint.
- */
- uint64(value) {
- let long = pb_long_1.PbULong.from(value);
- goog_varint_1.varint64write(long.lo, long.hi, this.buf);
- return this;
- }
-}
-exports.BinaryWriter = BinaryWriter;
-
-
-/***/ }),
-
-/***/ 85:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;
-/**
- * Is this a lookup object generated by Typescript, for a Typescript enum
- * generated by protobuf-ts?
- *
- * - No `const enum` (enum must not be inlined, we need reverse mapping).
- * - No string enum (we need int32 for protobuf).
- * - Must have a value for 0 (otherwise, we would need to support custom default values).
- */
-function isEnumObject(arg) {
- if (typeof arg != 'object' || arg === null) {
- return false;
- }
- if (!arg.hasOwnProperty(0)) {
- return false;
- }
- for (let k of Object.keys(arg)) {
- let num = parseInt(k);
- if (!Number.isNaN(num)) {
- // is there a name for the number?
- let nam = arg[num];
- if (nam === undefined)
- return false;
- // does the name resolve back to the number?
- if (arg[nam] !== num)
- return false;
- }
- else {
- // is there a number for the name?
- let num = arg[k];
- if (num === undefined)
- return false;
- // is it a string enum?
- if (typeof num !== 'number')
- return false;
- // do we know the number?
- if (arg[num] === undefined)
- return false;
- }
- }
- return true;
-}
-exports.isEnumObject = isEnumObject;
-/**
- * Lists all values of a Typescript enum, as an array of objects with a "name"
- * property and a "number" property.
- *
- * Note that it is possible that a number appears more than once, because it is
- * possible to have aliases in an enum.
- *
- * Throws if the enum does not adhere to the rules of enums generated by
- * protobuf-ts. See `isEnumObject()`.
- */
-function listEnumValues(enumObject) {
- if (!isEnumObject(enumObject))
- throw new Error("not a typescript enum object");
- let values = [];
- for (let [name, number] of Object.entries(enumObject))
- if (typeof number == "number")
- values.push({ name, number });
- return values;
-}
-exports.listEnumValues = listEnumValues;
-/**
- * Lists the names of a Typescript enum.
- *
- * Throws if the enum does not adhere to the rules of enums generated by
- * protobuf-ts. See `isEnumObject()`.
- */
-function listEnumNames(enumObject) {
- return listEnumValues(enumObject).map(val => val.name);
-}
-exports.listEnumNames = listEnumNames;
-/**
- * Lists the numbers of a Typescript enum.
- *
- * Throws if the enum does not adhere to the rules of enums generated by
- * protobuf-ts. See `isEnumObject()`.
- */
-function listEnumNumbers(enumObject) {
- return listEnumValues(enumObject)
- .map(val => val.number)
- .filter((num, index, arr) => arr.indexOf(num) == index);
-}
-exports.listEnumNumbers = listEnumNumbers;
-
-
-/***/ }),
-
-/***/ 433:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Copyright 2008 Google Inc. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Code generated by the Protocol Buffer compiler is owned by the owner
-// of the input file used when generating it. This code is not
-// standalone and requires a support library to be linked with it. This
-// support library is itself covered by the above license.
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;
-/**
- * Read a 64 bit varint as two JS numbers.
- *
- * Returns tuple:
- * [0]: low bits
- * [0]: high bits
- *
- * Copyright 2008 Google Inc. All rights reserved.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
- */
-function varint64read() {
- let lowBits = 0;
- let highBits = 0;
- for (let shift = 0; shift < 28; shift += 7) {
- let b = this.buf[this.pos++];
- lowBits |= (b & 0x7F) << shift;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return [lowBits, highBits];
- }
- }
- let middleByte = this.buf[this.pos++];
- // last four bits of the first 32 bit number
- lowBits |= (middleByte & 0x0F) << 28;
- // 3 upper bits are part of the next 32 bit number
- highBits = (middleByte & 0x70) >> 4;
- if ((middleByte & 0x80) == 0) {
- this.assertBounds();
- return [lowBits, highBits];
- }
- for (let shift = 3; shift <= 31; shift += 7) {
- let b = this.buf[this.pos++];
- highBits |= (b & 0x7F) << shift;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return [lowBits, highBits];
- }
- }
- throw new Error('invalid varint');
-}
-exports.varint64read = varint64read;
-/**
- * Write a 64 bit varint, given as two JS numbers, to the given bytes array.
- *
- * Copyright 2008 Google Inc. All rights reserved.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
- */
-function varint64write(lo, hi, bytes) {
- for (let i = 0; i < 28; i = i + 7) {
- const shift = lo >>> i;
- const hasNext = !((shift >>> 7) == 0 && hi == 0);
- const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
- bytes.push(byte);
- if (!hasNext) {
- return;
- }
- }
- const splitBits = ((lo >>> 28) & 0x0F) | ((hi & 0x07) << 4);
- const hasMoreBits = !((hi >> 3) == 0);
- bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xFF);
- if (!hasMoreBits) {
- return;
- }
- for (let i = 3; i < 31; i = i + 7) {
- const shift = hi >>> i;
- const hasNext = !((shift >>> 7) == 0);
- const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
- bytes.push(byte);
- if (!hasNext) {
- return;
- }
- }
- bytes.push((hi >>> 31) & 0x01);
-}
-exports.varint64write = varint64write;
-// constants for binary math
-const TWO_PWR_32_DBL = (1 << 16) * (1 << 16);
-/**
- * Parse decimal string of 64 bit integer value as two JS numbers.
- *
- * Returns tuple:
- * [0]: minus sign?
- * [1]: low bits
- * [2]: high bits
- *
- * Copyright 2008 Google Inc.
- */
-function int64fromString(dec) {
- // Check for minus sign.
- let minus = dec[0] == '-';
- if (minus)
- dec = dec.slice(1);
- // Work 6 decimal digits at a time, acting like we're converting base 1e6
- // digits to binary. This is safe to do with floating point math because
- // Number.isSafeInteger(ALL_32_BITS * 1e6) == true.
- const base = 1e6;
- let lowBits = 0;
- let highBits = 0;
- function add1e6digit(begin, end) {
- // Note: Number('') is 0.
- const digit1e6 = Number(dec.slice(begin, end));
- highBits *= base;
- lowBits = lowBits * base + digit1e6;
- // Carry bits from lowBits to highBits
- if (lowBits >= TWO_PWR_32_DBL) {
- highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);
- lowBits = lowBits % TWO_PWR_32_DBL;
- }
- }
- add1e6digit(-24, -18);
- add1e6digit(-18, -12);
- add1e6digit(-12, -6);
- add1e6digit(-6);
- return [minus, lowBits, highBits];
-}
-exports.int64fromString = int64fromString;
-/**
- * Format 64 bit integer value (as two JS numbers) to decimal string.
- *
- * Copyright 2008 Google Inc.
- */
-function int64toString(bitsLow, bitsHigh) {
- // Skip the expensive conversion if the number is small enough to use the
- // built-in conversions.
- if ((bitsHigh >>> 0) <= 0x1FFFFF) {
- return '' + (TWO_PWR_32_DBL * bitsHigh + (bitsLow >>> 0));
- }
- // What this code is doing is essentially converting the input number from
- // base-2 to base-1e7, which allows us to represent the 64-bit range with
- // only 3 (very large) digits. Those digits are then trivial to convert to
- // a base-10 string.
- // The magic numbers used here are -
- // 2^24 = 16777216 = (1,6777216) in base-1e7.
- // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
- // Split 32:32 representation into 16:24:24 representation so our
- // intermediate digits don't overflow.
- let low = bitsLow & 0xFFFFFF;
- let mid = (((bitsLow >>> 24) | (bitsHigh << 8)) >>> 0) & 0xFFFFFF;
- let high = (bitsHigh >> 16) & 0xFFFF;
- // Assemble our three base-1e7 digits, ignoring carries. The maximum
- // value in a digit at this step is representable as a 48-bit integer, which
- // can be stored in a 64-bit floating point number.
- let digitA = low + (mid * 6777216) + (high * 6710656);
- let digitB = mid + (high * 8147497);
- let digitC = (high * 2);
- // Apply carries from A to B and from B to C.
- let base = 10000000;
- if (digitA >= base) {
- digitB += Math.floor(digitA / base);
- digitA %= base;
- }
- if (digitB >= base) {
- digitC += Math.floor(digitB / base);
- digitB %= base;
- }
- // Convert base-1e7 digits to base-10, with optional leading zeroes.
- function decimalFrom1e7(digit1e7, needLeadingZeros) {
- let partial = digit1e7 ? String(digit1e7) : '';
- if (needLeadingZeros) {
- return '0000000'.slice(partial.length) + partial;
- }
- return partial;
- }
- return decimalFrom1e7(digitC, /*needLeadingZeros=*/ 0) +
- decimalFrom1e7(digitB, /*needLeadingZeros=*/ digitC) +
- // If the final 1e7 digit didn't need leading zeros, we would have
- // returned via the trivial code path at the top.
- decimalFrom1e7(digitA, /*needLeadingZeros=*/ 1);
-}
-exports.int64toString = int64toString;
-/**
- * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
- *
- * Copyright 2008 Google Inc. All rights reserved.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
- */
-function varint32write(value, bytes) {
- if (value >= 0) {
- // write value as varint 32
- while (value > 0x7f) {
- bytes.push((value & 0x7f) | 0x80);
- value = value >>> 7;
- }
- bytes.push(value);
- }
- else {
- for (let i = 0; i < 9; i++) {
- bytes.push(value & 127 | 128);
- value = value >> 7;
- }
- bytes.push(1);
- }
-}
-exports.varint32write = varint32write;
-/**
- * Read an unsigned 32 bit varint.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
- */
-function varint32read() {
- let b = this.buf[this.pos++];
- let result = b & 0x7F;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- b = this.buf[this.pos++];
- result |= (b & 0x7F) << 7;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- b = this.buf[this.pos++];
- result |= (b & 0x7F) << 14;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- b = this.buf[this.pos++];
- result |= (b & 0x7F) << 21;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- // Extract only last 4 bits
- b = this.buf[this.pos++];
- result |= (b & 0x0F) << 28;
- for (let readBytes = 5; ((b & 0x80) !== 0) && readBytes < 10; readBytes++)
- b = this.buf[this.pos++];
- if ((b & 0x80) != 0)
- throw new Error('invalid varint');
- this.assertBounds();
- // Result can have 32 bits, convert it to unsigned
- return result >>> 0;
-}
-exports.varint32read = varint32read;
-
-
-/***/ }),
-
-/***/ 4061:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-// Public API of the protobuf-ts runtime.
-// Note: we do not use `export * from ...` to help tree shakers,
-// webpack verbose output hints that this should be useful
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-// Convenience JSON typings and corresponding type guards
-var json_typings_1 = __nccwpck_require__(661);
-Object.defineProperty(exports, "typeofJsonValue", ({ enumerable: true, get: function () { return json_typings_1.typeofJsonValue; } }));
-Object.defineProperty(exports, "isJsonObject", ({ enumerable: true, get: function () { return json_typings_1.isJsonObject; } }));
-// Base 64 encoding
-var base64_1 = __nccwpck_require__(196);
-Object.defineProperty(exports, "base64decode", ({ enumerable: true, get: function () { return base64_1.base64decode; } }));
-Object.defineProperty(exports, "base64encode", ({ enumerable: true, get: function () { return base64_1.base64encode; } }));
-// UTF8 encoding
-var protobufjs_utf8_1 = __nccwpck_require__(5290);
-Object.defineProperty(exports, "utf8read", ({ enumerable: true, get: function () { return protobufjs_utf8_1.utf8read; } }));
-// Binary format contracts, options for reading and writing, for example
-var binary_format_contract_1 = __nccwpck_require__(4921);
-Object.defineProperty(exports, "WireType", ({ enumerable: true, get: function () { return binary_format_contract_1.WireType; } }));
-Object.defineProperty(exports, "mergeBinaryOptions", ({ enumerable: true, get: function () { return binary_format_contract_1.mergeBinaryOptions; } }));
-Object.defineProperty(exports, "UnknownFieldHandler", ({ enumerable: true, get: function () { return binary_format_contract_1.UnknownFieldHandler; } }));
-// Standard IBinaryReader implementation
-var binary_reader_1 = __nccwpck_require__(5210);
-Object.defineProperty(exports, "BinaryReader", ({ enumerable: true, get: function () { return binary_reader_1.BinaryReader; } }));
-Object.defineProperty(exports, "binaryReadOptions", ({ enumerable: true, get: function () { return binary_reader_1.binaryReadOptions; } }));
-// Standard IBinaryWriter implementation
-var binary_writer_1 = __nccwpck_require__(4354);
-Object.defineProperty(exports, "BinaryWriter", ({ enumerable: true, get: function () { return binary_writer_1.BinaryWriter; } }));
-Object.defineProperty(exports, "binaryWriteOptions", ({ enumerable: true, get: function () { return binary_writer_1.binaryWriteOptions; } }));
-// Int64 and UInt64 implementations required for the binary format
-var pb_long_1 = __nccwpck_require__(7777);
-Object.defineProperty(exports, "PbLong", ({ enumerable: true, get: function () { return pb_long_1.PbLong; } }));
-Object.defineProperty(exports, "PbULong", ({ enumerable: true, get: function () { return pb_long_1.PbULong; } }));
-// JSON format contracts, options for reading and writing, for example
-var json_format_contract_1 = __nccwpck_require__(8139);
-Object.defineProperty(exports, "jsonReadOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonReadOptions; } }));
-Object.defineProperty(exports, "jsonWriteOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonWriteOptions; } }));
-Object.defineProperty(exports, "mergeJsonOptions", ({ enumerable: true, get: function () { return json_format_contract_1.mergeJsonOptions; } }));
-// Message type contract
-var message_type_contract_1 = __nccwpck_require__(1682);
-Object.defineProperty(exports, "MESSAGE_TYPE", ({ enumerable: true, get: function () { return message_type_contract_1.MESSAGE_TYPE; } }));
-// Message type implementation via reflection
-var message_type_1 = __nccwpck_require__(3664);
-Object.defineProperty(exports, "MessageType", ({ enumerable: true, get: function () { return message_type_1.MessageType; } }));
-// Reflection info, generated by the plugin, exposed to the user, used by reflection ops
-var reflection_info_1 = __nccwpck_require__(1370);
-Object.defineProperty(exports, "ScalarType", ({ enumerable: true, get: function () { return reflection_info_1.ScalarType; } }));
-Object.defineProperty(exports, "LongType", ({ enumerable: true, get: function () { return reflection_info_1.LongType; } }));
-Object.defineProperty(exports, "RepeatType", ({ enumerable: true, get: function () { return reflection_info_1.RepeatType; } }));
-Object.defineProperty(exports, "normalizeFieldInfo", ({ enumerable: true, get: function () { return reflection_info_1.normalizeFieldInfo; } }));
-Object.defineProperty(exports, "readFieldOptions", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOptions; } }));
-Object.defineProperty(exports, "readFieldOption", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOption; } }));
-Object.defineProperty(exports, "readMessageOption", ({ enumerable: true, get: function () { return reflection_info_1.readMessageOption; } }));
-// Message operations via reflection
-var reflection_type_check_1 = __nccwpck_require__(903);
-Object.defineProperty(exports, "ReflectionTypeCheck", ({ enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } }));
-var reflection_create_1 = __nccwpck_require__(390);
-Object.defineProperty(exports, "reflectionCreate", ({ enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } }));
-var reflection_scalar_default_1 = __nccwpck_require__(4863);
-Object.defineProperty(exports, "reflectionScalarDefault", ({ enumerable: true, get: function () { return reflection_scalar_default_1.reflectionScalarDefault; } }));
-var reflection_merge_partial_1 = __nccwpck_require__(7869);
-Object.defineProperty(exports, "reflectionMergePartial", ({ enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } }));
-var reflection_equals_1 = __nccwpck_require__(9473);
-Object.defineProperty(exports, "reflectionEquals", ({ enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } }));
-var reflection_binary_reader_1 = __nccwpck_require__(1593);
-Object.defineProperty(exports, "ReflectionBinaryReader", ({ enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } }));
-var reflection_binary_writer_1 = __nccwpck_require__(7170);
-Object.defineProperty(exports, "ReflectionBinaryWriter", ({ enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } }));
-var reflection_json_reader_1 = __nccwpck_require__(229);
-Object.defineProperty(exports, "ReflectionJsonReader", ({ enumerable: true, get: function () { return reflection_json_reader_1.ReflectionJsonReader; } }));
-var reflection_json_writer_1 = __nccwpck_require__(8980);
-Object.defineProperty(exports, "ReflectionJsonWriter", ({ enumerable: true, get: function () { return reflection_json_writer_1.ReflectionJsonWriter; } }));
-var reflection_contains_message_type_1 = __nccwpck_require__(7317);
-Object.defineProperty(exports, "containsMessageType", ({ enumerable: true, get: function () { return reflection_contains_message_type_1.containsMessageType; } }));
-// Oneof helpers
-var oneof_1 = __nccwpck_require__(8531);
-Object.defineProperty(exports, "isOneofGroup", ({ enumerable: true, get: function () { return oneof_1.isOneofGroup; } }));
-Object.defineProperty(exports, "setOneofValue", ({ enumerable: true, get: function () { return oneof_1.setOneofValue; } }));
-Object.defineProperty(exports, "getOneofValue", ({ enumerable: true, get: function () { return oneof_1.getOneofValue; } }));
-Object.defineProperty(exports, "clearOneofValue", ({ enumerable: true, get: function () { return oneof_1.clearOneofValue; } }));
-Object.defineProperty(exports, "getSelectedOneofValue", ({ enumerable: true, get: function () { return oneof_1.getSelectedOneofValue; } }));
-// Enum object type guard and reflection util, may be interesting to the user.
-var enum_object_1 = __nccwpck_require__(85);
-Object.defineProperty(exports, "listEnumValues", ({ enumerable: true, get: function () { return enum_object_1.listEnumValues; } }));
-Object.defineProperty(exports, "listEnumNames", ({ enumerable: true, get: function () { return enum_object_1.listEnumNames; } }));
-Object.defineProperty(exports, "listEnumNumbers", ({ enumerable: true, get: function () { return enum_object_1.listEnumNumbers; } }));
-Object.defineProperty(exports, "isEnumObject", ({ enumerable: true, get: function () { return enum_object_1.isEnumObject; } }));
-// lowerCamelCase() is exported for plugin, rpc-runtime and other rpc packages
-var lower_camel_case_1 = __nccwpck_require__(4772);
-Object.defineProperty(exports, "lowerCamelCase", ({ enumerable: true, get: function () { return lower_camel_case_1.lowerCamelCase; } }));
-// assertion functions are exported for plugin, may also be useful to user
-var assert_1 = __nccwpck_require__(4253);
-Object.defineProperty(exports, "assert", ({ enumerable: true, get: function () { return assert_1.assert; } }));
-Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return assert_1.assertNever; } }));
-Object.defineProperty(exports, "assertInt32", ({ enumerable: true, get: function () { return assert_1.assertInt32; } }));
-Object.defineProperty(exports, "assertUInt32", ({ enumerable: true, get: function () { return assert_1.assertUInt32; } }));
-Object.defineProperty(exports, "assertFloat32", ({ enumerable: true, get: function () { return assert_1.assertFloat32; } }));
-
-
-/***/ }),
-
-/***/ 8139:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;
-const defaultsWrite = {
- emitDefaultValues: false,
- enumAsInteger: false,
- useProtoFieldName: false,
- prettySpaces: 0,
-}, defaultsRead = {
- ignoreUnknownFields: false,
-};
-/**
- * Make options for reading JSON data from partial options.
- */
-function jsonReadOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
-}
-exports.jsonReadOptions = jsonReadOptions;
-/**
- * Make options for writing JSON data from partial options.
- */
-function jsonWriteOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
-}
-exports.jsonWriteOptions = jsonWriteOptions;
-/**
- * Merges JSON write or read options. Later values override earlier values. Type registries are merged.
- */
-function mergeJsonOptions(a, b) {
- var _a, _b;
- let c = Object.assign(Object.assign({}, a), b);
- c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];
- return c;
-}
-exports.mergeJsonOptions = mergeJsonOptions;
-
-
-/***/ }),
-
-/***/ 661:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.isJsonObject = exports.typeofJsonValue = void 0;
-/**
- * Get the type of a JSON value.
- * Distinguishes between array, null and object.
- */
-function typeofJsonValue(value) {
- let t = typeof value;
- if (t == "object") {
- if (Array.isArray(value))
- return "array";
- if (value === null)
- return "null";
- }
- return t;
-}
-exports.typeofJsonValue = typeofJsonValue;
-/**
- * Is this a JSON object (instead of an array or null)?
- */
-function isJsonObject(value) {
- return value !== null && typeof value == "object" && !Array.isArray(value);
-}
-exports.isJsonObject = isJsonObject;
-
-
-/***/ }),
-
-/***/ 4772:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.lowerCamelCase = void 0;
-/**
- * Converts snake_case to lowerCamelCase.
- *
- * Should behave like protoc:
- * https://github.com/protocolbuffers/protobuf/blob/e8ae137c96444ea313485ed1118c5e43b2099cf1/src/google/protobuf/compiler/java/java_helpers.cc#L118
- */
-function lowerCamelCase(snakeCase) {
- let capNext = false;
- const sb = [];
- for (let i = 0; i < snakeCase.length; i++) {
- let next = snakeCase.charAt(i);
- if (next == '_') {
- capNext = true;
- }
- else if (/\d/.test(next)) {
- sb.push(next);
- capNext = true;
- }
- else if (capNext) {
- sb.push(next.toUpperCase());
- capNext = false;
- }
- else if (i == 0) {
- sb.push(next.toLowerCase());
- }
- else {
- sb.push(next);
- }
- }
- return sb.join('');
-}
-exports.lowerCamelCase = lowerCamelCase;
-
-
-/***/ }),
-
-/***/ 1682:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.MESSAGE_TYPE = void 0;
-/**
- * The symbol used as a key on message objects to store the message type.
- *
- * Note that this is an experimental feature - it is here to stay, but
- * implementation details may change without notice.
- */
-exports.MESSAGE_TYPE = Symbol.for("protobuf-ts/message-type");
-
-
-/***/ }),
-
-/***/ 3664:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.MessageType = void 0;
-const message_type_contract_1 = __nccwpck_require__(1682);
-const reflection_info_1 = __nccwpck_require__(1370);
-const reflection_type_check_1 = __nccwpck_require__(903);
-const reflection_json_reader_1 = __nccwpck_require__(229);
-const reflection_json_writer_1 = __nccwpck_require__(8980);
-const reflection_binary_reader_1 = __nccwpck_require__(1593);
-const reflection_binary_writer_1 = __nccwpck_require__(7170);
-const reflection_create_1 = __nccwpck_require__(390);
-const reflection_merge_partial_1 = __nccwpck_require__(7869);
-const json_typings_1 = __nccwpck_require__(661);
-const json_format_contract_1 = __nccwpck_require__(8139);
-const reflection_equals_1 = __nccwpck_require__(9473);
-const binary_writer_1 = __nccwpck_require__(4354);
-const binary_reader_1 = __nccwpck_require__(5210);
-const baseDescriptors = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));
-/**
- * This standard message type provides reflection-based
- * operations to work with a message.
- */
-class MessageType {
- constructor(name, fields, options) {
- this.defaultCheckDepth = 16;
- this.typeName = name;
- this.fields = fields.map(reflection_info_1.normalizeFieldInfo);
- this.options = options !== null && options !== void 0 ? options : {};
- this.messagePrototype = Object.create(null, Object.assign(Object.assign({}, baseDescriptors), { [message_type_contract_1.MESSAGE_TYPE]: { value: this } }));
- this.refTypeCheck = new reflection_type_check_1.ReflectionTypeCheck(this);
- this.refJsonReader = new reflection_json_reader_1.ReflectionJsonReader(this);
- this.refJsonWriter = new reflection_json_writer_1.ReflectionJsonWriter(this);
- this.refBinReader = new reflection_binary_reader_1.ReflectionBinaryReader(this);
- this.refBinWriter = new reflection_binary_writer_1.ReflectionBinaryWriter(this);
- }
- create(value) {
- let message = reflection_create_1.reflectionCreate(this);
- if (value !== undefined) {
- reflection_merge_partial_1.reflectionMergePartial(this, message, value);
- }
- return message;
- }
- /**
- * Clone the message.
- *
- * Unknown fields are discarded.
- */
- clone(message) {
- let copy = this.create();
- reflection_merge_partial_1.reflectionMergePartial(this, copy, message);
- return copy;
- }
- /**
- * Determines whether two message of the same type have the same field values.
- * Checks for deep equality, traversing repeated fields, oneof groups, maps
- * and messages recursively.
- * Will also return true if both messages are `undefined`.
- */
- equals(a, b) {
- return reflection_equals_1.reflectionEquals(this, a, b);
- }
- /**
- * Is the given value assignable to our message type
- * and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
- */
- is(arg, depth = this.defaultCheckDepth) {
- return this.refTypeCheck.is(arg, depth, false);
- }
- /**
- * Is the given value assignable to our message type,
- * regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
- */
- isAssignable(arg, depth = this.defaultCheckDepth) {
- return this.refTypeCheck.is(arg, depth, true);
- }
- /**
- * Copy partial data into the target message.
- */
- mergePartial(target, source) {
- reflection_merge_partial_1.reflectionMergePartial(this, target, source);
- }
- /**
- * Create a new message from binary format.
- */
- fromBinary(data, options) {
- let opt = binary_reader_1.binaryReadOptions(options);
- return this.internalBinaryRead(opt.readerFactory(data), data.byteLength, opt);
- }
- /**
- * Read a new message from a JSON value.
- */
- fromJson(json, options) {
- return this.internalJsonRead(json, json_format_contract_1.jsonReadOptions(options));
- }
- /**
- * Read a new message from a JSON string.
- * This is equivalent to `T.fromJson(JSON.parse(json))`.
- */
- fromJsonString(json, options) {
- let value = JSON.parse(json);
- return this.fromJson(value, options);
- }
- /**
- * Write the message to canonical JSON value.
- */
- toJson(message, options) {
- return this.internalJsonWrite(message, json_format_contract_1.jsonWriteOptions(options));
- }
- /**
- * Convert the message to canonical JSON string.
- * This is equivalent to `JSON.stringify(T.toJson(t))`
- */
- toJsonString(message, options) {
- var _a;
- let value = this.toJson(message, options);
- return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);
- }
- /**
- * Write the message to binary format.
- */
- toBinary(message, options) {
- let opt = binary_writer_1.binaryWriteOptions(options);
- return this.internalBinaryWrite(message, opt.writerFactory(), opt).finish();
- }
- /**
- * This is an internal method. If you just want to read a message from
- * JSON, use `fromJson()` or `fromJsonString()`.
- *
- * Reads JSON value and merges the fields into the target
- * according to protobuf rules. If the target is omitted,
- * a new instance is created first.
- */
- internalJsonRead(json, options, target) {
- if (json !== null && typeof json == "object" && !Array.isArray(json)) {
- let message = target !== null && target !== void 0 ? target : this.create();
- this.refJsonReader.read(json, message, options);
- return message;
- }
- throw new Error(`Unable to parse message ${this.typeName} from JSON ${json_typings_1.typeofJsonValue(json)}.`);
- }
- /**
- * This is an internal method. If you just want to write a message
- * to JSON, use `toJson()` or `toJsonString().
- *
- * Writes JSON value and returns it.
- */
- internalJsonWrite(message, options) {
- return this.refJsonWriter.write(message, options);
- }
- /**
- * This is an internal method. If you just want to write a message
- * in binary format, use `toBinary()`.
- *
- * Serializes the message in binary format and appends it to the given
- * writer. Returns passed writer.
- */
- internalBinaryWrite(message, writer, options) {
- this.refBinWriter.write(message, writer, options);
- return writer;
- }
- /**
- * This is an internal method. If you just want to read a message from
- * binary data, use `fromBinary()`.
- *
- * Reads data from binary format and merges the fields into
- * the target according to protobuf rules. If the target is
- * omitted, a new instance is created first.
- */
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create();
- this.refBinReader.read(reader, message, options, length);
- return message;
- }
-}
-exports.MessageType = MessageType;
-
-
-/***/ }),
-
-/***/ 8531:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;
-/**
- * Is the given value a valid oneof group?
- *
- * We represent protobuf `oneof` as algebraic data types (ADT) in generated
- * code. But when working with messages of unknown type, the ADT does not
- * help us.
- *
- * This type guard checks if the given object adheres to the ADT rules, which
- * are as follows:
- *
- * 1) Must be an object.
- *
- * 2) Must have a "oneofKind" discriminator property.
- *
- * 3) If "oneofKind" is `undefined`, no member field is selected. The object
- * must not have any other properties.
- *
- * 4) If "oneofKind" is a `string`, the member field with this name is
- * selected.
- *
- * 5) If a member field is selected, the object must have a second property
- * with this name. The property must not be `undefined`.
- *
- * 6) No extra properties are allowed. The object has either one property
- * (no selection) or two properties (selection).
- *
- */
-function isOneofGroup(any) {
- if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {
- return false;
- }
- switch (typeof any.oneofKind) {
- case "string":
- if (any[any.oneofKind] === undefined)
- return false;
- return Object.keys(any).length == 2;
- case "undefined":
- return Object.keys(any).length == 1;
- default:
- return false;
- }
-}
-exports.isOneofGroup = isOneofGroup;
-/**
- * Returns the value of the given field in a oneof group.
- */
-function getOneofValue(oneof, kind) {
- return oneof[kind];
-}
-exports.getOneofValue = getOneofValue;
-function setOneofValue(oneof, kind, value) {
- if (oneof.oneofKind !== undefined) {
- delete oneof[oneof.oneofKind];
- }
- oneof.oneofKind = kind;
- if (value !== undefined) {
- oneof[kind] = value;
- }
-}
-exports.setOneofValue = setOneofValue;
-function setUnknownOneofValue(oneof, kind, value) {
- if (oneof.oneofKind !== undefined) {
- delete oneof[oneof.oneofKind];
- }
- oneof.oneofKind = kind;
- if (value !== undefined && kind !== undefined) {
- oneof[kind] = value;
- }
-}
-exports.setUnknownOneofValue = setUnknownOneofValue;
-/**
- * Removes the selected field in a oneof group.
- *
- * Note that the recommended way to modify a oneof group is to set
- * a new object:
- *
- * ```ts
- * message.result = { oneofKind: undefined };
- * ```
- */
-function clearOneofValue(oneof) {
- if (oneof.oneofKind !== undefined) {
- delete oneof[oneof.oneofKind];
- }
- oneof.oneofKind = undefined;
-}
-exports.clearOneofValue = clearOneofValue;
-/**
- * Returns the selected value of the given oneof group.
- *
- * Not that the recommended way to access a oneof group is to check
- * the "oneofKind" property and let TypeScript narrow down the union
- * type for you:
- *
- * ```ts
- * if (message.result.oneofKind === "error") {
- * message.result.error; // string
- * }
- * ```
- *
- * In the rare case you just need the value, and do not care about
- * which protobuf field is selected, you can use this function
- * for convenience.
- */
-function getSelectedOneofValue(oneof) {
- if (oneof.oneofKind === undefined) {
- return undefined;
- }
- return oneof[oneof.oneofKind];
-}
-exports.getSelectedOneofValue = getSelectedOneofValue;
-
-
-/***/ }),
-
-/***/ 7777:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.PbLong = exports.PbULong = exports.detectBi = void 0;
-const goog_varint_1 = __nccwpck_require__(433);
-let BI;
-function detectBi() {
- const dv = new DataView(new ArrayBuffer(8));
- const ok = globalThis.BigInt !== undefined
- && typeof dv.getBigInt64 === "function"
- && typeof dv.getBigUint64 === "function"
- && typeof dv.setBigInt64 === "function"
- && typeof dv.setBigUint64 === "function";
- BI = ok ? {
- MIN: BigInt("-9223372036854775808"),
- MAX: BigInt("9223372036854775807"),
- UMIN: BigInt("0"),
- UMAX: BigInt("18446744073709551615"),
- C: BigInt,
- V: dv,
- } : undefined;
-}
-exports.detectBi = detectBi;
-detectBi();
-function assertBi(bi) {
- if (!bi)
- throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
-}
-// used to validate from(string) input (when bigint is unavailable)
-const RE_DECIMAL_STR = /^-?[0-9]+$/;
-// constants for binary math
-const TWO_PWR_32_DBL = 0x100000000;
-const HALF_2_PWR_32 = 0x080000000;
-// base class for PbLong and PbULong provides shared code
-class SharedPbLong {
- /**
- * Create a new instance with the given bits.
- */
- constructor(lo, hi) {
- this.lo = lo | 0;
- this.hi = hi | 0;
- }
- /**
- * Is this instance equal to 0?
- */
- isZero() {
- return this.lo == 0 && this.hi == 0;
- }
- /**
- * Convert to a native number.
- */
- toNumber() {
- let result = this.hi * TWO_PWR_32_DBL + (this.lo >>> 0);
- if (!Number.isSafeInteger(result))
- throw new Error("cannot convert to safe number");
- return result;
- }
-}
-/**
- * 64-bit unsigned integer as two 32-bit values.
- * Converts between `string`, `number` and `bigint` representations.
- */
-class PbULong extends SharedPbLong {
- /**
- * Create instance from a `string`, `number` or `bigint`.
- */
- static from(value) {
- if (BI)
- // noinspection FallThroughInSwitchStatementJS
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- if (value == "")
- throw new Error('string is no integer');
- value = BI.C(value);
- case "number":
- if (value === 0)
- return this.ZERO;
- value = BI.C(value);
- case "bigint":
- if (!value)
- return this.ZERO;
- if (value < BI.UMIN)
- throw new Error('signed value for ulong');
- if (value > BI.UMAX)
- throw new Error('ulong too large');
- BI.V.setBigUint64(0, value, true);
- return new PbULong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
- }
- else
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- value = value.trim();
- if (!RE_DECIMAL_STR.test(value))
- throw new Error('string is no integer');
- let [minus, lo, hi] = goog_varint_1.int64fromString(value);
- if (minus)
- throw new Error('signed value for ulong');
- return new PbULong(lo, hi);
- case "number":
- if (value == 0)
- return this.ZERO;
- if (!Number.isSafeInteger(value))
- throw new Error('number is no integer');
- if (value < 0)
- throw new Error('signed value for ulong');
- return new PbULong(value, value / TWO_PWR_32_DBL);
- }
- throw new Error('unknown value ' + typeof value);
- }
- /**
- * Convert to decimal string.
- */
- toString() {
- return BI ? this.toBigInt().toString() : goog_varint_1.int64toString(this.lo, this.hi);
- }
- /**
- * Convert to native bigint.
- */
- toBigInt() {
- assertBi(BI);
- BI.V.setInt32(0, this.lo, true);
- BI.V.setInt32(4, this.hi, true);
- return BI.V.getBigUint64(0, true);
- }
-}
-exports.PbULong = PbULong;
-/**
- * ulong 0 singleton.
- */
-PbULong.ZERO = new PbULong(0, 0);
-/**
- * 64-bit signed integer as two 32-bit values.
- * Converts between `string`, `number` and `bigint` representations.
- */
-class PbLong extends SharedPbLong {
- /**
- * Create instance from a `string`, `number` or `bigint`.
- */
- static from(value) {
- if (BI)
- // noinspection FallThroughInSwitchStatementJS
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- if (value == "")
- throw new Error('string is no integer');
- value = BI.C(value);
- case "number":
- if (value === 0)
- return this.ZERO;
- value = BI.C(value);
- case "bigint":
- if (!value)
- return this.ZERO;
- if (value < BI.MIN)
- throw new Error('signed long too small');
- if (value > BI.MAX)
- throw new Error('signed long too large');
- BI.V.setBigInt64(0, value, true);
- return new PbLong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
- }
- else
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- value = value.trim();
- if (!RE_DECIMAL_STR.test(value))
- throw new Error('string is no integer');
- let [minus, lo, hi] = goog_varint_1.int64fromString(value);
- if (minus) {
- if (hi > HALF_2_PWR_32 || (hi == HALF_2_PWR_32 && lo != 0))
- throw new Error('signed long too small');
- }
- else if (hi >= HALF_2_PWR_32)
- throw new Error('signed long too large');
- let pbl = new PbLong(lo, hi);
- return minus ? pbl.negate() : pbl;
- case "number":
- if (value == 0)
- return this.ZERO;
- if (!Number.isSafeInteger(value))
- throw new Error('number is no integer');
- return value > 0
- ? new PbLong(value, value / TWO_PWR_32_DBL)
- : new PbLong(-value, -value / TWO_PWR_32_DBL).negate();
- }
- throw new Error('unknown value ' + typeof value);
- }
- /**
- * Do we have a minus sign?
- */
- isNegative() {
- return (this.hi & HALF_2_PWR_32) !== 0;
- }
- /**
- * Negate two's complement.
- * Invert all the bits and add one to the result.
- */
- negate() {
- let hi = ~this.hi, lo = this.lo;
- if (lo)
- lo = ~lo + 1;
- else
- hi += 1;
- return new PbLong(lo, hi);
- }
- /**
- * Convert to decimal string.
- */
- toString() {
- if (BI)
- return this.toBigInt().toString();
- if (this.isNegative()) {
- let n = this.negate();
- return '-' + goog_varint_1.int64toString(n.lo, n.hi);
- }
- return goog_varint_1.int64toString(this.lo, this.hi);
- }
- /**
- * Convert to native bigint.
- */
- toBigInt() {
- assertBi(BI);
- BI.V.setInt32(0, this.lo, true);
- BI.V.setInt32(4, this.hi, true);
- return BI.V.getBigInt64(0, true);
- }
-}
-exports.PbLong = PbLong;
-/**
- * long 0 singleton.
- */
-PbLong.ZERO = new PbLong(0, 0);
-
-
-/***/ }),
-
-/***/ 5290:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Copyright (c) 2016, Daniel Wirtz All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// * Neither the name of its author, nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.utf8read = void 0;
-const fromCharCodes = (chunk) => String.fromCharCode.apply(String, chunk);
-/**
- * @deprecated This function will no longer be exported with the next major
- * release, since protobuf-ts has switch to TextDecoder API. If you need this
- * function, please migrate to @protobufjs/utf8. For context, see
- * https://github.com/timostamm/protobuf-ts/issues/184
- *
- * Reads UTF8 bytes as a string.
- *
- * See [protobufjs / utf8](https://github.com/protobufjs/protobuf.js/blob/9893e35b854621cce64af4bf6be2cff4fb892796/lib/utf8/index.js#L40)
- *
- * Copyright (c) 2016, Daniel Wirtz
- */
-function utf8read(bytes) {
- if (bytes.length < 1)
- return "";
- let pos = 0, // position in bytes
- parts = [], chunk = [], i = 0, // char offset
- t; // temporary
- let len = bytes.length;
- while (pos < len) {
- t = bytes[pos++];
- if (t < 128)
- chunk[i++] = t;
- else if (t > 191 && t < 224)
- chunk[i++] = (t & 31) << 6 | bytes[pos++] & 63;
- else if (t > 239 && t < 365) {
- t = ((t & 7) << 18 | (bytes[pos++] & 63) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63) - 0x10000;
- chunk[i++] = 0xD800 + (t >> 10);
- chunk[i++] = 0xDC00 + (t & 1023);
- }
- else
- chunk[i++] = (t & 15) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63;
- if (i > 8191) {
- parts.push(fromCharCodes(chunk));
- i = 0;
- }
- }
- if (parts.length) {
- if (i)
- parts.push(fromCharCodes(chunk.slice(0, i)));
- return parts.join("");
- }
- return fromCharCodes(chunk.slice(0, i));
-}
-exports.utf8read = utf8read;
-
-
-/***/ }),
-
-/***/ 1593:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionBinaryReader = void 0;
-const binary_format_contract_1 = __nccwpck_require__(4921);
-const reflection_info_1 = __nccwpck_require__(1370);
-const reflection_long_convert_1 = __nccwpck_require__(4612);
-const reflection_scalar_default_1 = __nccwpck_require__(4863);
-/**
- * Reads proto3 messages in binary format using reflection information.
- *
- * https://developers.google.com/protocol-buffers/docs/encoding
- */
-class ReflectionBinaryReader {
- constructor(info) {
- this.info = info;
- }
- prepare() {
- var _a;
- if (!this.fieldNoToField) {
- const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
- this.fieldNoToField = new Map(fieldsInput.map(field => [field.no, field]));
- }
- }
- /**
- * Reads a message from binary format into the target message.
- *
- * Repeated fields are appended. Map entries are added, overwriting
- * existing keys.
- *
- * If a message field is already present, it will be merged with the
- * new data.
- */
- read(reader, message, options, length) {
- this.prepare();
- const end = length === undefined ? reader.len : reader.pos + length;
- while (reader.pos < end) {
- // read the tag and find the field
- const [fieldNo, wireType] = reader.tag(), field = this.fieldNoToField.get(fieldNo);
- if (!field) {
- let u = options.readUnknownField;
- if (u == "throw")
- throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.info.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? binary_format_contract_1.UnknownFieldHandler.onRead : u)(this.info.typeName, message, fieldNo, wireType, d);
- continue;
- }
- // target object for the field we are reading
- let target = message, repeated = field.repeat, localName = field.localName;
- // if field is member of oneof ADT, use ADT as target
- if (field.oneof) {
- target = target[field.oneof];
- // if other oneof member selected, set new ADT
- if (target.oneofKind !== localName)
- target = message[field.oneof] = {
- oneofKind: localName
- };
- }
- // we have handled oneof above, we just have read the value into `target[localName]`
- switch (field.kind) {
- case "scalar":
- case "enum":
- let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
- let L = field.kind == "scalar" ? field.L : undefined;
- if (repeated) {
- let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
- if (wireType == binary_format_contract_1.WireType.LengthDelimited && T != reflection_info_1.ScalarType.STRING && T != reflection_info_1.ScalarType.BYTES) {
- let e = reader.uint32() + reader.pos;
- while (reader.pos < e)
- arr.push(this.scalar(reader, T, L));
- }
- else
- arr.push(this.scalar(reader, T, L));
- }
- else
- target[localName] = this.scalar(reader, T, L);
- break;
- case "message":
- if (repeated) {
- let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
- let msg = field.T().internalBinaryRead(reader, reader.uint32(), options);
- arr.push(msg);
- }
- else
- target[localName] = field.T().internalBinaryRead(reader, reader.uint32(), options, target[localName]);
- break;
- case "map":
- let [mapKey, mapVal] = this.mapEntry(field, reader, options);
- // safe to assume presence of map object, oneof cannot contain repeated values
- target[localName][mapKey] = mapVal;
- break;
- }
- }
- }
- /**
- * Read a map field, expecting key field = 1, value field = 2
- */
- mapEntry(field, reader, options) {
- let length = reader.uint32();
- let end = reader.pos + length;
- let key = undefined; // javascript only allows number or string for object properties
- let val = undefined;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case 1:
- if (field.K == reflection_info_1.ScalarType.BOOL)
- key = reader.bool().toString();
- else
- // long types are read as string, number types are okay as number
- key = this.scalar(reader, field.K, reflection_info_1.LongType.STRING);
- break;
- case 2:
- switch (field.V.kind) {
- case "scalar":
- val = this.scalar(reader, field.V.T, field.V.L);
- break;
- case "enum":
- val = reader.int32();
- break;
- case "message":
- val = field.V.T().internalBinaryRead(reader, reader.uint32(), options);
- break;
- }
- break;
- default:
- throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) in map entry for ${this.info.typeName}#${field.name}`);
- }
- }
- if (key === undefined) {
- let keyRaw = reflection_scalar_default_1.reflectionScalarDefault(field.K);
- key = field.K == reflection_info_1.ScalarType.BOOL ? keyRaw.toString() : keyRaw;
- }
- if (val === undefined)
- switch (field.V.kind) {
- case "scalar":
- val = reflection_scalar_default_1.reflectionScalarDefault(field.V.T, field.V.L);
- break;
- case "enum":
- val = 0;
- break;
- case "message":
- val = field.V.T().create();
- break;
- }
- return [key, val];
- }
- scalar(reader, type, longType) {
- switch (type) {
- case reflection_info_1.ScalarType.INT32:
- return reader.int32();
- case reflection_info_1.ScalarType.STRING:
- return reader.string();
- case reflection_info_1.ScalarType.BOOL:
- return reader.bool();
- case reflection_info_1.ScalarType.DOUBLE:
- return reader.double();
- case reflection_info_1.ScalarType.FLOAT:
- return reader.float();
- case reflection_info_1.ScalarType.INT64:
- return reflection_long_convert_1.reflectionLongConvert(reader.int64(), longType);
- case reflection_info_1.ScalarType.UINT64:
- return reflection_long_convert_1.reflectionLongConvert(reader.uint64(), longType);
- case reflection_info_1.ScalarType.FIXED64:
- return reflection_long_convert_1.reflectionLongConvert(reader.fixed64(), longType);
- case reflection_info_1.ScalarType.FIXED32:
- return reader.fixed32();
- case reflection_info_1.ScalarType.BYTES:
- return reader.bytes();
- case reflection_info_1.ScalarType.UINT32:
- return reader.uint32();
- case reflection_info_1.ScalarType.SFIXED32:
- return reader.sfixed32();
- case reflection_info_1.ScalarType.SFIXED64:
- return reflection_long_convert_1.reflectionLongConvert(reader.sfixed64(), longType);
- case reflection_info_1.ScalarType.SINT32:
- return reader.sint32();
- case reflection_info_1.ScalarType.SINT64:
- return reflection_long_convert_1.reflectionLongConvert(reader.sint64(), longType);
- }
- }
-}
-exports.ReflectionBinaryReader = ReflectionBinaryReader;
-
-
-/***/ }),
-
-/***/ 7170:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionBinaryWriter = void 0;
-const binary_format_contract_1 = __nccwpck_require__(4921);
-const reflection_info_1 = __nccwpck_require__(1370);
-const assert_1 = __nccwpck_require__(4253);
-const pb_long_1 = __nccwpck_require__(7777);
-/**
- * Writes proto3 messages in binary format using reflection information.
- *
- * https://developers.google.com/protocol-buffers/docs/encoding
- */
-class ReflectionBinaryWriter {
- constructor(info) {
- this.info = info;
- }
- prepare() {
- if (!this.fields) {
- const fieldsInput = this.info.fields ? this.info.fields.concat() : [];
- this.fields = fieldsInput.sort((a, b) => a.no - b.no);
- }
- }
- /**
- * Writes the message to binary format.
- */
- write(message, writer, options) {
- this.prepare();
- for (const field of this.fields) {
- let value, // this will be our field value, whether it is member of a oneof or not
- emitDefault, // whether we emit the default value (only true for oneof members)
- repeated = field.repeat, localName = field.localName;
- // handle oneof ADT
- if (field.oneof) {
- const group = message[field.oneof];
- if (group.oneofKind !== localName)
- continue; // if field is not selected, skip
- value = group[localName];
- emitDefault = true;
- }
- else {
- value = message[localName];
- emitDefault = false;
- }
- // we have handled oneof above. we just have to honor `emitDefault`.
- switch (field.kind) {
- case "scalar":
- case "enum":
- let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
- if (repeated) {
- assert_1.assert(Array.isArray(value));
- if (repeated == reflection_info_1.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 === undefined)
- assert_1.assert(field.opt);
- else
- this.scalar(writer, T, field.no, value, emitDefault || field.opt);
- break;
- case "message":
- if (repeated) {
- assert_1.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.assert(typeof value == 'object' && value !== null);
- for (const [key, val] of Object.entries(value))
- this.mapEntry(writer, options, field, key, val);
- break;
- }
- }
- let u = options.writeUnknownFields;
- if (u !== false)
- (u === true ? binary_format_contract_1.UnknownFieldHandler.onWrite : u)(this.info.typeName, message, writer);
- }
- mapEntry(writer, options, field, key, value) {
- writer.tag(field.no, binary_format_contract_1.WireType.LengthDelimited);
- writer.fork();
- // javascript only allows number or string for object properties
- // we convert from our representation to the protobuf type
- let keyValue = key;
- switch (field.K) {
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.UINT32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- keyValue = Number.parseInt(key);
- break;
- case reflection_info_1.ScalarType.BOOL:
- assert_1.assert(key == 'true' || key == 'false');
- keyValue = key == 'true';
- break;
- }
- // write key, expecting key field number = 1
- this.scalar(writer, field.K, 1, keyValue, true);
- // write value, expecting value field number = 2
- switch (field.V.kind) {
- case 'scalar':
- this.scalar(writer, field.V.T, 2, value, true);
- break;
- case 'enum':
- this.scalar(writer, reflection_info_1.ScalarType.INT32, 2, value, true);
- break;
- case 'message':
- this.message(writer, options, field.V.T(), 2, value);
- break;
- }
- writer.join();
- }
- message(writer, options, handler, fieldNo, value) {
- if (value === undefined)
- return;
- handler.internalBinaryWrite(value, writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited).fork(), options);
- writer.join();
- }
- /**
- * Write a single scalar value.
- */
- scalar(writer, type, fieldNo, value, emitDefault) {
- let [wireType, method, isDefault] = this.scalarInfo(type, value);
- if (!isDefault || emitDefault) {
- writer.tag(fieldNo, wireType);
- writer[method](value);
- }
- }
- /**
- * Write an array of scalar values in packed format.
- */
- packed(writer, type, fieldNo, value) {
- if (!value.length)
- return;
- assert_1.assert(type !== reflection_info_1.ScalarType.BYTES && type !== reflection_info_1.ScalarType.STRING);
- // write tag
- writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited);
- // begin length-delimited
- writer.fork();
- // write values without tags
- let [, method,] = this.scalarInfo(type);
- for (let i = 0; i < value.length; i++)
- writer[method](value[i]);
- // end length delimited
- writer.join();
- }
- /**
- * Get information for writing a scalar value.
- *
- * Returns tuple:
- * [0]: appropriate WireType
- * [1]: name of the appropriate method of IBinaryWriter
- * [2]: whether the given value is a default value
- *
- * If argument `value` is omitted, [2] is always false.
- */
- scalarInfo(type, value) {
- let t = binary_format_contract_1.WireType.Varint;
- let m;
- let i = value === undefined;
- let d = value === 0;
- switch (type) {
- case reflection_info_1.ScalarType.INT32:
- m = "int32";
- break;
- case reflection_info_1.ScalarType.STRING:
- d = i || !value.length;
- t = binary_format_contract_1.WireType.LengthDelimited;
- m = "string";
- break;
- case reflection_info_1.ScalarType.BOOL:
- d = value === false;
- m = "bool";
- break;
- case reflection_info_1.ScalarType.UINT32:
- m = "uint32";
- break;
- case reflection_info_1.ScalarType.DOUBLE:
- t = binary_format_contract_1.WireType.Bit64;
- m = "double";
- break;
- case reflection_info_1.ScalarType.FLOAT:
- t = binary_format_contract_1.WireType.Bit32;
- m = "float";
- break;
- case reflection_info_1.ScalarType.INT64:
- d = i || pb_long_1.PbLong.from(value).isZero();
- m = "int64";
- break;
- case reflection_info_1.ScalarType.UINT64:
- d = i || pb_long_1.PbULong.from(value).isZero();
- m = "uint64";
- break;
- case reflection_info_1.ScalarType.FIXED64:
- d = i || pb_long_1.PbULong.from(value).isZero();
- t = binary_format_contract_1.WireType.Bit64;
- m = "fixed64";
- break;
- case reflection_info_1.ScalarType.BYTES:
- d = i || !value.byteLength;
- t = binary_format_contract_1.WireType.LengthDelimited;
- m = "bytes";
- break;
- case reflection_info_1.ScalarType.FIXED32:
- t = binary_format_contract_1.WireType.Bit32;
- m = "fixed32";
- break;
- case reflection_info_1.ScalarType.SFIXED32:
- t = binary_format_contract_1.WireType.Bit32;
- m = "sfixed32";
- break;
- case reflection_info_1.ScalarType.SFIXED64:
- d = i || pb_long_1.PbLong.from(value).isZero();
- t = binary_format_contract_1.WireType.Bit64;
- m = "sfixed64";
- break;
- case reflection_info_1.ScalarType.SINT32:
- m = "sint32";
- break;
- case reflection_info_1.ScalarType.SINT64:
- d = i || pb_long_1.PbLong.from(value).isZero();
- m = "sint64";
- break;
- }
- return [t, m, i || d];
- }
-}
-exports.ReflectionBinaryWriter = ReflectionBinaryWriter;
-
-
-/***/ }),
-
-/***/ 7317:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.containsMessageType = void 0;
-const message_type_contract_1 = __nccwpck_require__(1682);
-/**
- * Check if the provided object is a proto message.
- *
- * Note that this is an experimental feature - it is here to stay, but
- * implementation details may change without notice.
- */
-function containsMessageType(msg) {
- return msg[message_type_contract_1.MESSAGE_TYPE] != null;
-}
-exports.containsMessageType = containsMessageType;
-
-
-/***/ }),
-
-/***/ 390:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionCreate = void 0;
-const reflection_scalar_default_1 = __nccwpck_require__(4863);
-const message_type_contract_1 = __nccwpck_require__(1682);
-/**
- * Creates an instance of the generic message, using the field
- * information.
- */
-function reflectionCreate(type) {
- /**
- * This ternary can be removed in the next major version.
- * The `Object.create()` code path utilizes a new `messagePrototype`
- * property on the `IMessageType` which has this same `MESSAGE_TYPE`
- * non-enumerable property on it. Doing it this way means that we only
- * pay the cost of `Object.defineProperty()` once per `IMessageType`
- * class of once per "instance". The falsy code path is only provided
- * for backwards compatibility in cases where the runtime library is
- * updated without also updating the generated code.
- */
- const msg = type.messagePrototype
- ? Object.create(type.messagePrototype)
- : Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: type });
- for (let field of type.fields) {
- let name = field.localName;
- if (field.opt)
- continue;
- if (field.oneof)
- msg[field.oneof] = { oneofKind: undefined };
- else if (field.repeat)
- msg[name] = [];
- else
- switch (field.kind) {
- case "scalar":
- msg[name] = reflection_scalar_default_1.reflectionScalarDefault(field.T, field.L);
- break;
- case "enum":
- // we require 0 to be default value for all enums
- msg[name] = 0;
- break;
- case "map":
- msg[name] = {};
- break;
- }
- }
- return msg;
-}
-exports.reflectionCreate = reflectionCreate;
-
-
-/***/ }),
-
-/***/ 9473:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionEquals = void 0;
-const reflection_info_1 = __nccwpck_require__(1370);
-/**
- * Determines whether two message of the same type have the same field values.
- * Checks for deep equality, traversing repeated fields, oneof groups, maps
- * and messages recursively.
- * Will also return true if both messages are `undefined`.
- */
-function reflectionEquals(info, a, b) {
- if (a === b)
- return true;
- if (!a || !b)
- return false;
- for (let field of info.fields) {
- let localName = field.localName;
- let val_a = field.oneof ? a[field.oneof][localName] : a[localName];
- let val_b = field.oneof ? b[field.oneof][localName] : b[localName];
- switch (field.kind) {
- case "enum":
- case "scalar":
- let t = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
- if (!(field.repeat
- ? repeatedPrimitiveEq(t, val_a, val_b)
- : primitiveEq(t, val_a, val_b)))
- return false;
- break;
- case "map":
- if (!(field.V.kind == "message"
- ? repeatedMsgEq(field.V.T(), objectValues(val_a), objectValues(val_b))
- : repeatedPrimitiveEq(field.V.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.V.T, objectValues(val_a), objectValues(val_b))))
- return false;
- break;
- case "message":
- let T = field.T();
- if (!(field.repeat
- ? repeatedMsgEq(T, val_a, val_b)
- : T.equals(val_a, val_b)))
- return false;
- break;
- }
- }
- return true;
-}
-exports.reflectionEquals = reflectionEquals;
-const objectValues = Object.values;
-function primitiveEq(type, a, b) {
- if (a === b)
- return true;
- if (type !== reflection_info_1.ScalarType.BYTES)
- return false;
- let ba = a;
- let bb = b;
- if (ba.length !== bb.length)
- return false;
- for (let i = 0; i < ba.length; i++)
- if (ba[i] != bb[i])
- return false;
- return true;
-}
-function repeatedPrimitiveEq(type, a, b) {
- if (a.length !== b.length)
- return false;
- for (let i = 0; i < a.length; i++)
- if (!primitiveEq(type, a[i], b[i]))
- return false;
- return true;
-}
-function repeatedMsgEq(type, a, b) {
- if (a.length !== b.length)
- return false;
- for (let i = 0; i < a.length; i++)
- if (!type.equals(a[i], b[i]))
- return false;
- return true;
-}
-
-
-/***/ }),
-
-/***/ 1370:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;
-const lower_camel_case_1 = __nccwpck_require__(4772);
-/**
- * Scalar value types. This is a subset of field types declared by protobuf
- * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE
- * are omitted, but the numerical values are identical.
- */
-var ScalarType;
-(function (ScalarType) {
- // 0 is reserved for errors.
- // Order is weird for historical reasons.
- ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE";
- ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT";
- // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
- // negative values are likely.
- ScalarType[ScalarType["INT64"] = 3] = "INT64";
- ScalarType[ScalarType["UINT64"] = 4] = "UINT64";
- // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
- // negative values are likely.
- ScalarType[ScalarType["INT32"] = 5] = "INT32";
- ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64";
- ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32";
- ScalarType[ScalarType["BOOL"] = 8] = "BOOL";
- ScalarType[ScalarType["STRING"] = 9] = "STRING";
- // Tag-delimited aggregate.
- // Group type is deprecated and not supported in proto3. However, Proto3
- // implementations should still be able to parse the group wire format and
- // treat group fields as unknown fields.
- // TYPE_GROUP = 10,
- // TYPE_MESSAGE = 11, // Length-delimited aggregate.
- // New in version 2.
- ScalarType[ScalarType["BYTES"] = 12] = "BYTES";
- ScalarType[ScalarType["UINT32"] = 13] = "UINT32";
- // TYPE_ENUM = 14,
- ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32";
- ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64";
- ScalarType[ScalarType["SINT32"] = 17] = "SINT32";
- ScalarType[ScalarType["SINT64"] = 18] = "SINT64";
-})(ScalarType = exports.ScalarType || (exports.ScalarType = {}));
-/**
- * JavaScript representation of 64 bit integral types. Equivalent to the
- * field option "jstype".
- *
- * By default, protobuf-ts represents 64 bit types as `bigint`.
- *
- * You can change the default behaviour by enabling the plugin parameter
- * `long_type_string`, which will represent 64 bit types as `string`.
- *
- * Alternatively, you can change the behaviour for individual fields
- * with the field option "jstype":
- *
- * ```protobuf
- * uint64 my_field = 1 [jstype = JS_STRING];
- * uint64 other_field = 2 [jstype = JS_NUMBER];
- * ```
- */
-var LongType;
-(function (LongType) {
- /**
- * Use JavaScript `bigint`.
- *
- * Field option `[jstype = JS_NORMAL]`.
- */
- LongType[LongType["BIGINT"] = 0] = "BIGINT";
- /**
- * Use JavaScript `string`.
- *
- * Field option `[jstype = JS_STRING]`.
- */
- LongType[LongType["STRING"] = 1] = "STRING";
- /**
- * Use JavaScript `number`.
- *
- * Large values will loose precision.
- *
- * Field option `[jstype = JS_NUMBER]`.
- */
- LongType[LongType["NUMBER"] = 2] = "NUMBER";
-})(LongType = exports.LongType || (exports.LongType = {}));
-/**
- * Protobuf 2.1.0 introduced packed repeated fields.
- * Setting the field option `[packed = true]` enables packing.
- *
- * In proto3, all repeated fields are packed by default.
- * Setting the field option `[packed = false]` disables packing.
- *
- * Packed repeated fields are encoded with a single tag,
- * then a length-delimiter, then the element values.
- *
- * Unpacked repeated fields are encoded with a tag and
- * value for each element.
- *
- * `bytes` and `string` cannot be packed.
- */
-var RepeatType;
-(function (RepeatType) {
- /**
- * The field is not repeated.
- */
- RepeatType[RepeatType["NO"] = 0] = "NO";
- /**
- * The field is repeated and should be packed.
- * Invalid for `bytes` and `string`, they cannot be packed.
- */
- RepeatType[RepeatType["PACKED"] = 1] = "PACKED";
- /**
- * The field is repeated but should not be packed.
- * The only valid repeat type for repeated `bytes` and `string`.
- */
- RepeatType[RepeatType["UNPACKED"] = 2] = "UNPACKED";
-})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));
-/**
- * Turns PartialFieldInfo into FieldInfo.
- */
-function normalizeFieldInfo(field) {
- var _a, _b, _c, _d;
- field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name);
- field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name);
- field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO;
- field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : (field.repeat ? false : field.oneof ? false : field.kind == "message");
- return field;
-}
-exports.normalizeFieldInfo = normalizeFieldInfo;
-/**
- * Read custom field options from a generated message type.
- *
- * @deprecated use readFieldOption()
- */
-function readFieldOptions(messageType, fieldName, extensionName, extensionType) {
- var _a;
- const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
- return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
-}
-exports.readFieldOptions = readFieldOptions;
-function readFieldOption(messageType, fieldName, extensionName, extensionType) {
- var _a;
- const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
- if (!options) {
- return undefined;
- }
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readFieldOption = readFieldOption;
-function readMessageOption(messageType, extensionName, extensionType) {
- const options = messageType.options;
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readMessageOption = readMessageOption;
-
-
-/***/ }),
-
-/***/ 229:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionJsonReader = void 0;
-const json_typings_1 = __nccwpck_require__(661);
-const base64_1 = __nccwpck_require__(196);
-const reflection_info_1 = __nccwpck_require__(1370);
-const pb_long_1 = __nccwpck_require__(7777);
-const assert_1 = __nccwpck_require__(4253);
-const reflection_long_convert_1 = __nccwpck_require__(4612);
-/**
- * Reads proto3 messages in canonical JSON format using reflection information.
- *
- * https://developers.google.com/protocol-buffers/docs/proto3#json
- */
-class ReflectionJsonReader {
- constructor(info) {
- this.info = info;
- }
- prepare() {
- var _a;
- if (this.fMap === undefined) {
- this.fMap = {};
- const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
- for (const field of fieldsInput) {
- this.fMap[field.name] = field;
- this.fMap[field.jsonName] = field;
- this.fMap[field.localName] = field;
- }
- }
- }
- // Cannot parse JSON for #.
- assert(condition, fieldName, jsonValue) {
- if (!condition) {
- let what = json_typings_1.typeofJsonValue(jsonValue);
- if (what == "number" || what == "boolean")
- what = jsonValue.toString();
- throw new Error(`Cannot parse JSON ${what} for ${this.info.typeName}#${fieldName}`);
- }
- }
- /**
- * Reads a message from canonical JSON format into the target message.
- *
- * Repeated fields are appended. Map entries are added, overwriting
- * existing keys.
- *
- * If a message field is already present, it will be merged with the
- * new data.
- */
- read(input, message, options) {
- this.prepare();
- const oneofsHandled = [];
- for (const [jsonKey, jsonValue] of Object.entries(input)) {
- const field = this.fMap[jsonKey];
- if (!field) {
- if (!options.ignoreUnknownFields)
- throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${jsonKey}`);
- continue;
- }
- const localName = field.localName;
- // handle oneof ADT
- let target; // this will be the target for the field value, whether it is member of a oneof or not
- if (field.oneof) {
- if (jsonValue === null && (field.kind !== 'enum' || field.T()[0] !== 'google.protobuf.NullValue')) {
- continue;
- }
- // since json objects are unordered by specification, it is not possible to take the last of multiple oneofs
- if (oneofsHandled.includes(field.oneof))
- throw new Error(`Multiple members of the oneof group "${field.oneof}" of ${this.info.typeName} are present in JSON.`);
- oneofsHandled.push(field.oneof);
- target = message[field.oneof] = {
- oneofKind: localName
- };
- }
- else {
- target = message;
- }
- // we have handled oneof above. we just have read the value into `target`.
- if (field.kind == 'map') {
- if (jsonValue === null) {
- continue;
- }
- // check input
- this.assert(json_typings_1.isJsonObject(jsonValue), field.name, jsonValue);
- // our target to put map entries into
- const fieldObj = target[localName];
- // read entries
- for (const [jsonObjKey, jsonObjValue] of Object.entries(jsonValue)) {
- this.assert(jsonObjValue !== null, field.name + " map value", null);
- // read value
- let val;
- switch (field.V.kind) {
- case "message":
- val = field.V.T().internalJsonRead(jsonObjValue, options);
- break;
- case "enum":
- val = this.enum(field.V.T(), jsonObjValue, field.name, options.ignoreUnknownFields);
- if (val === false)
- continue;
- break;
- case "scalar":
- val = this.scalar(jsonObjValue, field.V.T, field.V.L, field.name);
- break;
- }
- this.assert(val !== undefined, field.name + " map value", jsonObjValue);
- // read key
- let key = jsonObjKey;
- if (field.K == reflection_info_1.ScalarType.BOOL)
- key = key == "true" ? true : key == "false" ? false : key;
- key = this.scalar(key, field.K, reflection_info_1.LongType.STRING, field.name).toString();
- fieldObj[key] = val;
- }
- }
- else if (field.repeat) {
- if (jsonValue === null)
- continue;
- // check input
- this.assert(Array.isArray(jsonValue), field.name, jsonValue);
- // our target to put array entries into
- const fieldArr = target[localName];
- // read array entries
- for (const jsonItem of jsonValue) {
- this.assert(jsonItem !== null, field.name, null);
- let val;
- switch (field.kind) {
- case "message":
- val = field.T().internalJsonRead(jsonItem, options);
- break;
- case "enum":
- val = this.enum(field.T(), jsonItem, field.name, options.ignoreUnknownFields);
- if (val === false)
- continue;
- break;
- case "scalar":
- val = this.scalar(jsonItem, field.T, field.L, field.name);
- break;
- }
- this.assert(val !== undefined, field.name, jsonValue);
- fieldArr.push(val);
- }
- }
- else {
- switch (field.kind) {
- case "message":
- if (jsonValue === null && field.T().typeName != 'google.protobuf.Value') {
- this.assert(field.oneof === undefined, field.name + " (oneof member)", null);
- continue;
- }
- target[localName] = field.T().internalJsonRead(jsonValue, options, target[localName]);
- break;
- case "enum":
- let val = this.enum(field.T(), jsonValue, field.name, options.ignoreUnknownFields);
- if (val === false)
- continue;
- target[localName] = val;
- break;
- case "scalar":
- target[localName] = this.scalar(jsonValue, field.T, field.L, field.name);
- break;
- }
- }
- }
- }
- /**
- * Returns `false` for unrecognized string representations.
- *
- * google.protobuf.NullValue accepts only JSON `null` (or the old `"NULL_VALUE"`).
- */
- enum(type, json, fieldName, ignoreUnknownFields) {
- if (type[0] == 'google.protobuf.NullValue')
- assert_1.assert(json === null || json === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`);
- if (json === null)
- // we require 0 to be default value for all enums
- return 0;
- switch (typeof json) {
- case "number":
- assert_1.assert(Number.isInteger(json), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json}.`);
- return json;
- case "string":
- let localEnumName = json;
- if (type[2] && json.substring(0, type[2].length) === type[2])
- // lookup without the shared prefix
- localEnumName = json.substring(type[2].length);
- let enumNumber = type[1][localEnumName];
- if (typeof enumNumber === 'undefined' && ignoreUnknownFields) {
- return false;
- }
- assert_1.assert(typeof enumNumber == "number", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for "${json}".`);
- return enumNumber;
- }
- assert_1.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json}".`);
- }
- scalar(json, type, longType, fieldName) {
- let e;
- try {
- switch (type) {
- // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
- // Either numbers or strings are accepted. Exponent notation is also accepted.
- case reflection_info_1.ScalarType.DOUBLE:
- case reflection_info_1.ScalarType.FLOAT:
- if (json === null)
- return .0;
- if (json === "NaN")
- return Number.NaN;
- if (json === "Infinity")
- return Number.POSITIVE_INFINITY;
- if (json === "-Infinity")
- return Number.NEGATIVE_INFINITY;
- if (json === "") {
- e = "empty string";
- break;
- }
- if (typeof json == "string" && json.trim().length !== json.length) {
- e = "extra whitespace";
- break;
- }
- if (typeof json != "string" && typeof json != "number") {
- break;
- }
- let float = Number(json);
- if (Number.isNaN(float)) {
- e = "not a number";
- break;
- }
- if (!Number.isFinite(float)) {
- // infinity and -infinity are handled by string representation above, so this is an error
- e = "too large or small";
- break;
- }
- if (type == reflection_info_1.ScalarType.FLOAT)
- assert_1.assertFloat32(float);
- return float;
- // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- case reflection_info_1.ScalarType.UINT32:
- if (json === null)
- return 0;
- let int32;
- if (typeof json == "number")
- int32 = json;
- else if (json === "")
- e = "empty string";
- else if (typeof json == "string") {
- if (json.trim().length !== json.length)
- e = "extra whitespace";
- else
- int32 = Number(json);
- }
- if (int32 === undefined)
- break;
- if (type == reflection_info_1.ScalarType.UINT32)
- assert_1.assertUInt32(int32);
- else
- assert_1.assertInt32(int32);
- return int32;
- // int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- if (json === null)
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);
- if (typeof json != "number" && typeof json != "string")
- break;
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.from(json), longType);
- case reflection_info_1.ScalarType.FIXED64:
- case reflection_info_1.ScalarType.UINT64:
- if (json === null)
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);
- if (typeof json != "number" && typeof json != "string")
- break;
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.from(json), longType);
- // bool:
- case reflection_info_1.ScalarType.BOOL:
- if (json === null)
- return false;
- if (typeof json !== "boolean")
- break;
- return json;
- // string:
- case reflection_info_1.ScalarType.STRING:
- if (json === null)
- return "";
- if (typeof json !== "string") {
- e = "extra whitespace";
- break;
- }
- try {
- encodeURIComponent(json);
- }
- catch (e) {
- e = "invalid UTF8";
- break;
- }
- return json;
- // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
- // Either standard or URL-safe base64 encoding with/without paddings are accepted.
- case reflection_info_1.ScalarType.BYTES:
- if (json === null || json === "")
- return new Uint8Array(0);
- if (typeof json !== 'string')
- break;
- return base64_1.base64decode(json);
- }
- }
- catch (error) {
- e = error.message;
- }
- this.assert(false, fieldName + (e ? " - " + e : ""), json);
- }
-}
-exports.ReflectionJsonReader = ReflectionJsonReader;
-
-
-/***/ }),
-
-/***/ 8980:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionJsonWriter = void 0;
-const base64_1 = __nccwpck_require__(196);
-const pb_long_1 = __nccwpck_require__(7777);
-const reflection_info_1 = __nccwpck_require__(1370);
-const assert_1 = __nccwpck_require__(4253);
-/**
- * Writes proto3 messages in canonical JSON format using reflection
- * information.
- *
- * https://developers.google.com/protocol-buffers/docs/proto3#json
- */
-class ReflectionJsonWriter {
- constructor(info) {
- var _a;
- this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];
- }
- /**
- * Converts the message to a JSON object, based on the field descriptors.
- */
- write(message, options) {
- const json = {}, source = message;
- for (const field of this.fields) {
- // field is not part of a oneof, simply write as is
- if (!field.oneof) {
- let jsonValue = this.field(field, source[field.localName], options);
- if (jsonValue !== undefined)
- json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;
- continue;
- }
- // field is part of a oneof
- const group = source[field.oneof];
- if (group.oneofKind !== field.localName)
- continue; // not selected, skip
- 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.assert(jsonValue !== undefined);
- json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;
- }
- return json;
- }
- field(field, value, options) {
- let jsonValue = undefined;
- if (field.kind == 'map') {
- assert_1.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.assert(val !== undefined);
- jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
- }
- break;
- case "message":
- const messageType = field.V.T();
- for (const [entryKey, entryValue] of Object.entries(value)) {
- const val = this.message(messageType, entryValue, field.name, options);
- assert_1.assert(val !== undefined);
- jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
- }
- break;
- case "enum":
- const enumInfo = field.V.T();
- for (const [entryKey, entryValue] of Object.entries(value)) {
- assert_1.assert(entryValue === undefined || typeof entryValue == 'number');
- const val = this.enum(enumInfo, entryValue, field.name, false, true, options.enumAsInteger);
- assert_1.assert(val !== undefined);
- jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
- }
- break;
- }
- if (options.emitDefaultValues || Object.keys(jsonObj).length > 0)
- jsonValue = jsonObj;
- }
- else if (field.repeat) {
- assert_1.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.assert(val !== undefined);
- jsonArr.push(val);
- }
- break;
- case "enum":
- const enumInfo = field.T();
- for (let i = 0; i < value.length; i++) {
- assert_1.assert(value[i] === undefined || typeof value[i] == 'number');
- const val = this.enum(enumInfo, value[i], field.name, field.opt, true, options.enumAsInteger);
- assert_1.assert(val !== undefined);
- jsonArr.push(val);
- }
- break;
- case "message":
- const messageType = field.T();
- for (let i = 0; i < value.length; i++) {
- const val = this.message(messageType, value[i], field.name, options);
- assert_1.assert(val !== undefined);
- jsonArr.push(val);
- }
- break;
- }
- // add converted array to json output
- if (options.emitDefaultValues || jsonArr.length > 0 || options.emitDefaultValues)
- jsonValue = jsonArr;
- }
- else {
- switch (field.kind) {
- case "scalar":
- jsonValue = this.scalar(field.T, value, field.name, field.opt, options.emitDefaultValues);
- break;
- case "enum":
- jsonValue = this.enum(field.T(), value, field.name, field.opt, options.emitDefaultValues, options.enumAsInteger);
- break;
- case "message":
- jsonValue = this.message(field.T(), value, field.name, options);
- break;
- }
- }
- return jsonValue;
- }
- /**
- * Returns `null` as the default for google.protobuf.NullValue.
- */
- enum(type, value, fieldName, optional, emitDefaultValues, enumAsInteger) {
- if (type[0] == 'google.protobuf.NullValue')
- return !emitDefaultValues && !optional ? undefined : null;
- if (value === undefined) {
- assert_1.assert(optional);
- return undefined;
- }
- if (value === 0 && !emitDefaultValues && !optional)
- // we require 0 to be default value for all enums
- return undefined;
- assert_1.assert(typeof value == 'number');
- assert_1.assert(Number.isInteger(value));
- if (enumAsInteger || !type[1].hasOwnProperty(value))
- // if we don't now the enum value, just return the number
- return value;
- if (type[2])
- // restore the dropped prefix
- return type[2] + type[1][value];
- return type[1][value];
- }
- message(type, value, fieldName, options) {
- if (value === undefined)
- return options.emitDefaultValues ? null : undefined;
- return type.internalJsonWrite(value, options);
- }
- scalar(type, value, fieldName, optional, emitDefaultValues) {
- if (value === undefined) {
- assert_1.assert(optional);
- return undefined;
- }
- const ed = emitDefaultValues || optional;
- // noinspection FallThroughInSwitchStatementJS
- switch (type) {
- // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- if (value === 0)
- return ed ? 0 : undefined;
- assert_1.assertInt32(value);
- return value;
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.UINT32:
- if (value === 0)
- return ed ? 0 : undefined;
- assert_1.assertUInt32(value);
- return value;
- // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
- // Either numbers or strings are accepted. Exponent notation is also accepted.
- case reflection_info_1.ScalarType.FLOAT:
- assert_1.assertFloat32(value);
- case reflection_info_1.ScalarType.DOUBLE:
- if (value === 0)
- return ed ? 0 : undefined;
- assert_1.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;
- // string:
- case reflection_info_1.ScalarType.STRING:
- if (value === "")
- return ed ? '' : undefined;
- assert_1.assert(typeof value == 'string');
- return value;
- // bool:
- case reflection_info_1.ScalarType.BOOL:
- if (value === false)
- return ed ? false : undefined;
- assert_1.assert(typeof value == 'boolean');
- return value;
- // JSON value will be a decimal string. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.UINT64:
- case reflection_info_1.ScalarType.FIXED64:
- assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');
- let ulong = pb_long_1.PbULong.from(value);
- if (ulong.isZero() && !ed)
- return undefined;
- return ulong.toString();
- // JSON value will be a decimal string. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');
- let long = pb_long_1.PbLong.from(value);
- if (long.isZero() && !ed)
- return undefined;
- return long.toString();
- // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
- // Either standard or URL-safe base64 encoding with/without paddings are accepted.
- case reflection_info_1.ScalarType.BYTES:
- assert_1.assert(value instanceof Uint8Array);
- if (!value.byteLength)
- return ed ? "" : undefined;
- return base64_1.base64encode(value);
- }
- }
-}
-exports.ReflectionJsonWriter = ReflectionJsonWriter;
-
-
-/***/ }),
-
-/***/ 4612:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionLongConvert = void 0;
-const reflection_info_1 = __nccwpck_require__(1370);
-/**
- * Utility method to convert a PbLong or PbUlong to a JavaScript
- * representation during runtime.
- *
- * Works with generated field information, `undefined` is equivalent
- * to `STRING`.
- */
-function reflectionLongConvert(long, type) {
- switch (type) {
- case reflection_info_1.LongType.BIGINT:
- return long.toBigInt();
- case reflection_info_1.LongType.NUMBER:
- return long.toNumber();
- default:
- // case undefined:
- // case LongType.STRING:
- return long.toString();
- }
-}
-exports.reflectionLongConvert = reflectionLongConvert;
-
-
-/***/ }),
-
-/***/ 7869:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionMergePartial = void 0;
-/**
- * Copy partial data into the target message.
- *
- * If a singular scalar or enum field is present in the source, it
- * replaces the field in the target.
- *
- * If a singular message field is present in the source, it is merged
- * with the target field by calling mergePartial() of the responsible
- * message type.
- *
- * If a repeated field is present in the source, its values replace
- * all values in the target array, removing extraneous values.
- * Repeated message fields are copied, not merged.
- *
- * If a map field is present in the source, entries are added to the
- * target map, replacing entries with the same key. Entries that only
- * exist in the target remain. Entries with message values are copied,
- * not merged.
- *
- * Note that this function differs from protobuf merge semantics,
- * which appends repeated fields.
- */
-function reflectionMergePartial(info, target, source) {
- let fieldValue, // the field value we are working with
- input = source, output; // where we want our field value to go
- for (let field of info.fields) {
- let name = field.localName;
- if (field.oneof) {
- const group = input[field.oneof]; // this is the oneof`s group in the source
- if ((group === null || group === void 0 ? void 0 : group.oneofKind) == undefined) { // the user is free to omit
- continue; // we skip this field, and all other members too
- }
- fieldValue = group[name]; // our value comes from the the oneof group of the source
- output = target[field.oneof]; // and our output is the oneof group of the target
- output.oneofKind = group.oneofKind; // always update discriminator
- if (fieldValue == undefined) {
- delete output[name]; // remove any existing value
- continue; // skip further work on field
- }
- }
- else {
- fieldValue = input[name]; // we are using the source directly
- output = target; // we want our field value to go directly into the target
- if (fieldValue == undefined) {
- continue; // skip further work on field, existing value is used as is
- }
- }
- if (field.repeat)
- output[name].length = fieldValue.length; // resize target array to match source array
- // now we just work with `fieldValue` and `output` to merge the value
- switch (field.kind) {
- case "scalar":
- case "enum":
- if (field.repeat)
- for (let i = 0; i < fieldValue.length; i++)
- output[name][i] = fieldValue[i]; // not a reference type
- else
- output[name] = fieldValue; // not a reference type
- break;
- case "message":
- let T = field.T();
- if (field.repeat)
- for (let i = 0; i < fieldValue.length; i++)
- output[name][i] = T.create(fieldValue[i]);
- else if (output[name] === undefined)
- output[name] = T.create(fieldValue); // nothing to merge with
- else
- T.mergePartial(output[name], fieldValue);
- break;
- case "map":
- // Map and repeated fields are simply overwritten, not appended or merged
- switch (field.V.kind) {
- case "scalar":
- case "enum":
- Object.assign(output[name], fieldValue); // elements are not reference types
- break;
- case "message":
- let T = field.V.T();
- for (let k of Object.keys(fieldValue))
- output[name][k] = T.create(fieldValue[k]);
- break;
- }
- break;
- }
- }
-}
-exports.reflectionMergePartial = reflectionMergePartial;
-
-
-/***/ }),
-
-/***/ 4863:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionScalarDefault = void 0;
-const reflection_info_1 = __nccwpck_require__(1370);
-const reflection_long_convert_1 = __nccwpck_require__(4612);
-const pb_long_1 = __nccwpck_require__(7777);
-/**
- * Creates the default value for a scalar type.
- */
-function reflectionScalarDefault(type, longType = reflection_info_1.LongType.STRING) {
- switch (type) {
- case reflection_info_1.ScalarType.BOOL:
- return false;
- case reflection_info_1.ScalarType.UINT64:
- case reflection_info_1.ScalarType.FIXED64:
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);
- case reflection_info_1.ScalarType.DOUBLE:
- case reflection_info_1.ScalarType.FLOAT:
- return 0.0;
- case reflection_info_1.ScalarType.BYTES:
- return new Uint8Array(0);
- case reflection_info_1.ScalarType.STRING:
- return "";
- default:
- // case ScalarType.INT32:
- // case ScalarType.UINT32:
- // case ScalarType.SINT32:
- // case ScalarType.FIXED32:
- // case ScalarType.SFIXED32:
- return 0;
- }
-}
-exports.reflectionScalarDefault = reflectionScalarDefault;
-
-
-/***/ }),
-
-/***/ 903:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionTypeCheck = void 0;
-const reflection_info_1 = __nccwpck_require__(1370);
-const oneof_1 = __nccwpck_require__(8531);
-// noinspection JSMethodCanBeStatic
-class ReflectionTypeCheck {
- constructor(info) {
- var _a;
- this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];
- }
- prepare() {
- if (this.data)
- return;
- const req = [], known = [], oneofs = [];
- for (let field of this.fields) {
- if (field.oneof) {
- if (!oneofs.includes(field.oneof)) {
- oneofs.push(field.oneof);
- req.push(field.oneof);
- known.push(field.oneof);
- }
- }
- else {
- known.push(field.localName);
- switch (field.kind) {
- case "scalar":
- case "enum":
- if (!field.opt || field.repeat)
- req.push(field.localName);
- break;
- case "message":
- if (field.repeat)
- req.push(field.localName);
- break;
- case "map":
- req.push(field.localName);
- break;
- }
- }
- }
- this.data = { req, known, oneofs: Object.values(oneofs) };
- }
- /**
- * Is the argument a valid message as specified by the
- * reflection information?
- *
- * Checks all field types recursively. The `depth`
- * specifies how deep into the structure the check will be.
- *
- * With a depth of 0, only the presence of fields
- * is checked.
- *
- * With a depth of 1 or more, the field types are checked.
- *
- * With a depth of 2 or more, the members of map, repeated
- * and message fields are checked.
- *
- * Message fields will be checked recursively with depth - 1.
- *
- * The number of map entries / repeated values being checked
- * is < depth.
- */
- is(message, depth, allowExcessProperties = false) {
- if (depth < 0)
- return true;
- if (message === null || message === undefined || typeof message != 'object')
- return false;
- this.prepare();
- let keys = Object.keys(message), data = this.data;
- // if a required field is missing in arg, this cannot be a T
- if (keys.length < data.req.length || data.req.some(n => !keys.includes(n)))
- return false;
- if (!allowExcessProperties) {
- // if the arg contains a key we dont know, this is not a literal T
- if (keys.some(k => !data.known.includes(k)))
- return false;
- }
- // "With a depth of 0, only the presence and absence of fields is checked."
- // "With a depth of 1 or more, the field types are checked."
- if (depth < 1) {
- return true;
- }
- // check oneof group
- for (const name of data.oneofs) {
- const group = message[name];
- if (!oneof_1.isOneofGroup(group))
- return false;
- if (group.oneofKind === undefined)
- continue;
- const field = this.fields.find(f => f.localName === group.oneofKind);
- if (!field)
- return false; // we found no field, but have a kind, something is wrong
- if (!this.field(group[group.oneofKind], field, allowExcessProperties, depth))
- return false;
- }
- // check types
- for (const field of this.fields) {
- if (field.oneof !== undefined)
- continue;
- if (!this.field(message[field.localName], field, allowExcessProperties, depth))
- return false;
- }
- return true;
- }
- field(arg, field, allowExcessProperties, depth) {
- let repeated = field.repeat;
- switch (field.kind) {
- case "scalar":
- if (arg === undefined)
- return field.opt;
- if (repeated)
- return this.scalars(arg, field.T, depth, field.L);
- return this.scalar(arg, field.T, field.L);
- case "enum":
- if (arg === undefined)
- return field.opt;
- if (repeated)
- return this.scalars(arg, reflection_info_1.ScalarType.INT32, depth);
- return this.scalar(arg, reflection_info_1.ScalarType.INT32);
- case "message":
- if (arg === undefined)
- return true;
- if (repeated)
- return this.messages(arg, field.T(), allowExcessProperties, depth);
- return this.message(arg, field.T(), allowExcessProperties, depth);
- case "map":
- if (typeof arg != 'object' || arg === null)
- return false;
- if (depth < 2)
- return true;
- if (!this.mapKeys(arg, field.K, depth))
- return false;
- switch (field.V.kind) {
- case "scalar":
- return this.scalars(Object.values(arg), field.V.T, depth, field.V.L);
- case "enum":
- return this.scalars(Object.values(arg), reflection_info_1.ScalarType.INT32, depth);
- case "message":
- return this.messages(Object.values(arg), field.V.T(), allowExcessProperties, depth);
- }
- break;
- }
- return true;
- }
- message(arg, type, allowExcessProperties, depth) {
- if (allowExcessProperties) {
- return type.isAssignable(arg, depth);
- }
- return type.is(arg, depth);
- }
- messages(arg, type, allowExcessProperties, depth) {
- if (!Array.isArray(arg))
- return false;
- if (depth < 2)
- return true;
- if (allowExcessProperties) {
- for (let i = 0; i < arg.length && i < depth; i++)
- if (!type.isAssignable(arg[i], depth - 1))
- return false;
- }
- else {
- for (let i = 0; i < arg.length && i < depth; i++)
- if (!type.is(arg[i], depth - 1))
- return false;
- }
- return true;
- }
- scalar(arg, type, longType) {
- let argType = typeof arg;
- switch (type) {
- case reflection_info_1.ScalarType.UINT64:
- case reflection_info_1.ScalarType.FIXED64:
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- switch (longType) {
- case reflection_info_1.LongType.BIGINT:
- return argType == "bigint";
- case reflection_info_1.LongType.NUMBER:
- return argType == "number" && !isNaN(arg);
- default:
- return argType == "string";
- }
- case reflection_info_1.ScalarType.BOOL:
- return argType == 'boolean';
- case reflection_info_1.ScalarType.STRING:
- return argType == 'string';
- case reflection_info_1.ScalarType.BYTES:
- return arg instanceof Uint8Array;
- case reflection_info_1.ScalarType.DOUBLE:
- case reflection_info_1.ScalarType.FLOAT:
- return argType == 'number' && !isNaN(arg);
- default:
- // case ScalarType.UINT32:
- // case ScalarType.FIXED32:
- // case ScalarType.INT32:
- // case ScalarType.SINT32:
- // case ScalarType.SFIXED32:
- return argType == 'number' && Number.isInteger(arg);
- }
- }
- scalars(arg, type, depth, longType) {
- if (!Array.isArray(arg))
- return false;
- if (depth < 2)
- return true;
- if (Array.isArray(arg))
- for (let i = 0; i < arg.length && i < depth; i++)
- if (!this.scalar(arg[i], type, longType))
- return false;
- return true;
- }
- mapKeys(map, type, depth) {
- let keys = Object.keys(map);
- switch (type) {
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- case reflection_info_1.ScalarType.UINT32:
- return this.scalars(keys.slice(0, depth).map(k => parseInt(k)), type, depth);
- case reflection_info_1.ScalarType.BOOL:
- return this.scalars(keys.slice(0, depth).map(k => k == 'true' ? true : k == 'false' ? false : k), type, depth);
- default:
- return this.scalars(keys, type, depth, reflection_info_1.LongType.STRING);
- }
- }
-}
-exports.ReflectionTypeCheck = ReflectionTypeCheck;
-
-
/***/ }),
/***/ 6284:
@@ -58956,599 +52315,6 @@ class Deprecation extends Error {
exports.Deprecation = Deprecation;
-/***/ }),
-
-/***/ 4365:
-/***/ ((module) => {
-
-"use strict";
-
-
-function _process (v, mod) {
- var i
- var r
-
- if (typeof mod === 'function') {
- r = mod(v)
- if (r !== undefined) {
- v = r
- }
- } else if (Array.isArray(mod)) {
- for (i = 0; i < mod.length; i++) {
- r = mod[i](v)
- if (r !== undefined) {
- v = r
- }
- }
- }
-
- return v
-}
-
-function parseKey (key, val) {
- // detect negative index notation
- if (key[0] === '-' && Array.isArray(val) && /^-\d+$/.test(key)) {
- return val.length + parseInt(key, 10)
- }
- return key
-}
-
-function isIndex (k) {
- return /^\d+$/.test(k)
-}
-
-function isObject (val) {
- return Object.prototype.toString.call(val) === '[object Object]'
-}
-
-function isArrayOrObject (val) {
- return Object(val) === val
-}
-
-function isEmptyObject (val) {
- return Object.keys(val).length === 0
-}
-
-var blacklist = ['__proto__', 'prototype', 'constructor']
-var blacklistFilter = function (part) { return blacklist.indexOf(part) === -1 }
-
-function parsePath (path, sep) {
- if (path.indexOf('[') >= 0) {
- path = path.replace(/\[/g, sep).replace(/]/g, '')
- }
-
- var parts = path.split(sep)
-
- var check = parts.filter(blacklistFilter)
-
- if (check.length !== parts.length) {
- throw Error('Refusing to update blacklisted property ' + path)
- }
-
- return parts
-}
-
-var hasOwnProperty = Object.prototype.hasOwnProperty
-
-function DotObject (separator, override, useArray, useBrackets) {
- if (!(this instanceof DotObject)) {
- return new DotObject(separator, override, useArray, useBrackets)
- }
-
- if (typeof override === 'undefined') override = false
- if (typeof useArray === 'undefined') useArray = true
- if (typeof useBrackets === 'undefined') useBrackets = true
- this.separator = separator || '.'
- this.override = override
- this.useArray = useArray
- this.useBrackets = useBrackets
- this.keepArray = false
-
- // contains touched arrays
- this.cleanup = []
-}
-
-var dotDefault = new DotObject('.', false, true, true)
-function wrap (method) {
- return function () {
- return dotDefault[method].apply(dotDefault, arguments)
- }
-}
-
-DotObject.prototype._fill = function (a, obj, v, mod) {
- var k = a.shift()
-
- if (a.length > 0) {
- obj[k] = obj[k] || (this.useArray && isIndex(a[0]) ? [] : {})
-
- if (!isArrayOrObject(obj[k])) {
- if (this.override) {
- obj[k] = {}
- } else {
- if (!(isArrayOrObject(v) && isEmptyObject(v))) {
- throw new Error(
- 'Trying to redefine `' + k + '` which is a ' + typeof obj[k]
- )
- }
-
- return
- }
- }
-
- this._fill(a, obj[k], v, mod)
- } else {
- if (!this.override && isArrayOrObject(obj[k]) && !isEmptyObject(obj[k])) {
- if (!(isArrayOrObject(v) && isEmptyObject(v))) {
- throw new Error("Trying to redefine non-empty obj['" + k + "']")
- }
-
- return
- }
-
- obj[k] = _process(v, mod)
- }
-}
-
-/**
- *
- * Converts an object with dotted-key/value pairs to it's expanded version
- *
- * Optionally transformed by a set of modifiers.
- *
- * Usage:
- *
- * var row = {
- * 'nr': 200,
- * 'doc.name': ' My Document '
- * }
- *
- * var mods = {
- * 'doc.name': [_s.trim, _s.underscored]
- * }
- *
- * dot.object(row, mods)
- *
- * @param {Object} obj
- * @param {Object} mods
- */
-DotObject.prototype.object = function (obj, mods) {
- var self = this
-
- Object.keys(obj).forEach(function (k) {
- var mod = mods === undefined ? null : mods[k]
- // normalize array notation.
- var ok = parsePath(k, self.separator).join(self.separator)
-
- if (ok.indexOf(self.separator) !== -1) {
- self._fill(ok.split(self.separator), obj, obj[k], mod)
- delete obj[k]
- } else {
- obj[k] = _process(obj[k], mod)
- }
- })
-
- return obj
-}
-
-/**
- * @param {String} path dotted path
- * @param {String} v value to be set
- * @param {Object} obj object to be modified
- * @param {Function|Array} mod optional modifier
- */
-DotObject.prototype.str = function (path, v, obj, mod) {
- var ok = parsePath(path, this.separator).join(this.separator)
-
- if (path.indexOf(this.separator) !== -1) {
- this._fill(ok.split(this.separator), obj, v, mod)
- } else {
- obj[path] = _process(v, mod)
- }
-
- return obj
-}
-
-/**
- *
- * Pick a value from an object using dot notation.
- *
- * Optionally remove the value
- *
- * @param {String} path
- * @param {Object} obj
- * @param {Boolean} remove
- */
-DotObject.prototype.pick = function (path, obj, remove, reindexArray) {
- var i
- var keys
- var val
- var key
- var cp
-
- keys = parsePath(path, this.separator)
- for (i = 0; i < keys.length; i++) {
- key = parseKey(keys[i], obj)
- if (obj && typeof obj === 'object' && key in obj) {
- if (i === keys.length - 1) {
- if (remove) {
- val = obj[key]
- if (reindexArray && Array.isArray(obj)) {
- obj.splice(key, 1)
- } else {
- delete obj[key]
- }
- if (Array.isArray(obj)) {
- cp = keys.slice(0, -1).join('.')
- if (this.cleanup.indexOf(cp) === -1) {
- this.cleanup.push(cp)
- }
- }
- return val
- } else {
- return obj[key]
- }
- } else {
- obj = obj[key]
- }
- } else {
- return undefined
- }
- }
- if (remove && Array.isArray(obj)) {
- obj = obj.filter(function (n) {
- return n !== undefined
- })
- }
- return obj
-}
-/**
- *
- * Delete value from an object using dot notation.
- *
- * @param {String} path
- * @param {Object} obj
- * @return {any} The removed value
- */
-DotObject.prototype.delete = function (path, obj) {
- return this.remove(path, obj, true)
-}
-
-/**
- *
- * Remove value from an object using dot notation.
- *
- * Will remove multiple items if path is an array.
- * In this case array indexes will be retained until all
- * removals have been processed.
- *
- * Use dot.delete() to automatically re-index arrays.
- *
- * @param {String|Array} path
- * @param {Object} obj
- * @param {Boolean} reindexArray
- * @return {any} The removed value
- */
-DotObject.prototype.remove = function (path, obj, reindexArray) {
- var i
-
- this.cleanup = []
- if (Array.isArray(path)) {
- for (i = 0; i < path.length; i++) {
- this.pick(path[i], obj, true, reindexArray)
- }
- if (!reindexArray) {
- this._cleanup(obj)
- }
- return obj
- } else {
- return this.pick(path, obj, true, reindexArray)
- }
-}
-
-DotObject.prototype._cleanup = function (obj) {
- var ret
- var i
- var keys
- var root
- if (this.cleanup.length) {
- for (i = 0; i < this.cleanup.length; i++) {
- keys = this.cleanup[i].split('.')
- root = keys.splice(0, -1).join('.')
- ret = root ? this.pick(root, obj) : obj
- ret = ret[keys[0]].filter(function (v) {
- return v !== undefined
- })
- this.set(this.cleanup[i], ret, obj)
- }
- this.cleanup = []
- }
-}
-
-/**
- * Alias method for `dot.remove`
- *
- * Note: this is not an alias for dot.delete()
- *
- * @param {String|Array} path
- * @param {Object} obj
- * @param {Boolean} reindexArray
- * @return {any} The removed value
- */
-DotObject.prototype.del = DotObject.prototype.remove
-
-/**
- *
- * Move a property from one place to the other.
- *
- * If the source path does not exist (undefined)
- * the target property will not be set.
- *
- * @param {String} source
- * @param {String} target
- * @param {Object} obj
- * @param {Function|Array} mods
- * @param {Boolean} merge
- */
-DotObject.prototype.move = function (source, target, obj, mods, merge) {
- if (typeof mods === 'function' || Array.isArray(mods)) {
- this.set(target, _process(this.pick(source, obj, true), mods), obj, merge)
- } else {
- merge = mods
- this.set(target, this.pick(source, obj, true), obj, merge)
- }
-
- return obj
-}
-
-/**
- *
- * Transfer a property from one object to another object.
- *
- * If the source path does not exist (undefined)
- * the property on the other object will not be set.
- *
- * @param {String} source
- * @param {String} target
- * @param {Object} obj1
- * @param {Object} obj2
- * @param {Function|Array} mods
- * @param {Boolean} merge
- */
-DotObject.prototype.transfer = function (
- source,
- target,
- obj1,
- obj2,
- mods,
- merge
-) {
- if (typeof mods === 'function' || Array.isArray(mods)) {
- this.set(
- target,
- _process(this.pick(source, obj1, true), mods),
- obj2,
- merge
- )
- } else {
- merge = mods
- this.set(target, this.pick(source, obj1, true), obj2, merge)
- }
-
- return obj2
-}
-
-/**
- *
- * Copy a property from one object to another object.
- *
- * If the source path does not exist (undefined)
- * the property on the other object will not be set.
- *
- * @param {String} source
- * @param {String} target
- * @param {Object} obj1
- * @param {Object} obj2
- * @param {Function|Array} mods
- * @param {Boolean} merge
- */
-DotObject.prototype.copy = function (source, target, obj1, obj2, mods, merge) {
- if (typeof mods === 'function' || Array.isArray(mods)) {
- this.set(
- target,
- _process(
- // clone what is picked
- JSON.parse(JSON.stringify(this.pick(source, obj1, false))),
- mods
- ),
- obj2,
- merge
- )
- } else {
- merge = mods
- this.set(target, this.pick(source, obj1, false), obj2, merge)
- }
-
- return obj2
-}
-
-/**
- *
- * Set a property on an object using dot notation.
- *
- * @param {String} path
- * @param {any} val
- * @param {Object} obj
- * @param {Boolean} merge
- */
-DotObject.prototype.set = function (path, val, obj, merge) {
- var i
- var k
- var keys
- var key
-
- // Do not operate if the value is undefined.
- if (typeof val === 'undefined') {
- return obj
- }
- keys = parsePath(path, this.separator)
-
- for (i = 0; i < keys.length; i++) {
- key = keys[i]
- if (i === keys.length - 1) {
- if (merge && isObject(val) && isObject(obj[key])) {
- for (k in val) {
- if (hasOwnProperty.call(val, k)) {
- obj[key][k] = val[k]
- }
- }
- } else if (merge && Array.isArray(obj[key]) && Array.isArray(val)) {
- for (var j = 0; j < val.length; j++) {
- obj[keys[i]].push(val[j])
- }
- } else {
- obj[key] = val
- }
- } else if (
- // force the value to be an object
- !hasOwnProperty.call(obj, key) ||
- (!isObject(obj[key]) && !Array.isArray(obj[key]))
- ) {
- // initialize as array if next key is numeric
- if (/^\d+$/.test(keys[i + 1])) {
- obj[key] = []
- } else {
- obj[key] = {}
- }
- }
- obj = obj[key]
- }
- return obj
-}
-
-/**
- *
- * Transform an object
- *
- * Usage:
- *
- * var obj = {
- * "id": 1,
- * "some": {
- * "thing": "else"
- * }
- * }
- *
- * var transform = {
- * "id": "nr",
- * "some.thing": "name"
- * }
- *
- * var tgt = dot.transform(transform, obj)
- *
- * @param {Object} recipe Transform recipe
- * @param {Object} obj Object to be transformed
- * @param {Array} mods modifiers for the target
- */
-DotObject.prototype.transform = function (recipe, obj, tgt) {
- obj = obj || {}
- tgt = tgt || {}
- Object.keys(recipe).forEach(
- function (key) {
- this.set(recipe[key], this.pick(key, obj), tgt)
- }.bind(this)
- )
- return tgt
-}
-
-/**
- *
- * Convert object to dotted-key/value pair
- *
- * Usage:
- *
- * var tgt = dot.dot(obj)
- *
- * or
- *
- * var tgt = {}
- * dot.dot(obj, tgt)
- *
- * @param {Object} obj source object
- * @param {Object} tgt target object
- * @param {Array} path path array (internal)
- */
-DotObject.prototype.dot = function (obj, tgt, path) {
- tgt = tgt || {}
- path = path || []
- var isArray = Array.isArray(obj)
-
- Object.keys(obj).forEach(
- function (key) {
- var index = isArray && this.useBrackets ? '[' + key + ']' : key
- if (
- isArrayOrObject(obj[key]) &&
- ((isObject(obj[key]) && !isEmptyObject(obj[key])) ||
- (Array.isArray(obj[key]) && !this.keepArray && obj[key].length !== 0))
- ) {
- if (isArray && this.useBrackets) {
- var previousKey = path[path.length - 1] || ''
- return this.dot(
- obj[key],
- tgt,
- path.slice(0, -1).concat(previousKey + index)
- )
- } else {
- return this.dot(obj[key], tgt, path.concat(index))
- }
- } else {
- if (isArray && this.useBrackets) {
- tgt[path.join(this.separator).concat('[' + key + ']')] = obj[key]
- } else {
- tgt[path.concat(index).join(this.separator)] = obj[key]
- }
- }
- }.bind(this)
- )
- return tgt
-}
-
-DotObject.pick = wrap('pick')
-DotObject.move = wrap('move')
-DotObject.transfer = wrap('transfer')
-DotObject.transform = wrap('transform')
-DotObject.copy = wrap('copy')
-DotObject.object = wrap('object')
-DotObject.str = wrap('str')
-DotObject.set = wrap('set')
-DotObject.delete = wrap('delete')
-DotObject.del = DotObject.remove = wrap('remove')
-DotObject.dot = wrap('dot');
-['override', 'overwrite'].forEach(function (prop) {
- Object.defineProperty(DotObject, prop, {
- get: function () {
- return dotDefault.override
- },
- set: function (val) {
- dotDefault.override = !!val
- }
- })
-});
-['useArray', 'keepArray', 'useBrackets'].forEach(function (prop) {
- Object.defineProperty(DotObject, prop, {
- get: function () {
- return dotDefault[prop]
- },
- set: function (val) {
- dotDefault[prop] = val
- }
- })
-})
-
-DotObject._process = _process
-
-module.exports = DotObject
-
-
/***/ }),
/***/ 7426:
@@ -64286,7 +57052,7 @@ module.exports = Comparator
const parseOptions = __nccwpck_require__(785)
const { safeRe: re, t } = __nccwpck_require__(9523)
const cmp = __nccwpck_require__(5098)
-const debug = __nccwpck_require__(427)
+const debug = __nccwpck_require__(106)
const SemVer = __nccwpck_require__(8088)
const Range = __nccwpck_require__(9828)
@@ -64296,8 +57062,6 @@ const Range = __nccwpck_require__(9828)
/***/ 9828:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SPACE_CHARACTERS = /\s+/g
-
// hoisted class for cyclic dependency
class Range {
constructor (range, options) {
@@ -64318,7 +57082,7 @@ class Range {
// just put it in the set and return
this.raw = range.value
this.set = [[range]]
- this.formatted = undefined
+ this.format()
return this
}
@@ -64329,7 +57093,10 @@ class Range {
// First reduce all whitespace as much as possible so we do not have to rely
// on potentially slow regexes like \s*. This is then stored and used for
// future error messages as well.
- this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
+ this.raw = range
+ .trim()
+ .split(/\s+/)
+ .join(' ')
// First, split on ||
this.set = this.raw
@@ -64363,29 +57130,14 @@ class Range {
}
}
- this.formatted = undefined
- }
-
- get range () {
- if (this.formatted === undefined) {
- this.formatted = ''
- for (let i = 0; i < this.set.length; i++) {
- if (i > 0) {
- this.formatted += '||'
- }
- const comps = this.set[i]
- for (let k = 0; k < comps.length; k++) {
- if (k > 0) {
- this.formatted += ' '
- }
- this.formatted += comps[k].toString().trim()
- }
- }
- }
- return this.formatted
+ this.format()
}
format () {
+ this.range = this.set
+ .map((comps) => comps.join(' ').trim())
+ .join('||')
+ .trim()
return this.range
}
@@ -64510,12 +57262,12 @@ class Range {
module.exports = Range
-const LRU = __nccwpck_require__(5339)
-const cache = new LRU()
+const LRU = __nccwpck_require__(1196)
+const cache = new LRU({ max: 1000 })
const parseOptions = __nccwpck_require__(785)
const Comparator = __nccwpck_require__(1532)
-const debug = __nccwpck_require__(427)
+const debug = __nccwpck_require__(106)
const SemVer = __nccwpck_require__(8088)
const {
safeRe: re,
@@ -64782,10 +57534,9 @@ const replaceGTE0 = (comp, options) => {
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
-// TODO build?
const hyphenReplace = incPr => ($0,
from, fM, fm, fp, fpr, fb,
- to, tM, tm, tp, tpr) => {
+ to, tM, tm, tp, tpr, tb) => {
if (isX(fM)) {
from = ''
} else if (isX(fm)) {
@@ -64857,7 +57608,7 @@ const testSet = (set, version, options) => {
/***/ 8088:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const debug = __nccwpck_require__(427)
+const debug = __nccwpck_require__(106)
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(2293)
const { safeRe: re, t } = __nccwpck_require__(9523)
@@ -65017,7 +57768,7 @@ class SemVer {
do {
const a = this.build[i]
const b = other.build[i]
- debug('build compare', i, a, b)
+ debug('prerelease compare', i, a, b)
if (a === undefined && b === undefined) {
return 0
} else if (b === undefined) {
@@ -65664,7 +58415,7 @@ const validRange = __nccwpck_require__(2098)
const outside = __nccwpck_require__(420)
const gtr = __nccwpck_require__(9380)
const ltr = __nccwpck_require__(3323)
-const intersects = __nccwpck_require__(2988)
+const intersects = __nccwpck_require__(7008)
const simplifyRange = __nccwpck_require__(5297)
const subset = __nccwpck_require__(7863)
module.exports = {
@@ -65760,7 +58511,7 @@ module.exports = {
/***/ }),
-/***/ 427:
+/***/ 106:
/***/ ((module) => {
const debug = (
@@ -65804,53 +58555,6 @@ module.exports = {
}
-/***/ }),
-
-/***/ 5339:
-/***/ ((module) => {
-
-class LRUCache {
- constructor () {
- this.max = 1000
- this.map = new Map()
- }
-
- get (key) {
- const value = this.map.get(key)
- if (value === undefined) {
- return undefined
- } else {
- // Remove the key from the map and add it to the end
- this.map.delete(key)
- this.map.set(key, value)
- return value
- }
- }
-
- delete (key) {
- return this.map.delete(key)
- }
-
- set (key, value) {
- const deleted = this.delete(key)
-
- if (!deleted && value !== undefined) {
- // If cache is full, delete the least recently used item
- if (this.map.size >= this.max) {
- const firstKey = this.map.keys().next().value
- this.delete(firstKey)
- }
-
- this.map.set(key, value)
- }
-
- return this
- }
-}
-
-module.exports = LRUCache
-
-
/***/ }),
/***/ 785:
@@ -65883,7 +58587,7 @@ const {
MAX_SAFE_BUILD_LENGTH,
MAX_LENGTH,
} = __nccwpck_require__(2293)
-const debug = __nccwpck_require__(427)
+const debug = __nccwpck_require__(106)
exports = module.exports = {}
// The actual regexps go on exports.re
@@ -66097,6 +58801,798 @@ createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$')
createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$')
+/***/ }),
+
+/***/ 1196:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+// A linked list to keep track of recently-used-ness
+const Yallist = __nccwpck_require__(220)
+
+const MAX = Symbol('max')
+const LENGTH = Symbol('length')
+const LENGTH_CALCULATOR = Symbol('lengthCalculator')
+const ALLOW_STALE = Symbol('allowStale')
+const MAX_AGE = Symbol('maxAge')
+const DISPOSE = Symbol('dispose')
+const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')
+const LRU_LIST = Symbol('lruList')
+const CACHE = Symbol('cache')
+const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')
+
+const naiveLength = () => 1
+
+// lruList is a yallist where the head is the youngest
+// item, and the tail is the oldest. the list contains the Hit
+// objects as the entries.
+// Each Hit object has a reference to its Yallist.Node. This
+// never changes.
+//
+// cache is a Map (or PseudoMap) that matches the keys to
+// the Yallist.Node object.
+class LRUCache {
+ constructor (options) {
+ if (typeof options === 'number')
+ options = { max: options }
+
+ if (!options)
+ options = {}
+
+ if (options.max && (typeof options.max !== 'number' || options.max < 0))
+ throw new TypeError('max must be a non-negative number')
+ // Kind of weird to have a default max of Infinity, but oh well.
+ const max = this[MAX] = options.max || Infinity
+
+ const lc = options.length || naiveLength
+ this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc
+ this[ALLOW_STALE] = options.stale || false
+ if (options.maxAge && typeof options.maxAge !== 'number')
+ throw new TypeError('maxAge must be a number')
+ this[MAX_AGE] = options.maxAge || 0
+ this[DISPOSE] = options.dispose
+ this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
+ this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false
+ this.reset()
+ }
+
+ // resize the cache when the max changes.
+ set max (mL) {
+ if (typeof mL !== 'number' || mL < 0)
+ throw new TypeError('max must be a non-negative number')
+
+ this[MAX] = mL || Infinity
+ trim(this)
+ }
+ get max () {
+ return this[MAX]
+ }
+
+ set allowStale (allowStale) {
+ this[ALLOW_STALE] = !!allowStale
+ }
+ get allowStale () {
+ return this[ALLOW_STALE]
+ }
+
+ set maxAge (mA) {
+ if (typeof mA !== 'number')
+ throw new TypeError('maxAge must be a non-negative number')
+
+ this[MAX_AGE] = mA
+ trim(this)
+ }
+ get maxAge () {
+ return this[MAX_AGE]
+ }
+
+ // resize the cache when the lengthCalculator changes.
+ set lengthCalculator (lC) {
+ if (typeof lC !== 'function')
+ lC = naiveLength
+
+ if (lC !== this[LENGTH_CALCULATOR]) {
+ this[LENGTH_CALCULATOR] = lC
+ this[LENGTH] = 0
+ this[LRU_LIST].forEach(hit => {
+ hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
+ this[LENGTH] += hit.length
+ })
+ }
+ trim(this)
+ }
+ get lengthCalculator () { return this[LENGTH_CALCULATOR] }
+
+ get length () { return this[LENGTH] }
+ get itemCount () { return this[LRU_LIST].length }
+
+ rforEach (fn, thisp) {
+ thisp = thisp || this
+ for (let walker = this[LRU_LIST].tail; walker !== null;) {
+ const prev = walker.prev
+ forEachStep(this, fn, walker, thisp)
+ walker = prev
+ }
+ }
+
+ forEach (fn, thisp) {
+ thisp = thisp || this
+ for (let walker = this[LRU_LIST].head; walker !== null;) {
+ const next = walker.next
+ forEachStep(this, fn, walker, thisp)
+ walker = next
+ }
+ }
+
+ keys () {
+ return this[LRU_LIST].toArray().map(k => k.key)
+ }
+
+ values () {
+ return this[LRU_LIST].toArray().map(k => k.value)
+ }
+
+ reset () {
+ if (this[DISPOSE] &&
+ this[LRU_LIST] &&
+ this[LRU_LIST].length) {
+ this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))
+ }
+
+ this[CACHE] = new Map() // hash of items by key
+ this[LRU_LIST] = new Yallist() // list of items in order of use recency
+ this[LENGTH] = 0 // length of items in the list
+ }
+
+ dump () {
+ return this[LRU_LIST].map(hit =>
+ isStale(this, hit) ? false : {
+ k: hit.key,
+ v: hit.value,
+ e: hit.now + (hit.maxAge || 0)
+ }).toArray().filter(h => h)
+ }
+
+ dumpLru () {
+ return this[LRU_LIST]
+ }
+
+ set (key, value, maxAge) {
+ maxAge = maxAge || this[MAX_AGE]
+
+ if (maxAge && typeof maxAge !== 'number')
+ throw new TypeError('maxAge must be a number')
+
+ const now = maxAge ? Date.now() : 0
+ const len = this[LENGTH_CALCULATOR](value, key)
+
+ if (this[CACHE].has(key)) {
+ if (len > this[MAX]) {
+ del(this, this[CACHE].get(key))
+ return false
+ }
+
+ const node = this[CACHE].get(key)
+ const item = node.value
+
+ // dispose of the old one before overwriting
+ // split out into 2 ifs for better coverage tracking
+ if (this[DISPOSE]) {
+ if (!this[NO_DISPOSE_ON_SET])
+ this[DISPOSE](key, item.value)
+ }
+
+ item.now = now
+ item.maxAge = maxAge
+ item.value = value
+ this[LENGTH] += len - item.length
+ item.length = len
+ this.get(key)
+ trim(this)
+ return true
+ }
+
+ const hit = new Entry(key, value, len, now, maxAge)
+
+ // oversized objects fall out of cache automatically.
+ if (hit.length > this[MAX]) {
+ if (this[DISPOSE])
+ this[DISPOSE](key, value)
+
+ return false
+ }
+
+ this[LENGTH] += hit.length
+ this[LRU_LIST].unshift(hit)
+ this[CACHE].set(key, this[LRU_LIST].head)
+ trim(this)
+ return true
+ }
+
+ has (key) {
+ if (!this[CACHE].has(key)) return false
+ const hit = this[CACHE].get(key).value
+ return !isStale(this, hit)
+ }
+
+ get (key) {
+ return get(this, key, true)
+ }
+
+ peek (key) {
+ return get(this, key, false)
+ }
+
+ pop () {
+ const node = this[LRU_LIST].tail
+ if (!node)
+ return null
+
+ del(this, node)
+ return node.value
+ }
+
+ del (key) {
+ del(this, this[CACHE].get(key))
+ }
+
+ load (arr) {
+ // reset the cache
+ this.reset()
+
+ const now = Date.now()
+ // A previous serialized cache has the most recent items first
+ for (let l = arr.length - 1; l >= 0; l--) {
+ const hit = arr[l]
+ const expiresAt = hit.e || 0
+ if (expiresAt === 0)
+ // the item was created without expiration in a non aged cache
+ this.set(hit.k, hit.v)
+ else {
+ const maxAge = expiresAt - now
+ // dont add already expired items
+ if (maxAge > 0) {
+ this.set(hit.k, hit.v, maxAge)
+ }
+ }
+ }
+ }
+
+ prune () {
+ this[CACHE].forEach((value, key) => get(this, key, false))
+ }
+}
+
+const get = (self, key, doUse) => {
+ const node = self[CACHE].get(key)
+ if (node) {
+ const hit = node.value
+ if (isStale(self, hit)) {
+ del(self, node)
+ if (!self[ALLOW_STALE])
+ return undefined
+ } else {
+ if (doUse) {
+ if (self[UPDATE_AGE_ON_GET])
+ node.value.now = Date.now()
+ self[LRU_LIST].unshiftNode(node)
+ }
+ }
+ return hit.value
+ }
+}
+
+const isStale = (self, hit) => {
+ if (!hit || (!hit.maxAge && !self[MAX_AGE]))
+ return false
+
+ const diff = Date.now() - hit.now
+ return hit.maxAge ? diff > hit.maxAge
+ : self[MAX_AGE] && (diff > self[MAX_AGE])
+}
+
+const trim = self => {
+ if (self[LENGTH] > self[MAX]) {
+ for (let walker = self[LRU_LIST].tail;
+ self[LENGTH] > self[MAX] && walker !== null;) {
+ // We know that we're about to delete this one, and also
+ // what the next least recently used key will be, so just
+ // go ahead and set it now.
+ const prev = walker.prev
+ del(self, walker)
+ walker = prev
+ }
+ }
+}
+
+const del = (self, node) => {
+ if (node) {
+ const hit = node.value
+ if (self[DISPOSE])
+ self[DISPOSE](hit.key, hit.value)
+
+ self[LENGTH] -= hit.length
+ self[CACHE].delete(hit.key)
+ self[LRU_LIST].removeNode(node)
+ }
+}
+
+class Entry {
+ constructor (key, value, length, now, maxAge) {
+ this.key = key
+ this.value = value
+ this.length = length
+ this.now = now
+ this.maxAge = maxAge || 0
+ }
+}
+
+const forEachStep = (self, fn, node, thisp) => {
+ let hit = node.value
+ if (isStale(self, hit)) {
+ del(self, node)
+ if (!self[ALLOW_STALE])
+ hit = undefined
+ }
+ if (hit)
+ fn.call(thisp, hit.value, hit.key, self)
+}
+
+module.exports = LRUCache
+
+
+/***/ }),
+
+/***/ 5327:
+/***/ ((module) => {
+
+"use strict";
+
+module.exports = function (Yallist) {
+ Yallist.prototype[Symbol.iterator] = function* () {
+ for (let walker = this.head; walker; walker = walker.next) {
+ yield walker.value
+ }
+ }
+}
+
+
+/***/ }),
+
+/***/ 220:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+module.exports = Yallist
+
+Yallist.Node = Node
+Yallist.create = Yallist
+
+function Yallist (list) {
+ var self = this
+ if (!(self instanceof Yallist)) {
+ self = new Yallist()
+ }
+
+ self.tail = null
+ self.head = null
+ self.length = 0
+
+ if (list && typeof list.forEach === 'function') {
+ list.forEach(function (item) {
+ self.push(item)
+ })
+ } else if (arguments.length > 0) {
+ for (var i = 0, l = arguments.length; i < l; i++) {
+ self.push(arguments[i])
+ }
+ }
+
+ return self
+}
+
+Yallist.prototype.removeNode = function (node) {
+ if (node.list !== this) {
+ throw new Error('removing node which does not belong to this list')
+ }
+
+ var next = node.next
+ var prev = node.prev
+
+ if (next) {
+ next.prev = prev
+ }
+
+ if (prev) {
+ prev.next = next
+ }
+
+ if (node === this.head) {
+ this.head = next
+ }
+ if (node === this.tail) {
+ this.tail = prev
+ }
+
+ node.list.length--
+ node.next = null
+ node.prev = null
+ node.list = null
+
+ return next
+}
+
+Yallist.prototype.unshiftNode = function (node) {
+ if (node === this.head) {
+ return
+ }
+
+ if (node.list) {
+ node.list.removeNode(node)
+ }
+
+ var head = this.head
+ node.list = this
+ node.next = head
+ if (head) {
+ head.prev = node
+ }
+
+ this.head = node
+ if (!this.tail) {
+ this.tail = node
+ }
+ this.length++
+}
+
+Yallist.prototype.pushNode = function (node) {
+ if (node === this.tail) {
+ return
+ }
+
+ if (node.list) {
+ node.list.removeNode(node)
+ }
+
+ var tail = this.tail
+ node.list = this
+ node.prev = tail
+ if (tail) {
+ tail.next = node
+ }
+
+ this.tail = node
+ if (!this.head) {
+ this.head = node
+ }
+ this.length++
+}
+
+Yallist.prototype.push = function () {
+ for (var i = 0, l = arguments.length; i < l; i++) {
+ push(this, arguments[i])
+ }
+ return this.length
+}
+
+Yallist.prototype.unshift = function () {
+ for (var i = 0, l = arguments.length; i < l; i++) {
+ unshift(this, arguments[i])
+ }
+ return this.length
+}
+
+Yallist.prototype.pop = function () {
+ if (!this.tail) {
+ return undefined
+ }
+
+ var res = this.tail.value
+ this.tail = this.tail.prev
+ if (this.tail) {
+ this.tail.next = null
+ } else {
+ this.head = null
+ }
+ this.length--
+ return res
+}
+
+Yallist.prototype.shift = function () {
+ if (!this.head) {
+ return undefined
+ }
+
+ var res = this.head.value
+ this.head = this.head.next
+ if (this.head) {
+ this.head.prev = null
+ } else {
+ this.tail = null
+ }
+ this.length--
+ return res
+}
+
+Yallist.prototype.forEach = function (fn, thisp) {
+ thisp = thisp || this
+ for (var walker = this.head, i = 0; walker !== null; i++) {
+ fn.call(thisp, walker.value, i, this)
+ walker = walker.next
+ }
+}
+
+Yallist.prototype.forEachReverse = function (fn, thisp) {
+ thisp = thisp || this
+ for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
+ fn.call(thisp, walker.value, i, this)
+ walker = walker.prev
+ }
+}
+
+Yallist.prototype.get = function (n) {
+ for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
+ // abort out of the list early if we hit a cycle
+ walker = walker.next
+ }
+ if (i === n && walker !== null) {
+ return walker.value
+ }
+}
+
+Yallist.prototype.getReverse = function (n) {
+ for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
+ // abort out of the list early if we hit a cycle
+ walker = walker.prev
+ }
+ if (i === n && walker !== null) {
+ return walker.value
+ }
+}
+
+Yallist.prototype.map = function (fn, thisp) {
+ thisp = thisp || this
+ var res = new Yallist()
+ for (var walker = this.head; walker !== null;) {
+ res.push(fn.call(thisp, walker.value, this))
+ walker = walker.next
+ }
+ return res
+}
+
+Yallist.prototype.mapReverse = function (fn, thisp) {
+ thisp = thisp || this
+ var res = new Yallist()
+ for (var walker = this.tail; walker !== null;) {
+ res.push(fn.call(thisp, walker.value, this))
+ walker = walker.prev
+ }
+ return res
+}
+
+Yallist.prototype.reduce = function (fn, initial) {
+ var acc
+ var walker = this.head
+ if (arguments.length > 1) {
+ acc = initial
+ } else if (this.head) {
+ walker = this.head.next
+ acc = this.head.value
+ } else {
+ throw new TypeError('Reduce of empty list with no initial value')
+ }
+
+ for (var i = 0; walker !== null; i++) {
+ acc = fn(acc, walker.value, i)
+ walker = walker.next
+ }
+
+ return acc
+}
+
+Yallist.prototype.reduceReverse = function (fn, initial) {
+ var acc
+ var walker = this.tail
+ if (arguments.length > 1) {
+ acc = initial
+ } else if (this.tail) {
+ walker = this.tail.prev
+ acc = this.tail.value
+ } else {
+ throw new TypeError('Reduce of empty list with no initial value')
+ }
+
+ for (var i = this.length - 1; walker !== null; i--) {
+ acc = fn(acc, walker.value, i)
+ walker = walker.prev
+ }
+
+ return acc
+}
+
+Yallist.prototype.toArray = function () {
+ var arr = new Array(this.length)
+ for (var i = 0, walker = this.head; walker !== null; i++) {
+ arr[i] = walker.value
+ walker = walker.next
+ }
+ return arr
+}
+
+Yallist.prototype.toArrayReverse = function () {
+ var arr = new Array(this.length)
+ for (var i = 0, walker = this.tail; walker !== null; i++) {
+ arr[i] = walker.value
+ walker = walker.prev
+ }
+ return arr
+}
+
+Yallist.prototype.slice = function (from, to) {
+ to = to || this.length
+ if (to < 0) {
+ to += this.length
+ }
+ from = from || 0
+ if (from < 0) {
+ from += this.length
+ }
+ var ret = new Yallist()
+ if (to < from || to < 0) {
+ return ret
+ }
+ if (from < 0) {
+ from = 0
+ }
+ if (to > this.length) {
+ to = this.length
+ }
+ for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
+ walker = walker.next
+ }
+ for (; walker !== null && i < to; i++, walker = walker.next) {
+ ret.push(walker.value)
+ }
+ return ret
+}
+
+Yallist.prototype.sliceReverse = function (from, to) {
+ to = to || this.length
+ if (to < 0) {
+ to += this.length
+ }
+ from = from || 0
+ if (from < 0) {
+ from += this.length
+ }
+ var ret = new Yallist()
+ if (to < from || to < 0) {
+ return ret
+ }
+ if (from < 0) {
+ from = 0
+ }
+ if (to > this.length) {
+ to = this.length
+ }
+ for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
+ walker = walker.prev
+ }
+ for (; walker !== null && i > from; i--, walker = walker.prev) {
+ ret.push(walker.value)
+ }
+ return ret
+}
+
+Yallist.prototype.splice = function (start, deleteCount, ...nodes) {
+ if (start > this.length) {
+ start = this.length - 1
+ }
+ if (start < 0) {
+ start = this.length + start;
+ }
+
+ for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
+ walker = walker.next
+ }
+
+ var ret = []
+ for (var i = 0; walker && i < deleteCount; i++) {
+ ret.push(walker.value)
+ walker = this.removeNode(walker)
+ }
+ if (walker === null) {
+ walker = this.tail
+ }
+
+ if (walker !== this.head && walker !== this.tail) {
+ walker = walker.prev
+ }
+
+ for (var i = 0; i < nodes.length; i++) {
+ walker = insert(this, walker, nodes[i])
+ }
+ return ret;
+}
+
+Yallist.prototype.reverse = function () {
+ var head = this.head
+ var tail = this.tail
+ for (var walker = head; walker !== null; walker = walker.prev) {
+ var p = walker.prev
+ walker.prev = walker.next
+ walker.next = p
+ }
+ this.head = tail
+ this.tail = head
+ return this
+}
+
+function insert (self, node, value) {
+ var inserted = node === self.head ?
+ new Node(value, null, node, self) :
+ new Node(value, node, node.next, self)
+
+ if (inserted.next === null) {
+ self.tail = inserted
+ }
+ if (inserted.prev === null) {
+ self.head = inserted
+ }
+
+ self.length++
+
+ return inserted
+}
+
+function push (self, item) {
+ self.tail = new Node(item, self.tail, null, self)
+ if (!self.head) {
+ self.head = self.tail
+ }
+ self.length++
+}
+
+function unshift (self, item) {
+ self.head = new Node(item, null, self.head, self)
+ if (!self.tail) {
+ self.tail = self.head
+ }
+ self.length++
+}
+
+function Node (value, prev, next, list) {
+ if (!(this instanceof Node)) {
+ return new Node(value, prev, next, list)
+ }
+
+ this.list = list
+ this.value = value
+
+ if (prev) {
+ prev.next = this
+ this.prev = prev
+ } else {
+ this.prev = null
+ }
+
+ if (next) {
+ next.prev = this
+ this.next = next
+ } else {
+ this.next = null
+ }
+}
+
+try {
+ // add if support for Symbol.iterator is present
+ __nccwpck_require__(5327)(Yallist)
+} catch (er) {}
+
+
/***/ }),
/***/ 9380:
@@ -66110,7 +59606,7 @@ module.exports = gtr
/***/ }),
-/***/ 2988:
+/***/ 7008:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const Range = __nccwpck_require__(9828)
@@ -67601,1152 +61097,6 @@ if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
exports.debug = debug; // for test
-/***/ }),
-
-/***/ 1524:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-
-
-/***/ }),
-
-/***/ 6647:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.isValidErrorCode = exports.httpStatusFromErrorCode = exports.TwirpErrorCode = exports.BadRouteError = exports.InternalServerErrorWith = exports.InternalServerError = exports.RequiredArgumentError = exports.InvalidArgumentError = exports.NotFoundError = exports.TwirpError = void 0;
-/**
- * Represents a twirp error
- */
-class TwirpError extends Error {
- constructor(code, msg) {
- super(msg);
- this.code = TwirpErrorCode.Internal;
- this.meta = {};
- this.code = code;
- this.msg = msg;
- Object.setPrototypeOf(this, TwirpError.prototype);
- }
- /**
- * Adds a metadata kv to the error
- * @param key
- * @param value
- */
- withMeta(key, value) {
- this.meta[key] = value;
- return this;
- }
- /**
- * Returns a single metadata value
- * return "" if not found
- * @param key
- */
- getMeta(key) {
- return this.meta[key] || "";
- }
- /**
- * Add the original error cause
- * @param err
- * @param addMeta
- */
- withCause(err, addMeta = false) {
- this._originalCause = err;
- if (addMeta) {
- this.withMeta("cause", err.message);
- }
- return this;
- }
- cause() {
- return this._originalCause;
- }
- /**
- * Returns the error representation to JSON
- */
- toJSON() {
- try {
- return JSON.stringify({
- code: this.code,
- msg: this.msg,
- meta: this.meta,
- });
- }
- catch (e) {
- return `{"code": "internal", "msg": "There was an error but it could not be serialized into JSON"}`;
- }
- }
- /**
- * Create a twirp error from an object
- * @param obj
- */
- static fromObject(obj) {
- const code = obj["code"] || TwirpErrorCode.Unknown;
- const msg = obj["msg"] || "unknown";
- const error = new TwirpError(code, msg);
- if (obj["meta"]) {
- Object.keys(obj["meta"]).forEach((key) => {
- error.withMeta(key, obj["meta"][key]);
- });
- }
- return error;
- }
-}
-exports.TwirpError = TwirpError;
-/**
- * NotFoundError constructor for the common NotFound error.
- */
-class NotFoundError extends TwirpError {
- constructor(msg) {
- super(TwirpErrorCode.NotFound, msg);
- }
-}
-exports.NotFoundError = NotFoundError;
-/**
- * InvalidArgumentError constructor for the common InvalidArgument error. Can be
- * used when an argument has invalid format, is a number out of range, is a bad
- * option, etc).
- */
-class InvalidArgumentError extends TwirpError {
- constructor(argument, validationMsg) {
- super(TwirpErrorCode.InvalidArgument, argument + " " + validationMsg);
- this.withMeta("argument", argument);
- }
-}
-exports.InvalidArgumentError = InvalidArgumentError;
-/**
- * RequiredArgumentError is a more specific constructor for InvalidArgument
- * error. Should be used when the argument is required (expected to have a
- * non-zero value).
- */
-class RequiredArgumentError extends InvalidArgumentError {
- constructor(argument) {
- super(argument, "is required");
- }
-}
-exports.RequiredArgumentError = RequiredArgumentError;
-/**
- * InternalError constructor for the common Internal error. Should be used to
- * specify that something bad or unexpected happened.
- */
-class InternalServerError extends TwirpError {
- constructor(msg) {
- super(TwirpErrorCode.Internal, msg);
- }
-}
-exports.InternalServerError = InternalServerError;
-/**
- * InternalErrorWith makes an internal error, wrapping the original error and using it
- * for the error message, and with metadata "cause" with the original error type.
- * This function is used by Twirp services to wrap non-Twirp errors as internal errors.
- * The wrapped error can be extracted later with err.cause()
- */
-class InternalServerErrorWith extends InternalServerError {
- constructor(err) {
- super(err.message);
- this.withMeta("cause", err.name);
- this.withCause(err);
- }
-}
-exports.InternalServerErrorWith = InternalServerErrorWith;
-/**
- * A standard BadRoute Error
- */
-class BadRouteError extends TwirpError {
- constructor(msg, method, url) {
- super(TwirpErrorCode.BadRoute, msg);
- this.withMeta("twirp_invalid_route", method + " " + url);
- }
-}
-exports.BadRouteError = BadRouteError;
-var TwirpErrorCode;
-(function (TwirpErrorCode) {
- // Canceled indicates the operation was cancelled (typically by the caller).
- TwirpErrorCode["Canceled"] = "canceled";
- // Unknown error. For example when handling errors raised by APIs that do not
- // return enough error information.
- TwirpErrorCode["Unknown"] = "unknown";
- // InvalidArgument indicates client specified an invalid argument. It
- // indicates arguments that are problematic regardless of the state of the
- // system (i.e. a malformed file name, required argument, number out of range,
- // etc.).
- TwirpErrorCode["InvalidArgument"] = "invalid_argument";
- // Malformed indicates an error occurred while decoding the client's request.
- // This may mean that the message was encoded improperly, or that there is a
- // disagreement in message format between the client and server.
- TwirpErrorCode["Malformed"] = "malformed";
- // DeadlineExceeded means operation expired before completion. For operations
- // that change the state of the system, this error may be returned even if the
- // operation has completed successfully (timeout).
- TwirpErrorCode["DeadlineExceeded"] = "deadline_exceeded";
- // NotFound means some requested entity was not found.
- TwirpErrorCode["NotFound"] = "not_found";
- // BadRoute means that the requested URL path wasn't routable to a Twirp
- // service and method. This is returned by the generated server, and usually
- // shouldn't be returned by applications. Instead, applications should use
- // NotFound or Unimplemented.
- TwirpErrorCode["BadRoute"] = "bad_route";
- // AlreadyExists means an attempt to create an entity failed because one
- // already exists.
- TwirpErrorCode["AlreadyExists"] = "already_exists";
- // PermissionDenied indicates the caller does not have permission to execute
- // the specified operation. It must not be used if the caller cannot be
- // identified (Unauthenticated).
- TwirpErrorCode["PermissionDenied"] = "permission_denied";
- // Unauthenticated indicates the request does not have valid authentication
- // credentials for the operation.
- TwirpErrorCode["Unauthenticated"] = "unauthenticated";
- // ResourceExhausted indicates some resource has been exhausted, perhaps a
- // per-user quota, or perhaps the entire file system is out of space.
- TwirpErrorCode["ResourceExhausted"] = "resource_exhausted";
- // FailedPrecondition indicates operation was rejected because the system is
- // not in a state required for the operation's execution. For example, doing
- // an rmdir operation on a directory that is non-empty, or on a non-directory
- // object, or when having conflicting read-modify-write on the same resource.
- TwirpErrorCode["FailedPrecondition"] = "failed_precondition";
- // Aborted indicates the operation was aborted, typically due to a concurrency
- // issue like sequencer check failures, transaction aborts, etc.
- TwirpErrorCode["Aborted"] = "aborted";
- // OutOfRange means operation was attempted past the valid range. For example,
- // seeking or reading past end of a paginated collection.
- //
- // Unlike InvalidArgument, this error indicates a problem that may be fixed if
- // the system state changes (i.e. adding more items to the collection).
- //
- // There is a fair bit of overlap between FailedPrecondition and OutOfRange.
- // We recommend using OutOfRange (the more specific error) when it applies so
- // that callers who are iterating through a space can easily look for an
- // OutOfRange error to detect when they are done.
- TwirpErrorCode["OutOfRange"] = "out_of_range";
- // Unimplemented indicates operation is not implemented or not
- // supported/enabled in this service.
- TwirpErrorCode["Unimplemented"] = "unimplemented";
- // Internal errors. When some invariants expected by the underlying system
- // have been broken. In other words, something bad happened in the library or
- // backend service. Do not confuse with HTTP Internal Server Error; an
- // Internal error could also happen on the client code, i.e. when parsing a
- // server response.
- TwirpErrorCode["Internal"] = "internal";
- // Unavailable indicates the service is currently unavailable. This is a most
- // likely a transient condition and may be corrected by retrying with a
- // backoff.
- TwirpErrorCode["Unavailable"] = "unavailable";
- // DataLoss indicates unrecoverable data loss or corruption.
- TwirpErrorCode["DataLoss"] = "data_loss";
-})(TwirpErrorCode = exports.TwirpErrorCode || (exports.TwirpErrorCode = {}));
-// ServerHTTPStatusFromErrorCode maps a Twirp error type into a similar HTTP
-// response status. It is used by the Twirp server handler to set the HTTP
-// response status code. Returns 0 if the ErrorCode is invalid.
-function httpStatusFromErrorCode(code) {
- switch (code) {
- case TwirpErrorCode.Canceled:
- return 408; // RequestTimeout
- case TwirpErrorCode.Unknown:
- return 500; // Internal Server Error
- case TwirpErrorCode.InvalidArgument:
- return 400; // BadRequest
- case TwirpErrorCode.Malformed:
- return 400; // BadRequest
- case TwirpErrorCode.DeadlineExceeded:
- return 408; // RequestTimeout
- case TwirpErrorCode.NotFound:
- return 404; // Not Found
- case TwirpErrorCode.BadRoute:
- return 404; // Not Found
- case TwirpErrorCode.AlreadyExists:
- return 409; // Conflict
- case TwirpErrorCode.PermissionDenied:
- return 403; // Forbidden
- case TwirpErrorCode.Unauthenticated:
- return 401; // Unauthorized
- case TwirpErrorCode.ResourceExhausted:
- return 429; // Too Many Requests
- case TwirpErrorCode.FailedPrecondition:
- return 412; // Precondition Failed
- case TwirpErrorCode.Aborted:
- return 409; // Conflict
- case TwirpErrorCode.OutOfRange:
- return 400; // Bad Request
- case TwirpErrorCode.Unimplemented:
- return 501; // Not Implemented
- case TwirpErrorCode.Internal:
- return 500; // Internal Server Error
- case TwirpErrorCode.Unavailable:
- return 503; // Service Unavailable
- case TwirpErrorCode.DataLoss:
- return 500; // Internal Server Error
- default:
- return 0; // Invalid!
- }
-}
-exports.httpStatusFromErrorCode = httpStatusFromErrorCode;
-// IsValidErrorCode returns true if is one of the valid predefined constants.
-function isValidErrorCode(code) {
- return httpStatusFromErrorCode(code) != 0;
-}
-exports.isValidErrorCode = isValidErrorCode;
-
-
-/***/ }),
-
-/***/ 6748:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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 __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
- t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
- t[p[i]] = s[p[i]];
- }
- return t;
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.Gateway = exports.Pattern = void 0;
-const querystring_1 = __nccwpck_require__(3477);
-const dotObject = __importStar(__nccwpck_require__(4365));
-const request_1 = __nccwpck_require__(8347);
-const errors_1 = __nccwpck_require__(6647);
-const http_client_1 = __nccwpck_require__(4091);
-const server_1 = __nccwpck_require__(6604);
-var Pattern;
-(function (Pattern) {
- Pattern["POST"] = "post";
- Pattern["GET"] = "get";
- Pattern["PATCH"] = "patch";
- Pattern["PUT"] = "put";
- Pattern["DELETE"] = "delete";
-})(Pattern = exports.Pattern || (exports.Pattern = {}));
-/**
- * The Gateway proxies http requests to Twirp Compliant
- * handlers
- */
-class Gateway {
- constructor(routes) {
- this.routes = routes;
- }
- /**
- * Middleware that rewrite the current request
- * to a Twirp compliant request
- */
- twirpRewrite(prefix = "/twirp") {
- return (req, resp, next) => {
- this.rewrite(req, resp, prefix)
- .then(() => next())
- .catch((e) => {
- if (e instanceof errors_1.TwirpError) {
- if (e.code !== errors_1.TwirpErrorCode.NotFound) {
- server_1.writeError(resp, e);
- }
- else {
- next();
- }
- }
- });
- };
- }
- /**
- * Rewrite an incoming request to a Twirp compliant request
- * @param req
- * @param resp
- * @param prefix
- */
- rewrite(req, resp, prefix = "/twirp") {
- return __awaiter(this, void 0, void 0, function* () {
- const [match, route] = this.matchRoute(req);
- const body = yield this.prepareTwirpBody(req, match, route);
- const twirpUrl = `${prefix}/${route.packageName}.${route.serviceName}/${route.methodName}`;
- req.url = twirpUrl;
- req.originalUrl = twirpUrl;
- req.method = "POST";
- req.headers["content-type"] = "application/json";
- req.rawBody = Buffer.from(JSON.stringify(body));
- if (route.responseBodyKey) {
- const endFn = resp.end.bind(resp);
- resp.end = function (chunk) {
- if (resp.statusCode === 200) {
- endFn(`{ "${route.responseBodyKey}": ${chunk} }`);
- }
- else {
- endFn(chunk);
- }
- };
- }
- });
- }
- /**
- * Create a reverse proxy handler to
- * proxy http requests to Twirp Compliant handlers
- * @param httpClientOption
- */
- reverseProxy(httpClientOption) {
- const client = http_client_1.NodeHttpRPC(httpClientOption);
- return (req, res) => __awaiter(this, void 0, void 0, function* () {
- try {
- const [match, route] = this.matchRoute(req);
- const body = yield this.prepareTwirpBody(req, match, route);
- const response = yield client.request(`${route.packageName}.${route.serviceName}`, route.methodName, "application/json", body);
- res.statusCode = 200;
- res.setHeader("content-type", "application/json");
- let jsonResponse;
- if (route.responseBodyKey) {
- jsonResponse = JSON.stringify({ [route.responseBodyKey]: response });
- }
- else {
- jsonResponse = JSON.stringify(response);
- }
- res.end(jsonResponse);
- }
- catch (e) {
- server_1.writeError(res, e);
- }
- });
- }
- /**
- * Prepares twirp body requests using http.google.annotions
- * compliant spec
- *
- * @param req
- * @param match
- * @param route
- * @protected
- */
- prepareTwirpBody(req, match, route) {
- return __awaiter(this, void 0, void 0, function* () {
- const _a = match.params, { query_string } = _a, params = __rest(_a, ["query_string"]);
- let requestBody = Object.assign({}, params);
- if (query_string && route.bodyKey !== "*") {
- const queryParams = this.parseQueryString(query_string);
- requestBody = Object.assign(Object.assign({}, queryParams), requestBody);
- }
- let body = {};
- if (route.bodyKey) {
- const data = yield request_1.getRequestData(req);
- try {
- const jsonBody = JSON.parse(data.toString() || "{}");
- if (route.bodyKey === "*") {
- body = jsonBody;
- }
- else {
- body[route.bodyKey] = jsonBody;
- }
- }
- catch (e) {
- const msg = "the json request could not be decoded";
- throw new errors_1.TwirpError(errors_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- return Object.assign(Object.assign({}, body), requestBody);
- });
- }
- /**
- * Matches a route
- * @param req
- */
- matchRoute(req) {
- var _a;
- const httpMethod = (_a = req.method) === null || _a === void 0 ? void 0 : _a.toLowerCase();
- if (!httpMethod) {
- throw new errors_1.BadRouteError(`method not allowed`, req.method || "", req.url || "");
- }
- const routes = this.routes[httpMethod];
- for (const route of routes) {
- const match = route.matcher(req.url || "/");
- if (match) {
- return [match, route];
- }
- }
- throw new errors_1.NotFoundError(`url ${req.url} not found`);
- }
- /**
- * Parse query string
- * @param queryString
- */
- parseQueryString(queryString) {
- const queryParams = querystring_1.parse(queryString.replace("?", ""));
- return dotObject.object(queryParams);
- }
-}
-exports.Gateway = Gateway;
-
-
-/***/ }),
-
-/***/ 4263:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.isHook = exports.chainHooks = void 0;
-// ChainHooks creates a new ServerHook which chains the callbacks in
-// each of the constituent hooks passed in. Each hook function will be
-// called in the order of the ServerHooks values passed in.
-//
-// For the erroring hooks, RequestReceived and RequestRouted, any returned
-// errors prevent processing by later hooks.
-function chainHooks(...hooks) {
- if (hooks.length === 0) {
- return null;
- }
- if (hooks.length === 1) {
- return hooks[0];
- }
- const serverHook = {
- requestReceived(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestReceived) {
- continue;
- }
- yield hook.requestReceived(ctx);
- }
- });
- },
- requestPrepared(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestPrepared) {
- continue;
- }
- console.warn("hook requestPrepared is deprecated and will be removed in the next release. " +
- "Please use responsePrepared instead.");
- yield hook.requestPrepared(ctx);
- }
- });
- },
- responsePrepared(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.responsePrepared) {
- continue;
- }
- yield hook.responsePrepared(ctx);
- }
- });
- },
- requestSent(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestSent) {
- continue;
- }
- console.warn("hook requestSent is deprecated and will be removed in the next release. " +
- "Please use responseSent instead.");
- yield hook.requestSent(ctx);
- }
- });
- },
- responseSent(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.responseSent) {
- continue;
- }
- yield hook.responseSent(ctx);
- }
- });
- },
- requestRouted(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestRouted) {
- continue;
- }
- yield hook.requestRouted(ctx);
- }
- });
- },
- error(ctx, err) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.error) {
- continue;
- }
- yield hook.error(ctx, err);
- }
- });
- },
- };
- return serverHook;
-}
-exports.chainHooks = chainHooks;
-function isHook(object) {
- return ("requestReceived" in object ||
- "requestPrepared" in object ||
- "requestSent" in object ||
- "requestRouted" in object ||
- "responsePrepared" in object ||
- "responseSent" in object ||
- "error" in object);
-}
-exports.isHook = isHook;
-
-
-/***/ }),
-
-/***/ 4091:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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.FetchRPC = exports.wrapErrorResponseToTwirpError = exports.NodeHttpRPC = void 0;
-const http = __importStar(__nccwpck_require__(3685));
-const https = __importStar(__nccwpck_require__(5687));
-const url_1 = __nccwpck_require__(7310);
-const errors_1 = __nccwpck_require__(6647);
-/**
- * a node HTTP RPC implementation
- * @param options
- * @constructor
- */
-const NodeHttpRPC = (options) => ({
- request(service, method, contentType, data) {
- let client;
- return new Promise((resolve, rejected) => {
- const responseChunks = [];
- const requestData = contentType === "application/protobuf"
- ? Buffer.from(data)
- : JSON.stringify(data);
- const url = new url_1.URL(options.baseUrl);
- const isHttps = url.protocol === "https:";
- if (isHttps) {
- client = https;
- }
- else {
- client = http;
- }
- const prefix = url.pathname !== "/" ? url.pathname : "";
- const req = client
- .request(Object.assign(Object.assign({}, (options ? options : {})), { method: "POST", protocol: url.protocol, host: url.hostname, port: url.port ? url.port : isHttps ? 443 : 80, path: `${prefix}/${service}/${method}`, headers: Object.assign(Object.assign({}, (options.headers ? options.headers : {})), { "Content-Type": contentType, "Content-Length": contentType === "application/protobuf"
- ? Buffer.byteLength(requestData)
- : Buffer.from(requestData).byteLength }) }), (res) => {
- res.on("data", (chunk) => responseChunks.push(chunk));
- res.on("end", () => {
- const data = Buffer.concat(responseChunks);
- if (res.statusCode != 200) {
- rejected(wrapErrorResponseToTwirpError(data.toString()));
- }
- else {
- if (contentType === "application/json") {
- resolve(JSON.parse(data.toString()));
- }
- else {
- resolve(data);
- }
- }
- });
- res.on("error", (err) => {
- rejected(err);
- });
- })
- .on("error", (err) => {
- rejected(err);
- });
- req.end(requestData);
- });
- },
-});
-exports.NodeHttpRPC = NodeHttpRPC;
-function wrapErrorResponseToTwirpError(errorResponse) {
- return errors_1.TwirpError.fromObject(JSON.parse(errorResponse));
-}
-exports.wrapErrorResponseToTwirpError = wrapErrorResponseToTwirpError;
-/**
- * a browser fetch RPC implementation
- */
-const FetchRPC = (options) => ({
- request(service, method, contentType, data) {
- return __awaiter(this, void 0, void 0, function* () {
- const headers = new Headers(options.headers);
- headers.set("content-type", contentType);
- const response = yield fetch(`${options.baseUrl}/${service}/${method}`, Object.assign(Object.assign({}, options), { method: "POST", headers, body: data instanceof Uint8Array ? data : JSON.stringify(data) }));
- if (response.status === 200) {
- if (contentType === "application/json") {
- return yield response.json();
- }
- return new Uint8Array(yield response.arrayBuffer());
- }
- throw errors_1.TwirpError.fromObject(yield response.json());
- });
- },
-});
-exports.FetchRPC = FetchRPC;
-
-
-/***/ }),
-
-/***/ 6465:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.TwirpContentType = void 0;
-__exportStar(__nccwpck_require__(1524), exports);
-__exportStar(__nccwpck_require__(6604), exports);
-__exportStar(__nccwpck_require__(8913), exports);
-__exportStar(__nccwpck_require__(4263), exports);
-__exportStar(__nccwpck_require__(6647), exports);
-__exportStar(__nccwpck_require__(6748), exports);
-__exportStar(__nccwpck_require__(4091), exports);
-var request_1 = __nccwpck_require__(8347);
-Object.defineProperty(exports, "TwirpContentType", ({ enumerable: true, get: function () { return request_1.TwirpContentType; } }));
-
-
-/***/ }),
-
-/***/ 8913:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.chainInterceptors = void 0;
-// chains multiple Interceptors into a single Interceptor.
-// The first interceptor wraps the second one, and so on.
-// Returns null if interceptors is empty.
-function chainInterceptors(...interceptors) {
- if (interceptors.length === 0) {
- return;
- }
- if (interceptors.length === 1) {
- return interceptors[0];
- }
- const first = interceptors[0];
- return (ctx, request, handler) => __awaiter(this, void 0, void 0, function* () {
- let next = handler;
- for (let i = interceptors.length - 1; i > 0; i--) {
- next = ((next) => (ctx, typedRequest) => {
- return interceptors[i](ctx, typedRequest, next);
- })(next);
- }
- return first(ctx, request, next);
- });
-}
-exports.chainInterceptors = chainInterceptors;
-
-
-/***/ }),
-
-/***/ 8347:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.parseTwirpPath = exports.getRequestData = exports.validateRequest = exports.getContentType = exports.TwirpContentType = void 0;
-const errors_1 = __nccwpck_require__(6647);
-/**
- * Supported Twirp Content-Type
- */
-var TwirpContentType;
-(function (TwirpContentType) {
- TwirpContentType[TwirpContentType["Protobuf"] = 0] = "Protobuf";
- TwirpContentType[TwirpContentType["JSON"] = 1] = "JSON";
- TwirpContentType[TwirpContentType["Unknown"] = 2] = "Unknown";
-})(TwirpContentType = exports.TwirpContentType || (exports.TwirpContentType = {}));
-/**
- * Get supported content-type
- * @param mimeType
- */
-function getContentType(mimeType) {
- switch (mimeType) {
- case "application/protobuf":
- return TwirpContentType.Protobuf;
- case "application/json":
- return TwirpContentType.JSON;
- default:
- return TwirpContentType.Unknown;
- }
-}
-exports.getContentType = getContentType;
-/**
- * Validate a twirp request
- * @param ctx
- * @param request
- * @param pathPrefix
- */
-function validateRequest(ctx, request, pathPrefix) {
- if (request.method !== "POST") {
- const msg = `unsupported method ${request.method} (only POST is allowed)`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- const path = parseTwirpPath(request.url || "");
- if (path.pkgService !==
- (ctx.packageName ? ctx.packageName + "." : "") + ctx.serviceName) {
- const msg = `no handler for path ${request.url}`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- if (path.prefix !== pathPrefix) {
- const msg = `invalid path prefix ${path.prefix}, expected ${pathPrefix}, on path ${request.url}`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- const mimeContentType = request.headers["content-type"] || "";
- if (ctx.contentType === TwirpContentType.Unknown) {
- const msg = `unexpected Content-Type: ${request.headers["content-type"]}`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- return Object.assign(Object.assign({}, path), { mimeContentType, contentType: ctx.contentType });
-}
-exports.validateRequest = validateRequest;
-/**
- * Get request data from the body
- * @param req
- */
-function getRequestData(req) {
- return new Promise((resolve, reject) => {
- const reqWithRawBody = req;
- if (reqWithRawBody.rawBody instanceof Buffer) {
- resolve(reqWithRawBody.rawBody);
- return;
- }
- const chunks = [];
- req.on("data", (chunk) => chunks.push(chunk));
- req.on("end", () => __awaiter(this, void 0, void 0, function* () {
- const data = Buffer.concat(chunks);
- resolve(data);
- }));
- req.on("error", (err) => {
- if (req.aborted) {
- reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.DeadlineExceeded, "failed to read request: deadline exceeded"));
- }
- else {
- reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.Malformed, err.message).withCause(err));
- }
- });
- req.on("close", () => {
- reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.Canceled, "failed to read request: context canceled"));
- });
- });
-}
-exports.getRequestData = getRequestData;
-/**
- * Parses twirp url path
- * @param path
- */
-function parseTwirpPath(path) {
- const parts = path.split("/");
- if (parts.length < 2) {
- return {
- pkgService: "",
- method: "",
- prefix: "",
- };
- }
- return {
- method: parts[parts.length - 1],
- pkgService: parts[parts.length - 2],
- prefix: parts.slice(0, parts.length - 2).join("/"),
- };
-}
-exports.parseTwirpPath = parseTwirpPath;
-
-
-/***/ }),
-
-/***/ 6604:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.writeError = exports.TwirpServer = void 0;
-const hooks_1 = __nccwpck_require__(4263);
-const request_1 = __nccwpck_require__(8347);
-const errors_1 = __nccwpck_require__(6647);
-/**
- * Runtime server implementation of a TwirpServer
- */
-class TwirpServer {
- constructor(options) {
- this.pathPrefix = "/twirp";
- this.hooks = [];
- this.interceptors = [];
- this.packageName = options.packageName;
- this.serviceName = options.serviceName;
- this.methodList = options.methodList;
- this.matchRoute = options.matchRoute;
- this.service = options.service;
- }
- /**
- * Returns the prefix for this server
- */
- get prefix() {
- return this.pathPrefix;
- }
- /**
- * The http handler for twirp complaint endpoints
- * @param options
- */
- httpHandler(options) {
- return (req, resp) => {
- // setup prefix
- if ((options === null || options === void 0 ? void 0 : options.prefix) !== undefined) {
- this.withPrefix(options.prefix);
- }
- return this._httpHandler(req, resp);
- };
- }
- /**
- * Adds interceptors or hooks to the request stack
- * @param middlewares
- */
- use(...middlewares) {
- middlewares.forEach((middleware) => {
- if (hooks_1.isHook(middleware)) {
- this.hooks.push(middleware);
- return this;
- }
- this.interceptors.push(middleware);
- });
- return this;
- }
- /**
- * Adds a prefix to the service url path
- * @param prefix
- */
- withPrefix(prefix) {
- if (prefix === false) {
- this.pathPrefix = "";
- }
- else {
- this.pathPrefix = prefix;
- }
- return this;
- }
- /**
- * Returns the regex matching path for this twirp server
- */
- matchingPath() {
- const baseRegex = this.baseURI().replace(/\./g, "\\.");
- return new RegExp(`${baseRegex}\/(${this.methodList.join("|")})`);
- }
- /**
- * Returns the base URI for this twirp server
- */
- baseURI() {
- return `${this.pathPrefix}/${this.packageName ? this.packageName + "." : ""}${this.serviceName}`;
- }
- /**
- * Create a twirp context
- * @param req
- * @param res
- * @private
- */
- createContext(req, res) {
- return {
- packageName: this.packageName,
- serviceName: this.serviceName,
- methodName: "",
- contentType: request_1.getContentType(req.headers["content-type"]),
- req: req,
- res: res,
- };
- }
- /**
- * Twrip server http handler implementation
- * @param req
- * @param resp
- * @private
- */
- _httpHandler(req, resp) {
- return __awaiter(this, void 0, void 0, function* () {
- const ctx = this.createContext(req, resp);
- try {
- yield this.invokeHook("requestReceived", ctx);
- const { method, mimeContentType } = request_1.validateRequest(ctx, req, this.pathPrefix || "");
- const handler = this.matchRoute(method, {
- onMatch: (ctx) => {
- return this.invokeHook("requestRouted", ctx);
- },
- onNotFound: () => {
- const msg = `no handler for path ${req.url}`;
- throw new errors_1.BadRouteError(msg, req.method || "", req.url || "");
- },
- });
- const body = yield request_1.getRequestData(req);
- const response = yield handler(ctx, this.service, body, this.interceptors);
- yield Promise.all([
- this.invokeHook("responsePrepared", ctx),
- // keep backwards compatibility till next release
- this.invokeHook("requestPrepared", ctx),
- ]);
- resp.statusCode = 200;
- resp.setHeader("Content-Type", mimeContentType);
- resp.end(response);
- }
- catch (e) {
- yield this.invokeHook("error", ctx, mustBeTwirpError(e));
- if (!resp.headersSent) {
- writeError(resp, e);
- }
- }
- finally {
- yield Promise.all([
- this.invokeHook("responseSent", ctx),
- // keep backwards compatibility till next release
- this.invokeHook("requestSent", ctx),
- ]);
- }
- });
- }
- /**
- * Invoke a hook
- * @param hookName
- * @param ctx
- * @param err
- * @protected
- */
- invokeHook(hookName, ctx, err) {
- return __awaiter(this, void 0, void 0, function* () {
- if (this.hooks.length === 0) {
- return;
- }
- const chainedHooks = hooks_1.chainHooks(...this.hooks);
- const hook = chainedHooks === null || chainedHooks === void 0 ? void 0 : chainedHooks[hookName];
- if (hook) {
- yield hook(ctx, err || new errors_1.InternalServerError("internal server error"));
- }
- });
- }
-}
-exports.TwirpServer = TwirpServer;
-/**
- * Write http error response
- * @param res
- * @param error
- */
-function writeError(res, error) {
- const twirpError = mustBeTwirpError(error);
- res.setHeader("Content-Type", "application/json");
- res.statusCode = errors_1.httpStatusFromErrorCode(twirpError.code);
- res.end(twirpError.toJSON());
-}
-exports.writeError = writeError;
-/**
- * Make sure that the error passed is a TwirpError
- * otherwise it will wrap it into an InternalError
- * @param err
- */
-function mustBeTwirpError(err) {
- if (err instanceof errors_1.TwirpError) {
- return err;
- }
- return new errors_1.InternalServerErrorWith(err);
-}
-
-
/***/ }),
/***/ 1773:
@@ -75654,7 +68004,7 @@ class Request {
}
if (!extractBody) {
- extractBody = (__nccwpck_require__(1472).extractBody)
+ extractBody = (__nccwpck_require__(9990).extractBody)
}
const [bodyStream, contentType] = extractBody(body)
@@ -76781,7 +69131,7 @@ module.exports = Dispatcher
/***/ }),
-/***/ 1472:
+/***/ 9990:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -79507,7 +71857,7 @@ const {
} = __nccwpck_require__(2538)
const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
const assert = __nccwpck_require__(9491)
-const { safelyExtractBody } = __nccwpck_require__(1472)
+const { safelyExtractBody } = __nccwpck_require__(9990)
const {
redirectStatusSet,
nullBodyStatus,
@@ -81621,7 +73971,7 @@ module.exports = {
-const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(1472)
+const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(9990)
const { Headers, fill: fillHeaders, HeadersList } = __nccwpck_require__(554)
const { FinalizationRegistry } = __nccwpck_require__(6436)()
const util = __nccwpck_require__(3983)
@@ -82574,7 +74924,7 @@ module.exports = { Request, makeRequest }
const { Headers, HeadersList, fill } = __nccwpck_require__(554)
-const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(1472)
+const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(9990)
const util = __nccwpck_require__(3983)
const { kEnumerableProperty } = util
const {
@@ -97989,13 +90339,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98006,11 +90366,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.run = void 0;
+exports.run = run;
const core = __importStar(__nccwpck_require__(2186));
const constants = __importStar(__nccwpck_require__(9042));
const cache_1 = __nccwpck_require__(9179);
const reports_1 = __nccwpck_require__(2046);
+const sbom_1 = __nccwpck_require__(9181);
/**
* Check given input and run a save process for the specified package manager
* @returns Promise that will be resolved when the save process finishes
@@ -98043,10 +90404,10 @@ function ignoreErrors(promise) {
function run() {
return __awaiter(this, void 0, void 0, function* () {
yield ignoreErrors((0, reports_1.generateReports)());
+ yield ignoreErrors((0, sbom_1.processSBOM)());
yield ignoreErrors(saveCache());
});
}
-exports.run = run;
if (require.main === require.cache[eval('__filename')]) {
run();
}
@@ -98064,7 +90425,7 @@ else {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ERROR_HINT = exports.ERROR_REQUEST = exports.EVENT_NAME_PULL_REQUEST = exports.ENV_GITHUB_EVENT_NAME = exports.GDS_GRAALVM_PRODUCT_ID = exports.GDS_BASE = exports.MANDREL_NAMESPACE = exports.GRAALVM_RELEASES_REPO = exports.GRAALVM_PLATFORM = exports.GRAALVM_GH_USER = exports.GRAALVM_FILE_EXTENSION = exports.GRAALVM_ARCH = exports.JDK_HOME_SUFFIX = exports.JDK_PLATFORM = exports.JDK_ARCH = exports.VERSION_LATEST = exports.VERSION_DEV = exports.DISTRIBUTION_LIBERICA = exports.DISTRIBUTION_MANDREL = exports.DISTRIBUTION_GRAALVM_COMMUNITY = exports.DISTRIBUTION_GRAALVM = exports.EXECUTABLE_SUFFIX = exports.IS_WINDOWS = exports.IS_MACOS = exports.IS_LINUX = exports.INPUT_NI_MUSL = exports.INPUT_CHECK_FOR_UPDATES = exports.INPUT_CACHE = exports.INPUT_SET_JAVA_HOME = exports.INPUT_GITHUB_TOKEN = exports.INPUT_COMPONENTS = exports.INPUT_DISTRIBUTION = exports.INPUT_JAVA_PACKAGE = exports.INPUT_JAVA_VERSION = exports.INPUT_GDS_TOKEN = exports.INPUT_VERSION = exports.ACTION_VERSION = void 0;
+exports.ERROR_HINT = exports.ERROR_REQUEST = exports.EVENT_NAME_PULL_REQUEST = exports.ENV_GITHUB_EVENT_NAME = exports.GDS_GRAALVM_PRODUCT_ID = exports.GDS_BASE = exports.MANDREL_NAMESPACE = exports.GRAALVM_RELEASES_REPO = exports.GRAALVM_PLATFORM = exports.GRAALVM_GH_USER = exports.GRAALVM_FILE_EXTENSION = exports.GRAALVM_ARCH = exports.JDK_HOME_SUFFIX = exports.JDK_PLATFORM = exports.JDK_ARCH = exports.VERSION_LATEST = exports.VERSION_DEV = exports.DISTRIBUTION_LIBERICA = exports.DISTRIBUTION_MANDREL = exports.DISTRIBUTION_GRAALVM_COMMUNITY = exports.DISTRIBUTION_GRAALVM = exports.EXECUTABLE_SUFFIX = exports.IS_WINDOWS = exports.IS_MACOS = exports.IS_LINUX = exports.NATIVE_IMAGE_OPTIONS_ENV = exports.INPUT_NI_MUSL = exports.INPUT_CHECK_FOR_UPDATES = exports.INPUT_CACHE = exports.INPUT_SET_JAVA_HOME = exports.INPUT_GITHUB_TOKEN = exports.INPUT_COMPONENTS = exports.INPUT_DISTRIBUTION = exports.INPUT_JAVA_PACKAGE = exports.INPUT_JAVA_VERSION = exports.INPUT_GDS_TOKEN = exports.INPUT_VERSION = exports.ACTION_VERSION = void 0;
exports.ACTION_VERSION = '1.2.7';
exports.INPUT_VERSION = 'version';
exports.INPUT_GDS_TOKEN = 'gds-token';
@@ -98077,6 +90438,7 @@ exports.INPUT_SET_JAVA_HOME = 'set-java-home';
exports.INPUT_CACHE = 'cache';
exports.INPUT_CHECK_FOR_UPDATES = 'check-for-updates';
exports.INPUT_NI_MUSL = 'native-image-musl';
+exports.NATIVE_IMAGE_OPTIONS_ENV = 'NATIVE_IMAGE_OPTIONS';
exports.IS_LINUX = process.platform === 'linux';
exports.IS_MACOS = process.platform === 'darwin';
exports.IS_WINDOWS = process.platform === 'win32';
@@ -98196,13 +90558,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98216,7 +90588,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.save = exports.restore = void 0;
+exports.restore = restore;
+exports.save = save;
const path_1 = __nccwpck_require__(1017);
const os_1 = __importDefault(__nccwpck_require__(2037));
const cache = __importStar(__nccwpck_require__(7799));
@@ -98316,7 +90689,6 @@ function restore(id) {
}
});
}
-exports.restore = restore;
/**
* Save the dependency cache
* @param id ID of the package manager, should be "maven" or "gradle"
@@ -98357,7 +90729,6 @@ function save(id) {
}
});
}
-exports.save = save;
/**
* @param packageManager the specified package manager by user
* @param error the error thrown by the saveCache
@@ -98397,13 +90768,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98414,16 +90795,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.generateReports = exports.setUpNativeImageBuildReports = void 0;
+exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
+exports.generateReports = generateReports;
const c = __importStar(__nccwpck_require__(9042));
const core = __importStar(__nccwpck_require__(2186));
const fs = __importStar(__nccwpck_require__(7147));
const github = __importStar(__nccwpck_require__(5438));
const semver = __importStar(__nccwpck_require__(1383));
-const path_1 = __nccwpck_require__(1017);
-const os_1 = __nccwpck_require__(2037);
const utils_1 = __nccwpck_require__(1314);
-const BUILD_OUTPUT_JSON_PATH = (0, path_1.join)((0, os_1.tmpdir)(), 'native-image-build-output.json');
+const BUILD_OUTPUT_JSON_PATH = (0, utils_1.tmpfile)('native-image-build-output.json');
const BYTES_TO_KiB = 1024;
const BYTES_TO_MiB = 1024 * 1024;
const BYTES_TO_GiB = 1024 * 1024 * 1024;
@@ -98431,9 +90811,6 @@ const DOCS_BASE = 'https://github.com/oracle/graal/blob/master/docs/reference-ma
const INPUT_NI_JOB_REPORTS = 'native-image-job-reports';
const INPUT_NI_PR_REPORTS = 'native-image-pr-reports';
const INPUT_NI_PR_REPORTS_UPDATE = 'native-image-pr-reports-update-existing';
-const NATIVE_IMAGE_CONFIG_FILE = (0, path_1.join)((0, os_1.tmpdir)(), 'native-image-options.properties');
-const NATIVE_IMAGE_OPTIONS_ENV = 'NATIVE_IMAGE_OPTIONS';
-const NATIVE_IMAGE_CONFIG_FILE_ENV = 'NATIVE_IMAGE_CONFIG_FILE';
const PR_COMMENT_TITLE = '## GraalVM Native Image Build Report';
function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, javaVersionOrDev, graalVMVersion) {
return __awaiter(this, void 0, void 0, function* () {
@@ -98450,10 +90827,9 @@ function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, javaVersionOrDev
core.warning(`Build reports for PRs and job summaries are only available in GraalVM 22.2.0 or later. This build job uses GraalVM ${graalVMVersion}.`);
return;
}
- setNativeImageOption(javaVersionOrDev, `-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows
+ (0, utils_1.setNativeImageOption)(javaVersionOrDev, `-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows
});
}
-exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
function generateReports() {
return __awaiter(this, void 0, void 0, function* () {
if (areJobReportsEnabled() || arePRReportsEnabled()) {
@@ -98482,7 +90858,6 @@ function generateReports() {
}
});
}
-exports.generateReports = generateReports;
function areJobReportsEnabled() {
return core.getInput(INPUT_NI_JOB_REPORTS) === 'true';
}
@@ -98492,38 +90867,6 @@ function arePRReportsEnabled() {
function arePRReportsUpdateEnabled() {
return (0, utils_1.isPREvent)() && core.getInput(INPUT_NI_PR_REPORTS_UPDATE) === 'true';
}
-function setNativeImageOption(javaVersionOrDev, optionValue) {
- const coercedJavaVersionOrDev = semver.coerce(javaVersionOrDev);
- if ((coercedJavaVersionOrDev &&
- semver.gte(coercedJavaVersionOrDev, '22.0.0')) ||
- javaVersionOrDev === c.VERSION_DEV ||
- javaVersionOrDev.endsWith('-ea')) {
- /* NATIVE_IMAGE_OPTIONS was introduced in GraalVM for JDK 22 (so were EA builds). */
- let newOptionValue = optionValue;
- const existingOptions = process.env[NATIVE_IMAGE_OPTIONS_ENV];
- if (existingOptions) {
- newOptionValue = `${existingOptions} ${newOptionValue}`;
- }
- core.exportVariable(NATIVE_IMAGE_OPTIONS_ENV, newOptionValue);
- }
- else {
- const optionsFile = getNativeImageOptionsFile();
- if (fs.existsSync(optionsFile)) {
- fs.appendFileSync(optionsFile, ` ${optionValue}`);
- }
- else {
- fs.writeFileSync(optionsFile, `NativeImageArgs = ${optionValue}`);
- }
- }
-}
-function getNativeImageOptionsFile() {
- let optionsFile = process.env[NATIVE_IMAGE_CONFIG_FILE_ENV];
- if (optionsFile === undefined) {
- optionsFile = NATIVE_IMAGE_CONFIG_FILE;
- core.exportVariable(NATIVE_IMAGE_CONFIG_FILE_ENV, optionsFile);
- }
- return optionsFile;
-}
function createReport(data) {
const context = github.context;
const info = data.general_info;
@@ -98751,6 +91094,248 @@ function secondsToHuman(seconds) {
}
+/***/ }),
+
+/***/ 9181:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
+var __awaiter = (this && this.__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.setUpSBOMSupport = setUpSBOMSupport;
+exports.processSBOM = processSBOM;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const github = __importStar(__nccwpck_require__(5438));
+const glob = __importStar(__nccwpck_require__(8090));
+const path_1 = __nccwpck_require__(1017);
+const semver = __importStar(__nccwpck_require__(1383));
+const utils_1 = __nccwpck_require__(1314);
+const INPUT_NI_SBOM = 'native-image-enable-sbom';
+const SBOM_FILE_SUFFIX = '.sbom.json';
+const MIN_JAVA_VERSION = '24.0.0';
+let javaVersionOrLatestEA = null;
+function setUpSBOMSupport(javaVersionOrDev, distribution) {
+ if (!isFeatureEnabled()) {
+ return;
+ }
+ validateJavaVersionAndDistribution(javaVersionOrDev, distribution);
+ javaVersionOrLatestEA = javaVersionOrDev;
+ (0, utils_1.setNativeImageOption)(javaVersionOrLatestEA, '--enable-sbom=export');
+ core.info('Enabled SBOM generation for Native Image build');
+}
+function validateJavaVersionAndDistribution(javaVersionOrDev, distribution) {
+ if (distribution !== c.DISTRIBUTION_GRAALVM) {
+ throw new Error(`The '${INPUT_NI_SBOM}' option is only supported for Oracle GraalVM (distribution '${c.DISTRIBUTION_GRAALVM}'), but found distribution '${distribution}'.`);
+ }
+ if (javaVersionOrDev === 'dev') {
+ throw new Error(`The '${INPUT_NI_SBOM}' option is not supported for java-version 'dev'.`);
+ }
+ if (javaVersionOrDev === 'latest-ea') {
+ return;
+ }
+ const coercedJavaVersion = semver.coerce(javaVersionOrDev);
+ if (!coercedJavaVersion || semver.gt(MIN_JAVA_VERSION, coercedJavaVersion)) {
+ throw new Error(`The '${INPUT_NI_SBOM}' option is only supported for GraalVM for JDK ${MIN_JAVA_VERSION} or later, but found java-version '${javaVersionOrDev}'.`);
+ }
+}
+function processSBOM() {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (!isFeatureEnabled()) {
+ return;
+ }
+ if (javaVersionOrLatestEA === null) {
+ throw new Error('setUpSBOMSupport must be called before processSBOM');
+ }
+ const sbomPath = yield findSBOMFilePath();
+ try {
+ const sbomContent = fs.readFileSync(sbomPath, 'utf8');
+ const sbomData = parseSBOM(sbomContent);
+ const components = mapToComponentsWithDependencies(sbomData);
+ printSBOMContent(components);
+ const snapshot = convertSBOMToSnapshot(sbomPath, components);
+ yield submitDependencySnapshot(snapshot);
+ }
+ catch (error) {
+ throw new Error(`Failed to process and submit SBOM to the GitHub dependency submission API: ${error instanceof Error ? error.message : String(error)}`);
+ }
+ });
+}
+function isFeatureEnabled() {
+ return core.getInput(INPUT_NI_SBOM) === 'true';
+}
+function findSBOMFilePath() {
+ return __awaiter(this, void 0, void 0, function* () {
+ const globber = yield glob.create(`**/*${SBOM_FILE_SUFFIX}`);
+ const sbomFiles = yield globber.glob();
+ if (sbomFiles.length === 0) {
+ throw new Error('No SBOM found. Make sure native-image build completed successfully.');
+ }
+ if (sbomFiles.length > 1) {
+ throw new Error(`Expected one SBOM but found multiple: ${sbomFiles.join(', ')}.`);
+ }
+ core.info(`Found SBOM: ${sbomFiles[0]}`);
+ return sbomFiles[0];
+ });
+}
+function parseSBOM(jsonString) {
+ try {
+ const sbomData = JSON.parse(jsonString);
+ return sbomData;
+ }
+ catch (error) {
+ throw new Error(`Failed to parse SBOM JSON: ${error instanceof Error ? error.message : String(error)}`);
+ }
+}
+// Maps the SBOM to a list of components with their dependencies
+function mapToComponentsWithDependencies(sbom) {
+ if (!sbom || sbom.components.length === 0) {
+ throw new Error('Invalid SBOM data or no components found.');
+ }
+ return sbom.components.map((component) => {
+ var _a, _b;
+ const dependencies = ((_b = (_a = sbom.dependencies) === null || _a === void 0 ? void 0 : _a.find((dep) => dep.ref === component['bom-ref'])) === null || _b === void 0 ? void 0 : _b.dependsOn) || [];
+ return {
+ name: component.name,
+ version: component.version,
+ purl: component.purl,
+ dependencies,
+ 'bom-ref': component['bom-ref']
+ };
+ });
+}
+function printSBOMContent(components) {
+ core.info('=== SBOM Content ===');
+ for (const component of components) {
+ core.info(`- ${component['bom-ref']}`);
+ if (component.dependencies && component.dependencies.length > 0) {
+ core.info(` depends on: ${component.dependencies.join(', ')}`);
+ }
+ }
+ core.info('==================');
+}
+function convertSBOMToSnapshot(sbomPath, components) {
+ const context = github.context;
+ const sbomFileName = (0, path_1.basename)(sbomPath);
+ if (!sbomFileName.endsWith(SBOM_FILE_SUFFIX)) {
+ throw new Error(`Invalid SBOM file name: ${sbomFileName}. Expected a file ending with ${SBOM_FILE_SUFFIX}.`);
+ }
+ return {
+ version: 0,
+ sha: context.sha,
+ ref: context.ref,
+ job: {
+ correlator: `${context.workflow}_${context.job}`,
+ id: context.runId.toString(),
+ html_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
+ },
+ detector: {
+ name: 'Oracle GraalVM',
+ version: javaVersionOrLatestEA !== null && javaVersionOrLatestEA !== void 0 ? javaVersionOrLatestEA : '',
+ url: 'https://www.graalvm.org/'
+ },
+ scanned: new Date().toISOString(),
+ manifests: {
+ [sbomFileName]: {
+ name: sbomFileName,
+ resolved: mapComponentsToGithubAPIFormat(components),
+ metadata: {
+ generated_by: 'SBOM generated by GraalVM Native Image',
+ action_version: c.ACTION_VERSION
+ }
+ }
+ }
+ };
+}
+function mapComponentsToGithubAPIFormat(components) {
+ return Object.fromEntries(components
+ .filter(component => {
+ if (!component.purl) {
+ core.info(`Component ${component.name} does not have a valid package URL (purl). Skipping.`);
+ }
+ return component.purl;
+ })
+ .map(component => [
+ component.name,
+ {
+ package_url: component.purl,
+ dependencies: component.dependencies || []
+ }
+ ]));
+}
+function submitDependencySnapshot(snapshotData) {
+ return __awaiter(this, void 0, void 0, function* () {
+ const token = core.getInput(c.INPUT_GITHUB_TOKEN, { required: true });
+ const octokit = github.getOctokit(token);
+ const context = github.context;
+ try {
+ yield octokit.request('POST /repos/{owner}/{repo}/dependency-graph/snapshots', {
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ version: snapshotData.version,
+ sha: snapshotData.sha,
+ ref: snapshotData.ref,
+ job: snapshotData.job,
+ detector: snapshotData.detector,
+ metadata: {},
+ scanned: snapshotData.scanned,
+ manifests: snapshotData.manifests,
+ headers: {
+ 'X-GitHub-Api-Version': '2022-11-28'
+ }
+ });
+ core.info('Dependency snapshot submitted successfully.');
+ }
+ catch (error) {
+ throw new Error(`Failed to submit dependency snapshot for SBOM: ${error instanceof Error ? error.message : String(error)}`);
+ }
+ });
+}
+
+
/***/ }),
/***/ 1314:
@@ -98774,13 +91359,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98791,18 +91386,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.createPRComment = exports.updatePRComment = exports.findExistingPRCommentId = exports.isPREvent = exports.toSemVer = exports.calculateSHA256 = exports.downloadExtractAndCacheJDK = exports.downloadAndExtractJDK = exports.getMatchingTags = exports.getTaggedRelease = exports.getContents = exports.getLatestRelease = exports.exec = void 0;
+exports.exec = exec;
+exports.getLatestRelease = getLatestRelease;
+exports.getContents = getContents;
+exports.getTaggedRelease = getTaggedRelease;
+exports.getMatchingTags = getMatchingTags;
+exports.downloadAndExtractJDK = downloadAndExtractJDK;
+exports.downloadExtractAndCacheJDK = downloadExtractAndCacheJDK;
+exports.calculateSHA256 = calculateSHA256;
+exports.toSemVer = toSemVer;
+exports.isPREvent = isPREvent;
+exports.findExistingPRCommentId = findExistingPRCommentId;
+exports.updatePRComment = updatePRComment;
+exports.createPRComment = createPRComment;
+exports.tmpfile = tmpfile;
+exports.setNativeImageOption = setNativeImageOption;
const c = __importStar(__nccwpck_require__(9042));
const core = __importStar(__nccwpck_require__(2186));
const github = __importStar(__nccwpck_require__(5438));
const httpClient = __importStar(__nccwpck_require__(6255));
const semver = __importStar(__nccwpck_require__(1383));
const tc = __importStar(__nccwpck_require__(7784));
+const fs = __importStar(__nccwpck_require__(7147));
const exec_1 = __nccwpck_require__(1514);
const fs_1 = __nccwpck_require__(7147);
const core_1 = __nccwpck_require__(6762);
const crypto_1 = __nccwpck_require__(6113);
const path_1 = __nccwpck_require__(1017);
+const os_1 = __nccwpck_require__(2037);
// Set up Octokit for github.com only and in the same way as @actions/github (see https://git.io/Jy9YP)
const baseUrl = 'https://api.github.com';
const GitHubDotCom = core_1.Octokit.defaults({
@@ -98821,7 +91432,6 @@ function exec(commandLine, args, options) {
}
});
}
-exports.exec = exec;
function getLatestRelease(repo) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -98833,7 +91443,6 @@ function getLatestRelease(repo) {
})).data;
});
}
-exports.getLatestRelease = getLatestRelease;
function getContents(repo, path) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -98846,7 +91455,6 @@ function getContents(repo, path) {
})).data;
});
}
-exports.getContents = getContents;
function getTaggedRelease(owner, repo, tag) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -98859,7 +91467,6 @@ function getTaggedRelease(owner, repo, tag) {
})).data;
});
}
-exports.getTaggedRelease = getTaggedRelease;
function getMatchingTags(owner, repo, tagPrefix) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -98872,13 +91479,11 @@ function getMatchingTags(owner, repo, tagPrefix) {
})).data;
});
}
-exports.getMatchingTags = getMatchingTags;
function downloadAndExtractJDK(downloadUrl) {
return __awaiter(this, void 0, void 0, function* () {
return findJavaHomeInSubfolder(yield extract(yield tc.downloadTool(downloadUrl)));
});
}
-exports.downloadAndExtractJDK = downloadAndExtractJDK;
function downloadExtractAndCacheJDK(downloader, toolName, version) {
return __awaiter(this, void 0, void 0, function* () {
const semVersion = toSemVer(version);
@@ -98894,13 +91499,11 @@ function downloadExtractAndCacheJDK(downloader, toolName, version) {
return findJavaHomeInSubfolder(toolPath);
});
}
-exports.downloadExtractAndCacheJDK = downloadExtractAndCacheJDK;
function calculateSHA256(filePath) {
const hashSum = (0, crypto_1.createHash)('sha256');
hashSum.update((0, fs_1.readFileSync)(filePath));
return hashSum.digest('hex');
}
-exports.calculateSHA256 = calculateSHA256;
function extract(downloadPath) {
return __awaiter(this, void 0, void 0, function* () {
if (c.GRAALVM_FILE_EXTENSION === '.tar.gz') {
@@ -98940,11 +91543,9 @@ function toSemVer(version) {
}
return validVersion;
}
-exports.toSemVer = toSemVer;
function isPREvent() {
return process.env[c.ENV_GITHUB_EVENT_NAME] === c.EVENT_NAME_PULL_REQUEST;
}
-exports.isPREvent = isPREvent;
function getGitHubToken() {
return core.getInput(c.INPUT_GITHUB_TOKEN);
}
@@ -98968,7 +91569,6 @@ function findExistingPRCommentId(bodyStartsWith) {
}
});
}
-exports.findExistingPRCommentId = findExistingPRCommentId;
function updatePRComment(content, commentId) {
return __awaiter(this, void 0, void 0, function* () {
if (!isPREvent()) {
@@ -98982,7 +91582,6 @@ function updatePRComment(content, commentId) {
}
});
}
-exports.updatePRComment = updatePRComment;
function createPRComment(content) {
return __awaiter(this, void 0, void 0, function* () {
var _a;
@@ -98998,7 +91597,43 @@ function createPRComment(content) {
}
});
}
-exports.createPRComment = createPRComment;
+function tmpfile(fileName) {
+ return (0, path_1.join)((0, os_1.tmpdir)(), fileName);
+}
+function setNativeImageOption(javaVersionOrDev, optionValue) {
+ const coercedJavaVersionOrDev = semver.coerce(javaVersionOrDev);
+ if ((coercedJavaVersionOrDev &&
+ semver.gte(coercedJavaVersionOrDev, '22.0.0')) ||
+ javaVersionOrDev === c.VERSION_DEV ||
+ javaVersionOrDev.endsWith('-ea')) {
+ /* NATIVE_IMAGE_OPTIONS was introduced in GraalVM for JDK 22 (so were EA builds). */
+ let newOptionValue = optionValue;
+ const existingOptions = process.env[c.NATIVE_IMAGE_OPTIONS_ENV];
+ if (existingOptions) {
+ newOptionValue = `${existingOptions} ${newOptionValue}`;
+ }
+ core.exportVariable(c.NATIVE_IMAGE_OPTIONS_ENV, newOptionValue);
+ }
+ else {
+ const optionsFile = getNativeImageOptionsFile();
+ if (fs.existsSync(optionsFile)) {
+ fs.appendFileSync(optionsFile, ` ${optionValue}`);
+ }
+ else {
+ fs.writeFileSync(optionsFile, `NativeImageArgs = ${optionValue}`);
+ }
+ }
+}
+const NATIVE_IMAGE_CONFIG_FILE = tmpfile('native-image-options.properties');
+const NATIVE_IMAGE_CONFIG_FILE_ENV = 'NATIVE_IMAGE_CONFIG_FILE';
+function getNativeImageOptionsFile() {
+ let optionsFile = process.env[NATIVE_IMAGE_CONFIG_FILE_ENV];
+ if (optionsFile === undefined) {
+ optionsFile = NATIVE_IMAGE_CONFIG_FILE;
+ core.exportVariable(NATIVE_IMAGE_CONFIG_FILE_ENV, optionsFile);
+ }
+ return optionsFile;
+}
/***/ }),
@@ -103411,14 +96046,6 @@ function parseParams (str) {
module.exports = parseParams
-/***/ }),
-
-/***/ 9167:
-/***/ ((module) => {
-
-"use strict";
-module.exports = JSON.parse('{"name":"@actions/cache","version":"4.0.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1","twirp-ts":"^2.5.0"},"devDependencies":{"@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
-
/***/ }),
/***/ 3765:
diff --git a/dist/main/index.js b/dist/main/index.js
index 74a4102..cb97b84 100644
--- a/dist/main/index.js
+++ b/dist/main/index.js
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 27799:
+/***/ 7799:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -40,14 +40,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const path = __importStar(__nccwpck_require__(71017));
-const utils = __importStar(__nccwpck_require__(91518));
-const cacheHttpClient = __importStar(__nccwpck_require__(98245));
-const cacheTwirpClient = __importStar(__nccwpck_require__(82502));
-const config_1 = __nccwpck_require__(35147);
-const tar_1 = __nccwpck_require__(56490);
-const constants_1 = __nccwpck_require__(88840);
+const core = __importStar(__nccwpck_require__(2186));
+const path = __importStar(__nccwpck_require__(1017));
+const utils = __importStar(__nccwpck_require__(1518));
+const cacheHttpClient = __importStar(__nccwpck_require__(8245));
+const tar_1 = __nccwpck_require__(6490);
class ValidationError extends Error {
constructor(message) {
super(message);
@@ -91,39 +88,15 @@ exports.isFeatureAvailable = isFeatureAvailable;
* Restores cache from keys
*
* @param paths a list of file paths to restore from the cache
- * @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching.
- * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
+ * @param primaryKey an explicit key for restoring the cache
+ * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for key
* @param downloadOptions cache download options
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
* @returns string returns the key for the cache hit, otherwise returns undefined
*/
function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
return __awaiter(this, void 0, void 0, function* () {
- const cacheServiceVersion = (0, config_1.getCacheServiceVersion)();
- core.debug(`Cache service version: ${cacheServiceVersion}`);
checkPaths(paths);
- switch (cacheServiceVersion) {
- case 'v2':
- return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
- case 'v1':
- default:
- return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
- }
- });
-}
-exports.restoreCache = restoreCache;
-/**
- * Restores cache using the legacy Cache Service
- *
- * @param paths a list of file paths to restore from the cache
- * @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching.
- * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
- * @param options cache download options
- * @param enableCrossOsArchive an optional boolean enabled to restore on Windows any cache created on any platform
- * @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* () {
restoreKeys = restoreKeys || [];
const keys = [primaryKey, ...restoreKeys];
core.debug('Resolved Keys:');
@@ -185,85 +158,7 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
return undefined;
});
}
-/**
- * Restores cache using Cache Service v2
- *
- * @param paths a list of file paths to restore from the cache
- * @param primaryKey an explicit key for restoring the cache. Lookup is done with prefix matching
- * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for primaryKey
- * @param downloadOptions cache download options
- * @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
- * @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* () {
- // Override UploadOptions to force the use of Azure
- options = Object.assign(Object.assign({}, options), { useAzureSdk: true });
- restoreKeys = restoreKeys || [];
- const keys = [primaryKey, ...restoreKeys];
- core.debug('Resolved Keys:');
- core.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 = '';
- try {
- const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
- const compressionMethod = yield utils.getCompressionMethod();
- const request = {
- key: primaryKey,
- restoreKeys,
- version: utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive)
- };
- const response = yield twirpClient.GetCacheEntryDownloadURL(request);
- if (!response.ok) {
- core.warning(`Cache not found for keys: ${keys.join(', ')}`);
- return undefined;
- }
- core.info(`Cache hit for: ${request.key}`);
- if (options === null || options === void 0 ? void 0 : options.lookupOnly) {
- core.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}`);
- 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);
- }
- yield (0, tar_1.extractTar)(archivePath, compressionMethod);
- core.info('Cache restored successfully');
- return response.matchedKey;
- }
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else {
- // Supress all non-validation cache related errors because caching should be optional
- core.warning(`Failed to restore: ${error.message}`);
- }
- }
- finally {
- try {
- if (archivePath) {
- yield utils.unlinkFile(archivePath);
- }
- }
- catch (error) {
- core.debug(`Failed to delete archive: ${error}`);
- }
- }
- return undefined;
- });
-}
+exports.restoreCache = restoreCache;
/**
* Saves a list of files with the specified key
*
@@ -274,33 +169,10 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
* @returns number returns cacheId if the cache was saved successfully and throws an error if save fails
*/
function saveCache(paths, key, options, enableCrossOsArchive = false) {
- return __awaiter(this, void 0, void 0, function* () {
- const cacheServiceVersion = (0, config_1.getCacheServiceVersion)();
- core.debug(`Cache service version: ${cacheServiceVersion}`);
- checkPaths(paths);
- checkKey(key);
- switch (cacheServiceVersion) {
- case 'v2':
- return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
- case 'v1':
- default:
- return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
- }
- });
-}
-exports.saveCache = saveCache;
-/**
- * Save cache using the legacy Cache Service
- *
- * @param paths
- * @param key
- * @param options
- * @param enableCrossOsArchive
- * @returns
- */
-function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
var _a, _b, _c, _d, _e;
return __awaiter(this, void 0, void 0, function* () {
+ checkPaths(paths);
+ checkKey(key);
const compressionMethod = yield utils.getCompressionMethod();
let cacheId = -1;
const cachePaths = yield utils.resolvePaths(paths);
@@ -321,7 +193,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
core.debug(`File Size: ${archiveFileSize}`);
// For GHES, this check will take place in ReserveCache API with enterprise file size limit
- if (archiveFileSize > fileSizeLimit && !(0, config_1.isGhes)()) {
+ if (archiveFileSize > fileSizeLimit && !utils.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');
@@ -340,95 +212,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
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})`);
- 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}`);
- }
- }
- finally {
- // Try to delete the archive to save space
- try {
- yield utils.unlinkFile(archivePath);
- }
- catch (error) {
- core.debug(`Failed to delete archive: ${error}`);
- }
- }
- return cacheId;
- });
-}
-/**
- * Save cache using Cache Service v2
- *
- * @param paths a list of file paths to restore from the cache
- * @param key an explicit key for restoring the cache
- * @param options cache upload options
- * @param enableCrossOsArchive an optional boolean enabled to save cache on windows which could be restored on any platform
- * @returns
- */
-function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
- return __awaiter(this, void 0, void 0, function* () {
- // Override UploadOptions to force the use of Azure
- // ...options goes first because we want to override the default values
- // set in UploadOptions with these specific figures
- options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true });
- const compressionMethod = yield utils.getCompressionMethod();
- const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
- let cacheId = -1;
- const cachePaths = yield utils.resolvePaths(paths);
- core.debug('Cache Paths:');
- core.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}`);
- try {
- yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod);
- if (core.isDebug()) {
- yield (0, tar_1.listTar)(archivePath, compressionMethod);
- }
- const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
- core.debug(`File Size: ${archiveFileSize}`);
- // For GHES, this check will take place in ReserveCache API with enterprise file size limit
- 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.`);
- }
- // Set the archive size in the options, will be used to display the upload progress
- options.archiveSizeBytes = archiveFileSize;
- core.debug('Reserving Cache');
- const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
- const request = {
- key,
- version
- };
- const response = yield twirpClient.CreateCacheEntry(request);
- if (!response.ok) {
- 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}`);
- yield cacheHttpClient.saveCache(cacheId, archivePath, response.signedUploadUrl, options);
- const finalizeRequest = {
- key,
- version,
- sizeBytes: `${archiveFileSize}`
- };
- const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
- core.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);
+ yield cacheHttpClient.saveCache(cacheId, archivePath, options);
}
catch (error) {
const typedError = error;
@@ -454,1754 +238,12 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
return cacheId;
});
}
+exports.saveCache = saveCache;
//# sourceMappingURL=cache.js.map
/***/ }),
-/***/ 24469:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.Timestamp = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const runtime_6 = __nccwpck_require__(4061);
-const runtime_7 = __nccwpck_require__(4061);
-// @generated message type with reflection information, may provide speed optimized methods
-class Timestamp$Type extends runtime_7.MessageType {
- constructor() {
- super("google.protobuf.Timestamp", [
- { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
- ]);
- }
- /**
- * Creates a new `Timestamp` for the current time.
- */
- now() {
- const msg = this.create();
- const ms = Date.now();
- msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();
- msg.nanos = (ms % 1000) * 1000000;
- return msg;
- }
- /**
- * Converts a `Timestamp` to a JavaScript Date.
- */
- toDate(message) {
- return new Date(runtime_6.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
- }
- /**
- * Converts a JavaScript Date to a `Timestamp`.
- */
- fromDate(date) {
- const msg = this.create();
- const ms = date.getTime();
- msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();
- msg.nanos = (ms % 1000) * 1000000;
- return msg;
- }
- /**
- * In JSON format, the `Timestamp` type is encoded as a string
- * in the RFC 3339 format.
- */
- internalJsonWrite(message, options) {
- let ms = runtime_6.PbLong.from(message.seconds).toNumber() * 1000;
- if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
- throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
- if (message.nanos < 0)
- throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
- let z = "Z";
- if (message.nanos > 0) {
- let nanosStr = (message.nanos + 1000000000).toString().substring(1);
- if (nanosStr.substring(3) === "000000")
- z = "." + nanosStr.substring(0, 3) + "Z";
- else if (nanosStr.substring(6) === "000")
- z = "." + nanosStr.substring(0, 6) + "Z";
- else
- z = "." + nanosStr + "Z";
- }
- return new Date(ms).toISOString().replace(".000Z", z);
- }
- /**
- * In JSON format, the `Timestamp` type is encoded as a string
- * in the RFC 3339 format.
- */
- internalJsonRead(json, options, target) {
- if (typeof json !== "string")
- throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_5.typeofJsonValue)(json) + ".");
- let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
- if (!matches)
- throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
- let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
- if (Number.isNaN(ms))
- throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
- if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
- throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
- if (!target)
- target = this.create();
- target.seconds = runtime_6.PbLong.from(ms / 1000).toString();
- target.nanos = 0;
- if (matches[7])
- target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
- return target;
- }
- create(value) {
- const message = { seconds: "0", nanos: 0 };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* int64 seconds */ 1:
- message.seconds = reader.int64().toString();
- break;
- case /* int32 nanos */ 2:
- message.nanos = reader.int32();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* int64 seconds = 1; */
- if (message.seconds !== "0")
- writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
- /* int32 nanos = 2; */
- if (message.nanos !== 0)
- writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message google.protobuf.Timestamp
- */
-exports.Timestamp = new Timestamp$Type();
-//# sourceMappingURL=timestamp.js.map
-
-/***/ }),
-
-/***/ 84388:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheService = exports.LookupCacheEntryResponse = exports.LookupCacheEntryRequest = exports.ListCacheEntriesResponse = exports.ListCacheEntriesRequest = exports.DeleteCacheEntryResponse = exports.DeleteCacheEntryRequest = exports.GetCacheEntryDownloadURLResponse = exports.GetCacheEntryDownloadURLRequest = exports.FinalizeCacheEntryUploadResponse = exports.FinalizeCacheEntryUploadRequest = exports.CreateCacheEntryResponse = exports.CreateCacheEntryRequest = void 0;
-// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies
-// @generated from protobuf file "results/api/v1/cache.proto" (package "github.actions.results.api.v1", syntax proto3)
-// tslint:disable
-const runtime_rpc_1 = __nccwpck_require__(60012);
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const cacheentry_1 = __nccwpck_require__(53639);
-const cachemetadata_1 = __nccwpck_require__(67988);
-// @generated message type with reflection information, may provide speed optimized methods
-class CreateCacheEntryRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.CreateCacheEntryRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* string version */ 3:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* string version = 3; */
- if (message.version !== "")
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.CreateCacheEntryRequest
- */
-exports.CreateCacheEntryRequest = new CreateCacheEntryRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.CreateCacheEntryResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, signedUploadUrl: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* string signed_upload_url */ 2:
- message.signedUploadUrl = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* string signed_upload_url = 2; */
- if (message.signedUploadUrl !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.CreateCacheEntryResponse
- */
-exports.CreateCacheEntryResponse = new CreateCacheEntryResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class FinalizeCacheEntryUploadRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", sizeBytes: "0", version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* int64 size_bytes */ 3:
- message.sizeBytes = reader.int64().toString();
- break;
- case /* string version */ 4:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* int64 size_bytes = 3; */
- if (message.sizeBytes !== "0")
- writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
- /* string version = 4; */
- if (message.version !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeCacheEntryUploadRequest
- */
-exports.FinalizeCacheEntryUploadRequest = new FinalizeCacheEntryUploadRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, entryId: "0" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* int64 entry_id */ 2:
- message.entryId = reader.int64().toString();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* int64 entry_id = 2; */
- if (message.entryId !== "0")
- writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeCacheEntryUploadResponse
- */
-exports.FinalizeCacheEntryUploadResponse = new FinalizeCacheEntryUploadResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class GetCacheEntryDownloadURLRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
- { no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", restoreKeys: [], version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* repeated string restore_keys */ 3:
- message.restoreKeys.push(reader.string());
- break;
- case /* string version */ 4:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* repeated string restore_keys = 3; */
- for (let i = 0; i < message.restoreKeys.length; i++)
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
- /* string version = 4; */
- if (message.version !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLRequest
- */
-exports.GetCacheEntryDownloadURLRequest = new GetCacheEntryDownloadURLRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class GetCacheEntryDownloadURLResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "signed_download_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "matched_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, signedDownloadUrl: "", matchedKey: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* string signed_download_url */ 2:
- message.signedDownloadUrl = reader.string();
- break;
- case /* string matched_key */ 3:
- message.matchedKey = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* string signed_download_url = 2; */
- if (message.signedDownloadUrl !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedDownloadUrl);
- /* string matched_key = 3; */
- if (message.matchedKey !== "")
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.matchedKey);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.GetCacheEntryDownloadURLResponse
- */
-exports.GetCacheEntryDownloadURLResponse = new GetCacheEntryDownloadURLResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class DeleteCacheEntryRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.DeleteCacheEntryRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.DeleteCacheEntryRequest
- */
-exports.DeleteCacheEntryRequest = new DeleteCacheEntryRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class DeleteCacheEntryResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.DeleteCacheEntryResponse", [
- { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
- ]);
- }
- create(value) {
- const message = { ok: false, entryId: "0" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool ok */ 1:
- message.ok = reader.bool();
- break;
- case /* int64 entry_id */ 2:
- message.entryId = reader.int64().toString();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool ok = 1; */
- if (message.ok !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
- /* int64 entry_id = 2; */
- if (message.entryId !== "0")
- writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.DeleteCacheEntryResponse
- */
-exports.DeleteCacheEntryResponse = new DeleteCacheEntryResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class ListCacheEntriesRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.ListCacheEntriesRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", restoreKeys: [] };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* repeated string restore_keys */ 3:
- message.restoreKeys.push(reader.string());
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* repeated string restore_keys = 3; */
- for (let i = 0; i < message.restoreKeys.length; i++)
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.ListCacheEntriesRequest
- */
-exports.ListCacheEntriesRequest = new ListCacheEntriesRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class ListCacheEntriesResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.ListCacheEntriesResponse", [
- { no: 1, name: "entries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => cacheentry_1.CacheEntry }
- ]);
- }
- create(value) {
- const message = { entries: [] };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* repeated github.actions.results.entities.v1.CacheEntry entries */ 1:
- message.entries.push(cacheentry_1.CacheEntry.internalBinaryRead(reader, reader.uint32(), options));
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* repeated github.actions.results.entities.v1.CacheEntry entries = 1; */
- for (let i = 0; i < message.entries.length; i++)
- cacheentry_1.CacheEntry.internalBinaryWrite(message.entries[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.ListCacheEntriesResponse
- */
-exports.ListCacheEntriesResponse = new ListCacheEntriesResponse$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class LookupCacheEntryRequest$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.LookupCacheEntryRequest", [
- { no: 1, name: "metadata", kind: "message", T: () => cachemetadata_1.CacheMetadata },
- { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "restore_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
- { no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
- ]);
- }
- create(value) {
- const message = { key: "", restoreKeys: [], version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* github.actions.results.entities.v1.CacheMetadata metadata */ 1:
- message.metadata = cachemetadata_1.CacheMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
- break;
- case /* string key */ 2:
- message.key = reader.string();
- break;
- case /* repeated string restore_keys */ 3:
- message.restoreKeys.push(reader.string());
- break;
- case /* string version */ 4:
- message.version = reader.string();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* github.actions.results.entities.v1.CacheMetadata metadata = 1; */
- if (message.metadata)
- cachemetadata_1.CacheMetadata.internalBinaryWrite(message.metadata, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* string key = 2; */
- if (message.key !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.key);
- /* repeated string restore_keys = 3; */
- for (let i = 0; i < message.restoreKeys.length; i++)
- writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.restoreKeys[i]);
- /* string version = 4; */
- if (message.version !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.version);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.LookupCacheEntryRequest
- */
-exports.LookupCacheEntryRequest = new LookupCacheEntryRequest$Type();
-// @generated message type with reflection information, may provide speed optimized methods
-class LookupCacheEntryResponse$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.api.v1.LookupCacheEntryResponse", [
- { no: 1, name: "exists", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
- { no: 2, name: "entry", kind: "message", T: () => cacheentry_1.CacheEntry }
- ]);
- }
- create(value) {
- const message = { exists: false };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* bool exists */ 1:
- message.exists = reader.bool();
- break;
- case /* github.actions.results.entities.v1.CacheEntry entry */ 2:
- message.entry = cacheentry_1.CacheEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* bool exists = 1; */
- if (message.exists !== false)
- writer.tag(1, runtime_1.WireType.Varint).bool(message.exists);
- /* github.actions.results.entities.v1.CacheEntry entry = 2; */
- if (message.entry)
- cacheentry_1.CacheEntry.internalBinaryWrite(message.entry, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.api.v1.LookupCacheEntryResponse
- */
-exports.LookupCacheEntryResponse = new LookupCacheEntryResponse$Type();
-/**
- * @generated ServiceType for protobuf service github.actions.results.api.v1.CacheService
- */
-exports.CacheService = new runtime_rpc_1.ServiceType("github.actions.results.api.v1.CacheService", [
- { name: "CreateCacheEntry", options: {}, I: exports.CreateCacheEntryRequest, O: exports.CreateCacheEntryResponse },
- { name: "FinalizeCacheEntryUpload", options: {}, I: exports.FinalizeCacheEntryUploadRequest, O: exports.FinalizeCacheEntryUploadResponse },
- { name: "GetCacheEntryDownloadURL", options: {}, I: exports.GetCacheEntryDownloadURLRequest, O: exports.GetCacheEntryDownloadURLResponse },
- { name: "DeleteCacheEntry", options: {}, I: exports.DeleteCacheEntryRequest, O: exports.DeleteCacheEntryResponse },
- { name: "ListCacheEntries", options: {}, I: exports.ListCacheEntriesRequest, O: exports.ListCacheEntriesResponse },
- { name: "LookupCacheEntry", options: {}, I: exports.LookupCacheEntryRequest, O: exports.LookupCacheEntryResponse }
-]);
-//# sourceMappingURL=cache.js.map
-
-/***/ }),
-
-/***/ 40267:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.createCacheServiceServer = exports.CacheServiceMethodList = exports.CacheServiceMethod = exports.CacheServiceClientProtobuf = exports.CacheServiceClientJSON = void 0;
-const twirp_ts_1 = __nccwpck_require__(66465);
-const cache_1 = __nccwpck_require__(84388);
-class CacheServiceClientJSON {
- constructor(rpc) {
- this.rpc = rpc;
- this.CreateCacheEntry.bind(this);
- this.FinalizeCacheEntryUpload.bind(this);
- this.GetCacheEntryDownloadURL.bind(this);
- this.DeleteCacheEntry.bind(this);
- this.ListCacheEntries.bind(this);
- this.LookupCacheEntry.bind(this);
- }
- CreateCacheEntry(request) {
- const data = cache_1.CreateCacheEntryRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "CreateCacheEntry", "application/json", data);
- return promise.then((data) => cache_1.CreateCacheEntryResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- FinalizeCacheEntryUpload(request) {
- const data = cache_1.FinalizeCacheEntryUploadRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "FinalizeCacheEntryUpload", "application/json", data);
- return promise.then((data) => cache_1.FinalizeCacheEntryUploadResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- GetCacheEntryDownloadURL(request) {
- const data = cache_1.GetCacheEntryDownloadURLRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/json", data);
- return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- DeleteCacheEntry(request) {
- const data = cache_1.DeleteCacheEntryRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "DeleteCacheEntry", "application/json", data);
- return promise.then((data) => cache_1.DeleteCacheEntryResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- ListCacheEntries(request) {
- const data = cache_1.ListCacheEntriesRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "ListCacheEntries", "application/json", data);
- return promise.then((data) => cache_1.ListCacheEntriesResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
- LookupCacheEntry(request) {
- const data = cache_1.LookupCacheEntryRequest.toJson(request, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- });
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "LookupCacheEntry", "application/json", data);
- return promise.then((data) => cache_1.LookupCacheEntryResponse.fromJson(data, {
- ignoreUnknownFields: true,
- }));
- }
-}
-exports.CacheServiceClientJSON = CacheServiceClientJSON;
-class CacheServiceClientProtobuf {
- constructor(rpc) {
- this.rpc = rpc;
- this.CreateCacheEntry.bind(this);
- this.FinalizeCacheEntryUpload.bind(this);
- this.GetCacheEntryDownloadURL.bind(this);
- this.DeleteCacheEntry.bind(this);
- this.ListCacheEntries.bind(this);
- this.LookupCacheEntry.bind(this);
- }
- CreateCacheEntry(request) {
- const data = cache_1.CreateCacheEntryRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "CreateCacheEntry", "application/protobuf", data);
- return promise.then((data) => cache_1.CreateCacheEntryResponse.fromBinary(data));
- }
- FinalizeCacheEntryUpload(request) {
- const data = cache_1.FinalizeCacheEntryUploadRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "FinalizeCacheEntryUpload", "application/protobuf", data);
- return promise.then((data) => cache_1.FinalizeCacheEntryUploadResponse.fromBinary(data));
- }
- GetCacheEntryDownloadURL(request) {
- const data = cache_1.GetCacheEntryDownloadURLRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "GetCacheEntryDownloadURL", "application/protobuf", data);
- return promise.then((data) => cache_1.GetCacheEntryDownloadURLResponse.fromBinary(data));
- }
- DeleteCacheEntry(request) {
- const data = cache_1.DeleteCacheEntryRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "DeleteCacheEntry", "application/protobuf", data);
- return promise.then((data) => cache_1.DeleteCacheEntryResponse.fromBinary(data));
- }
- ListCacheEntries(request) {
- const data = cache_1.ListCacheEntriesRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "ListCacheEntries", "application/protobuf", data);
- return promise.then((data) => cache_1.ListCacheEntriesResponse.fromBinary(data));
- }
- LookupCacheEntry(request) {
- const data = cache_1.LookupCacheEntryRequest.toBinary(request);
- const promise = this.rpc.request("github.actions.results.api.v1.CacheService", "LookupCacheEntry", "application/protobuf", data);
- return promise.then((data) => cache_1.LookupCacheEntryResponse.fromBinary(data));
- }
-}
-exports.CacheServiceClientProtobuf = CacheServiceClientProtobuf;
-var CacheServiceMethod;
-(function (CacheServiceMethod) {
- CacheServiceMethod["CreateCacheEntry"] = "CreateCacheEntry";
- CacheServiceMethod["FinalizeCacheEntryUpload"] = "FinalizeCacheEntryUpload";
- CacheServiceMethod["GetCacheEntryDownloadURL"] = "GetCacheEntryDownloadURL";
- CacheServiceMethod["DeleteCacheEntry"] = "DeleteCacheEntry";
- CacheServiceMethod["ListCacheEntries"] = "ListCacheEntries";
- CacheServiceMethod["LookupCacheEntry"] = "LookupCacheEntry";
-})(CacheServiceMethod || (exports.CacheServiceMethod = CacheServiceMethod = {}));
-exports.CacheServiceMethodList = [
- CacheServiceMethod.CreateCacheEntry,
- CacheServiceMethod.FinalizeCacheEntryUpload,
- CacheServiceMethod.GetCacheEntryDownloadURL,
- CacheServiceMethod.DeleteCacheEntry,
- CacheServiceMethod.ListCacheEntries,
- CacheServiceMethod.LookupCacheEntry,
-];
-function createCacheServiceServer(service) {
- return new twirp_ts_1.TwirpServer({
- service,
- packageName: "github.actions.results.api.v1",
- serviceName: "CacheService",
- methodList: exports.CacheServiceMethodList,
- matchRoute: matchCacheServiceRoute,
- });
-}
-exports.createCacheServiceServer = createCacheServiceServer;
-function matchCacheServiceRoute(method, events) {
- switch (method) {
- case "CreateCacheEntry":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "CreateCacheEntry" });
- yield events.onMatch(ctx);
- return handleCacheServiceCreateCacheEntryRequest(ctx, service, data, interceptors);
- });
- case "FinalizeCacheEntryUpload":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "FinalizeCacheEntryUpload" });
- yield events.onMatch(ctx);
- return handleCacheServiceFinalizeCacheEntryUploadRequest(ctx, service, data, interceptors);
- });
- case "GetCacheEntryDownloadURL":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "GetCacheEntryDownloadURL" });
- yield events.onMatch(ctx);
- return handleCacheServiceGetCacheEntryDownloadURLRequest(ctx, service, data, interceptors);
- });
- case "DeleteCacheEntry":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "DeleteCacheEntry" });
- yield events.onMatch(ctx);
- return handleCacheServiceDeleteCacheEntryRequest(ctx, service, data, interceptors);
- });
- case "ListCacheEntries":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "ListCacheEntries" });
- yield events.onMatch(ctx);
- return handleCacheServiceListCacheEntriesRequest(ctx, service, data, interceptors);
- });
- case "LookupCacheEntry":
- return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {
- ctx = Object.assign(Object.assign({}, ctx), { methodName: "LookupCacheEntry" });
- yield events.onMatch(ctx);
- return handleCacheServiceLookupCacheEntryRequest(ctx, service, data, interceptors);
- });
- default:
- events.onNotFound();
- const msg = `no handler found`;
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceCreateCacheEntryRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceCreateCacheEntryJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceCreateCacheEntryProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceFinalizeCacheEntryUploadRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceFinalizeCacheEntryUploadJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceFinalizeCacheEntryUploadProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceGetCacheEntryDownloadURLRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceGetCacheEntryDownloadURLJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceGetCacheEntryDownloadURLProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceDeleteCacheEntryRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceDeleteCacheEntryJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceDeleteCacheEntryProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceListCacheEntriesRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceListCacheEntriesJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceListCacheEntriesProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceLookupCacheEntryRequest(ctx, service, data, interceptors) {
- switch (ctx.contentType) {
- case twirp_ts_1.TwirpContentType.JSON:
- return handleCacheServiceLookupCacheEntryJSON(ctx, service, data, interceptors);
- case twirp_ts_1.TwirpContentType.Protobuf:
- return handleCacheServiceLookupCacheEntryProtobuf(ctx, service, data, interceptors);
- default:
- const msg = "unexpected Content-Type";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);
- }
-}
-function handleCacheServiceCreateCacheEntryJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.CreateCacheEntryRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.CreateCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.CreateCacheEntry(ctx, request);
- }
- return JSON.stringify(cache_1.CreateCacheEntryResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceFinalizeCacheEntryUploadJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.FinalizeCacheEntryUploadRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.FinalizeCacheEntryUpload(ctx, inputReq);
- });
- }
- else {
- response = yield service.FinalizeCacheEntryUpload(ctx, request);
- }
- return JSON.stringify(cache_1.FinalizeCacheEntryUploadResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceGetCacheEntryDownloadURLJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.GetCacheEntryDownloadURLRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.GetCacheEntryDownloadURL(ctx, inputReq);
- });
- }
- else {
- response = yield service.GetCacheEntryDownloadURL(ctx, request);
- }
- return JSON.stringify(cache_1.GetCacheEntryDownloadURLResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceDeleteCacheEntryJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.DeleteCacheEntryRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.DeleteCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.DeleteCacheEntry(ctx, request);
- }
- return JSON.stringify(cache_1.DeleteCacheEntryResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceListCacheEntriesJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.ListCacheEntriesRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.ListCacheEntries(ctx, inputReq);
- });
- }
- else {
- response = yield service.ListCacheEntries(ctx, request);
- }
- return JSON.stringify(cache_1.ListCacheEntriesResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceLookupCacheEntryJSON(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- const body = JSON.parse(data.toString() || "{}");
- request = cache_1.LookupCacheEntryRequest.fromJson(body, {
- ignoreUnknownFields: true,
- });
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the json request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.LookupCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.LookupCacheEntry(ctx, request);
- }
- return JSON.stringify(cache_1.LookupCacheEntryResponse.toJson(response, {
- useProtoFieldName: true,
- emitDefaultValues: false,
- }));
- });
-}
-function handleCacheServiceCreateCacheEntryProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.CreateCacheEntryRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.CreateCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.CreateCacheEntry(ctx, request);
- }
- return Buffer.from(cache_1.CreateCacheEntryResponse.toBinary(response));
- });
-}
-function handleCacheServiceFinalizeCacheEntryUploadProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.FinalizeCacheEntryUploadRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.FinalizeCacheEntryUpload(ctx, inputReq);
- });
- }
- else {
- response = yield service.FinalizeCacheEntryUpload(ctx, request);
- }
- return Buffer.from(cache_1.FinalizeCacheEntryUploadResponse.toBinary(response));
- });
-}
-function handleCacheServiceGetCacheEntryDownloadURLProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.GetCacheEntryDownloadURLRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.GetCacheEntryDownloadURL(ctx, inputReq);
- });
- }
- else {
- response = yield service.GetCacheEntryDownloadURL(ctx, request);
- }
- return Buffer.from(cache_1.GetCacheEntryDownloadURLResponse.toBinary(response));
- });
-}
-function handleCacheServiceDeleteCacheEntryProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.DeleteCacheEntryRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.DeleteCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.DeleteCacheEntry(ctx, request);
- }
- return Buffer.from(cache_1.DeleteCacheEntryResponse.toBinary(response));
- });
-}
-function handleCacheServiceListCacheEntriesProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.ListCacheEntriesRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.ListCacheEntries(ctx, inputReq);
- });
- }
- else {
- response = yield service.ListCacheEntries(ctx, request);
- }
- return Buffer.from(cache_1.ListCacheEntriesResponse.toBinary(response));
- });
-}
-function handleCacheServiceLookupCacheEntryProtobuf(ctx, service, data, interceptors) {
- return __awaiter(this, void 0, void 0, function* () {
- let request;
- let response;
- try {
- request = cache_1.LookupCacheEntryRequest.fromBinary(data);
- }
- catch (e) {
- if (e instanceof Error) {
- const msg = "the protobuf request could not be decoded";
- throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- if (interceptors && interceptors.length > 0) {
- const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);
- response = yield interceptor(ctx, request, (ctx, inputReq) => {
- return service.LookupCacheEntry(ctx, inputReq);
- });
- }
- else {
- response = yield service.LookupCacheEntry(ctx, request);
- }
- return Buffer.from(cache_1.LookupCacheEntryResponse.toBinary(response));
- });
-}
-//# sourceMappingURL=cache.twirp.js.map
-
-/***/ }),
-
-/***/ 53639:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheEntry = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const timestamp_1 = __nccwpck_require__(24469);
-// @generated message type with reflection information, may provide speed optimized methods
-class CacheEntry$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.entities.v1.CacheEntry", [
- { no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 2, name: "hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 4, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 5, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 6, name: "created_at", kind: "message", T: () => timestamp_1.Timestamp },
- { no: 7, name: "last_accessed_at", kind: "message", T: () => timestamp_1.Timestamp },
- { no: 8, name: "expires_at", kind: "message", T: () => timestamp_1.Timestamp }
- ]);
- }
- create(value) {
- const message = { key: "", hash: "", sizeBytes: "0", scope: "", version: "" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* string key */ 1:
- message.key = reader.string();
- break;
- case /* string hash */ 2:
- message.hash = reader.string();
- break;
- case /* int64 size_bytes */ 3:
- message.sizeBytes = reader.int64().toString();
- break;
- case /* string scope */ 4:
- message.scope = reader.string();
- break;
- case /* string version */ 5:
- message.version = reader.string();
- break;
- case /* google.protobuf.Timestamp created_at */ 6:
- message.createdAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
- break;
- case /* google.protobuf.Timestamp last_accessed_at */ 7:
- message.lastAccessedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastAccessedAt);
- break;
- case /* google.protobuf.Timestamp expires_at */ 8:
- message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* string key = 1; */
- if (message.key !== "")
- writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.key);
- /* string hash = 2; */
- if (message.hash !== "")
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.hash);
- /* int64 size_bytes = 3; */
- if (message.sizeBytes !== "0")
- writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
- /* string scope = 4; */
- if (message.scope !== "")
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.scope);
- /* string version = 5; */
- if (message.version !== "")
- writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.version);
- /* google.protobuf.Timestamp created_at = 6; */
- if (message.createdAt)
- timestamp_1.Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* google.protobuf.Timestamp last_accessed_at = 7; */
- if (message.lastAccessedAt)
- timestamp_1.Timestamp.internalBinaryWrite(message.lastAccessedAt, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
- /* google.protobuf.Timestamp expires_at = 8; */
- if (message.expiresAt)
- timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheEntry
- */
-exports.CacheEntry = new CacheEntry$Type();
-//# sourceMappingURL=cacheentry.js.map
-
-/***/ }),
-
-/***/ 67988:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheMetadata = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-const cachescope_1 = __nccwpck_require__(83749);
-// @generated message type with reflection information, may provide speed optimized methods
-class CacheMetadata$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.entities.v1.CacheMetadata", [
- { no: 1, name: "repository_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
- { no: 2, name: "scope", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => cachescope_1.CacheScope }
- ]);
- }
- create(value) {
- const message = { repositoryId: "0", scope: [] };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* int64 repository_id */ 1:
- message.repositoryId = reader.int64().toString();
- break;
- case /* repeated github.actions.results.entities.v1.CacheScope scope */ 2:
- message.scope.push(cachescope_1.CacheScope.internalBinaryRead(reader, reader.uint32(), options));
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* int64 repository_id = 1; */
- if (message.repositoryId !== "0")
- writer.tag(1, runtime_1.WireType.Varint).int64(message.repositoryId);
- /* repeated github.actions.results.entities.v1.CacheScope scope = 2; */
- for (let i = 0; i < message.scope.length; i++)
- cachescope_1.CacheScope.internalBinaryWrite(message.scope[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheMetadata
- */
-exports.CacheMetadata = new CacheMetadata$Type();
-//# sourceMappingURL=cachemetadata.js.map
-
-/***/ }),
-
-/***/ 83749:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheScope = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-const runtime_2 = __nccwpck_require__(4061);
-const runtime_3 = __nccwpck_require__(4061);
-const runtime_4 = __nccwpck_require__(4061);
-const runtime_5 = __nccwpck_require__(4061);
-// @generated message type with reflection information, may provide speed optimized methods
-class CacheScope$Type extends runtime_5.MessageType {
- constructor() {
- super("github.actions.results.entities.v1.CacheScope", [
- { no: 1, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
- { no: 2, name: "permission", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
- ]);
- }
- create(value) {
- const message = { scope: "", permission: "0" };
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
- if (value !== undefined)
- (0, runtime_3.reflectionMergePartial)(this, message, value);
- return message;
- }
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case /* string scope */ 1:
- message.scope = reader.string();
- break;
- case /* int64 permission */ 2:
- message.permission = reader.int64().toString();
- break;
- default:
- let u = options.readUnknownField;
- if (u === "throw")
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
- }
- }
- return message;
- }
- internalBinaryWrite(message, writer, options) {
- /* string scope = 1; */
- if (message.scope !== "")
- writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.scope);
- /* int64 permission = 2; */
- if (message.permission !== "0")
- writer.tag(2, runtime_1.WireType.Varint).int64(message.permission);
- let u = options.writeUnknownFields;
- if (u !== false)
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
- return writer;
- }
-}
-/**
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheScope
- */
-exports.CacheScope = new CacheScope$Type();
-//# sourceMappingURL=cachescope.js.map
-
-/***/ }),
-
-/***/ 98245:
+/***/ 8245:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2239,21 +281,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const http_client_1 = __nccwpck_require__(96255);
-const auth_1 = __nccwpck_require__(35526);
-const fs = __importStar(__nccwpck_require__(57147));
-const url_1 = __nccwpck_require__(57310);
-const utils = __importStar(__nccwpck_require__(91518));
-const uploadUtils_1 = __nccwpck_require__(1786);
-const downloadUtils_1 = __nccwpck_require__(55500);
-const options_1 = __nccwpck_require__(76215);
-const requestUtils_1 = __nccwpck_require__(13981);
-const config_1 = __nccwpck_require__(35147);
-const user_agent_1 = __nccwpck_require__(580);
+exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = exports.getCacheVersion = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const http_client_1 = __nccwpck_require__(6255);
+const auth_1 = __nccwpck_require__(5526);
+const crypto = __importStar(__nccwpck_require__(6113));
+const fs = __importStar(__nccwpck_require__(7147));
+const url_1 = __nccwpck_require__(7310);
+const utils = __importStar(__nccwpck_require__(1518));
+const downloadUtils_1 = __nccwpck_require__(5500);
+const options_1 = __nccwpck_require__(6215);
+const requestUtils_1 = __nccwpck_require__(3981);
+const versionSalt = '1.0';
function getCacheApiUrl(resource) {
- const baseUrl = (0, config_1.getCacheServiceURL)();
+ const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
if (!baseUrl) {
throw new Error('Cache Service Url not found, unable to restore cache.');
}
@@ -2275,12 +316,29 @@ function getRequestOptions() {
function createHttpClient() {
const token = process.env['ACTIONS_RUNTIME_TOKEN'] || '';
const bearerCredentialHandler = new auth_1.BearerCredentialHandler(token);
- return new http_client_1.HttpClient((0, user_agent_1.getUserAgentString)(), [bearerCredentialHandler], getRequestOptions());
+ return new http_client_1.HttpClient('actions/cache', [bearerCredentialHandler], getRequestOptions());
}
+function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
+ // don't pass changes upstream
+ const components = paths.slice();
+ // Add compression method to cache version to restore
+ // compressed cache as per compression method
+ if (compressionMethod) {
+ components.push(compressionMethod);
+ }
+ // Only check for windows platforms if enableCrossOsArchive is false
+ if (process.platform === 'win32' && !enableCrossOsArchive) {
+ components.push('windows-only');
+ }
+ // Add salt to cache version to support breaking changes in cache entry
+ components.push(versionSalt);
+ return crypto.createHash('sha256').update(components.join('|')).digest('hex');
+}
+exports.getCacheVersion = getCacheVersion;
function getCacheEntry(keys, paths, options) {
return __awaiter(this, void 0, void 0, function* () {
const httpClient = createHttpClient();
- const version = utils.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
+ const version = 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}`;
const response = yield (0, requestUtils_1.retryTypedResponse)('getCacheEntry', () => __awaiter(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); }));
// Cache not found
@@ -2351,7 +409,7 @@ exports.downloadCache = downloadCache;
function reserveCache(key, paths, options) {
return __awaiter(this, void 0, void 0, function* () {
const httpClient = createHttpClient();
- const version = utils.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
+ const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
const reserveCacheRequest = {
key,
version,
@@ -2433,30 +491,20 @@ function commitCache(httpClient, cacheId, filesize) {
}));
});
}
-function saveCache(cacheId, archivePath, signedUploadURL, options) {
+function saveCache(cacheId, archivePath, options) {
return __awaiter(this, void 0, void 0, function* () {
- const uploadOptions = (0, options_1.getUploadOptions)(options);
- if (uploadOptions.useAzureSdk) {
- // Use Azure storage SDK to upload caches directly to Azure
- 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.debug('Upload cache');
- yield uploadFile(httpClient, cacheId, archivePath, options);
- // Commit Cache
- core.debug('Commiting cache');
- const cacheSize = utils.getArchiveFileSizeInBytes(archivePath);
- core.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.info('Cache saved successfully');
+ const httpClient = createHttpClient();
+ core.debug('Upload cache');
+ yield uploadFile(httpClient, cacheId, archivePath, options);
+ // Commit Cache
+ core.debug('Commiting cache');
+ const cacheSize = utils.getArchiveFileSizeInBytes(archivePath);
+ core.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.info('Cache saved successfully');
});
}
exports.saveCache = saveCache;
@@ -2464,7 +512,7 @@ exports.saveCache = saveCache;
/***/ }),
-/***/ 91518:
+/***/ 1518:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2509,18 +557,17 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
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 = __importStar(__nccwpck_require__(42186));
-const exec = __importStar(__nccwpck_require__(71514));
-const glob = __importStar(__nccwpck_require__(31597));
-const io = __importStar(__nccwpck_require__(47351));
-const crypto = __importStar(__nccwpck_require__(6113));
-const fs = __importStar(__nccwpck_require__(57147));
-const path = __importStar(__nccwpck_require__(71017));
+exports.isGhes = exports.assertDefined = exports.getGnuTarPathOnWindows = exports.getCacheFileName = exports.getCompressionMethod = exports.unlinkFile = exports.resolvePaths = exports.getArchiveFileSizeInBytes = exports.createTempDirectory = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const exec = __importStar(__nccwpck_require__(1514));
+const glob = __importStar(__nccwpck_require__(1597));
+const io = __importStar(__nccwpck_require__(7436));
+const fs = __importStar(__nccwpck_require__(7147));
+const path = __importStar(__nccwpck_require__(1017));
const semver = __importStar(__nccwpck_require__(3771));
-const util = __importStar(__nccwpck_require__(73837));
-const constants_1 = __nccwpck_require__(88840);
-const versionSalt = '1.0';
+const util = __importStar(__nccwpck_require__(3837));
+const uuid_1 = __nccwpck_require__(4138);
+const constants_1 = __nccwpck_require__(8840);
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
function createTempDirectory() {
return __awaiter(this, void 0, void 0, function* () {
@@ -2542,7 +589,7 @@ function createTempDirectory() {
}
tempDirectory = path.join(baseLocation, 'actions', 'temp');
}
- const dest = path.join(tempDirectory, crypto.randomUUID());
+ const dest = path.join(tempDirectory, (0, uuid_1.v4)());
yield io.mkdirP(dest);
return dest;
});
@@ -2658,86 +705,25 @@ function assertDefined(name, value) {
return value;
}
exports.assertDefined = assertDefined;
-function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
- // don't pass changes upstream
- const components = paths.slice();
- // Add compression method to cache version to restore
- // compressed cache as per compression method
- if (compressionMethod) {
- components.push(compressionMethod);
- }
- // Only check for windows platforms if enableCrossOsArchive is false
- if (process.platform === 'win32' && !enableCrossOsArchive) {
- components.push('windows-only');
- }
- // Add salt to cache version to support breaking changes in cache entry
- components.push(versionSalt);
- return crypto.createHash('sha256').update(components.join('|')).digest('hex');
-}
-exports.getCacheVersion = getCacheVersion;
-function getRuntimeToken() {
- const token = process.env['ACTIONS_RUNTIME_TOKEN'];
- if (!token) {
- throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable');
- }
- return token;
-}
-exports.getRuntimeToken = getRuntimeToken;
-//# sourceMappingURL=cacheUtils.js.map
-
-/***/ }),
-
-/***/ 35147:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getCacheServiceURL = exports.getCacheServiceVersion = exports.isGhes = void 0;
function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
- const isGheHost = hostname.endsWith('.GHE.COM');
- const isLocalHost = hostname.endsWith('.LOCALHOST');
- return !isGitHubHost && !isGheHost && !isLocalHost;
+ const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
+ return !isGitHubHost && !isGheHost;
}
exports.isGhes = isGhes;
-function getCacheServiceVersion() {
- // Cache service v2 is not supported on GHES. We will default to
- // cache service v1 even if the feature flag was enabled by user.
- if (isGhes())
- return 'v1';
- return process.env['ACTIONS_CACHE_SERVICE_V2'] ? 'v2' : 'v1';
-}
-exports.getCacheServiceVersion = getCacheServiceVersion;
-function getCacheServiceURL() {
- const version = getCacheServiceVersion();
- // Based on the version of the cache service, we will determine which
- // URL to use.
- switch (version) {
- case 'v1':
- return (process.env['ACTIONS_CACHE_URL'] ||
- process.env['ACTIONS_RESULTS_URL'] ||
- '');
- case 'v2':
- return process.env['ACTIONS_RESULTS_URL'] || '';
- default:
- throw new Error(`Unsupported cache service version: ${version}`);
- }
-}
-exports.getCacheServiceURL = getCacheServiceURL;
-//# sourceMappingURL=config.js.map
+//# sourceMappingURL=cacheUtils.js.map
/***/ }),
-/***/ 88840:
+/***/ 8840:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.CacheFileSizeLimit = exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0;
+exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0;
var CacheFilename;
(function (CacheFilename) {
CacheFilename["Gzip"] = "cache.tgz";
@@ -2770,12 +756,11 @@ exports.GnuTarPathOnWindows = `${process.env['PROGRAMFILES']}\\Git\\usr\\bin\\ta
exports.SystemTarPathOnWindows = `${process.env['SYSTEMDRIVE']}\\Windows\\System32\\tar.exe`;
exports.TarFilename = 'cache.tar';
exports.ManifestFilename = 'manifest.txt';
-exports.CacheFileSizeLimit = 10 * Math.pow(1024, 3); // 10GiB per repository
//# sourceMappingURL=constants.js.map
/***/ }),
-/***/ 55500:
+/***/ 5500:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2814,17 +799,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.downloadCacheStorageSDK = exports.downloadCacheHttpClientConcurrent = exports.downloadCacheHttpClient = exports.DownloadProgress = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const http_client_1 = __nccwpck_require__(96255);
-const storage_blob_1 = __nccwpck_require__(84100);
-const buffer = __importStar(__nccwpck_require__(14300));
-const fs = __importStar(__nccwpck_require__(57147));
-const stream = __importStar(__nccwpck_require__(12781));
-const util = __importStar(__nccwpck_require__(73837));
-const utils = __importStar(__nccwpck_require__(91518));
-const constants_1 = __nccwpck_require__(88840);
-const requestUtils_1 = __nccwpck_require__(13981);
-const abort_controller_1 = __nccwpck_require__(52557);
+const core = __importStar(__nccwpck_require__(2186));
+const http_client_1 = __nccwpck_require__(6255);
+const storage_blob_1 = __nccwpck_require__(4100);
+const buffer = __importStar(__nccwpck_require__(4300));
+const fs = __importStar(__nccwpck_require__(7147));
+const stream = __importStar(__nccwpck_require__(2781));
+const util = __importStar(__nccwpck_require__(3837));
+const utils = __importStar(__nccwpck_require__(1518));
+const constants_1 = __nccwpck_require__(8840);
+const requestUtils_1 = __nccwpck_require__(3981);
+const abort_controller_1 = __nccwpck_require__(2557);
/**
* Pipes the body of a HTTP response to a stream
*
@@ -3160,7 +1145,7 @@ const promiseWithTimeout = (timeoutMs, promise) => __awaiter(void 0, void 0, voi
/***/ }),
-/***/ 13981:
+/***/ 3981:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -3199,9 +1184,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.retryHttpClientResponse = exports.retryTypedResponse = exports.retry = exports.isRetryableStatusCode = exports.isServerErrorStatusCode = exports.isSuccessStatusCode = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const http_client_1 = __nccwpck_require__(96255);
-const constants_1 = __nccwpck_require__(88840);
+const core = __importStar(__nccwpck_require__(2186));
+const http_client_1 = __nccwpck_require__(6255);
+const constants_1 = __nccwpck_require__(8840);
function isSuccessStatusCode(statusCode) {
if (!statusCode) {
return false;
@@ -3304,271 +1289,7 @@ exports.retryHttpClientResponse = retryHttpClientResponse;
/***/ }),
-/***/ 82502:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.internalCacheTwirpClient = void 0;
-const core_1 = __nccwpck_require__(42186);
-const user_agent_1 = __nccwpck_require__(580);
-const errors_1 = __nccwpck_require__(18223);
-const config_1 = __nccwpck_require__(35147);
-const cacheUtils_1 = __nccwpck_require__(91518);
-const auth_1 = __nccwpck_require__(35526);
-const http_client_1 = __nccwpck_require__(96255);
-const cache_twirp_1 = __nccwpck_require__(40267);
-/**
- * This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
- *
- * It adds retry logic to the request method, which is not present in the generated client.
- *
- * This class is used to interact with cache service v2.
- */
-class CacheServiceClient {
- constructor(userAgent, maxAttempts, baseRetryIntervalMilliseconds, retryMultiplier) {
- this.maxAttempts = 5;
- this.baseRetryIntervalMilliseconds = 3000;
- this.retryMultiplier = 1.5;
- const token = (0, cacheUtils_1.getRuntimeToken)();
- this.baseUrl = (0, config_1.getCacheServiceURL)();
- if (maxAttempts) {
- this.maxAttempts = maxAttempts;
- }
- if (baseRetryIntervalMilliseconds) {
- this.baseRetryIntervalMilliseconds = baseRetryIntervalMilliseconds;
- }
- if (retryMultiplier) {
- this.retryMultiplier = retryMultiplier;
- }
- this.httpClient = new http_client_1.HttpClient(userAgent, [
- new auth_1.BearerCredentialHandler(token)
- ]);
- }
- // This function satisfies the Rpc interface. It is compatible with the JSON
- // JSON generated client.
- request(service, method, contentType, data) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href;
- (0, core_1.debug)(`[Request] ${method} ${url}`);
- const headers = {
- 'Content-Type': contentType
- };
- try {
- const { body } = yield this.retryableRequest(() => __awaiter(this, void 0, void 0, function* () { return this.httpClient.post(url, JSON.stringify(data), headers); }));
- return body;
- }
- catch (error) {
- throw new Error(`Failed to ${method}: ${error.message}`);
- }
- });
- }
- retryableRequest(operation) {
- return __awaiter(this, void 0, void 0, function* () {
- let attempt = 0;
- let errorMessage = '';
- let rawBody = '';
- while (attempt < this.maxAttempts) {
- let isRetryable = false;
- try {
- const response = yield operation();
- const statusCode = response.message.statusCode;
- rawBody = yield response.readBody();
- (0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
- (0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
- const body = JSON.parse(rawBody);
- (0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);
- if (this.isSuccessStatusCode(statusCode)) {
- return { response, body };
- }
- isRetryable = this.isRetryableHttpStatusCode(statusCode);
- errorMessage = `Failed request: (${statusCode}) ${response.message.statusMessage}`;
- if (body.msg) {
- if (errors_1.UsageError.isUsageErrorMessage(body.msg)) {
- throw new errors_1.UsageError();
- }
- errorMessage = `${errorMessage}: ${body.msg}`;
- }
- }
- catch (error) {
- if (error instanceof SyntaxError) {
- (0, core_1.debug)(`Raw Body: ${rawBody}`);
- }
- if (error instanceof errors_1.UsageError) {
- throw error;
- }
- if (errors_1.NetworkError.isNetworkErrorCode(error === null || error === void 0 ? void 0 : error.code)) {
- throw new errors_1.NetworkError(error === null || error === void 0 ? void 0 : error.code);
- }
- isRetryable = true;
- errorMessage = error.message;
- }
- if (!isRetryable) {
- throw new Error(`Received non-retryable error: ${errorMessage}`);
- }
- if (attempt + 1 === this.maxAttempts) {
- throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${errorMessage}`);
- }
- const retryTimeMilliseconds = this.getExponentialRetryTimeMilliseconds(attempt);
- (0, core_1.info)(`Attempt ${attempt + 1} of ${this.maxAttempts} failed with error: ${errorMessage}. Retrying request in ${retryTimeMilliseconds} ms...`);
- yield this.sleep(retryTimeMilliseconds);
- attempt++;
- }
- throw new Error(`Request failed`);
- });
- }
- isSuccessStatusCode(statusCode) {
- if (!statusCode)
- return false;
- return statusCode >= 200 && statusCode < 300;
- }
- isRetryableHttpStatusCode(statusCode) {
- if (!statusCode)
- return false;
- const retryableStatusCodes = [
- http_client_1.HttpCodes.BadGateway,
- http_client_1.HttpCodes.GatewayTimeout,
- http_client_1.HttpCodes.InternalServerError,
- http_client_1.HttpCodes.ServiceUnavailable,
- http_client_1.HttpCodes.TooManyRequests
- ];
- return retryableStatusCodes.includes(statusCode);
- }
- sleep(milliseconds) {
- return __awaiter(this, void 0, void 0, function* () {
- return new Promise(resolve => setTimeout(resolve, milliseconds));
- });
- }
- getExponentialRetryTimeMilliseconds(attempt) {
- if (attempt < 0) {
- throw new Error('attempt should be a positive integer');
- }
- if (attempt === 0) {
- return this.baseRetryIntervalMilliseconds;
- }
- const minTime = this.baseRetryIntervalMilliseconds * Math.pow(this.retryMultiplier, attempt);
- const maxTime = minTime * this.retryMultiplier;
- // returns a random number between minTime and maxTime (exclusive)
- return Math.trunc(Math.random() * (maxTime - minTime) + minTime);
- }
-}
-function internalCacheTwirpClient(options) {
- const client = new CacheServiceClient((0, user_agent_1.getUserAgentString)(), options === null || options === void 0 ? void 0 : options.maxAttempts, options === null || options === void 0 ? void 0 : options.retryIntervalMs, options === null || options === void 0 ? void 0 : options.retryMultiplier);
- return new cache_twirp_1.CacheServiceClientJSON(client);
-}
-exports.internalCacheTwirpClient = internalCacheTwirpClient;
-//# sourceMappingURL=cacheTwirpClient.js.map
-
-/***/ }),
-
-/***/ 18223:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.UsageError = exports.NetworkError = exports.GHESNotSupportedError = exports.CacheNotFoundError = exports.InvalidResponseError = exports.FilesNotFoundError = void 0;
-class FilesNotFoundError extends Error {
- constructor(files = []) {
- let message = 'No files were found to upload';
- if (files.length > 0) {
- message += `: ${files.join(', ')}`;
- }
- super(message);
- this.files = files;
- this.name = 'FilesNotFoundError';
- }
-}
-exports.FilesNotFoundError = FilesNotFoundError;
-class InvalidResponseError extends Error {
- constructor(message) {
- super(message);
- this.name = 'InvalidResponseError';
- }
-}
-exports.InvalidResponseError = InvalidResponseError;
-class CacheNotFoundError extends Error {
- constructor(message = 'Cache not found') {
- super(message);
- this.name = 'CacheNotFoundError';
- }
-}
-exports.CacheNotFoundError = CacheNotFoundError;
-class GHESNotSupportedError extends Error {
- constructor(message = '@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES.') {
- super(message);
- this.name = 'GHESNotSupportedError';
- }
-}
-exports.GHESNotSupportedError = GHESNotSupportedError;
-class NetworkError extends Error {
- constructor(code) {
- const message = `Unable to make request: ${code}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;
- super(message);
- this.code = code;
- this.name = 'NetworkError';
- }
-}
-exports.NetworkError = NetworkError;
-NetworkError.isNetworkErrorCode = (code) => {
- if (!code)
- return false;
- return [
- 'ECONNRESET',
- 'ENOTFOUND',
- 'ETIMEDOUT',
- 'ECONNREFUSED',
- 'EHOSTUNREACH'
- ].includes(code);
-};
-class UsageError extends Error {
- constructor() {
- const message = `Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;
- super(message);
- this.name = 'UsageError';
- }
-}
-exports.UsageError = UsageError;
-UsageError.isUsageErrorMessage = (msg) => {
- if (!msg)
- return false;
- return msg.includes('insufficient usage');
-};
-//# sourceMappingURL=errors.js.map
-
-/***/ }),
-
-/***/ 580:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getUserAgentString = void 0;
-// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
-const packageJson = __nccwpck_require__(49167);
-/**
- * Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
- */
-function getUserAgentString() {
- return `@actions/cache-${packageJson.version}`;
-}
-exports.getUserAgentString = getUserAgentString;
-//# sourceMappingURL=user-agent.js.map
-
-/***/ }),
-
-/***/ 56490:
+/***/ 6490:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -3607,12 +1328,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createTar = exports.extractTar = exports.listTar = void 0;
-const exec_1 = __nccwpck_require__(71514);
-const io = __importStar(__nccwpck_require__(47351));
-const fs_1 = __nccwpck_require__(57147);
-const path = __importStar(__nccwpck_require__(71017));
-const utils = __importStar(__nccwpck_require__(91518));
-const constants_1 = __nccwpck_require__(88840);
+const exec_1 = __nccwpck_require__(1514);
+const io = __importStar(__nccwpck_require__(7436));
+const fs_1 = __nccwpck_require__(7147);
+const path = __importStar(__nccwpck_require__(1017));
+const utils = __importStar(__nccwpck_require__(1518));
+const constants_1 = __nccwpck_require__(8840);
const IS_WINDOWS = process.platform === 'win32';
// Returns tar path and type: BSD or GNU
function getTarPath() {
@@ -3847,181 +1568,7 @@ exports.createTar = createTar;
/***/ }),
-/***/ 1786:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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.uploadCacheArchiveSDK = exports.UploadProgress = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const storage_blob_1 = __nccwpck_require__(84100);
-const errors_1 = __nccwpck_require__(18223);
-/**
- * Class for tracking the upload state and displaying stats.
- */
-class UploadProgress {
- constructor(contentLength) {
- this.contentLength = contentLength;
- this.sentBytes = 0;
- this.displayedComplete = false;
- this.startTime = Date.now();
- }
- /**
- * Sets the number of bytes sent
- *
- * @param sentBytes the number of bytes sent
- */
- setSentBytes(sentBytes) {
- this.sentBytes = sentBytes;
- }
- /**
- * Returns the total number of bytes transferred.
- */
- getTransferredBytes() {
- return this.sentBytes;
- }
- /**
- * Returns true if the upload is complete.
- */
- isDone() {
- return this.getTransferredBytes() === this.contentLength;
- }
- /**
- * Prints the current upload stats. Once the upload completes, this will print one
- * last line and then stop.
- */
- display() {
- if (this.displayedComplete) {
- return;
- }
- const transferredBytes = this.sentBytes;
- const percentage = (100 * (transferredBytes / this.contentLength)).toFixed(1);
- const elapsedTime = Date.now() - this.startTime;
- const uploadSpeed = (transferredBytes /
- (1024 * 1024) /
- (elapsedTime / 1000)).toFixed(1);
- core.info(`Sent ${transferredBytes} of ${this.contentLength} (${percentage}%), ${uploadSpeed} MBs/sec`);
- if (this.isDone()) {
- this.displayedComplete = true;
- }
- }
- /**
- * Returns a function used to handle TransferProgressEvents.
- */
- onProgress() {
- return (progress) => {
- this.setSentBytes(progress.loadedBytes);
- };
- }
- /**
- * Starts the timer that displays the stats.
- *
- * @param delayInMs the delay between each write
- */
- startDisplayTimer(delayInMs = 1000) {
- const displayCallback = () => {
- this.display();
- if (!this.isDone()) {
- this.timeoutHandle = setTimeout(displayCallback, delayInMs);
- }
- };
- this.timeoutHandle = setTimeout(displayCallback, delayInMs);
- }
- /**
- * Stops the timer that displays the stats. As this typically indicates the upload
- * is complete, this will display one last line, unless the last line has already
- * been written.
- */
- stopDisplayTimer() {
- if (this.timeoutHandle) {
- clearTimeout(this.timeoutHandle);
- this.timeoutHandle = undefined;
- }
- this.display();
- }
-}
-exports.UploadProgress = UploadProgress;
-/**
- * Uploads a cache archive directly to Azure Blob Storage using the Azure SDK.
- * This function will display progress information to the console. Concurrency of the
- * upload is determined by the calling functions.
- *
- * @param signedUploadURL
- * @param archivePath
- * @param options
- * @returns
- */
-function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
- var _a;
- return __awaiter(this, void 0, void 0, function* () {
- const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
- const blockBlobClient = blobClient.getBlockBlobClient();
- const uploadProgress = new UploadProgress((_a = options === null || options === void 0 ? void 0 : options.archiveSizeBytes) !== null && _a !== void 0 ? _a : 0);
- // Specify data transfer options
- const uploadOptions = {
- blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
- concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
- maxSingleShotSize: 128 * 1024 * 1024,
- onProgress: uploadProgress.onProgress()
- };
- try {
- uploadProgress.startDisplayTimer();
- core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
- const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
- // TODO: better management of non-retryable errors
- if (response._response.status >= 400) {
- throw new errors_1.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${response._response.status}`);
- }
- return response;
- }
- catch (error) {
- core.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${error.message}`);
- throw error;
- }
- finally {
- uploadProgress.stopDisplayTimer();
- }
- });
-}
-exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;
-//# sourceMappingURL=uploadUtils.js.map
-
-/***/ }),
-
-/***/ 76215:
+/***/ 6215:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4051,23 +1598,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getDownloadOptions = exports.getUploadOptions = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Returns a copy of the upload options with defaults filled in.
*
* @param copy the original upload options
*/
function getUploadOptions(copy) {
- // Defaults if not overriden
const result = {
- useAzureSdk: false,
uploadConcurrency: 4,
uploadChunkSize: 32 * 1024 * 1024
};
if (copy) {
- if (typeof copy.useAzureSdk === 'boolean') {
- result.useAzureSdk = copy.useAzureSdk;
- }
if (typeof copy.uploadConcurrency === 'number') {
result.uploadConcurrency = copy.uploadConcurrency;
}
@@ -4075,18 +1617,6 @@ function getUploadOptions(copy) {
result.uploadChunkSize = copy.uploadChunkSize;
}
}
- /**
- * Add env var overrides
- */
- // Cap the uploadConcurrency at 32
- result.uploadConcurrency = !isNaN(Number(process.env['CACHE_UPLOAD_CONCURRENCY']))
- ? Math.min(32, Number(process.env['CACHE_UPLOAD_CONCURRENCY']))
- : result.uploadConcurrency;
- // Cap the uploadChunkSize at 128MiB
- 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.debug(`Use Azure SDK: ${result.useAzureSdk}`);
core.debug(`Upload concurrency: ${result.uploadConcurrency}`);
core.debug(`Upload chunk size: ${result.uploadChunkSize}`);
return result;
@@ -4145,7 +1675,7 @@ exports.getDownloadOptions = getDownloadOptions;
/***/ }),
-/***/ 31597:
+/***/ 1597:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4161,7 +1691,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.create = void 0;
-const internal_globber_1 = __nccwpck_require__(27341);
+const internal_globber_1 = __nccwpck_require__(7341);
/**
* Constructs a globber
*
@@ -4178,7 +1708,7 @@ exports.create = create;
/***/ }),
-/***/ 99350:
+/***/ 9350:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4204,7 +1734,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getOptions = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Returns a copy with defaults filled in.
*/
@@ -4235,7 +1765,7 @@ exports.getOptions = getOptions;
/***/ }),
-/***/ 27341:
+/***/ 7341:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4289,14 +1819,14 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DefaultGlobber = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const fs = __importStar(__nccwpck_require__(57147));
-const globOptionsHelper = __importStar(__nccwpck_require__(99350));
-const path = __importStar(__nccwpck_require__(71017));
-const patternHelper = __importStar(__nccwpck_require__(95186));
-const internal_match_kind_1 = __nccwpck_require__(80836);
-const internal_pattern_1 = __nccwpck_require__(35343);
-const internal_search_state_1 = __nccwpck_require__(28530);
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const globOptionsHelper = __importStar(__nccwpck_require__(9350));
+const path = __importStar(__nccwpck_require__(1017));
+const patternHelper = __importStar(__nccwpck_require__(5186));
+const internal_match_kind_1 = __nccwpck_require__(836);
+const internal_pattern_1 = __nccwpck_require__(5343);
+const internal_search_state_1 = __nccwpck_require__(8530);
const IS_WINDOWS = process.platform === 'win32';
class DefaultGlobber {
constructor(options) {
@@ -4477,7 +2007,7 @@ exports.DefaultGlobber = DefaultGlobber;
/***/ }),
-/***/ 80836:
+/***/ 836:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -4502,7 +2032,7 @@ var MatchKind;
/***/ }),
-/***/ 20022:
+/***/ 22:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4531,8 +2061,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
+const path = __importStar(__nccwpck_require__(1017));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
const IS_WINDOWS = process.platform === 'win32';
/**
* Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths.
@@ -4707,7 +2237,7 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator;
/***/ }),
-/***/ 19413:
+/***/ 9413:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4736,9 +2266,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Path = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const pathHelper = __importStar(__nccwpck_require__(20022));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
+const path = __importStar(__nccwpck_require__(1017));
+const pathHelper = __importStar(__nccwpck_require__(22));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
const IS_WINDOWS = process.platform === 'win32';
/**
* Helper class for parsing paths into segments
@@ -4827,7 +2357,7 @@ exports.Path = Path;
/***/ }),
-/***/ 95186:
+/***/ 5186:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4853,8 +2383,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.partialMatch = exports.match = exports.getSearchPaths = void 0;
-const pathHelper = __importStar(__nccwpck_require__(20022));
-const internal_match_kind_1 = __nccwpck_require__(80836);
+const pathHelper = __importStar(__nccwpck_require__(22));
+const internal_match_kind_1 = __nccwpck_require__(836);
const IS_WINDOWS = process.platform === 'win32';
/**
* Given an array of patterns, returns an array of paths to search.
@@ -4928,7 +2458,7 @@ exports.partialMatch = partialMatch;
/***/ }),
-/***/ 35343:
+/***/ 5343:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4957,13 +2487,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Pattern = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const pathHelper = __importStar(__nccwpck_require__(20022));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
-const minimatch_1 = __nccwpck_require__(83973);
-const internal_match_kind_1 = __nccwpck_require__(80836);
-const internal_path_1 = __nccwpck_require__(19413);
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const pathHelper = __importStar(__nccwpck_require__(22));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
+const minimatch_1 = __nccwpck_require__(3973);
+const internal_match_kind_1 = __nccwpck_require__(836);
+const internal_path_1 = __nccwpck_require__(9413);
const IS_WINDOWS = process.platform === 'win32';
class Pattern {
constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) {
@@ -5190,7 +2720,7 @@ exports.Pattern = Pattern;
/***/ }),
-/***/ 28530:
+/***/ 8530:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -6858,18 +4388,229 @@ function coerce (version, options) {
/***/ }),
-/***/ 87351:
+/***/ 4138:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var v1 = __nccwpck_require__(1610);
+var v4 = __nccwpck_require__(8373);
+
+var uuid = v4;
+uuid.v1 = v1;
+uuid.v4 = v4;
+
+module.exports = uuid;
+
+
+/***/ }),
+
+/***/ 5694:
+/***/ ((module) => {
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+var byteToHex = [];
+for (var i = 0; i < 256; ++i) {
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
+}
+
+function bytesToUuid(buf, offset) {
+ var i = offset || 0;
+ var bth = byteToHex;
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
+ return ([
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]]
+ ]).join('');
+}
+
+module.exports = bytesToUuid;
+
+
+/***/ }),
+
+/***/ 4069:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+// Unique ID creation requires a high quality random # generator. In node.js
+// this is pretty straight-forward - we use the crypto API.
+
+var crypto = __nccwpck_require__(6113);
+
+module.exports = function nodeRNG() {
+ return crypto.randomBytes(16);
+};
+
+
+/***/ }),
+
+/***/ 1610:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var rng = __nccwpck_require__(4069);
+var bytesToUuid = __nccwpck_require__(5694);
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+
+var _nodeId;
+var _clockseq;
+
+// Previous uuid creation time
+var _lastMSecs = 0;
+var _lastNSecs = 0;
+
+// See https://github.com/uuidjs/uuid for API details
+function v1(options, buf, offset) {
+ var i = buf && offset || 0;
+ var b = buf || [];
+
+ options = options || {};
+ var node = options.node || _nodeId;
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
+
+ // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+ if (node == null || clockseq == null) {
+ var seedBytes = rng();
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [
+ seedBytes[0] | 0x01,
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
+ ];
+ }
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ }
+
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
+
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
+
+ // Time since last uuid creation (in msecs)
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
+
+ // Per 4.2.1.2, Bump clockseq on clock regression
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ }
+
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ }
+
+ // Per 4.2.1.2 Throw error if too many uuids are requested
+ if (nsecs >= 10000) {
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq;
+
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+ msecs += 12219292800000;
+
+ // `time_low`
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff;
+
+ // `time_mid`
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff;
+
+ // `time_high_and_version`
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+ b[i++] = tmh >>> 16 & 0xff;
+
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+ b[i++] = clockseq >>> 8 | 0x80;
+
+ // `clock_seq_low`
+ b[i++] = clockseq & 0xff;
+
+ // `node`
+ for (var n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf ? buf : bytesToUuid(b);
+}
+
+module.exports = v1;
+
+
+/***/ }),
+
+/***/ 8373:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var rng = __nccwpck_require__(4069);
+var bytesToUuid = __nccwpck_require__(5694);
+
+function v4(options, buf, offset) {
+ var i = buf && offset || 0;
+
+ if (typeof(options) == 'string') {
+ buf = options === 'binary' ? new Array(16) : null;
+ options = null;
+ }
+ options = options || {};
+
+ var rnds = options.random || (options.rng || rng)();
+
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
+
+ // Copy bytes to buffer, if provided
+ if (buf) {
+ for (var ii = 0; ii < 16; ++ii) {
+ buf[i + ii] = rnds[ii];
+ }
+ }
+
+ return buf || bytesToUuid(rnds);
+}
+
+module.exports = v4;
+
+
+/***/ }),
+
+/***/ 7351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -6882,13 +4623,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.issue = exports.issueCommand = void 0;
-const os = __importStar(__nccwpck_require__(22037));
+const os = __importStar(__nccwpck_require__(2037));
const utils_1 = __nccwpck_require__(5278);
/**
* Commands
@@ -6944,13 +4685,13 @@ class Command {
}
}
function escapeData(s) {
- return (0, utils_1.toCommandValue)(s)
+ return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A');
}
function escapeProperty(s) {
- return (0, utils_1.toCommandValue)(s)
+ return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A')
@@ -6961,18 +4702,14 @@ function escapeProperty(s) {
/***/ }),
-/***/ 42186:
+/***/ 2186:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -6985,7 +4722,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -6999,13 +4736,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
-const command_1 = __nccwpck_require__(87351);
+exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
+const command_1 = __nccwpck_require__(7351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(5278);
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const oidc_utils_1 = __nccwpck_require__(98041);
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const oidc_utils_1 = __nccwpck_require__(8041);
/**
* The code to exit an action
*/
@@ -7019,7 +4756,7 @@ var ExitCode;
* A code indicating that the action was a failure
*/
ExitCode[ExitCode["Failure"] = 1] = "Failure";
-})(ExitCode || (exports.ExitCode = ExitCode = {}));
+})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
//-----------------------------------------------------------------------
// Variables
//-----------------------------------------------------------------------
@@ -7030,13 +4767,13 @@ var ExitCode;
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable(name, val) {
- const convertedVal = (0, utils_1.toCommandValue)(val);
+ const convertedVal = utils_1.toCommandValue(val);
process.env[name] = convertedVal;
const filePath = process.env['GITHUB_ENV'] || '';
if (filePath) {
- return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val));
+ return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
}
- (0, command_1.issueCommand)('set-env', { name }, convertedVal);
+ command_1.issueCommand('set-env', { name }, convertedVal);
}
exports.exportVariable = exportVariable;
/**
@@ -7044,7 +4781,7 @@ exports.exportVariable = exportVariable;
* @param secret value of the secret
*/
function setSecret(secret) {
- (0, command_1.issueCommand)('add-mask', {}, secret);
+ command_1.issueCommand('add-mask', {}, secret);
}
exports.setSecret = setSecret;
/**
@@ -7054,10 +4791,10 @@ exports.setSecret = setSecret;
function addPath(inputPath) {
const filePath = process.env['GITHUB_PATH'] || '';
if (filePath) {
- (0, file_command_1.issueFileCommand)('PATH', inputPath);
+ file_command_1.issueFileCommand('PATH', inputPath);
}
else {
- (0, command_1.issueCommand)('add-path', {}, inputPath);
+ command_1.issueCommand('add-path', {}, inputPath);
}
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
}
@@ -7132,10 +4869,10 @@ exports.getBooleanInput = getBooleanInput;
function setOutput(name, value) {
const filePath = process.env['GITHUB_OUTPUT'] || '';
if (filePath) {
- return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value));
+ return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
}
process.stdout.write(os.EOL);
- (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value));
+ command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
}
exports.setOutput = setOutput;
/**
@@ -7144,7 +4881,7 @@ exports.setOutput = setOutput;
*
*/
function setCommandEcho(enabled) {
- (0, command_1.issue)('echo', enabled ? 'on' : 'off');
+ command_1.issue('echo', enabled ? 'on' : 'off');
}
exports.setCommandEcho = setCommandEcho;
//-----------------------------------------------------------------------
@@ -7175,7 +4912,7 @@ exports.isDebug = isDebug;
* @param message debug message
*/
function debug(message) {
- (0, command_1.issueCommand)('debug', {}, message);
+ command_1.issueCommand('debug', {}, message);
}
exports.debug = debug;
/**
@@ -7184,7 +4921,7 @@ exports.debug = debug;
* @param properties optional properties to add to the annotation.
*/
function error(message, properties = {}) {
- (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
+ command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.error = error;
/**
@@ -7193,7 +4930,7 @@ exports.error = error;
* @param properties optional properties to add to the annotation.
*/
function warning(message, properties = {}) {
- (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
+ command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.warning = warning;
/**
@@ -7202,7 +4939,7 @@ exports.warning = warning;
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
- (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
+ command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/**
@@ -7221,14 +4958,14 @@ exports.info = info;
* @param name The name of the output group
*/
function startGroup(name) {
- (0, command_1.issue)('group', name);
+ command_1.issue('group', name);
}
exports.startGroup = startGroup;
/**
* End an output group.
*/
function endGroup() {
- (0, command_1.issue)('endgroup');
+ command_1.issue('endgroup');
}
exports.endGroup = endGroup;
/**
@@ -7266,9 +5003,9 @@ exports.group = group;
function saveState(name, value) {
const filePath = process.env['GITHUB_STATE'] || '';
if (filePath) {
- return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value));
+ return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
}
- (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value));
+ command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
}
exports.saveState = saveState;
/**
@@ -7290,12 +5027,12 @@ exports.getIDToken = getIDToken;
/**
* Summary exports
*/
-var summary_1 = __nccwpck_require__(81327);
+var summary_1 = __nccwpck_require__(1327);
Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } }));
/**
* @deprecated use core.summary
*/
-var summary_2 = __nccwpck_require__(81327);
+var summary_2 = __nccwpck_require__(1327);
Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } }));
/**
* Path exports
@@ -7304,10 +5041,6 @@ var path_utils_1 = __nccwpck_require__(2981);
Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } }));
Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } }));
Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }));
-/**
- * Platform utilities exports
- */
-exports.platform = __importStar(__nccwpck_require__(85243));
//# sourceMappingURL=core.js.map
/***/ }),
@@ -7320,11 +5053,7 @@ exports.platform = __importStar(__nccwpck_require__(85243));
// For internal use, subject to change.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -7337,7 +5066,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -7345,9 +5074,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
-const crypto = __importStar(__nccwpck_require__(6113));
-const fs = __importStar(__nccwpck_require__(57147));
-const os = __importStar(__nccwpck_require__(22037));
+const fs = __importStar(__nccwpck_require__(7147));
+const os = __importStar(__nccwpck_require__(2037));
+const uuid_1 = __nccwpck_require__(8974);
const utils_1 = __nccwpck_require__(5278);
function issueFileCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`];
@@ -7357,14 +5086,14 @@ function issueFileCommand(command, message) {
if (!fs.existsSync(filePath)) {
throw new Error(`Missing file at path: ${filePath}`);
}
- fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, {
+ fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
encoding: 'utf8'
});
}
exports.issueFileCommand = issueFileCommand;
function prepareKeyValueMessage(key, value) {
- const delimiter = `ghadelimiter_${crypto.randomUUID()}`;
- const convertedValue = (0, utils_1.toCommandValue)(value);
+ const delimiter = `ghadelimiter_${uuid_1.v4()}`;
+ const convertedValue = utils_1.toCommandValue(value);
// These should realistically never happen, but just in case someone finds a
// way to exploit uuid generation let's not allow keys or values that contain
// the delimiter.
@@ -7381,7 +5110,7 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage;
/***/ }),
-/***/ 98041:
+/***/ 8041:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7397,9 +5126,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.OidcClient = void 0;
-const http_client_1 = __nccwpck_require__(96255);
-const auth_1 = __nccwpck_require__(35526);
-const core_1 = __nccwpck_require__(42186);
+const http_client_1 = __nccwpck_require__(6255);
+const auth_1 = __nccwpck_require__(5526);
+const core_1 = __nccwpck_require__(2186);
class OidcClient {
static createHttpClient(allowRetry = true, maxRetry = 10) {
const requestOptions = {
@@ -7449,9 +5178,9 @@ class OidcClient {
const encodedAudience = encodeURIComponent(audience);
id_token_url = `${id_token_url}&audience=${encodedAudience}`;
}
- (0, core_1.debug)(`ID token url is ${id_token_url}`);
+ core_1.debug(`ID token url is ${id_token_url}`);
const id_token = yield OidcClient.getCall(id_token_url);
- (0, core_1.setSecret)(id_token);
+ core_1.setSecret(id_token);
return id_token;
}
catch (error) {
@@ -7472,11 +5201,7 @@ exports.OidcClient = OidcClient;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -7489,13 +5214,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
-const path = __importStar(__nccwpck_require__(71017));
+const path = __importStar(__nccwpck_require__(1017));
/**
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
* replaced with /.
@@ -7534,108 +5259,7 @@ exports.toPlatformPath = toPlatformPath;
/***/ }),
-/***/ 85243:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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 __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0;
-const os_1 = __importDefault(__nccwpck_require__(22037));
-const exec = __importStar(__nccwpck_require__(71514));
-const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, {
- silent: true
- });
- const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, {
- silent: true
- });
- return {
- name: name.trim(),
- version: version.trim()
- };
-});
-const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- var _a, _b, _c, _d;
- const { stdout } = yield exec.getExecOutput('sw_vers', undefined, {
- silent: true
- });
- const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
- const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '';
- return {
- name,
- version
- };
-});
-const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
- silent: true
- });
- const [name, version] = stdout.trim().split('\n');
- return {
- name,
- version
- };
-});
-exports.platform = os_1.default.platform();
-exports.arch = os_1.default.arch();
-exports.isWindows = exports.platform === 'win32';
-exports.isMacOS = exports.platform === 'darwin';
-exports.isLinux = exports.platform === 'linux';
-function getDetails() {
- return __awaiter(this, void 0, void 0, function* () {
- return Object.assign(Object.assign({}, (yield (exports.isWindows
- ? getWindowsInfo()
- : exports.isMacOS
- ? getMacOsInfo()
- : getLinuxInfo()))), { platform: exports.platform,
- arch: exports.arch,
- isWindows: exports.isWindows,
- isMacOS: exports.isMacOS,
- isLinux: exports.isLinux });
- });
-}
-exports.getDetails = getDetails;
-//# sourceMappingURL=platform.js.map
-
-/***/ }),
-
-/***/ 81327:
+/***/ 1327:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7651,8 +5275,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
-const os_1 = __nccwpck_require__(22037);
-const fs_1 = __nccwpck_require__(57147);
+const os_1 = __nccwpck_require__(2037);
+const fs_1 = __nccwpck_require__(7147);
const { access, appendFile, writeFile } = fs_1.promises;
exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
@@ -7972,7 +5596,653 @@ exports.toCommandProperties = toCommandProperties;
/***/ }),
-/***/ 71514:
+/***/ 8974:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(1595));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(6993));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(1472));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(6217));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(2381));
+
+var _version = _interopRequireDefault(__nccwpck_require__(427));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(6385));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 5842:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2381:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6385:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6230:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9784:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 8844:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 1458:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).substr(1));
+}
+
+function stringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 1595:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(9784));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.default)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6993:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5920));
+
+var _md = _interopRequireDefault(__nccwpck_require__(5842));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 5920:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = _default;
+exports.URL = exports.DNS = void 0;
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(6385));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function _default(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (namespace.length !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.default)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 1472:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(9784));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.default)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6217:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5920));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(8844));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2609:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(6230));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 427:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(2609));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.substr(14, 1), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 1514:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8007,8 +6277,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getExecOutput = exports.exec = void 0;
-const string_decoder_1 = __nccwpck_require__(71576);
-const tr = __importStar(__nccwpck_require__(88159));
+const string_decoder_1 = __nccwpck_require__(1576);
+const tr = __importStar(__nccwpck_require__(8159));
/**
* Exec a command.
* Output will be streamed to the live console.
@@ -8082,7 +6352,7 @@ exports.getExecOutput = getExecOutput;
/***/ }),
-/***/ 88159:
+/***/ 8159:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8117,13 +6387,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.argStringToArray = exports.ToolRunner = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const events = __importStar(__nccwpck_require__(82361));
-const child = __importStar(__nccwpck_require__(32081));
-const path = __importStar(__nccwpck_require__(71017));
-const io = __importStar(__nccwpck_require__(47351));
-const ioUtil = __importStar(__nccwpck_require__(81962));
-const timers_1 = __nccwpck_require__(39512);
+const os = __importStar(__nccwpck_require__(2037));
+const events = __importStar(__nccwpck_require__(2361));
+const child = __importStar(__nccwpck_require__(2081));
+const path = __importStar(__nccwpck_require__(1017));
+const io = __importStar(__nccwpck_require__(7436));
+const ioUtil = __importStar(__nccwpck_require__(1962));
+const timers_1 = __nccwpck_require__(9512);
/* eslint-disable @typescript-eslint/unbound-method */
const IS_WINDOWS = process.platform === 'win32';
/*
@@ -8707,15 +6977,15 @@ class ExecState extends events.EventEmitter {
/***/ }),
-/***/ 74087:
+/***/ 4087:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Context = void 0;
-const fs_1 = __nccwpck_require__(57147);
-const os_1 = __nccwpck_require__(22037);
+const fs_1 = __nccwpck_require__(7147);
+const os_1 = __nccwpck_require__(2037);
class Context {
/**
* Hydrate the context from the environment
@@ -8769,7 +7039,7 @@ exports.Context = Context;
/***/ }),
-/***/ 95438:
+/***/ 5438:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8799,8 +7069,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getOctokit = exports.context = void 0;
-const Context = __importStar(__nccwpck_require__(74087));
-const utils_1 = __nccwpck_require__(73030);
+const Context = __importStar(__nccwpck_require__(4087));
+const utils_1 = __nccwpck_require__(3030);
exports.context = new Context.Context();
/**
* Returns a hydrated octokit ready to use for GitHub Actions
@@ -8817,7 +7087,7 @@ exports.getOctokit = getOctokit;
/***/ }),
-/***/ 47914:
+/***/ 7914:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8856,8 +7126,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0;
-const httpClient = __importStar(__nccwpck_require__(96255));
-const undici_1 = __nccwpck_require__(41773);
+const httpClient = __importStar(__nccwpck_require__(6255));
+const undici_1 = __nccwpck_require__(1773);
function getAuthString(token, options) {
if (!token && !options.auth) {
throw new Error('Parameter token or opts.auth is required');
@@ -8894,7 +7164,7 @@ exports.getApiBaseUrl = getApiBaseUrl;
/***/ }),
-/***/ 73030:
+/***/ 3030:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8924,12 +7194,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
-const Context = __importStar(__nccwpck_require__(74087));
-const Utils = __importStar(__nccwpck_require__(47914));
+const Context = __importStar(__nccwpck_require__(4087));
+const Utils = __importStar(__nccwpck_require__(7914));
// octokit + plugins
-const core_1 = __nccwpck_require__(76762);
-const plugin_rest_endpoint_methods_1 = __nccwpck_require__(83044);
-const plugin_paginate_rest_1 = __nccwpck_require__(64193);
+const core_1 = __nccwpck_require__(6762);
+const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
+const plugin_paginate_rest_1 = __nccwpck_require__(4193);
exports.context = new Context.Context();
const baseUrl = Utils.getApiBaseUrl();
exports.defaults = {
@@ -8960,7 +7230,7 @@ exports.getOctokitOptions = getOctokitOptions;
/***/ }),
-/***/ 28090:
+/***/ 8090:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8976,7 +7246,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.hashFiles = exports.create = void 0;
-const internal_globber_1 = __nccwpck_require__(28298);
+const internal_globber_1 = __nccwpck_require__(8298);
const internal_hash_files_1 = __nccwpck_require__(2448);
/**
* Constructs a globber
@@ -9005,7 +7275,7 @@ function hashFiles(patterns, currentWorkspace = '', options, verbose = false) {
followSymbolicLinks = options.followSymbolicLinks;
}
const globber = yield create(patterns, { followSymbolicLinks });
- return (0, internal_hash_files_1.hashFiles)(globber, currentWorkspace, verbose);
+ return internal_hash_files_1.hashFiles(globber, currentWorkspace, verbose);
});
}
exports.hashFiles = hashFiles;
@@ -9013,18 +7283,14 @@ exports.hashFiles = hashFiles;
/***/ }),
-/***/ 51026:
+/***/ 1026:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9037,13 +7303,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getOptions = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Returns a copy with defaults filled in.
*/
@@ -9052,8 +7318,7 @@ function getOptions(copy) {
followSymbolicLinks: true,
implicitDescendants: true,
matchDirectories: true,
- omitBrokenSymbolicLinks: true,
- excludeHiddenFiles: false
+ omitBrokenSymbolicLinks: true
};
if (copy) {
if (typeof copy.followSymbolicLinks === 'boolean') {
@@ -9072,10 +7337,6 @@ function getOptions(copy) {
result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks;
core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`);
}
- if (typeof copy.excludeHiddenFiles === 'boolean') {
- result.excludeHiddenFiles = copy.excludeHiddenFiles;
- core.debug(`excludeHiddenFiles '${result.excludeHiddenFiles}'`);
- }
}
return result;
}
@@ -9084,18 +7345,14 @@ exports.getOptions = getOptions;
/***/ }),
-/***/ 28298:
+/***/ 8298:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9108,7 +7365,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9142,14 +7399,14 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DefaultGlobber = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const fs = __importStar(__nccwpck_require__(57147));
-const globOptionsHelper = __importStar(__nccwpck_require__(51026));
-const path = __importStar(__nccwpck_require__(71017));
-const patternHelper = __importStar(__nccwpck_require__(29005));
-const internal_match_kind_1 = __nccwpck_require__(81063);
-const internal_pattern_1 = __nccwpck_require__(64536);
-const internal_search_state_1 = __nccwpck_require__(89117);
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const globOptionsHelper = __importStar(__nccwpck_require__(1026));
+const path = __importStar(__nccwpck_require__(1017));
+const patternHelper = __importStar(__nccwpck_require__(9005));
+const internal_match_kind_1 = __nccwpck_require__(1063);
+const internal_pattern_1 = __nccwpck_require__(4536);
+const internal_search_state_1 = __nccwpck_require__(9117);
const IS_WINDOWS = process.platform === 'win32';
class DefaultGlobber {
constructor(options) {
@@ -9162,21 +7419,19 @@ class DefaultGlobber {
return this.searchPaths.slice();
}
glob() {
- var _a, e_1, _b, _c;
+ var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const result = [];
try {
- for (var _d = true, _e = __asyncValues(this.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
- _c = _f.value;
- _d = false;
- const itemPath = _c;
+ for (var _b = __asyncValues(this.globGenerator()), _c; _c = yield _b.next(), !_c.done;) {
+ const itemPath = _c.value;
result.push(itemPath);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
- if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
@@ -9234,10 +7489,6 @@ class DefaultGlobber {
if (!stats) {
continue;
}
- // Hidden file or directory?
- if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) {
- continue;
- }
// Directory
if (stats.isDirectory()) {
// Matched
@@ -9343,11 +7594,7 @@ exports.DefaultGlobber = DefaultGlobber;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9360,7 +7607,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9383,27 +7630,25 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.hashFiles = void 0;
const crypto = __importStar(__nccwpck_require__(6113));
-const core = __importStar(__nccwpck_require__(42186));
-const fs = __importStar(__nccwpck_require__(57147));
-const stream = __importStar(__nccwpck_require__(12781));
-const util = __importStar(__nccwpck_require__(73837));
-const path = __importStar(__nccwpck_require__(71017));
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const stream = __importStar(__nccwpck_require__(2781));
+const util = __importStar(__nccwpck_require__(3837));
+const path = __importStar(__nccwpck_require__(1017));
function hashFiles(globber, currentWorkspace, verbose = false) {
- var _a, e_1, _b, _c;
- var _d;
+ var e_1, _a;
+ var _b;
return __awaiter(this, void 0, void 0, function* () {
const writeDelegate = verbose ? core.info : core.debug;
let hasMatch = false;
const githubWorkspace = currentWorkspace
? currentWorkspace
- : (_d = process.env['GITHUB_WORKSPACE']) !== null && _d !== void 0 ? _d : process.cwd();
+ : (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : 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 = _g.done, !_a; _e = true) {
- _c = _g.value;
- _e = false;
- const file = _c;
+ for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) {
+ const file = _d.value;
writeDelegate(file);
if (!file.startsWith(`${githubWorkspace}${path.sep}`)) {
writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`);
@@ -9426,7 +7671,7 @@ function hashFiles(globber, currentWorkspace, verbose = false) {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
- if (!_e && !_a && (_b = _f.return)) yield _b.call(_f);
+ if (_d && !_d.done && (_a = _c.return)) yield _a.call(_c);
}
finally { if (e_1) throw e_1.error; }
}
@@ -9446,7 +7691,7 @@ exports.hashFiles = hashFiles;
/***/ }),
-/***/ 81063:
+/***/ 1063:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -9466,7 +7711,7 @@ var MatchKind;
MatchKind[MatchKind["File"] = 2] = "File";
/** Matched */
MatchKind[MatchKind["All"] = 3] = "All";
-})(MatchKind || (exports.MatchKind = MatchKind = {}));
+})(MatchKind = exports.MatchKind || (exports.MatchKind = {}));
//# sourceMappingURL=internal-match-kind.js.map
/***/ }),
@@ -9478,11 +7723,7 @@ var MatchKind;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9495,7 +7736,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9504,8 +7745,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
+const path = __importStar(__nccwpck_require__(1017));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
const IS_WINDOWS = process.platform === 'win32';
/**
* Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths.
@@ -9545,8 +7786,8 @@ exports.dirname = dirname;
* or `C:` are expanded based on the current working directory.
*/
function ensureAbsoluteRoot(root, itemPath) {
- (0, assert_1.default)(root, `ensureAbsoluteRoot parameter 'root' must not be empty`);
- (0, assert_1.default)(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`);
+ assert_1.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`);
+ assert_1.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`);
// Already rooted
if (hasAbsoluteRoot(itemPath)) {
return itemPath;
@@ -9556,7 +7797,7 @@ function ensureAbsoluteRoot(root, itemPath) {
// Check for itemPath like C: or C:foo
if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) {
let cwd = process.cwd();
- (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`);
+ assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`);
// Drive letter matches cwd? Expand to cwd
if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) {
// Drive only, e.g. C:
@@ -9581,11 +7822,11 @@ function ensureAbsoluteRoot(root, itemPath) {
// Check for itemPath like \ or \foo
else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) {
const cwd = process.cwd();
- (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`);
+ assert_1.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.default)(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`);
+ assert_1.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`);
// Otherwise ensure root ends with a separator
if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) {
// Intentionally empty
@@ -9602,7 +7843,7 @@ exports.ensureAbsoluteRoot = ensureAbsoluteRoot;
* `\\hello\share` and `C:\hello` (and using alternate separator).
*/
function hasAbsoluteRoot(itemPath) {
- (0, assert_1.default)(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`);
+ assert_1.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`);
// Normalize separators
itemPath = normalizeSeparators(itemPath);
// Windows
@@ -9619,7 +7860,7 @@ exports.hasAbsoluteRoot = hasAbsoluteRoot;
* `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator).
*/
function hasRoot(itemPath) {
- (0, assert_1.default)(itemPath, `isRooted parameter 'itemPath' must not be empty`);
+ assert_1.default(itemPath, `isRooted parameter 'itemPath' must not be empty`);
// Normalize separators
itemPath = normalizeSeparators(itemPath);
// Windows
@@ -9680,18 +7921,14 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator;
/***/ }),
-/***/ 96836:
+/***/ 6836:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9704,7 +7941,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9713,9 +7950,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Path = void 0;
-const path = __importStar(__nccwpck_require__(71017));
+const path = __importStar(__nccwpck_require__(1017));
const pathHelper = __importStar(__nccwpck_require__(1849));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
const IS_WINDOWS = process.platform === 'win32';
/**
* Helper class for parsing paths into segments
@@ -9729,7 +7966,7 @@ class Path {
this.segments = [];
// String
if (typeof itemPath === 'string') {
- (0, assert_1.default)(itemPath, `Parameter 'itemPath' must not be empty`);
+ assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`);
// Normalize slashes and trim unnecessary trailing slash
itemPath = pathHelper.safeTrimTrailingSeparator(itemPath);
// Not rooted
@@ -9756,24 +7993,24 @@ class Path {
// Array
else {
// Must not be empty
- (0, assert_1.default)(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`);
+ assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`);
// Each segment
for (let i = 0; i < itemPath.length; i++) {
let segment = itemPath[i];
// Must not be empty
- (0, assert_1.default)(segment, `Parameter 'itemPath' must not contain any empty segments`);
+ assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`);
// Normalize slashes
segment = pathHelper.normalizeSeparators(itemPath[i]);
// Root segment
if (i === 0 && pathHelper.hasRoot(segment)) {
segment = pathHelper.safeTrimTrailingSeparator(segment);
- (0, assert_1.default)(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`);
+ assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`);
this.segments.push(segment);
}
// All other segments
else {
// Must not contain slash
- (0, assert_1.default)(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`);
+ assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`);
this.segments.push(segment);
}
}
@@ -9804,18 +8041,14 @@ exports.Path = Path;
/***/ }),
-/***/ 29005:
+/***/ 9005:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9828,14 +8061,14 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.partialMatch = exports.match = exports.getSearchPaths = void 0;
const pathHelper = __importStar(__nccwpck_require__(1849));
-const internal_match_kind_1 = __nccwpck_require__(81063);
+const internal_match_kind_1 = __nccwpck_require__(1063);
const IS_WINDOWS = process.platform === 'win32';
/**
* Given an array of patterns, returns an array of paths to search.
@@ -9909,18 +8142,14 @@ exports.partialMatch = partialMatch;
/***/ }),
-/***/ 64536:
+/***/ 4536:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -9933,7 +8162,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -9942,13 +8171,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Pattern = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
const pathHelper = __importStar(__nccwpck_require__(1849));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
-const minimatch_1 = __nccwpck_require__(83973);
-const internal_match_kind_1 = __nccwpck_require__(81063);
-const internal_path_1 = __nccwpck_require__(96836);
+const assert_1 = __importDefault(__nccwpck_require__(9491));
+const minimatch_1 = __nccwpck_require__(3973);
+const internal_match_kind_1 = __nccwpck_require__(1063);
+const internal_path_1 = __nccwpck_require__(6836);
const IS_WINDOWS = process.platform === 'win32';
class Pattern {
constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) {
@@ -9965,9 +8194,9 @@ class Pattern {
else {
// Convert to pattern
segments = segments || [];
- (0, assert_1.default)(segments.length, `Parameter 'segments' must not empty`);
+ 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`);
+ 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}`;
@@ -10061,13 +8290,13 @@ class Pattern {
*/
static fixupPattern(pattern, homedir) {
// Empty
- (0, assert_1.default)(pattern, 'pattern cannot be empty');
+ assert_1.default(pattern, 'pattern cannot be empty');
// Must not contain `.` segment, unless first segment
// Must not contain `..` segment
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.`);
+ assert_1.default(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`);
// Must not contain globs in root, e.g. Windows UNC path \\foo\b*r
- (0, assert_1.default)(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`);
+ assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`);
// Normalize slashes
pattern = pathHelper.normalizeSeparators(pattern);
// Replace leading `.` segment
@@ -10077,8 +8306,8 @@ class Pattern {
// Replace leading `~` segment
else if (pattern === '~' || pattern.startsWith(`~${path.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}'`);
+ assert_1.default(homedir, 'Unable to determine HOME directory');
+ assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`);
pattern = Pattern.globEscape(homedir) + pattern.substr(1);
}
// Replace relative drive root, e.g. pattern is C: or C:foo
@@ -10175,7 +8404,7 @@ exports.Pattern = Pattern;
/***/ }),
-/***/ 89117:
+/***/ 9117:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -10193,7 +8422,7 @@ exports.SearchState = SearchState;
/***/ }),
-/***/ 35526:
+/***/ 5526:
/***/ (function(__unused_webpack_module, exports) {
"use strict";
@@ -10281,7 +8510,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand
/***/ }),
-/***/ 96255:
+/***/ 6255:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -10321,11 +8550,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
-const http = __importStar(__nccwpck_require__(13685));
-const https = __importStar(__nccwpck_require__(95687));
-const pm = __importStar(__nccwpck_require__(19835));
-const tunnel = __importStar(__nccwpck_require__(74294));
-const undici_1 = __nccwpck_require__(41773);
+const http = __importStar(__nccwpck_require__(3685));
+const https = __importStar(__nccwpck_require__(5687));
+const pm = __importStar(__nccwpck_require__(9835));
+const tunnel = __importStar(__nccwpck_require__(4294));
+const undici_1 = __nccwpck_require__(1773);
var HttpCodes;
(function (HttpCodes) {
HttpCodes[HttpCodes["OK"] = 200] = "OK";
@@ -10848,7 +9077,7 @@ class HttpClient {
}
const usingSsl = parsedUrl.protocol === 'https:';
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
- token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
+ token: `${proxyUrl.username}:${proxyUrl.password}`
})));
this._proxyAgentDispatcher = proxyAgent;
if (usingSsl && this._ignoreSslError) {
@@ -10940,7 +9169,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa
/***/ }),
-/***/ 19835:
+/***/ 9835:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -10962,11 +9191,11 @@ function getProxyUrl(reqUrl) {
})();
if (proxyVar) {
try {
- return new DecodedURL(proxyVar);
+ return new URL(proxyVar);
}
catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
- return new DecodedURL(`http://${proxyVar}`);
+ return new URL(`http://${proxyVar}`);
}
}
else {
@@ -11025,24 +9254,11 @@ function isLoopbackAddress(host) {
hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
}
-class DecodedURL extends URL {
- constructor(url, base) {
- super(url, base);
- this._decodedUsername = decodeURIComponent(super.username);
- this._decodedPassword = decodeURIComponent(super.password);
- }
- get username() {
- return this._decodedUsername;
- }
- get password() {
- return this._decodedPassword;
- }
-}
//# sourceMappingURL=proxy.js.map
/***/ }),
-/***/ 81962:
+/***/ 1962:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -11078,8 +9294,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
var _a;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
-const fs = __importStar(__nccwpck_require__(57147));
-const path = __importStar(__nccwpck_require__(71017));
+const fs = __importStar(__nccwpck_require__(7147));
+const path = __importStar(__nccwpck_require__(1017));
_a = fs.promises
// export const {open} = 'fs'
, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
@@ -11232,7 +9448,7 @@ exports.getCmdPath = getCmdPath;
/***/ }),
-/***/ 47351:
+/***/ 7436:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -11267,9 +9483,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
-const assert_1 = __nccwpck_require__(39491);
-const path = __importStar(__nccwpck_require__(71017));
-const ioUtil = __importStar(__nccwpck_require__(81962));
+const assert_1 = __nccwpck_require__(9491);
+const path = __importStar(__nccwpck_require__(1017));
+const ioUtil = __importStar(__nccwpck_require__(1962));
/**
* Copies a file or folder.
* Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
@@ -11538,18 +9754,14 @@ function copyFile(srcFile, destFile, force) {
/***/ }),
-/***/ 32473:
+/***/ 2473:
/***/ (function(module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -11562,7 +9774,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -11577,13 +9789,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports._readLinuxVersionFile = exports._getOsVersion = exports._findMatch = void 0;
-const semver = __importStar(__nccwpck_require__(70562));
-const core_1 = __nccwpck_require__(42186);
+const semver = __importStar(__nccwpck_require__(562));
+const core_1 = __nccwpck_require__(2186);
// needs to be require for core node modules to be mocked
/* eslint @typescript-eslint/no-require-imports: 0 */
-const os = __nccwpck_require__(22037);
-const cp = __nccwpck_require__(32081);
-const fs = __nccwpck_require__(57147);
+const os = __nccwpck_require__(2037);
+const cp = __nccwpck_require__(2081);
+const fs = __nccwpck_require__(7147);
function _findMatch(versionSpec, stable, candidates, archFilter) {
return __awaiter(this, void 0, void 0, function* () {
const platFilter = os.platform();
@@ -11592,11 +9804,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
let file;
for (const candidate of candidates) {
const version = candidate.version;
- (0, core_1.debug)(`check ${version} satisfies ${versionSpec}`);
+ core_1.debug(`check ${version} satisfies ${versionSpec}`);
if (semver.satisfies(version, versionSpec) &&
(!stable || candidate.stable === stable)) {
file = candidate.files.find(item => {
- (0, core_1.debug)(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
+ core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
let chk = item.arch === archFilter && item.platform === platFilter;
if (chk && item.platform_version) {
const osVersion = module.exports._getOsVersion();
@@ -11610,7 +9822,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
return chk;
});
if (file) {
- (0, core_1.debug)(`matched ${candidate.version}`);
+ core_1.debug(`matched ${candidate.version}`);
match = candidate;
break;
}
@@ -11648,7 +9860,10 @@ function _getOsVersion() {
if (parts.length === 2 &&
(parts[0].trim() === 'VERSION_ID' ||
parts[0].trim() === 'DISTRIB_RELEASE')) {
- version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
+ version = parts[1]
+ .trim()
+ .replace(/^"/, '')
+ .replace(/"$/, '');
break;
}
}
@@ -11674,18 +9889,14 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
/***/ }),
-/***/ 38279:
+/***/ 8279:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -11698,7 +9909,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -11713,7 +9924,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.RetryHelper = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Internal class for retries
*/
@@ -11768,18 +9979,14 @@ exports.RetryHelper = RetryHelper;
/***/ }),
-/***/ 27784:
+/***/ 7784:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
@@ -11792,7 +9999,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__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);
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
@@ -11805,22 +10012,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const io = __importStar(__nccwpck_require__(47351));
-const crypto = __importStar(__nccwpck_require__(6113));
-const fs = __importStar(__nccwpck_require__(57147));
-const mm = __importStar(__nccwpck_require__(32473));
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const httpm = __importStar(__nccwpck_require__(96255));
-const semver = __importStar(__nccwpck_require__(70562));
-const stream = __importStar(__nccwpck_require__(12781));
-const util = __importStar(__nccwpck_require__(73837));
-const assert_1 = __nccwpck_require__(39491);
-const exec_1 = __nccwpck_require__(71514);
-const retry_helper_1 = __nccwpck_require__(38279);
+const core = __importStar(__nccwpck_require__(2186));
+const io = __importStar(__nccwpck_require__(7436));
+const fs = __importStar(__nccwpck_require__(7147));
+const mm = __importStar(__nccwpck_require__(2473));
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const httpm = __importStar(__nccwpck_require__(6255));
+const semver = __importStar(__nccwpck_require__(562));
+const stream = __importStar(__nccwpck_require__(2781));
+const util = __importStar(__nccwpck_require__(3837));
+const assert_1 = __nccwpck_require__(9491);
+const v4_1 = __importDefault(__nccwpck_require__(7468));
+const exec_1 = __nccwpck_require__(1514);
+const retry_helper_1 = __nccwpck_require__(8279);
class HTTPError extends Error {
constructor(httpStatusCode) {
super(`Unexpected HTTP response: ${httpStatusCode}`);
@@ -11843,7 +10053,7 @@ const userAgent = 'actions/tool-cache';
*/
function downloadTool(url, dest, auth, headers) {
return __awaiter(this, void 0, void 0, function* () {
- dest = dest || path.join(_getTempDirectory(), crypto.randomUUID());
+ dest = dest || path.join(_getTempDirectory(), v4_1.default());
yield io.mkdirP(path.dirname(dest));
core.debug(`Downloading ${url}`);
core.debug(`Destination ${dest}`);
@@ -11932,8 +10142,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
*/
function extract7z(file, dest, _7zPath) {
return __awaiter(this, void 0, void 0, function* () {
- (0, assert_1.ok)(IS_WINDOWS, 'extract7z() not supported on current OS');
- (0, assert_1.ok)(file, 'parameter "file" is required');
+ assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
+ assert_1.ok(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
const originalCwd = process.cwd();
process.chdir(dest);
@@ -11950,7 +10160,7 @@ function extract7z(file, dest, _7zPath) {
const options = {
silent: true
};
- yield (0, exec_1.exec)(`"${_7zPath}"`, args, options);
+ yield exec_1.exec(`"${_7zPath}"`, args, options);
}
finally {
process.chdir(originalCwd);
@@ -11979,7 +10189,7 @@ function extract7z(file, dest, _7zPath) {
};
try {
const powershellPath = yield io.which('powershell', true);
- yield (0, exec_1.exec)(`"${powershellPath}"`, args, options);
+ yield exec_1.exec(`"${powershellPath}"`, args, options);
}
finally {
process.chdir(originalCwd);
@@ -12007,7 +10217,7 @@ function extractTar(file, dest, flags = 'xz') {
// Determine whether GNU tar
core.debug('Checking tar --version');
let versionOutput = '';
- yield (0, exec_1.exec)('tar --version', [], {
+ yield exec_1.exec('tar --version', [], {
ignoreReturnCode: true,
silent: true,
listeners: {
@@ -12043,7 +10253,7 @@ function extractTar(file, dest, flags = 'xz') {
args.push('--overwrite');
}
args.push('-C', destArg, '-f', fileArg);
- yield (0, exec_1.exec)(`tar`, args);
+ yield exec_1.exec(`tar`, args);
return dest;
});
}
@@ -12058,8 +10268,8 @@ exports.extractTar = extractTar;
*/
function extractXar(file, dest, flags = []) {
return __awaiter(this, void 0, void 0, function* () {
- (0, assert_1.ok)(IS_MAC, 'extractXar() not supported on current OS');
- (0, assert_1.ok)(file, 'parameter "file" is required');
+ assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
+ assert_1.ok(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
let args;
if (flags instanceof Array) {
@@ -12073,7 +10283,7 @@ function extractXar(file, dest, flags = []) {
args.push('-v');
}
const xarPath = yield io.which('xar', true);
- yield (0, exec_1.exec)(`"${xarPath}"`, _unique(args));
+ yield exec_1.exec(`"${xarPath}"`, _unique(args));
return dest;
});
}
@@ -12127,7 +10337,7 @@ function extractZipWin(file, dest) {
pwshCommand
];
core.debug(`Using pwsh at path: ${pwshPath}`);
- yield (0, exec_1.exec)(`"${pwshPath}"`, args);
+ yield exec_1.exec(`"${pwshPath}"`, args);
}
else {
const powershellCommand = [
@@ -12148,7 +10358,7 @@ function extractZipWin(file, dest) {
];
const powershellPath = yield io.which('powershell', true);
core.debug(`Using powershell at path: ${powershellPath}`);
- yield (0, exec_1.exec)(`"${powershellPath}"`, args);
+ yield exec_1.exec(`"${powershellPath}"`, args);
}
});
}
@@ -12160,7 +10370,7 @@ function extractZipNix(file, dest) {
args.unshift('-q');
}
args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
- yield (0, exec_1.exec)(`"${unzipPath}"`, args, { cwd: dest });
+ yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
});
}
/**
@@ -12337,7 +10547,7 @@ function _createExtractFolder(dest) {
return __awaiter(this, void 0, void 0, function* () {
if (!dest) {
// create a temp dir
- dest = path.join(_getTempDirectory(), crypto.randomUUID());
+ dest = path.join(_getTempDirectory(), v4_1.default());
}
yield io.mkdirP(dest);
return dest;
@@ -12410,7 +10620,7 @@ exports.evaluateVersions = evaluateVersions;
*/
function _getCacheDirectory() {
const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
- (0, assert_1.ok)(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
+ assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
return cacheDirectory;
}
/**
@@ -12418,7 +10628,7 @@ function _getCacheDirectory() {
*/
function _getTempDirectory() {
const tempDirectory = process.env['RUNNER_TEMP'] || '';
- (0, assert_1.ok)(tempDirectory, 'Expected RUNNER_TEMP to be defined');
+ assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
return tempDirectory;
}
/**
@@ -12441,7 +10651,7 @@ function _unique(values) {
/***/ }),
-/***/ 70562:
+/***/ 562:
/***/ ((module, exports) => {
exports = module.exports = SemVer
@@ -14091,7 +12301,91 @@ function coerce (version, options) {
/***/ }),
-/***/ 52557:
+/***/ 7701:
+/***/ ((module) => {
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+var byteToHex = [];
+for (var i = 0; i < 256; ++i) {
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
+}
+
+function bytesToUuid(buf, offset) {
+ var i = offset || 0;
+ var bth = byteToHex;
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
+ return ([
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]], '-',
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]]
+ ]).join('');
+}
+
+module.exports = bytesToUuid;
+
+
+/***/ }),
+
+/***/ 7269:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+// Unique ID creation requires a high quality random # generator. In node.js
+// this is pretty straight-forward - we use the crypto API.
+
+var crypto = __nccwpck_require__(6113);
+
+module.exports = function nodeRNG() {
+ return crypto.randomBytes(16);
+};
+
+
+/***/ }),
+
+/***/ 7468:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var rng = __nccwpck_require__(7269);
+var bytesToUuid = __nccwpck_require__(7701);
+
+function v4(options, buf, offset) {
+ var i = buf && offset || 0;
+
+ if (typeof(options) == 'string') {
+ buf = options === 'binary' ? new Array(16) : null;
+ options = null;
+ }
+ options = options || {};
+
+ var rnds = options.random || (options.rng || rng)();
+
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
+
+ // Copy bytes to buffer, if provided
+ if (buf) {
+ for (var ii = 0; ii < 16; ++ii) {
+ buf[i + ii] = rnds[ii];
+ }
+ }
+
+ return buf || bytesToUuid(rnds);
+}
+
+module.exports = v4;
+
+
+/***/ }),
+
+/***/ 2557:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -14338,7 +12632,7 @@ exports.AbortSignal = AbortSignal;
/***/ }),
-/***/ 24607:
+/***/ 4607:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -14346,22 +12640,22 @@ exports.AbortSignal = AbortSignal;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var uuid = __nccwpck_require__(43415);
-var util = __nccwpck_require__(73837);
+var uuid = __nccwpck_require__(3415);
+var util = __nccwpck_require__(3837);
var tslib = __nccwpck_require__(4351);
-var xml2js = __nccwpck_require__(66189);
-var coreUtil = __nccwpck_require__(80637);
-var logger$1 = __nccwpck_require__(89497);
-var coreAuth = __nccwpck_require__(98834);
-var os = __nccwpck_require__(22037);
-var http = __nccwpck_require__(13685);
-var https = __nccwpck_require__(95687);
-var abortController = __nccwpck_require__(52557);
-var tunnel = __nccwpck_require__(74294);
-var stream = __nccwpck_require__(12781);
-var FormData = __nccwpck_require__(46279);
-var node_fetch = __nccwpck_require__(80467);
-var coreTracing = __nccwpck_require__(94175);
+var xml2js = __nccwpck_require__(6189);
+var coreUtil = __nccwpck_require__(637);
+var logger$1 = __nccwpck_require__(9497);
+var coreAuth = __nccwpck_require__(8834);
+var os = __nccwpck_require__(2037);
+var http = __nccwpck_require__(3685);
+var https = __nccwpck_require__(5687);
+var abortController = __nccwpck_require__(2557);
+var tunnel = __nccwpck_require__(4294);
+var stream = __nccwpck_require__(2781);
+var FormData = __nccwpck_require__(6279);
+var node_fetch = __nccwpck_require__(467);
+var coreTracing = __nccwpck_require__(4175);
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -19811,20 +18105,20 @@ exports.userAgentPolicy = userAgentPolicy;
/***/ }),
-/***/ 46279:
+/***/ 6279:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var CombinedStream = __nccwpck_require__(85443);
-var util = __nccwpck_require__(73837);
-var path = __nccwpck_require__(71017);
-var http = __nccwpck_require__(13685);
-var https = __nccwpck_require__(95687);
-var parseUrl = (__nccwpck_require__(57310).parse);
-var fs = __nccwpck_require__(57147);
-var Stream = (__nccwpck_require__(12781).Stream);
-var mime = __nccwpck_require__(43583);
-var asynckit = __nccwpck_require__(14812);
-var populate = __nccwpck_require__(63971);
+var CombinedStream = __nccwpck_require__(5443);
+var util = __nccwpck_require__(3837);
+var path = __nccwpck_require__(1017);
+var http = __nccwpck_require__(3685);
+var https = __nccwpck_require__(5687);
+var parseUrl = (__nccwpck_require__(7310).parse);
+var fs = __nccwpck_require__(7147);
+var Stream = (__nccwpck_require__(2781).Stream);
+var mime = __nccwpck_require__(3583);
+var asynckit = __nccwpck_require__(6284);
+var populate = __nccwpck_require__(3971);
// Public API
module.exports = FormData;
@@ -20319,7 +18613,7 @@ FormData.prototype.toString = function () {
/***/ }),
-/***/ 63971:
+/***/ 3971:
/***/ ((module) => {
// populates missing values
@@ -20336,7 +18630,7 @@ module.exports = function(dst, src) {
/***/ }),
-/***/ 43415:
+/***/ 3415:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20400,29 +18694,29 @@ Object.defineProperty(exports, "parse", ({
}
}));
-var _v = _interopRequireDefault(__nccwpck_require__(14757));
+var _v = _interopRequireDefault(__nccwpck_require__(4757));
-var _v2 = _interopRequireDefault(__nccwpck_require__(19982));
+var _v2 = _interopRequireDefault(__nccwpck_require__(9982));
-var _v3 = _interopRequireDefault(__nccwpck_require__(85393));
+var _v3 = _interopRequireDefault(__nccwpck_require__(5393));
-var _v4 = _interopRequireDefault(__nccwpck_require__(48788));
+var _v4 = _interopRequireDefault(__nccwpck_require__(8788));
var _nil = _interopRequireDefault(__nccwpck_require__(657));
-var _version = _interopRequireDefault(__nccwpck_require__(37909));
+var _version = _interopRequireDefault(__nccwpck_require__(7909));
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(4418));
-var _stringify = _interopRequireDefault(__nccwpck_require__(74794));
+var _stringify = _interopRequireDefault(__nccwpck_require__(4794));
-var _parse = _interopRequireDefault(__nccwpck_require__(67079));
+var _parse = _interopRequireDefault(__nccwpck_require__(7079));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/***/ }),
-/***/ 64153:
+/***/ 4153:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20467,7 +18761,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 67079:
+/***/ 7079:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20478,7 +18772,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(4418));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20519,7 +18813,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 90690:
+/***/ 690:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -20534,7 +18828,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 10979:
+/***/ 979:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20565,7 +18859,7 @@ function rng() {
/***/ }),
-/***/ 36631:
+/***/ 6631:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20595,7 +18889,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 74794:
+/***/ 4794:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20606,7 +18900,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(4418));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20641,7 +18935,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 14757:
+/***/ 4757:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20652,9 +18946,9 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _rng = _interopRequireDefault(__nccwpck_require__(10979));
+var _rng = _interopRequireDefault(__nccwpck_require__(979));
-var _stringify = _interopRequireDefault(__nccwpck_require__(74794));
+var _stringify = _interopRequireDefault(__nccwpck_require__(4794));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20755,7 +19049,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 19982:
+/***/ 9982:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20766,9 +19060,9 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _v = _interopRequireDefault(__nccwpck_require__(44085));
+var _v = _interopRequireDefault(__nccwpck_require__(4085));
-var _md = _interopRequireDefault(__nccwpck_require__(64153));
+var _md = _interopRequireDefault(__nccwpck_require__(4153));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20778,7 +19072,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 44085:
+/***/ 4085:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20790,9 +19084,9 @@ Object.defineProperty(exports, "__esModule", ({
exports["default"] = _default;
exports.URL = exports.DNS = void 0;
-var _stringify = _interopRequireDefault(__nccwpck_require__(74794));
+var _stringify = _interopRequireDefault(__nccwpck_require__(4794));
-var _parse = _interopRequireDefault(__nccwpck_require__(67079));
+var _parse = _interopRequireDefault(__nccwpck_require__(7079));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20863,7 +19157,7 @@ function _default(name, version, hashfunc) {
/***/ }),
-/***/ 85393:
+/***/ 5393:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20874,9 +19168,9 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _rng = _interopRequireDefault(__nccwpck_require__(10979));
+var _rng = _interopRequireDefault(__nccwpck_require__(979));
-var _stringify = _interopRequireDefault(__nccwpck_require__(74794));
+var _stringify = _interopRequireDefault(__nccwpck_require__(4794));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20907,7 +19201,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 48788:
+/***/ 8788:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20918,9 +19212,9 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _v = _interopRequireDefault(__nccwpck_require__(44085));
+var _v = _interopRequireDefault(__nccwpck_require__(4085));
-var _sha = _interopRequireDefault(__nccwpck_require__(36631));
+var _sha = _interopRequireDefault(__nccwpck_require__(6631));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20930,7 +19224,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 64418:
+/***/ 4418:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20941,7 +19235,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _regex = _interopRequireDefault(__nccwpck_require__(90690));
+var _regex = _interopRequireDefault(__nccwpck_require__(690));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20954,7 +19248,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 37909:
+/***/ 7909:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20965,7 +19259,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(4418));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20982,7 +19276,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 94175:
+/***/ 4175:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20990,7 +19284,7 @@ exports["default"] = _default;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var api = __nccwpck_require__(65163);
+var api = __nccwpck_require__(5163);
// Copyright (c) Microsoft Corporation.
(function (SpanKind) {
@@ -21209,7 +19503,7 @@ exports.setSpanContext = setSpanContext;
/***/ }),
-/***/ 84100:
+/***/ 4100:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -21217,19 +19511,19 @@ exports.setSpanContext = setSpanContext;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var coreHttp = __nccwpck_require__(24607);
+var coreHttp = __nccwpck_require__(4607);
var tslib = __nccwpck_require__(4351);
-var coreTracing = __nccwpck_require__(94175);
-var logger$1 = __nccwpck_require__(89497);
-var abortController = __nccwpck_require__(52557);
-var os = __nccwpck_require__(22037);
+var coreTracing = __nccwpck_require__(4175);
+var logger$1 = __nccwpck_require__(9497);
+var abortController = __nccwpck_require__(2557);
+var os = __nccwpck_require__(2037);
var crypto = __nccwpck_require__(6113);
-var stream = __nccwpck_require__(12781);
-__nccwpck_require__(37947);
-var coreLro = __nccwpck_require__(90334);
-var events = __nccwpck_require__(82361);
-var fs = __nccwpck_require__(57147);
-var util = __nccwpck_require__(73837);
+var stream = __nccwpck_require__(2781);
+__nccwpck_require__(7947);
+var coreLro = __nccwpck_require__(5069);
+var events = __nccwpck_require__(2361);
+var fs = __nccwpck_require__(7147);
+var util = __nccwpck_require__(3837);
function _interopNamespace(e) {
if (e && e.__esModule) return e;
@@ -40001,7 +38295,7 @@ class BuffersStream extends stream.Readable {
* maxBufferLength is max size of each buffer in the pooled buffers.
*/
// Can't use import as Typescript doesn't recognize "buffer".
-const maxBufferLength = (__nccwpck_require__(14300).constants.MAX_LENGTH);
+const maxBufferLength = (__nccwpck_require__(4300).constants.MAX_LENGTH);
/**
* This class provides a buffer container which conceptually has no hard size limit.
* It accepts a capacity, an array of input buffers and the total length of input data.
@@ -46343,7 +44637,7 @@ exports.newPipeline = newPipeline;
/***/ }),
-/***/ 40334:
+/***/ 334:
/***/ ((module) => {
"use strict";
@@ -46428,7 +44722,7 @@ var createTokenAuth = function createTokenAuth2(token) {
/***/ }),
-/***/ 76762:
+/***/ 6762:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -46457,14 +44751,14 @@ __export(dist_src_exports, {
Octokit: () => Octokit
});
module.exports = __toCommonJS(dist_src_exports);
-var import_universal_user_agent = __nccwpck_require__(45030);
-var import_before_after_hook = __nccwpck_require__(83682);
-var import_request = __nccwpck_require__(36234);
-var import_graphql = __nccwpck_require__(88467);
-var import_auth_token = __nccwpck_require__(40334);
+var import_universal_user_agent = __nccwpck_require__(5030);
+var import_before_after_hook = __nccwpck_require__(3682);
+var import_request = __nccwpck_require__(6234);
+var import_graphql = __nccwpck_require__(8467);
+var import_auth_token = __nccwpck_require__(334);
// pkg/dist-src/version.js
-var VERSION = "5.2.0";
+var VERSION = "5.1.0";
// pkg/dist-src/index.js
var noop = () => {
@@ -46597,7 +44891,7 @@ var Octokit = class {
/***/ }),
-/***/ 59440:
+/***/ 9440:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -46628,10 +44922,10 @@ __export(dist_src_exports, {
module.exports = __toCommonJS(dist_src_exports);
// pkg/dist-src/defaults.js
-var import_universal_user_agent = __nccwpck_require__(45030);
+var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js
-var VERSION = "9.0.5";
+var VERSION = "9.0.4";
// pkg/dist-src/defaults.js
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -46981,7 +45275,7 @@ var endpoint = withDefaults(null, DEFAULTS);
/***/ }),
-/***/ 88467:
+/***/ 8467:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -47012,17 +45306,17 @@ __export(dist_src_exports, {
withCustomRequest: () => withCustomRequest
});
module.exports = __toCommonJS(dist_src_exports);
-var import_request3 = __nccwpck_require__(36234);
-var import_universal_user_agent = __nccwpck_require__(45030);
+var import_request3 = __nccwpck_require__(6234);
+var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js
-var VERSION = "7.1.0";
+var VERSION = "7.0.2";
// pkg/dist-src/with-defaults.js
-var import_request2 = __nccwpck_require__(36234);
+var import_request2 = __nccwpck_require__(6234);
// pkg/dist-src/graphql.js
-var import_request = __nccwpck_require__(36234);
+var import_request = __nccwpck_require__(6234);
// pkg/dist-src/error.js
function _buildMessageForResponseErrors(data) {
@@ -47139,7 +45433,7 @@ function withCustomRequest(customRequest) {
/***/ }),
-/***/ 64193:
+/***/ 4193:
/***/ ((module) => {
"use strict";
@@ -47540,7 +45834,7 @@ paginateRest.VERSION = VERSION;
/***/ }),
-/***/ 83044:
+/***/ 3044:
/***/ ((module) => {
"use strict";
@@ -49710,7 +48004,7 @@ legacyRestEndpointMethods.VERSION = VERSION;
/***/ }),
-/***/ 10537:
+/***/ 537:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -49749,7 +48043,7 @@ __export(dist_src_exports, {
RequestError: () => RequestError
});
module.exports = __toCommonJS(dist_src_exports);
-var import_deprecation = __nccwpck_require__(58932);
+var import_deprecation = __nccwpck_require__(8932);
var import_once = __toESM(__nccwpck_require__(1223));
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
@@ -49808,7 +48102,7 @@ var RequestError = class extends Error {
/***/ }),
-/***/ 36234:
+/***/ 6234:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -49837,11 +48131,11 @@ __export(dist_src_exports, {
request: () => request
});
module.exports = __toCommonJS(dist_src_exports);
-var import_endpoint = __nccwpck_require__(59440);
-var import_universal_user_agent = __nccwpck_require__(45030);
+var import_endpoint = __nccwpck_require__(9440);
+var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js
-var VERSION = "8.4.0";
+var VERSION = "8.2.0";
// pkg/dist-src/is-plain-object.js
function isPlainObject(value) {
@@ -49857,7 +48151,7 @@ function isPlainObject(value) {
}
// pkg/dist-src/fetch-wrapper.js
-var import_request_error = __nccwpck_require__(10537);
+var import_request_error = __nccwpck_require__(537);
// pkg/dist-src/get-buffer-response.js
function getBufferResponse(response) {
@@ -49866,7 +48160,7 @@ function getBufferResponse(response) {
// pkg/dist-src/fetch-wrapper.js
function fetchWrapper(requestOptions) {
- var _a, _b, _c, _d;
+ var _a, _b, _c;
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
@@ -49887,9 +48181,8 @@ function fetchWrapper(requestOptions) {
return fetch(requestOptions.url, {
method: requestOptions.method,
body: requestOptions.body,
- redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
headers: requestOptions.headers,
- signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
+ signal: (_c = requestOptions.request) == null ? void 0 : _c.signal,
// duplex must be set if request.body is ReadableStream or Async Iterables.
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
...requestOptions.body && { duplex: "half" }
@@ -50038,7 +48331,7 @@ var request = withDefaults(import_endpoint.endpoint, {
/***/ }),
-/***/ 57171:
+/***/ 7171:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50060,9 +48353,9 @@ var request = withDefaults(import_endpoint.endpoint, {
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ContextAPI = void 0;
-const NoopContextManager_1 = __nccwpck_require__(54118);
-const global_utils_1 = __nccwpck_require__(85135);
-const diag_1 = __nccwpck_require__(11877);
+const NoopContextManager_1 = __nccwpck_require__(4118);
+const global_utils_1 = __nccwpck_require__(5135);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'context';
const NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager();
/**
@@ -50126,7 +48419,7 @@ exports.ContextAPI = ContextAPI;
/***/ }),
-/***/ 11877:
+/***/ 1877:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50148,10 +48441,10 @@ exports.ContextAPI = ContextAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DiagAPI = void 0;
-const ComponentLogger_1 = __nccwpck_require__(17978);
-const logLevelLogger_1 = __nccwpck_require__(99639);
-const types_1 = __nccwpck_require__(78077);
-const global_utils_1 = __nccwpck_require__(85135);
+const ComponentLogger_1 = __nccwpck_require__(7978);
+const logLevelLogger_1 = __nccwpck_require__(9639);
+const types_1 = __nccwpck_require__(8077);
+const global_utils_1 = __nccwpck_require__(5135);
const API_NAME = 'diag';
/**
* Singleton object which represents the entry point to the OpenTelemetry internal
@@ -50226,7 +48519,7 @@ exports.DiagAPI = DiagAPI;
/***/ }),
-/***/ 17696:
+/***/ 7696:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50248,9 +48541,9 @@ exports.DiagAPI = DiagAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MetricsAPI = void 0;
-const NoopMeterProvider_1 = __nccwpck_require__(72647);
-const global_utils_1 = __nccwpck_require__(85135);
-const diag_1 = __nccwpck_require__(11877);
+const NoopMeterProvider_1 = __nccwpck_require__(2647);
+const global_utils_1 = __nccwpck_require__(5135);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'metrics';
/**
* Singleton object which represents the entry point to the OpenTelemetry Metrics API
@@ -50294,7 +48587,7 @@ exports.MetricsAPI = MetricsAPI;
/***/ }),
-/***/ 89909:
+/***/ 9909:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50316,12 +48609,12 @@ exports.MetricsAPI = MetricsAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PropagationAPI = void 0;
-const global_utils_1 = __nccwpck_require__(85135);
-const NoopTextMapPropagator_1 = __nccwpck_require__(72368);
-const TextMapPropagator_1 = __nccwpck_require__(80865);
-const context_helpers_1 = __nccwpck_require__(37682);
-const utils_1 = __nccwpck_require__(28136);
-const diag_1 = __nccwpck_require__(11877);
+const global_utils_1 = __nccwpck_require__(5135);
+const NoopTextMapPropagator_1 = __nccwpck_require__(2368);
+const TextMapPropagator_1 = __nccwpck_require__(865);
+const context_helpers_1 = __nccwpck_require__(7682);
+const utils_1 = __nccwpck_require__(8136);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'propagation';
const NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator();
/**
@@ -50390,7 +48683,7 @@ exports.PropagationAPI = PropagationAPI;
/***/ }),
-/***/ 81539:
+/***/ 1539:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50412,11 +48705,11 @@ exports.PropagationAPI = PropagationAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TraceAPI = void 0;
-const global_utils_1 = __nccwpck_require__(85135);
+const global_utils_1 = __nccwpck_require__(5135);
const ProxyTracerProvider_1 = __nccwpck_require__(2285);
-const spancontext_utils_1 = __nccwpck_require__(49745);
-const context_utils_1 = __nccwpck_require__(23326);
-const diag_1 = __nccwpck_require__(11877);
+const spancontext_utils_1 = __nccwpck_require__(9745);
+const context_utils_1 = __nccwpck_require__(3326);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'trace';
/**
* Singleton object which represents the entry point to the OpenTelemetry Tracing API
@@ -50476,7 +48769,7 @@ exports.TraceAPI = TraceAPI;
/***/ }),
-/***/ 37682:
+/***/ 7682:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50498,8 +48791,8 @@ exports.TraceAPI = TraceAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = void 0;
-const context_1 = __nccwpck_require__(57171);
-const context_2 = __nccwpck_require__(78242);
+const context_1 = __nccwpck_require__(7171);
+const context_2 = __nccwpck_require__(8242);
/**
* Baggage key
*/
@@ -50546,7 +48839,7 @@ exports.deleteBaggage = deleteBaggage;
/***/ }),
-/***/ 84811:
+/***/ 4811:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -50608,7 +48901,7 @@ exports.BaggageImpl = BaggageImpl;
/***/ }),
-/***/ 23542:
+/***/ 3542:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -50638,7 +48931,7 @@ exports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');
/***/ }),
-/***/ 28136:
+/***/ 8136:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50660,9 +48953,9 @@ exports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.baggageEntryMetadataFromString = exports.createBaggage = void 0;
-const diag_1 = __nccwpck_require__(11877);
-const baggage_impl_1 = __nccwpck_require__(84811);
-const symbol_1 = __nccwpck_require__(23542);
+const diag_1 = __nccwpck_require__(1877);
+const baggage_impl_1 = __nccwpck_require__(4811);
+const symbol_1 = __nccwpck_require__(3542);
const diag = diag_1.DiagAPI.instance();
/**
* Create a new Baggage with optional entries
@@ -50720,14 +49013,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.context = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const context_1 = __nccwpck_require__(57171);
+const context_1 = __nccwpck_require__(7171);
/** Entrypoint for context API */
exports.context = context_1.ContextAPI.getInstance();
//# sourceMappingURL=context-api.js.map
/***/ }),
-/***/ 54118:
+/***/ 4118:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50749,7 +49042,7 @@ exports.context = context_1.ContextAPI.getInstance();
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NoopContextManager = void 0;
-const context_1 = __nccwpck_require__(78242);
+const context_1 = __nccwpck_require__(8242);
class NoopContextManager {
active() {
return context_1.ROOT_CONTEXT;
@@ -50772,7 +49065,7 @@ exports.NoopContextManager = NoopContextManager;
/***/ }),
-/***/ 78242:
+/***/ 8242:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -50834,7 +49127,7 @@ exports.ROOT_CONTEXT = new BaseContext();
/***/ }),
-/***/ 39721:
+/***/ 9721:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50858,7 +49151,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.diag = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const diag_1 = __nccwpck_require__(11877);
+const diag_1 = __nccwpck_require__(1877);
/**
* Entrypoint for Diag API.
* Defines Diagnostic handler used for internal diagnostic logging operations.
@@ -50870,7 +49163,7 @@ exports.diag = diag_1.DiagAPI.instance();
/***/ }),
-/***/ 17978:
+/***/ 7978:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -50892,7 +49185,7 @@ exports.diag = diag_1.DiagAPI.instance();
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DiagComponentLogger = void 0;
-const global_utils_1 = __nccwpck_require__(85135);
+const global_utils_1 = __nccwpck_require__(5135);
/**
* Component Logger which is meant to be used as part of any component which
* will add automatically additional namespace in front of the log message.
@@ -51000,7 +49293,7 @@ exports.DiagConsoleLogger = DiagConsoleLogger;
/***/ }),
-/***/ 99639:
+/***/ 9639:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51022,7 +49315,7 @@ exports.DiagConsoleLogger = DiagConsoleLogger;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createLogLevelDiagLogger = void 0;
-const types_1 = __nccwpck_require__(78077);
+const types_1 = __nccwpck_require__(8077);
function createLogLevelDiagLogger(maxLevel, logger) {
if (maxLevel < types_1.DiagLogLevel.NONE) {
maxLevel = types_1.DiagLogLevel.NONE;
@@ -51052,7 +49345,7 @@ exports.createLogLevelDiagLogger = createLogLevelDiagLogger;
/***/ }),
-/***/ 78077:
+/***/ 8077:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -51103,7 +49396,7 @@ var DiagLogLevel;
/***/ }),
-/***/ 65163:
+/***/ 5163:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51125,45 +49418,45 @@ var DiagLogLevel;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.trace = exports.propagation = exports.metrics = exports.diag = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.TraceFlags = exports.SpanStatusCode = exports.SpanKind = exports.SamplingDecision = exports.ProxyTracerProvider = exports.ProxyTracer = exports.defaultTextMapSetter = exports.defaultTextMapGetter = exports.ValueType = exports.createNoopMeter = exports.DiagLogLevel = exports.DiagConsoleLogger = exports.ROOT_CONTEXT = exports.createContextKey = exports.baggageEntryMetadataFromString = void 0;
-var utils_1 = __nccwpck_require__(28136);
+var utils_1 = __nccwpck_require__(8136);
Object.defineProperty(exports, "baggageEntryMetadataFromString", ({ enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } }));
// Context APIs
-var context_1 = __nccwpck_require__(78242);
+var context_1 = __nccwpck_require__(8242);
Object.defineProperty(exports, "createContextKey", ({ enumerable: true, get: function () { return context_1.createContextKey; } }));
Object.defineProperty(exports, "ROOT_CONTEXT", ({ enumerable: true, get: function () { return context_1.ROOT_CONTEXT; } }));
// Diag APIs
var consoleLogger_1 = __nccwpck_require__(3041);
Object.defineProperty(exports, "DiagConsoleLogger", ({ enumerable: true, get: function () { return consoleLogger_1.DiagConsoleLogger; } }));
-var types_1 = __nccwpck_require__(78077);
+var types_1 = __nccwpck_require__(8077);
Object.defineProperty(exports, "DiagLogLevel", ({ enumerable: true, get: function () { return types_1.DiagLogLevel; } }));
// Metrics APIs
var NoopMeter_1 = __nccwpck_require__(4837);
Object.defineProperty(exports, "createNoopMeter", ({ enumerable: true, get: function () { return NoopMeter_1.createNoopMeter; } }));
-var Metric_1 = __nccwpck_require__(89999);
+var Metric_1 = __nccwpck_require__(9999);
Object.defineProperty(exports, "ValueType", ({ enumerable: true, get: function () { return Metric_1.ValueType; } }));
// Propagation APIs
-var TextMapPropagator_1 = __nccwpck_require__(80865);
+var TextMapPropagator_1 = __nccwpck_require__(865);
Object.defineProperty(exports, "defaultTextMapGetter", ({ enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapGetter; } }));
Object.defineProperty(exports, "defaultTextMapSetter", ({ enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapSetter; } }));
-var ProxyTracer_1 = __nccwpck_require__(43503);
+var ProxyTracer_1 = __nccwpck_require__(3503);
Object.defineProperty(exports, "ProxyTracer", ({ enumerable: true, get: function () { return ProxyTracer_1.ProxyTracer; } }));
var ProxyTracerProvider_1 = __nccwpck_require__(2285);
Object.defineProperty(exports, "ProxyTracerProvider", ({ enumerable: true, get: function () { return ProxyTracerProvider_1.ProxyTracerProvider; } }));
-var SamplingResult_1 = __nccwpck_require__(33209);
+var SamplingResult_1 = __nccwpck_require__(3209);
Object.defineProperty(exports, "SamplingDecision", ({ enumerable: true, get: function () { return SamplingResult_1.SamplingDecision; } }));
-var span_kind_1 = __nccwpck_require__(31424);
+var span_kind_1 = __nccwpck_require__(1424);
Object.defineProperty(exports, "SpanKind", ({ enumerable: true, get: function () { return span_kind_1.SpanKind; } }));
-var status_1 = __nccwpck_require__(48845);
+var status_1 = __nccwpck_require__(8845);
Object.defineProperty(exports, "SpanStatusCode", ({ enumerable: true, get: function () { return status_1.SpanStatusCode; } }));
-var trace_flags_1 = __nccwpck_require__(26905);
+var trace_flags_1 = __nccwpck_require__(6905);
Object.defineProperty(exports, "TraceFlags", ({ enumerable: true, get: function () { return trace_flags_1.TraceFlags; } }));
-var utils_2 = __nccwpck_require__(32615);
+var utils_2 = __nccwpck_require__(2615);
Object.defineProperty(exports, "createTraceState", ({ enumerable: true, get: function () { return utils_2.createTraceState; } }));
-var spancontext_utils_1 = __nccwpck_require__(49745);
+var spancontext_utils_1 = __nccwpck_require__(9745);
Object.defineProperty(exports, "isSpanContextValid", ({ enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } }));
Object.defineProperty(exports, "isValidTraceId", ({ enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } }));
Object.defineProperty(exports, "isValidSpanId", ({ enumerable: true, get: function () { return spancontext_utils_1.isValidSpanId; } }));
-var invalid_span_constants_1 = __nccwpck_require__(91760);
+var invalid_span_constants_1 = __nccwpck_require__(1760);
Object.defineProperty(exports, "INVALID_SPANID", ({ enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPANID; } }));
Object.defineProperty(exports, "INVALID_TRACEID", ({ enumerable: true, get: function () { return invalid_span_constants_1.INVALID_TRACEID; } }));
Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", ({ enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPAN_CONTEXT; } }));
@@ -51171,13 +49464,13 @@ Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", ({ enumerable: true, get:
// tree-shaking on each api instance.
const context_api_1 = __nccwpck_require__(7393);
Object.defineProperty(exports, "context", ({ enumerable: true, get: function () { return context_api_1.context; } }));
-const diag_api_1 = __nccwpck_require__(39721);
+const diag_api_1 = __nccwpck_require__(9721);
Object.defineProperty(exports, "diag", ({ enumerable: true, get: function () { return diag_api_1.diag; } }));
-const metrics_api_1 = __nccwpck_require__(72601);
+const metrics_api_1 = __nccwpck_require__(2601);
Object.defineProperty(exports, "metrics", ({ enumerable: true, get: function () { return metrics_api_1.metrics; } }));
-const propagation_api_1 = __nccwpck_require__(17591);
+const propagation_api_1 = __nccwpck_require__(7591);
Object.defineProperty(exports, "propagation", ({ enumerable: true, get: function () { return propagation_api_1.propagation; } }));
-const trace_api_1 = __nccwpck_require__(98989);
+const trace_api_1 = __nccwpck_require__(8989);
Object.defineProperty(exports, "trace", ({ enumerable: true, get: function () { return trace_api_1.trace; } }));
// Default export.
exports["default"] = {
@@ -51191,7 +49484,7 @@ exports["default"] = {
/***/ }),
-/***/ 85135:
+/***/ 5135:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51213,9 +49506,9 @@ exports["default"] = {
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = void 0;
-const platform_1 = __nccwpck_require__(99957);
-const version_1 = __nccwpck_require__(98996);
-const semver_1 = __nccwpck_require__(81522);
+const platform_1 = __nccwpck_require__(9957);
+const version_1 = __nccwpck_require__(8996);
+const semver_1 = __nccwpck_require__(1522);
const major = version_1.VERSION.split('.')[0];
const GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
const _global = platform_1._globalThis;
@@ -51262,7 +49555,7 @@ exports.unregisterGlobal = unregisterGlobal;
/***/ }),
-/***/ 81522:
+/***/ 1522:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51284,7 +49577,7 @@ exports.unregisterGlobal = unregisterGlobal;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isCompatible = exports._makeCompatibilityCheck = void 0;
-const version_1 = __nccwpck_require__(98996);
+const version_1 = __nccwpck_require__(8996);
const re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
/**
* Create a function to test an API version to see if it is compatible with the provided ownVersion.
@@ -51391,7 +49684,7 @@ exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);
/***/ }),
-/***/ 72601:
+/***/ 2601:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51415,14 +49708,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.metrics = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const metrics_1 = __nccwpck_require__(17696);
+const metrics_1 = __nccwpck_require__(7696);
/** Entrypoint for metrics API */
exports.metrics = metrics_1.MetricsAPI.getInstance();
//# sourceMappingURL=metrics-api.js.map
/***/ }),
-/***/ 89999:
+/***/ 9999:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -51577,7 +49870,7 @@ exports.createNoopMeter = createNoopMeter;
/***/ }),
-/***/ 72647:
+/***/ 2647:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51615,7 +49908,7 @@ exports.NOOP_METER_PROVIDER = new NoopMeterProvider();
/***/ }),
-/***/ 99957:
+/***/ 9957:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -51646,12 +49939,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(87200), exports);
+__exportStar(__nccwpck_require__(7200), exports);
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 89406:
+/***/ 9406:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -51680,7 +49973,7 @@ exports._globalThis = typeof globalThis === 'object' ? globalThis : global;
/***/ }),
-/***/ 87200:
+/***/ 7200:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -51711,12 +50004,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(89406), exports);
+__exportStar(__nccwpck_require__(9406), exports);
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 17591:
+/***/ 7591:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51740,14 +50033,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.propagation = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const propagation_1 = __nccwpck_require__(89909);
+const propagation_1 = __nccwpck_require__(9909);
/** Entrypoint for propagation API */
exports.propagation = propagation_1.PropagationAPI.getInstance();
//# sourceMappingURL=propagation-api.js.map
/***/ }),
-/***/ 72368:
+/***/ 2368:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -51788,7 +50081,7 @@ exports.NoopTextMapPropagator = NoopTextMapPropagator;
/***/ }),
-/***/ 80865:
+/***/ 865:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -51836,7 +50129,7 @@ exports.defaultTextMapSetter = {
/***/ }),
-/***/ 98989:
+/***/ 8989:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51860,14 +50153,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.trace = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const trace_1 = __nccwpck_require__(81539);
+const trace_1 = __nccwpck_require__(1539);
/** Entrypoint for trace API */
exports.trace = trace_1.TraceAPI.getInstance();
//# sourceMappingURL=trace-api.js.map
/***/ }),
-/***/ 81462:
+/***/ 1462:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51889,7 +50182,7 @@ exports.trace = trace_1.TraceAPI.getInstance();
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NonRecordingSpan = void 0;
-const invalid_span_constants_1 = __nccwpck_require__(91760);
+const invalid_span_constants_1 = __nccwpck_require__(1760);
/**
* The NonRecordingSpan is the default {@link Span} that is used when no Span
* implementation is available. All operations are no-op including context
@@ -51937,7 +50230,7 @@ exports.NonRecordingSpan = NonRecordingSpan;
/***/ }),
-/***/ 17606:
+/***/ 7606:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -51959,10 +50252,10 @@ exports.NonRecordingSpan = NonRecordingSpan;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NoopTracer = void 0;
-const context_1 = __nccwpck_require__(57171);
-const context_utils_1 = __nccwpck_require__(23326);
-const NonRecordingSpan_1 = __nccwpck_require__(81462);
-const spancontext_utils_1 = __nccwpck_require__(49745);
+const context_1 = __nccwpck_require__(7171);
+const context_utils_1 = __nccwpck_require__(3326);
+const NonRecordingSpan_1 = __nccwpck_require__(1462);
+const spancontext_utils_1 = __nccwpck_require__(9745);
const contextApi = context_1.ContextAPI.getInstance();
/**
* No-op implementations of {@link Tracer}.
@@ -52019,7 +50312,7 @@ function isSpanContext(spanContext) {
/***/ }),
-/***/ 23259:
+/***/ 3259:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52041,7 +50334,7 @@ function isSpanContext(spanContext) {
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NoopTracerProvider = void 0;
-const NoopTracer_1 = __nccwpck_require__(17606);
+const NoopTracer_1 = __nccwpck_require__(7606);
/**
* An implementation of the {@link TracerProvider} which returns an impotent
* Tracer for all calls to `getTracer`.
@@ -52058,7 +50351,7 @@ exports.NoopTracerProvider = NoopTracerProvider;
/***/ }),
-/***/ 43503:
+/***/ 3503:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52080,7 +50373,7 @@ exports.NoopTracerProvider = NoopTracerProvider;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ProxyTracer = void 0;
-const NoopTracer_1 = __nccwpck_require__(17606);
+const NoopTracer_1 = __nccwpck_require__(7606);
const NOOP_TRACER = new NoopTracer_1.NoopTracer();
/**
* Proxy tracer provided by the proxy tracer provider
@@ -52142,8 +50435,8 @@ exports.ProxyTracer = ProxyTracer;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ProxyTracerProvider = void 0;
-const ProxyTracer_1 = __nccwpck_require__(43503);
-const NoopTracerProvider_1 = __nccwpck_require__(23259);
+const ProxyTracer_1 = __nccwpck_require__(3503);
+const NoopTracerProvider_1 = __nccwpck_require__(3259);
const NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider();
/**
* Tracer provider which provides {@link ProxyTracer}s.
@@ -52181,7 +50474,7 @@ exports.ProxyTracerProvider = ProxyTracerProvider;
/***/ }),
-/***/ 33209:
+/***/ 3209:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -52230,7 +50523,7 @@ var SamplingDecision;
/***/ }),
-/***/ 23326:
+/***/ 3326:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52252,9 +50545,9 @@ var SamplingDecision;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = void 0;
-const context_1 = __nccwpck_require__(78242);
-const NonRecordingSpan_1 = __nccwpck_require__(81462);
-const context_2 = __nccwpck_require__(57171);
+const context_1 = __nccwpck_require__(8242);
+const NonRecordingSpan_1 = __nccwpck_require__(1462);
+const context_2 = __nccwpck_require__(7171);
/**
* span key
*/
@@ -52319,7 +50612,7 @@ exports.getSpanContext = getSpanContext;
/***/ }),
-/***/ 62110:
+/***/ 2110:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52341,7 +50634,7 @@ exports.getSpanContext = getSpanContext;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TraceStateImpl = void 0;
-const tracestate_validators_1 = __nccwpck_require__(54864);
+const tracestate_validators_1 = __nccwpck_require__(4864);
const MAX_TRACE_STATE_ITEMS = 32;
const MAX_TRACE_STATE_LEN = 512;
const LIST_MEMBERS_SEPARATOR = ',';
@@ -52429,7 +50722,7 @@ exports.TraceStateImpl = TraceStateImpl;
/***/ }),
-/***/ 54864:
+/***/ 4864:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -52482,7 +50775,7 @@ exports.validateValue = validateValue;
/***/ }),
-/***/ 32615:
+/***/ 2615:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52504,7 +50797,7 @@ exports.validateValue = validateValue;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createTraceState = void 0;
-const tracestate_impl_1 = __nccwpck_require__(62110);
+const tracestate_impl_1 = __nccwpck_require__(2110);
function createTraceState(rawTraceState) {
return new tracestate_impl_1.TraceStateImpl(rawTraceState);
}
@@ -52513,7 +50806,7 @@ exports.createTraceState = createTraceState;
/***/ }),
-/***/ 91760:
+/***/ 1760:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52535,7 +50828,7 @@ exports.createTraceState = createTraceState;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
-const trace_flags_1 = __nccwpck_require__(26905);
+const trace_flags_1 = __nccwpck_require__(6905);
exports.INVALID_SPANID = '0000000000000000';
exports.INVALID_TRACEID = '00000000000000000000000000000000';
exports.INVALID_SPAN_CONTEXT = {
@@ -52547,7 +50840,7 @@ exports.INVALID_SPAN_CONTEXT = {
/***/ }),
-/***/ 31424:
+/***/ 1424:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -52600,7 +50893,7 @@ var SpanKind;
/***/ }),
-/***/ 49745:
+/***/ 9745:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -52622,8 +50915,8 @@ exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = e
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-const invalid_span_constants_1 = __nccwpck_require__(91760);
-const NonRecordingSpan_1 = __nccwpck_require__(81462);
+const invalid_span_constants_1 = __nccwpck_require__(1760);
+const NonRecordingSpan_1 = __nccwpck_require__(1462);
const VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
const VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
function isValidTraceId(traceId) {
@@ -52656,7 +50949,7 @@ exports.wrapSpanContext = wrapSpanContext;
/***/ }),
-/***/ 48845:
+/***/ 8845:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -52686,7 +50979,7 @@ var SpanStatusCode;
/***/ }),
-/***/ 26905:
+/***/ 6905:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -52719,7 +51012,7 @@ var TraceFlags;
/***/ }),
-/***/ 98996:
+/***/ 8996:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -52747,4947 +51040,13 @@ exports.VERSION = '1.8.0';
/***/ }),
-/***/ 29912:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.ClientStreamingCall = void 0;
-/**
- * A client streaming RPC call. This means that the clients sends 0, 1, or
- * more messages to the server, and the server replies with exactly one
- * message.
- */
-class ClientStreamingCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.requests = request;
- this.headers = headers;
- this.response = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * Instead of awaiting the response status and trailers, you can
- * just as well await this call itself to receive the server outcome.
- * Note that it may still be valid to send more request messages.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- headers,
- response,
- status,
- trailers
- };
- });
- }
-}
-exports.ClientStreamingCall = ClientStreamingCall;
-
-
-/***/ }),
-
-/***/ 85702:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.Deferred = exports.DeferredState = void 0;
-var DeferredState;
-(function (DeferredState) {
- DeferredState[DeferredState["PENDING"] = 0] = "PENDING";
- DeferredState[DeferredState["REJECTED"] = 1] = "REJECTED";
- DeferredState[DeferredState["RESOLVED"] = 2] = "RESOLVED";
-})(DeferredState = exports.DeferredState || (exports.DeferredState = {}));
-/**
- * A deferred promise. This is a "controller" for a promise, which lets you
- * pass a promise around and reject or resolve it from the outside.
- *
- * Warning: This class is to be used with care. Using it can make code very
- * difficult to read. It is intended for use in library code that exposes
- * promises, not for regular business logic.
- */
-class Deferred {
- /**
- * @param preventUnhandledRejectionWarning - prevents the warning
- * "Unhandled Promise rejection" by adding a noop rejection handler.
- * Working with calls returned from the runtime-rpc package in an
- * async function usually means awaiting one call property after
- * the other. This means that the "status" is not being awaited when
- * an earlier await for the "headers" is rejected. This causes the
- * "unhandled promise reject" warning. A more correct behaviour for
- * calls might be to become aware whether at least one of the
- * promises is handled and swallow the rejection warning for the
- * others.
- */
- constructor(preventUnhandledRejectionWarning = true) {
- this._state = DeferredState.PENDING;
- this._promise = new Promise((resolve, reject) => {
- this._resolve = resolve;
- this._reject = reject;
- });
- if (preventUnhandledRejectionWarning) {
- this._promise.catch(_ => { });
- }
- }
- /**
- * Get the current state of the promise.
- */
- get state() {
- return this._state;
- }
- /**
- * Get the deferred promise.
- */
- get promise() {
- return this._promise;
- }
- /**
- * Resolve the promise. Throws if the promise is already resolved or rejected.
- */
- resolve(value) {
- if (this.state !== DeferredState.PENDING)
- throw new Error(`cannot resolve ${DeferredState[this.state].toLowerCase()}`);
- this._resolve(value);
- this._state = DeferredState.RESOLVED;
- }
- /**
- * Reject the promise. Throws if the promise is already resolved or rejected.
- */
- reject(reason) {
- if (this.state !== DeferredState.PENDING)
- throw new Error(`cannot reject ${DeferredState[this.state].toLowerCase()}`);
- this._reject(reason);
- this._state = DeferredState.REJECTED;
- }
- /**
- * Resolve the promise. Ignore if not pending.
- */
- resolvePending(val) {
- if (this._state === DeferredState.PENDING)
- this.resolve(val);
- }
- /**
- * Reject the promise. Ignore if not pending.
- */
- rejectPending(reason) {
- if (this._state === DeferredState.PENDING)
- this.reject(reason);
- }
-}
-exports.Deferred = Deferred;
-
-
-/***/ }),
-
-/***/ 17042:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.DuplexStreamingCall = void 0;
-/**
- * A duplex streaming RPC call. This means that the clients sends an
- * arbitrary amount of messages to the server, while at the same time,
- * the server sends an arbitrary amount of messages to the client.
- */
-class DuplexStreamingCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.requests = request;
- this.headers = headers;
- this.responses = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * Instead of awaiting the response status and trailers, you can
- * just as well await this call itself to receive the server outcome.
- * Note that it may still be valid to send more request messages.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- headers,
- status,
- trailers,
- };
- });
- }
-}
-exports.DuplexStreamingCall = DuplexStreamingCall;
-
-
-/***/ }),
-
-/***/ 60012:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-// Public API of the rpc runtime.
-// Note: we do not use `export * from ...` to help tree shakers,
-// webpack verbose output hints that this should be useful
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-var service_type_1 = __nccwpck_require__(14107);
-Object.defineProperty(exports, "ServiceType", ({ enumerable: true, get: function () { return service_type_1.ServiceType; } }));
-var reflection_info_1 = __nccwpck_require__(44331);
-Object.defineProperty(exports, "readMethodOptions", ({ enumerable: true, get: function () { return reflection_info_1.readMethodOptions; } }));
-Object.defineProperty(exports, "readMethodOption", ({ enumerable: true, get: function () { return reflection_info_1.readMethodOption; } }));
-Object.defineProperty(exports, "readServiceOption", ({ enumerable: true, get: function () { return reflection_info_1.readServiceOption; } }));
-var rpc_error_1 = __nccwpck_require__(63159);
-Object.defineProperty(exports, "RpcError", ({ enumerable: true, get: function () { return rpc_error_1.RpcError; } }));
-var rpc_options_1 = __nccwpck_require__(67386);
-Object.defineProperty(exports, "mergeRpcOptions", ({ enumerable: true, get: function () { return rpc_options_1.mergeRpcOptions; } }));
-var rpc_output_stream_1 = __nccwpck_require__(76637);
-Object.defineProperty(exports, "RpcOutputStreamController", ({ enumerable: true, get: function () { return rpc_output_stream_1.RpcOutputStreamController; } }));
-var test_transport_1 = __nccwpck_require__(87008);
-Object.defineProperty(exports, "TestTransport", ({ enumerable: true, get: function () { return test_transport_1.TestTransport; } }));
-var deferred_1 = __nccwpck_require__(85702);
-Object.defineProperty(exports, "Deferred", ({ enumerable: true, get: function () { return deferred_1.Deferred; } }));
-Object.defineProperty(exports, "DeferredState", ({ enumerable: true, get: function () { return deferred_1.DeferredState; } }));
-var duplex_streaming_call_1 = __nccwpck_require__(17042);
-Object.defineProperty(exports, "DuplexStreamingCall", ({ enumerable: true, get: function () { return duplex_streaming_call_1.DuplexStreamingCall; } }));
-var client_streaming_call_1 = __nccwpck_require__(29912);
-Object.defineProperty(exports, "ClientStreamingCall", ({ enumerable: true, get: function () { return client_streaming_call_1.ClientStreamingCall; } }));
-var server_streaming_call_1 = __nccwpck_require__(30066);
-Object.defineProperty(exports, "ServerStreamingCall", ({ enumerable: true, get: function () { return server_streaming_call_1.ServerStreamingCall; } }));
-var unary_call_1 = __nccwpck_require__(84175);
-Object.defineProperty(exports, "UnaryCall", ({ enumerable: true, get: function () { return unary_call_1.UnaryCall; } }));
-var rpc_interceptor_1 = __nccwpck_require__(51680);
-Object.defineProperty(exports, "stackIntercept", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackIntercept; } }));
-Object.defineProperty(exports, "stackDuplexStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackDuplexStreamingInterceptors; } }));
-Object.defineProperty(exports, "stackClientStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackClientStreamingInterceptors; } }));
-Object.defineProperty(exports, "stackServerStreamingInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackServerStreamingInterceptors; } }));
-Object.defineProperty(exports, "stackUnaryInterceptors", ({ enumerable: true, get: function () { return rpc_interceptor_1.stackUnaryInterceptors; } }));
-var server_call_context_1 = __nccwpck_require__(25320);
-Object.defineProperty(exports, "ServerCallContextController", ({ enumerable: true, get: function () { return server_call_context_1.ServerCallContextController; } }));
-
-
-/***/ }),
-
-/***/ 44331:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * Turns PartialMethodInfo into MethodInfo.
- */
-function normalizeMethodInfo(method, service) {
- var _a, _b, _c;
- let m = method;
- m.service = service;
- m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name);
- // noinspection PointlessBooleanExpressionJS
- m.serverStreaming = !!m.serverStreaming;
- // noinspection PointlessBooleanExpressionJS
- m.clientStreaming = !!m.clientStreaming;
- m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};
- m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;
- return m;
-}
-exports.normalizeMethodInfo = normalizeMethodInfo;
-/**
- * Read custom method options from a generated service client.
- *
- * @deprecated use readMethodOption()
- */
-function readMethodOptions(service, methodName, extensionName, extensionType) {
- var _a;
- const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
- return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
-}
-exports.readMethodOptions = readMethodOptions;
-function readMethodOption(service, methodName, extensionName, extensionType) {
- var _a;
- const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
- if (!options) {
- return undefined;
- }
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readMethodOption = readMethodOption;
-function readServiceOption(service, extensionName, extensionType) {
- const options = service.options;
- if (!options) {
- return undefined;
- }
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readServiceOption = readServiceOption;
-
-
-/***/ }),
-
-/***/ 63159:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.RpcError = void 0;
-/**
- * An error that occurred while calling a RPC method.
- */
-class RpcError extends Error {
- constructor(message, code = 'UNKNOWN', meta) {
- super(message);
- this.name = 'RpcError';
- // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example
- Object.setPrototypeOf(this, new.target.prototype);
- this.code = code;
- this.meta = meta !== null && meta !== void 0 ? meta : {};
- }
- toString() {
- const l = [this.name + ': ' + this.message];
- if (this.code) {
- l.push('');
- l.push('Code: ' + this.code);
- }
- if (this.serviceName && this.methodName) {
- l.push('Method: ' + this.serviceName + '/' + this.methodName);
- }
- let m = Object.entries(this.meta);
- if (m.length) {
- l.push('');
- l.push('Meta:');
- for (let [k, v] of m) {
- l.push(` ${k}: ${v}`);
- }
- }
- return l.join('\n');
- }
-}
-exports.RpcError = RpcError;
-
-
-/***/ }),
-
-/***/ 51680:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * Creates a "stack" of of all interceptors specified in the given `RpcOptions`.
- * Used by generated client implementations.
- * @internal
- */
-function stackIntercept(kind, transport, method, options, input) {
- var _a, _b, _c, _d;
- if (kind == "unary") {
- let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);
- for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {
- const next = tail;
- tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);
- }
- return tail(method, input, options);
- }
- if (kind == "serverStreaming") {
- let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);
- for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {
- const next = tail;
- tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);
- }
- return tail(method, input, options);
- }
- if (kind == "clientStreaming") {
- let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);
- for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {
- const next = tail;
- tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);
- }
- return tail(method, options);
- }
- if (kind == "duplex") {
- let tail = (mtd, opt) => transport.duplex(mtd, opt);
- for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {
- const next = tail;
- tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);
- }
- return tail(method, options);
- }
- runtime_1.assertNever(kind);
-}
-exports.stackIntercept = stackIntercept;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackUnaryInterceptors(transport, method, input, options) {
- return stackIntercept("unary", transport, method, options, input);
-}
-exports.stackUnaryInterceptors = stackUnaryInterceptors;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackServerStreamingInterceptors(transport, method, input, options) {
- return stackIntercept("serverStreaming", transport, method, options, input);
-}
-exports.stackServerStreamingInterceptors = stackServerStreamingInterceptors;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackClientStreamingInterceptors(transport, method, options) {
- return stackIntercept("clientStreaming", transport, method, options);
-}
-exports.stackClientStreamingInterceptors = stackClientStreamingInterceptors;
-/**
- * @deprecated replaced by `stackIntercept()`, still here to support older generated code
- */
-function stackDuplexStreamingInterceptors(transport, method, options) {
- return stackIntercept("duplex", transport, method, options);
-}
-exports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;
-
-
-/***/ }),
-
-/***/ 67386:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.mergeRpcOptions = void 0;
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * Merges custom RPC options with defaults. Returns a new instance and keeps
- * the "defaults" and the "options" unmodified.
- *
- * Merges `RpcMetadata` "meta", overwriting values from "defaults" with
- * values from "options". Does not append values to existing entries.
- *
- * Merges "jsonOptions", including "jsonOptions.typeRegistry", by creating
- * a new array that contains types from "options.jsonOptions.typeRegistry"
- * first, then types from "defaults.jsonOptions.typeRegistry".
- *
- * Merges "binaryOptions".
- *
- * Merges "interceptors" by creating a new array that contains interceptors
- * from "defaults" first, then interceptors from "options".
- *
- * Works with objects that extend `RpcOptions`, but only if the added
- * properties are of type Date, primitive like string, boolean, or Array
- * of primitives. If you have other property types, you have to merge them
- * yourself.
- */
-function mergeRpcOptions(defaults, options) {
- if (!options)
- return defaults;
- let o = {};
- copy(defaults, o);
- copy(options, o);
- for (let key of Object.keys(options)) {
- let val = options[key];
- switch (key) {
- case "jsonOptions":
- o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions);
- break;
- case "binaryOptions":
- o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions);
- break;
- case "meta":
- o.meta = {};
- copy(defaults.meta, o.meta);
- copy(options.meta, o.meta);
- break;
- case "interceptors":
- o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat();
- break;
- }
- }
- return o;
-}
-exports.mergeRpcOptions = mergeRpcOptions;
-function copy(a, into) {
- if (!a)
- return;
- let c = into;
- for (let [k, v] of Object.entries(a)) {
- if (v instanceof Date)
- c[k] = new Date(v.getTime());
- else if (Array.isArray(v))
- c[k] = v.concat();
- else
- c[k] = v;
- }
-}
-
-
-/***/ }),
-
-/***/ 76637:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.RpcOutputStreamController = void 0;
-const deferred_1 = __nccwpck_require__(85702);
-const runtime_1 = __nccwpck_require__(4061);
-/**
- * A `RpcOutputStream` that you control.
- */
-class RpcOutputStreamController {
- constructor() {
- this._lis = {
- nxt: [],
- msg: [],
- err: [],
- cmp: [],
- };
- this._closed = false;
- }
- // --- RpcOutputStream callback API
- onNext(callback) {
- return this.addLis(callback, this._lis.nxt);
- }
- onMessage(callback) {
- return this.addLis(callback, this._lis.msg);
- }
- onError(callback) {
- return this.addLis(callback, this._lis.err);
- }
- onComplete(callback) {
- return this.addLis(callback, this._lis.cmp);
- }
- addLis(callback, list) {
- list.push(callback);
- return () => {
- let i = list.indexOf(callback);
- if (i >= 0)
- list.splice(i, 1);
- };
- }
- // remove all listeners
- clearLis() {
- for (let l of Object.values(this._lis))
- l.splice(0, l.length);
- }
- // --- Controller API
- /**
- * Is this stream already closed by a completion or error?
- */
- get closed() {
- return this._closed !== false;
- }
- /**
- * Emit message, close with error, or close successfully, but only one
- * at a time.
- * Can be used to wrap a stream by using the other stream's `onNext`.
- */
- notifyNext(message, error, complete) {
- runtime_1.assert((message ? 1 : 0) + (error ? 1 : 0) + (complete ? 1 : 0) <= 1, 'only one emission at a time');
- if (message)
- this.notifyMessage(message);
- if (error)
- this.notifyError(error);
- if (complete)
- this.notifyComplete();
- }
- /**
- * Emits a new message. Throws if stream is closed.
- *
- * Triggers onNext and onMessage callbacks.
- */
- notifyMessage(message) {
- runtime_1.assert(!this.closed, 'stream is closed');
- this.pushIt({ value: message, done: false });
- this._lis.msg.forEach(l => l(message));
- this._lis.nxt.forEach(l => l(message, undefined, false));
- }
- /**
- * Closes the stream with an error. Throws if stream is closed.
- *
- * Triggers onNext and onError callbacks.
- */
- notifyError(error) {
- runtime_1.assert(!this.closed, 'stream is closed');
- this._closed = error;
- this.pushIt(error);
- this._lis.err.forEach(l => l(error));
- this._lis.nxt.forEach(l => l(undefined, error, false));
- this.clearLis();
- }
- /**
- * Closes the stream successfully. Throws if stream is closed.
- *
- * Triggers onNext and onComplete callbacks.
- */
- notifyComplete() {
- runtime_1.assert(!this.closed, 'stream is closed');
- this._closed = true;
- this.pushIt({ value: null, done: true });
- this._lis.cmp.forEach(l => l());
- this._lis.nxt.forEach(l => l(undefined, undefined, true));
- this.clearLis();
- }
- /**
- * Creates an async iterator (that can be used with `for await {...}`)
- * to consume the stream.
- *
- * Some things to note:
- * - If an error occurs, the `for await` will throw it.
- * - If an error occurred before the `for await` was started, `for await`
- * will re-throw it.
- * - If the stream is already complete, the `for await` will be empty.
- * - If your `for await` consumes slower than the stream produces,
- * for example because you are relaying messages in a slow operation,
- * messages are queued.
- */
- [Symbol.asyncIterator]() {
- // init the iterator state, enabling pushIt()
- if (!this._itState) {
- this._itState = { q: [] };
- }
- // if we are closed, we are definitely not receiving any more messages.
- // but we can't let the iterator get stuck. we want to either:
- // a) finish the new iterator immediately, because we are completed
- // b) reject the new iterator, because we errored
- if (this._closed === true)
- this.pushIt({ value: null, done: true });
- else if (this._closed !== false)
- this.pushIt(this._closed);
- // the async iterator
- return {
- next: () => {
- let state = this._itState;
- runtime_1.assert(state, "bad state"); // if we don't have a state here, code is broken
- // there should be no pending result.
- // did the consumer call next() before we resolved our previous result promise?
- runtime_1.assert(!state.p, "iterator contract broken");
- // did we produce faster than the iterator consumed?
- // return the oldest result from the queue.
- let first = state.q.shift();
- if (first)
- return ("value" in first) ? Promise.resolve(first) : Promise.reject(first);
- // we have no result ATM, but we promise one.
- // as soon as we have a result, we must resolve promise.
- state.p = new deferred_1.Deferred();
- return state.p.promise;
- },
- };
- }
- // "push" a new iterator result.
- // this either resolves a pending promise, or enqueues the result.
- pushIt(result) {
- let state = this._itState;
- if (!state)
- return;
- // is the consumer waiting for us?
- if (state.p) {
- // yes, consumer is waiting for this promise.
- const p = state.p;
- runtime_1.assert(p.state == deferred_1.DeferredState.PENDING, "iterator contract broken");
- // resolve the promise
- ("value" in result) ? p.resolve(result) : p.reject(result);
- // must cleanup, otherwise iterator.next() would pick it up again.
- delete state.p;
- }
- else {
- // we are producing faster than the iterator consumes.
- // push result onto queue.
- state.q.push(result);
- }
- }
-}
-exports.RpcOutputStreamController = RpcOutputStreamController;
-
-
-/***/ }),
-
-/***/ 25320:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ServerCallContextController = void 0;
-class ServerCallContextController {
- constructor(method, headers, deadline, sendResponseHeadersFn, defaultStatus = { code: 'OK', detail: '' }) {
- this._cancelled = false;
- this._listeners = [];
- this.method = method;
- this.headers = headers;
- this.deadline = deadline;
- this.trailers = {};
- this._sendRH = sendResponseHeadersFn;
- this.status = defaultStatus;
- }
- /**
- * Set the call cancelled.
- *
- * Invokes all callbacks registered with onCancel() and
- * sets `cancelled = true`.
- */
- notifyCancelled() {
- if (!this._cancelled) {
- this._cancelled = true;
- for (let l of this._listeners) {
- l();
- }
- }
- }
- /**
- * Send response headers.
- */
- sendResponseHeaders(data) {
- this._sendRH(data);
- }
- /**
- * Is the call cancelled?
- *
- * When the client closes the connection before the server
- * is done, the call is cancelled.
- *
- * If you want to cancel a request on the server, throw a
- * RpcError with the CANCELLED status code.
- */
- get cancelled() {
- return this._cancelled;
- }
- /**
- * Add a callback for cancellation.
- */
- onCancel(callback) {
- const l = this._listeners;
- l.push(callback);
- return () => {
- let i = l.indexOf(callback);
- if (i >= 0)
- l.splice(i, 1);
- };
- }
-}
-exports.ServerCallContextController = ServerCallContextController;
-
-
-/***/ }),
-
-/***/ 30066:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.ServerStreamingCall = void 0;
-/**
- * A server streaming RPC call. The client provides exactly one input message
- * but the server may respond with 0, 1, or more messages.
- */
-class ServerStreamingCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.request = request;
- this.headers = headers;
- this.responses = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * Instead of awaiting the response status and trailers, you can
- * just as well await this call itself to receive the server outcome.
- * You should first setup some listeners to the `request` to
- * see the actual messages the server replied with.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- request: this.request,
- headers,
- status,
- trailers,
- };
- });
- }
-}
-exports.ServerStreamingCall = ServerStreamingCall;
-
-
-/***/ }),
-
-/***/ 14107:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ServiceType = void 0;
-const reflection_info_1 = __nccwpck_require__(44331);
-class ServiceType {
- constructor(typeName, methods, options) {
- this.typeName = typeName;
- this.methods = methods.map(i => reflection_info_1.normalizeMethodInfo(i, this));
- this.options = options !== null && options !== void 0 ? options : {};
- }
-}
-exports.ServiceType = ServiceType;
-
-
-/***/ }),
-
-/***/ 87008:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.TestTransport = void 0;
-const rpc_error_1 = __nccwpck_require__(63159);
-const runtime_1 = __nccwpck_require__(4061);
-const rpc_output_stream_1 = __nccwpck_require__(76637);
-const rpc_options_1 = __nccwpck_require__(67386);
-const unary_call_1 = __nccwpck_require__(84175);
-const server_streaming_call_1 = __nccwpck_require__(30066);
-const client_streaming_call_1 = __nccwpck_require__(29912);
-const duplex_streaming_call_1 = __nccwpck_require__(17042);
-/**
- * Transport for testing.
- */
-class TestTransport {
- /**
- * Initialize with mock data. Omitted fields have default value.
- */
- constructor(data) {
- /**
- * Suppress warning / error about uncaught rejections of
- * "status" and "trailers".
- */
- this.suppressUncaughtRejections = true;
- this.headerDelay = 10;
- this.responseDelay = 50;
- this.betweenResponseDelay = 10;
- this.afterResponseDelay = 10;
- this.data = data !== null && data !== void 0 ? data : {};
- }
- /**
- * Sent message(s) during the last operation.
- */
- get sentMessages() {
- if (this.lastInput instanceof TestInputStream) {
- return this.lastInput.sent;
- }
- else if (typeof this.lastInput == "object") {
- return [this.lastInput.single];
- }
- return [];
- }
- /**
- * Sending message(s) completed?
- */
- get sendComplete() {
- if (this.lastInput instanceof TestInputStream) {
- return this.lastInput.completed;
- }
- else if (typeof this.lastInput == "object") {
- return true;
- }
- return false;
- }
- // Creates a promise for response headers from the mock data.
- promiseHeaders() {
- var _a;
- const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : TestTransport.defaultHeaders;
- return headers instanceof rpc_error_1.RpcError
- ? Promise.reject(headers)
- : Promise.resolve(headers);
- }
- // Creates a promise for a single, valid, message from the mock data.
- promiseSingleResponse(method) {
- if (this.data.response instanceof rpc_error_1.RpcError) {
- return Promise.reject(this.data.response);
- }
- let r;
- if (Array.isArray(this.data.response)) {
- runtime_1.assert(this.data.response.length > 0);
- r = this.data.response[0];
- }
- else if (this.data.response !== undefined) {
- r = this.data.response;
- }
- else {
- r = method.O.create();
- }
- runtime_1.assert(method.O.is(r));
- return Promise.resolve(r);
- }
- /**
- * Pushes response messages from the mock data to the output stream.
- * If an error response, status or trailers are mocked, the stream is
- * closed with the respective error.
- * Otherwise, stream is completed successfully.
- *
- * The returned promise resolves when the stream is closed. It should
- * not reject. If it does, code is broken.
- */
- streamResponses(method, stream, abort) {
- return __awaiter(this, void 0, void 0, function* () {
- // normalize "data.response" into an array of valid output messages
- const messages = [];
- if (this.data.response === undefined) {
- messages.push(method.O.create());
- }
- else if (Array.isArray(this.data.response)) {
- for (let msg of this.data.response) {
- runtime_1.assert(method.O.is(msg));
- messages.push(msg);
- }
- }
- else if (!(this.data.response instanceof rpc_error_1.RpcError)) {
- runtime_1.assert(method.O.is(this.data.response));
- messages.push(this.data.response);
- }
- // start the stream with an initial delay.
- // if the request is cancelled, notify() error and exit.
- try {
- yield delay(this.responseDelay, abort)(undefined);
- }
- catch (error) {
- stream.notifyError(error);
- return;
- }
- // if error response was mocked, notify() error (stream is now closed with error) and exit.
- if (this.data.response instanceof rpc_error_1.RpcError) {
- stream.notifyError(this.data.response);
- return;
- }
- // regular response messages were mocked. notify() them.
- for (let msg of messages) {
- stream.notifyMessage(msg);
- // add a short delay between responses
- // if the request is cancelled, notify() error and exit.
- try {
- yield delay(this.betweenResponseDelay, abort)(undefined);
- }
- catch (error) {
- stream.notifyError(error);
- return;
- }
- }
- // error status was mocked, notify() error (stream is now closed with error) and exit.
- if (this.data.status instanceof rpc_error_1.RpcError) {
- stream.notifyError(this.data.status);
- return;
- }
- // error trailers were mocked, notify() error (stream is now closed with error) and exit.
- if (this.data.trailers instanceof rpc_error_1.RpcError) {
- stream.notifyError(this.data.trailers);
- return;
- }
- // stream completed successfully
- stream.notifyComplete();
- });
- }
- // Creates a promise for response status from the mock data.
- promiseStatus() {
- var _a;
- const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : TestTransport.defaultStatus;
- return status instanceof rpc_error_1.RpcError
- ? Promise.reject(status)
- : Promise.resolve(status);
- }
- // Creates a promise for response trailers from the mock data.
- promiseTrailers() {
- var _a;
- const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : TestTransport.defaultTrailers;
- return trailers instanceof rpc_error_1.RpcError
- ? Promise.reject(trailers)
- : Promise.resolve(trailers);
- }
- maybeSuppressUncaught(...promise) {
- if (this.suppressUncaughtRejections) {
- for (let p of promise) {
- p.catch(() => {
- });
- }
- }
- }
- mergeOptions(options) {
- return rpc_options_1.mergeRpcOptions({}, options);
- }
- unary(method, input, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
- .catch(_ => {
- })
- .then(delay(this.responseDelay, options.abort))
- .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseStatus()), trailersPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = { single: input };
- return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise);
- }
- serverStreaming(method, input, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
- .then(delay(this.responseDelay, options.abort))
- .catch(() => {
- })
- .then(() => this.streamResponses(method, outputStream, options.abort))
- .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
- .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
- .then(() => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = { single: input };
- return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise);
- }
- clientStreaming(method, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
- .catch(_ => {
- })
- .then(delay(this.responseDelay, options.abort))
- .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseStatus()), trailersPromise = responsePromise
- .catch(_ => {
- })
- .then(delay(this.afterResponseDelay, options.abort))
- .then(_ => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = new TestInputStream(this.data, options.abort);
- return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise);
- }
- duplex(method, options) {
- var _a;
- const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
- .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
- .then(delay(this.responseDelay, options.abort))
- .catch(() => {
- })
- .then(() => this.streamResponses(method, outputStream, options.abort))
- .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
- .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
- .then(() => this.promiseTrailers());
- this.maybeSuppressUncaught(statusPromise, trailersPromise);
- this.lastInput = new TestInputStream(this.data, options.abort);
- return new duplex_streaming_call_1.DuplexStreamingCall(method, requestHeaders, this.lastInput, headersPromise, outputStream, statusPromise, trailersPromise);
- }
-}
-exports.TestTransport = TestTransport;
-TestTransport.defaultHeaders = {
- responseHeader: "test"
-};
-TestTransport.defaultStatus = {
- code: "OK", detail: "all good"
-};
-TestTransport.defaultTrailers = {
- responseTrailer: "test"
-};
-function delay(ms, abort) {
- return (v) => new Promise((resolve, reject) => {
- if (abort === null || abort === void 0 ? void 0 : abort.aborted) {
- reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
- }
- else {
- const id = setTimeout(() => resolve(v), ms);
- if (abort) {
- abort.addEventListener("abort", ev => {
- clearTimeout(id);
- reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
- });
- }
- }
- });
-}
-class TestInputStream {
- constructor(data, abort) {
- this._completed = false;
- this._sent = [];
- this.data = data;
- this.abort = abort;
- }
- get sent() {
- return this._sent;
- }
- get completed() {
- return this._completed;
- }
- send(message) {
- if (this.data.inputMessage instanceof rpc_error_1.RpcError) {
- return Promise.reject(this.data.inputMessage);
- }
- const delayMs = this.data.inputMessage === undefined
- ? 10
- : this.data.inputMessage;
- return Promise.resolve(undefined)
- .then(() => {
- this._sent.push(message);
- })
- .then(delay(delayMs, this.abort));
- }
- complete() {
- if (this.data.inputComplete instanceof rpc_error_1.RpcError) {
- return Promise.reject(this.data.inputComplete);
- }
- const delayMs = this.data.inputComplete === undefined
- ? 10
- : this.data.inputComplete;
- return Promise.resolve(undefined)
- .then(() => {
- this._completed = true;
- })
- .then(delay(delayMs, this.abort));
- }
-}
-
-
-/***/ }),
-
-/***/ 84175:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.UnaryCall = void 0;
-/**
- * A unary RPC call. Unary means there is exactly one input message and
- * exactly one output message unless an error occurred.
- */
-class UnaryCall {
- constructor(method, requestHeaders, request, headers, response, status, trailers) {
- this.method = method;
- this.requestHeaders = requestHeaders;
- this.request = request;
- this.headers = headers;
- this.response = response;
- this.status = status;
- this.trailers = trailers;
- }
- /**
- * If you are only interested in the final outcome of this call,
- * you can await it to receive a `FinishedUnaryCall`.
- */
- then(onfulfilled, onrejected) {
- return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
- }
- promiseFinished() {
- return __awaiter(this, void 0, void 0, function* () {
- let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
- return {
- method: this.method,
- requestHeaders: this.requestHeaders,
- request: this.request,
- headers,
- response,
- status,
- trailers
- };
- });
- }
-}
-exports.UnaryCall = UnaryCall;
-
-
-/***/ }),
-
-/***/ 54253:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;
-/**
- * assert that condition is true or throw error (with message)
- */
-function assert(condition, msg) {
- if (!condition) {
- throw new Error(msg);
- }
-}
-exports.assert = assert;
-/**
- * assert that value cannot exist = type `never`. throw runtime error if it does.
- */
-function assertNever(value, msg) {
- throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);
-}
-exports.assertNever = assertNever;
-const FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;
-function assertInt32(arg) {
- if (typeof arg !== "number")
- throw new Error('invalid int 32: ' + typeof arg);
- if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN)
- throw new Error('invalid int 32: ' + arg);
-}
-exports.assertInt32 = assertInt32;
-function assertUInt32(arg) {
- if (typeof arg !== "number")
- throw new Error('invalid uint 32: ' + typeof arg);
- if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0)
- throw new Error('invalid uint 32: ' + arg);
-}
-exports.assertUInt32 = assertUInt32;
-function assertFloat32(arg) {
- if (typeof arg !== "number")
- throw new Error('invalid float 32: ' + typeof arg);
- if (!Number.isFinite(arg))
- return;
- if (arg > FLOAT32_MAX || arg < FLOAT32_MIN)
- throw new Error('invalid float 32: ' + arg);
-}
-exports.assertFloat32 = assertFloat32;
-
-
-/***/ }),
-
-/***/ 20196:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.base64encode = exports.base64decode = void 0;
-// lookup table from base64 character to byte
-let encTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
-// lookup table from base64 character *code* to byte because lookup by number is fast
-let decTable = [];
-for (let i = 0; i < encTable.length; i++)
- decTable[encTable[i].charCodeAt(0)] = i;
-// support base64url variants
-decTable["-".charCodeAt(0)] = encTable.indexOf("+");
-decTable["_".charCodeAt(0)] = encTable.indexOf("/");
-/**
- * Decodes a base64 string to a byte array.
- *
- * - ignores white-space, including line breaks and tabs
- * - allows inner padding (can decode concatenated base64 strings)
- * - does not require padding
- * - understands base64url encoding:
- * "-" instead of "+",
- * "_" instead of "/",
- * no padding
- */
-function base64decode(base64Str) {
- // estimate byte size, not accounting for inner padding and whitespace
- let es = base64Str.length * 3 / 4;
- // if (es % 3 !== 0)
- // throw new Error('invalid base64 string');
- if (base64Str[base64Str.length - 2] == '=')
- es -= 2;
- else if (base64Str[base64Str.length - 1] == '=')
- es -= 1;
- let bytes = new Uint8Array(es), bytePos = 0, // position in byte array
- groupPos = 0, // position in base64 group
- b, // current byte
- p = 0 // previous byte
- ;
- for (let i = 0; i < base64Str.length; i++) {
- b = decTable[base64Str.charCodeAt(i)];
- if (b === undefined) {
- // noinspection FallThroughInSwitchStatementJS
- switch (base64Str[i]) {
- case '=':
- groupPos = 0; // reset state when padding found
- case '\n':
- case '\r':
- case '\t':
- case ' ':
- continue; // skip white-space, and padding
- default:
- throw Error(`invalid base64 string.`);
- }
- }
- switch (groupPos) {
- case 0:
- p = b;
- groupPos = 1;
- break;
- case 1:
- bytes[bytePos++] = p << 2 | (b & 48) >> 4;
- p = b;
- groupPos = 2;
- break;
- case 2:
- bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;
- p = b;
- groupPos = 3;
- break;
- case 3:
- bytes[bytePos++] = (p & 3) << 6 | b;
- groupPos = 0;
- break;
- }
- }
- if (groupPos == 1)
- throw Error(`invalid base64 string.`);
- return bytes.subarray(0, bytePos);
-}
-exports.base64decode = base64decode;
-/**
- * Encodes a byte array to a base64 string.
- * Adds padding at the end.
- * Does not insert newlines.
- */
-function base64encode(bytes) {
- let base64 = '', groupPos = 0, // position in base64 group
- b, // current byte
- p = 0; // carry over from previous byte
- for (let i = 0; i < bytes.length; i++) {
- b = bytes[i];
- switch (groupPos) {
- case 0:
- base64 += encTable[b >> 2];
- p = (b & 3) << 4;
- groupPos = 1;
- break;
- case 1:
- base64 += encTable[p | b >> 4];
- p = (b & 15) << 2;
- groupPos = 2;
- break;
- case 2:
- base64 += encTable[p | b >> 6];
- base64 += encTable[b & 63];
- groupPos = 0;
- break;
- }
- }
- // padding required?
- if (groupPos) {
- base64 += encTable[p];
- base64 += '=';
- if (groupPos == 1)
- base64 += '=';
- }
- return base64;
-}
-exports.base64encode = base64encode;
-
-
-/***/ }),
-
-/***/ 84921:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;
-/**
- * This handler implements the default behaviour for unknown fields.
- * When reading data, unknown fields are stored on the message, in a
- * symbol property.
- * When writing data, the symbol property is queried and unknown fields
- * are serialized into the output again.
- */
-var UnknownFieldHandler;
-(function (UnknownFieldHandler) {
- /**
- * The symbol used to store unknown fields for a message.
- * The property must conform to `UnknownFieldContainer`.
- */
- UnknownFieldHandler.symbol = Symbol.for("protobuf-ts/unknown");
- /**
- * Store an unknown field during binary read directly on the message.
- * This method is compatible with `BinaryReadOptions.readUnknownField`.
- */
- UnknownFieldHandler.onRead = (typeName, message, fieldNo, wireType, data) => {
- let container = is(message) ? message[UnknownFieldHandler.symbol] : message[UnknownFieldHandler.symbol] = [];
- container.push({ no: fieldNo, wireType, data });
- };
- /**
- * Write unknown fields stored for the message to the writer.
- * This method is compatible with `BinaryWriteOptions.writeUnknownFields`.
- */
- UnknownFieldHandler.onWrite = (typeName, message, writer) => {
- for (let { no, wireType, data } of UnknownFieldHandler.list(message))
- writer.tag(no, wireType).raw(data);
- };
- /**
- * List unknown fields stored for the message.
- * Note that there may be multiples fields with the same number.
- */
- UnknownFieldHandler.list = (message, fieldNo) => {
- if (is(message)) {
- let all = message[UnknownFieldHandler.symbol];
- return fieldNo ? all.filter(uf => uf.no == fieldNo) : all;
- }
- return [];
- };
- /**
- * Returns the last unknown field by field number.
- */
- UnknownFieldHandler.last = (message, fieldNo) => UnknownFieldHandler.list(message, fieldNo).slice(-1)[0];
- const is = (message) => message && Array.isArray(message[UnknownFieldHandler.symbol]);
-})(UnknownFieldHandler = exports.UnknownFieldHandler || (exports.UnknownFieldHandler = {}));
-/**
- * Merges binary write or read options. Later values override earlier values.
- */
-function mergeBinaryOptions(a, b) {
- return Object.assign(Object.assign({}, a), b);
-}
-exports.mergeBinaryOptions = mergeBinaryOptions;
-/**
- * Protobuf binary format wire types.
- *
- * A wire type provides just enough information to find the length of the
- * following value.
- *
- * See https://developers.google.com/protocol-buffers/docs/encoding#structure
- */
-var WireType;
-(function (WireType) {
- /**
- * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum
- */
- WireType[WireType["Varint"] = 0] = "Varint";
- /**
- * Used for fixed64, sfixed64, double.
- * Always 8 bytes with little-endian byte order.
- */
- WireType[WireType["Bit64"] = 1] = "Bit64";
- /**
- * Used for string, bytes, embedded messages, packed repeated fields
- *
- * Only repeated numeric types (types which use the varint, 32-bit,
- * or 64-bit wire types) can be packed. In proto3, such fields are
- * packed by default.
- */
- WireType[WireType["LengthDelimited"] = 2] = "LengthDelimited";
- /**
- * Used for groups
- * @deprecated
- */
- WireType[WireType["StartGroup"] = 3] = "StartGroup";
- /**
- * Used for groups
- * @deprecated
- */
- WireType[WireType["EndGroup"] = 4] = "EndGroup";
- /**
- * Used for fixed32, sfixed32, float.
- * Always 4 bytes with little-endian byte order.
- */
- WireType[WireType["Bit32"] = 5] = "Bit32";
-})(WireType = exports.WireType || (exports.WireType = {}));
-
-
-/***/ }),
-
-/***/ 65210:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.BinaryReader = exports.binaryReadOptions = void 0;
-const binary_format_contract_1 = __nccwpck_require__(84921);
-const pb_long_1 = __nccwpck_require__(47777);
-const goog_varint_1 = __nccwpck_require__(30433);
-const defaultsRead = {
- readUnknownField: true,
- readerFactory: bytes => new BinaryReader(bytes),
-};
-/**
- * Make options for reading binary data form partial options.
- */
-function binaryReadOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
-}
-exports.binaryReadOptions = binaryReadOptions;
-class BinaryReader {
- constructor(buf, textDecoder) {
- this.varint64 = goog_varint_1.varint64read; // dirty cast for `this`
- /**
- * Read a `uint32` field, an unsigned 32 bit varint.
- */
- this.uint32 = goog_varint_1.varint32read; // dirty cast for `this` and access to protected `buf`
- this.buf = buf;
- this.len = buf.length;
- this.pos = 0;
- this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
- this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder("utf-8", {
- fatal: true,
- ignoreBOM: true,
- });
- }
- /**
- * Reads a tag - field number and wire type.
- */
- tag() {
- let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;
- if (fieldNo <= 0 || wireType < 0 || wireType > 5)
- throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType);
- return [fieldNo, wireType];
- }
- /**
- * Skip one element on the wire and return the skipped data.
- * Supports WireType.StartGroup since v2.0.0-alpha.23.
- */
- skip(wireType) {
- let start = this.pos;
- // noinspection FallThroughInSwitchStatementJS
- switch (wireType) {
- case binary_format_contract_1.WireType.Varint:
- while (this.buf[this.pos++] & 0x80) {
- // ignore
- }
- break;
- case binary_format_contract_1.WireType.Bit64:
- this.pos += 4;
- case binary_format_contract_1.WireType.Bit32:
- this.pos += 4;
- break;
- case binary_format_contract_1.WireType.LengthDelimited:
- let len = this.uint32();
- this.pos += len;
- break;
- case binary_format_contract_1.WireType.StartGroup:
- // From descriptor.proto: Group type is deprecated, not supported in proto3.
- // But we must still be able to parse and treat as unknown.
- let t;
- while ((t = this.tag()[1]) !== binary_format_contract_1.WireType.EndGroup) {
- this.skip(t);
- }
- break;
- default:
- throw new Error("cant skip wire type " + wireType);
- }
- this.assertBounds();
- return this.buf.subarray(start, this.pos);
- }
- /**
- * Throws error if position in byte array is out of range.
- */
- assertBounds() {
- if (this.pos > this.len)
- throw new RangeError("premature EOF");
- }
- /**
- * Read a `int32` field, a signed 32 bit varint.
- */
- int32() {
- return this.uint32() | 0;
- }
- /**
- * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
- */
- sint32() {
- let zze = this.uint32();
- // decode zigzag
- return (zze >>> 1) ^ -(zze & 1);
- }
- /**
- * Read a `int64` field, a signed 64-bit varint.
- */
- int64() {
- return new pb_long_1.PbLong(...this.varint64());
- }
- /**
- * Read a `uint64` field, an unsigned 64-bit varint.
- */
- uint64() {
- return new pb_long_1.PbULong(...this.varint64());
- }
- /**
- * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
- */
- sint64() {
- let [lo, hi] = this.varint64();
- // decode zig zag
- let s = -(lo & 1);
- lo = ((lo >>> 1 | (hi & 1) << 31) ^ s);
- hi = (hi >>> 1 ^ s);
- return new pb_long_1.PbLong(lo, hi);
- }
- /**
- * Read a `bool` field, a variant.
- */
- bool() {
- let [lo, hi] = this.varint64();
- return lo !== 0 || hi !== 0;
- }
- /**
- * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.
- */
- fixed32() {
- return this.view.getUint32((this.pos += 4) - 4, true);
- }
- /**
- * Read a `sfixed32` field, a signed, fixed-length 32-bit integer.
- */
- sfixed32() {
- return this.view.getInt32((this.pos += 4) - 4, true);
- }
- /**
- * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
- */
- fixed64() {
- return new pb_long_1.PbULong(this.sfixed32(), this.sfixed32());
- }
- /**
- * Read a `fixed64` field, a signed, fixed-length 64-bit integer.
- */
- sfixed64() {
- return new pb_long_1.PbLong(this.sfixed32(), this.sfixed32());
- }
- /**
- * Read a `float` field, 32-bit floating point number.
- */
- float() {
- return this.view.getFloat32((this.pos += 4) - 4, true);
- }
- /**
- * Read a `double` field, a 64-bit floating point number.
- */
- double() {
- return this.view.getFloat64((this.pos += 8) - 8, true);
- }
- /**
- * Read a `bytes` field, length-delimited arbitrary data.
- */
- bytes() {
- let len = this.uint32();
- let start = this.pos;
- this.pos += len;
- this.assertBounds();
- return this.buf.subarray(start, start + len);
- }
- /**
- * Read a `string` field, length-delimited data converted to UTF-8 text.
- */
- string() {
- return this.textDecoder.decode(this.bytes());
- }
-}
-exports.BinaryReader = BinaryReader;
-
-
-/***/ }),
-
-/***/ 44354:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.BinaryWriter = exports.binaryWriteOptions = void 0;
-const pb_long_1 = __nccwpck_require__(47777);
-const goog_varint_1 = __nccwpck_require__(30433);
-const assert_1 = __nccwpck_require__(54253);
-const defaultsWrite = {
- writeUnknownFields: true,
- writerFactory: () => new BinaryWriter(),
-};
-/**
- * Make options for writing binary data form partial options.
- */
-function binaryWriteOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
-}
-exports.binaryWriteOptions = binaryWriteOptions;
-class BinaryWriter {
- constructor(textEncoder) {
- /**
- * Previous fork states.
- */
- this.stack = [];
- this.textEncoder = textEncoder !== null && textEncoder !== void 0 ? textEncoder : new TextEncoder();
- this.chunks = [];
- this.buf = [];
- }
- /**
- * Return all bytes written and reset this writer.
- */
- finish() {
- this.chunks.push(new Uint8Array(this.buf)); // flush the buffer
- let len = 0;
- for (let i = 0; i < this.chunks.length; i++)
- len += this.chunks[i].length;
- let bytes = new Uint8Array(len);
- let offset = 0;
- for (let i = 0; i < this.chunks.length; i++) {
- bytes.set(this.chunks[i], offset);
- offset += this.chunks[i].length;
- }
- this.chunks = [];
- return bytes;
- }
- /**
- * Start a new fork for length-delimited data like a message
- * or a packed repeated field.
- *
- * Must be joined later with `join()`.
- */
- fork() {
- this.stack.push({ chunks: this.chunks, buf: this.buf });
- this.chunks = [];
- this.buf = [];
- return this;
- }
- /**
- * Join the last fork. Write its length and bytes, then
- * return to the previous state.
- */
- join() {
- // get chunk of fork
- let chunk = this.finish();
- // restore previous state
- let prev = this.stack.pop();
- if (!prev)
- throw new Error('invalid state, fork stack empty');
- this.chunks = prev.chunks;
- this.buf = prev.buf;
- // write length of chunk as varint
- this.uint32(chunk.byteLength);
- return this.raw(chunk);
- }
- /**
- * Writes a tag (field number and wire type).
- *
- * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.
- *
- * Generated code should compute the tag ahead of time and call `uint32()`.
- */
- tag(fieldNo, type) {
- return this.uint32((fieldNo << 3 | type) >>> 0);
- }
- /**
- * Write a chunk of raw bytes.
- */
- raw(chunk) {
- if (this.buf.length) {
- this.chunks.push(new Uint8Array(this.buf));
- this.buf = [];
- }
- this.chunks.push(chunk);
- return this;
- }
- /**
- * Write a `uint32` value, an unsigned 32 bit varint.
- */
- uint32(value) {
- assert_1.assertUInt32(value);
- // write value as varint 32, inlined for speed
- while (value > 0x7f) {
- this.buf.push((value & 0x7f) | 0x80);
- value = value >>> 7;
- }
- this.buf.push(value);
- return this;
- }
- /**
- * Write a `int32` value, a signed 32 bit varint.
- */
- int32(value) {
- assert_1.assertInt32(value);
- goog_varint_1.varint32write(value, this.buf);
- return this;
- }
- /**
- * Write a `bool` value, a variant.
- */
- bool(value) {
- this.buf.push(value ? 1 : 0);
- return this;
- }
- /**
- * Write a `bytes` value, length-delimited arbitrary data.
- */
- bytes(value) {
- this.uint32(value.byteLength); // write length of chunk as varint
- return this.raw(value);
- }
- /**
- * Write a `string` value, length-delimited data converted to UTF-8 text.
- */
- string(value) {
- let chunk = this.textEncoder.encode(value);
- this.uint32(chunk.byteLength); // write length of chunk as varint
- return this.raw(chunk);
- }
- /**
- * Write a `float` value, 32-bit floating point number.
- */
- float(value) {
- assert_1.assertFloat32(value);
- let chunk = new Uint8Array(4);
- new DataView(chunk.buffer).setFloat32(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `double` value, a 64-bit floating point number.
- */
- double(value) {
- let chunk = new Uint8Array(8);
- new DataView(chunk.buffer).setFloat64(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
- */
- fixed32(value) {
- assert_1.assertUInt32(value);
- let chunk = new Uint8Array(4);
- new DataView(chunk.buffer).setUint32(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
- */
- sfixed32(value) {
- assert_1.assertInt32(value);
- let chunk = new Uint8Array(4);
- new DataView(chunk.buffer).setInt32(0, value, true);
- return this.raw(chunk);
- }
- /**
- * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
- */
- sint32(value) {
- assert_1.assertInt32(value);
- // zigzag encode
- value = ((value << 1) ^ (value >> 31)) >>> 0;
- goog_varint_1.varint32write(value, this.buf);
- return this;
- }
- /**
- * Write a `fixed64` value, a signed, fixed-length 64-bit integer.
- */
- sfixed64(value) {
- let chunk = new Uint8Array(8);
- let view = new DataView(chunk.buffer);
- let long = pb_long_1.PbLong.from(value);
- view.setInt32(0, long.lo, true);
- view.setInt32(4, long.hi, true);
- return this.raw(chunk);
- }
- /**
- * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
- */
- fixed64(value) {
- let chunk = new Uint8Array(8);
- let view = new DataView(chunk.buffer);
- let long = pb_long_1.PbULong.from(value);
- view.setInt32(0, long.lo, true);
- view.setInt32(4, long.hi, true);
- return this.raw(chunk);
- }
- /**
- * Write a `int64` value, a signed 64-bit varint.
- */
- int64(value) {
- let long = pb_long_1.PbLong.from(value);
- goog_varint_1.varint64write(long.lo, long.hi, this.buf);
- return this;
- }
- /**
- * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
- */
- sint64(value) {
- let long = pb_long_1.PbLong.from(value),
- // zigzag encode
- sign = long.hi >> 31, lo = (long.lo << 1) ^ sign, hi = ((long.hi << 1) | (long.lo >>> 31)) ^ sign;
- goog_varint_1.varint64write(lo, hi, this.buf);
- return this;
- }
- /**
- * Write a `uint64` value, an unsigned 64-bit varint.
- */
- uint64(value) {
- let long = pb_long_1.PbULong.from(value);
- goog_varint_1.varint64write(long.lo, long.hi, this.buf);
- return this;
- }
-}
-exports.BinaryWriter = BinaryWriter;
-
-
-/***/ }),
-
-/***/ 20085:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;
-/**
- * Is this a lookup object generated by Typescript, for a Typescript enum
- * generated by protobuf-ts?
- *
- * - No `const enum` (enum must not be inlined, we need reverse mapping).
- * - No string enum (we need int32 for protobuf).
- * - Must have a value for 0 (otherwise, we would need to support custom default values).
- */
-function isEnumObject(arg) {
- if (typeof arg != 'object' || arg === null) {
- return false;
- }
- if (!arg.hasOwnProperty(0)) {
- return false;
- }
- for (let k of Object.keys(arg)) {
- let num = parseInt(k);
- if (!Number.isNaN(num)) {
- // is there a name for the number?
- let nam = arg[num];
- if (nam === undefined)
- return false;
- // does the name resolve back to the number?
- if (arg[nam] !== num)
- return false;
- }
- else {
- // is there a number for the name?
- let num = arg[k];
- if (num === undefined)
- return false;
- // is it a string enum?
- if (typeof num !== 'number')
- return false;
- // do we know the number?
- if (arg[num] === undefined)
- return false;
- }
- }
- return true;
-}
-exports.isEnumObject = isEnumObject;
-/**
- * Lists all values of a Typescript enum, as an array of objects with a "name"
- * property and a "number" property.
- *
- * Note that it is possible that a number appears more than once, because it is
- * possible to have aliases in an enum.
- *
- * Throws if the enum does not adhere to the rules of enums generated by
- * protobuf-ts. See `isEnumObject()`.
- */
-function listEnumValues(enumObject) {
- if (!isEnumObject(enumObject))
- throw new Error("not a typescript enum object");
- let values = [];
- for (let [name, number] of Object.entries(enumObject))
- if (typeof number == "number")
- values.push({ name, number });
- return values;
-}
-exports.listEnumValues = listEnumValues;
-/**
- * Lists the names of a Typescript enum.
- *
- * Throws if the enum does not adhere to the rules of enums generated by
- * protobuf-ts. See `isEnumObject()`.
- */
-function listEnumNames(enumObject) {
- return listEnumValues(enumObject).map(val => val.name);
-}
-exports.listEnumNames = listEnumNames;
-/**
- * Lists the numbers of a Typescript enum.
- *
- * Throws if the enum does not adhere to the rules of enums generated by
- * protobuf-ts. See `isEnumObject()`.
- */
-function listEnumNumbers(enumObject) {
- return listEnumValues(enumObject)
- .map(val => val.number)
- .filter((num, index, arr) => arr.indexOf(num) == index);
-}
-exports.listEnumNumbers = listEnumNumbers;
-
-
-/***/ }),
-
-/***/ 30433:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Copyright 2008 Google Inc. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Code generated by the Protocol Buffer compiler is owned by the owner
-// of the input file used when generating it. This code is not
-// standalone and requires a support library to be linked with it. This
-// support library is itself covered by the above license.
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;
-/**
- * Read a 64 bit varint as two JS numbers.
- *
- * Returns tuple:
- * [0]: low bits
- * [0]: high bits
- *
- * Copyright 2008 Google Inc. All rights reserved.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
- */
-function varint64read() {
- let lowBits = 0;
- let highBits = 0;
- for (let shift = 0; shift < 28; shift += 7) {
- let b = this.buf[this.pos++];
- lowBits |= (b & 0x7F) << shift;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return [lowBits, highBits];
- }
- }
- let middleByte = this.buf[this.pos++];
- // last four bits of the first 32 bit number
- lowBits |= (middleByte & 0x0F) << 28;
- // 3 upper bits are part of the next 32 bit number
- highBits = (middleByte & 0x70) >> 4;
- if ((middleByte & 0x80) == 0) {
- this.assertBounds();
- return [lowBits, highBits];
- }
- for (let shift = 3; shift <= 31; shift += 7) {
- let b = this.buf[this.pos++];
- highBits |= (b & 0x7F) << shift;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return [lowBits, highBits];
- }
- }
- throw new Error('invalid varint');
-}
-exports.varint64read = varint64read;
-/**
- * Write a 64 bit varint, given as two JS numbers, to the given bytes array.
- *
- * Copyright 2008 Google Inc. All rights reserved.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
- */
-function varint64write(lo, hi, bytes) {
- for (let i = 0; i < 28; i = i + 7) {
- const shift = lo >>> i;
- const hasNext = !((shift >>> 7) == 0 && hi == 0);
- const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
- bytes.push(byte);
- if (!hasNext) {
- return;
- }
- }
- const splitBits = ((lo >>> 28) & 0x0F) | ((hi & 0x07) << 4);
- const hasMoreBits = !((hi >> 3) == 0);
- bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xFF);
- if (!hasMoreBits) {
- return;
- }
- for (let i = 3; i < 31; i = i + 7) {
- const shift = hi >>> i;
- const hasNext = !((shift >>> 7) == 0);
- const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
- bytes.push(byte);
- if (!hasNext) {
- return;
- }
- }
- bytes.push((hi >>> 31) & 0x01);
-}
-exports.varint64write = varint64write;
-// constants for binary math
-const TWO_PWR_32_DBL = (1 << 16) * (1 << 16);
-/**
- * Parse decimal string of 64 bit integer value as two JS numbers.
- *
- * Returns tuple:
- * [0]: minus sign?
- * [1]: low bits
- * [2]: high bits
- *
- * Copyright 2008 Google Inc.
- */
-function int64fromString(dec) {
- // Check for minus sign.
- let minus = dec[0] == '-';
- if (minus)
- dec = dec.slice(1);
- // Work 6 decimal digits at a time, acting like we're converting base 1e6
- // digits to binary. This is safe to do with floating point math because
- // Number.isSafeInteger(ALL_32_BITS * 1e6) == true.
- const base = 1e6;
- let lowBits = 0;
- let highBits = 0;
- function add1e6digit(begin, end) {
- // Note: Number('') is 0.
- const digit1e6 = Number(dec.slice(begin, end));
- highBits *= base;
- lowBits = lowBits * base + digit1e6;
- // Carry bits from lowBits to highBits
- if (lowBits >= TWO_PWR_32_DBL) {
- highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);
- lowBits = lowBits % TWO_PWR_32_DBL;
- }
- }
- add1e6digit(-24, -18);
- add1e6digit(-18, -12);
- add1e6digit(-12, -6);
- add1e6digit(-6);
- return [minus, lowBits, highBits];
-}
-exports.int64fromString = int64fromString;
-/**
- * Format 64 bit integer value (as two JS numbers) to decimal string.
- *
- * Copyright 2008 Google Inc.
- */
-function int64toString(bitsLow, bitsHigh) {
- // Skip the expensive conversion if the number is small enough to use the
- // built-in conversions.
- if ((bitsHigh >>> 0) <= 0x1FFFFF) {
- return '' + (TWO_PWR_32_DBL * bitsHigh + (bitsLow >>> 0));
- }
- // What this code is doing is essentially converting the input number from
- // base-2 to base-1e7, which allows us to represent the 64-bit range with
- // only 3 (very large) digits. Those digits are then trivial to convert to
- // a base-10 string.
- // The magic numbers used here are -
- // 2^24 = 16777216 = (1,6777216) in base-1e7.
- // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
- // Split 32:32 representation into 16:24:24 representation so our
- // intermediate digits don't overflow.
- let low = bitsLow & 0xFFFFFF;
- let mid = (((bitsLow >>> 24) | (bitsHigh << 8)) >>> 0) & 0xFFFFFF;
- let high = (bitsHigh >> 16) & 0xFFFF;
- // Assemble our three base-1e7 digits, ignoring carries. The maximum
- // value in a digit at this step is representable as a 48-bit integer, which
- // can be stored in a 64-bit floating point number.
- let digitA = low + (mid * 6777216) + (high * 6710656);
- let digitB = mid + (high * 8147497);
- let digitC = (high * 2);
- // Apply carries from A to B and from B to C.
- let base = 10000000;
- if (digitA >= base) {
- digitB += Math.floor(digitA / base);
- digitA %= base;
- }
- if (digitB >= base) {
- digitC += Math.floor(digitB / base);
- digitB %= base;
- }
- // Convert base-1e7 digits to base-10, with optional leading zeroes.
- function decimalFrom1e7(digit1e7, needLeadingZeros) {
- let partial = digit1e7 ? String(digit1e7) : '';
- if (needLeadingZeros) {
- return '0000000'.slice(partial.length) + partial;
- }
- return partial;
- }
- return decimalFrom1e7(digitC, /*needLeadingZeros=*/ 0) +
- decimalFrom1e7(digitB, /*needLeadingZeros=*/ digitC) +
- // If the final 1e7 digit didn't need leading zeros, we would have
- // returned via the trivial code path at the top.
- decimalFrom1e7(digitA, /*needLeadingZeros=*/ 1);
-}
-exports.int64toString = int64toString;
-/**
- * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
- *
- * Copyright 2008 Google Inc. All rights reserved.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
- */
-function varint32write(value, bytes) {
- if (value >= 0) {
- // write value as varint 32
- while (value > 0x7f) {
- bytes.push((value & 0x7f) | 0x80);
- value = value >>> 7;
- }
- bytes.push(value);
- }
- else {
- for (let i = 0; i < 9; i++) {
- bytes.push(value & 127 | 128);
- value = value >> 7;
- }
- bytes.push(1);
- }
-}
-exports.varint32write = varint32write;
-/**
- * Read an unsigned 32 bit varint.
- *
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
- */
-function varint32read() {
- let b = this.buf[this.pos++];
- let result = b & 0x7F;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- b = this.buf[this.pos++];
- result |= (b & 0x7F) << 7;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- b = this.buf[this.pos++];
- result |= (b & 0x7F) << 14;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- b = this.buf[this.pos++];
- result |= (b & 0x7F) << 21;
- if ((b & 0x80) == 0) {
- this.assertBounds();
- return result;
- }
- // Extract only last 4 bits
- b = this.buf[this.pos++];
- result |= (b & 0x0F) << 28;
- for (let readBytes = 5; ((b & 0x80) !== 0) && readBytes < 10; readBytes++)
- b = this.buf[this.pos++];
- if ((b & 0x80) != 0)
- throw new Error('invalid varint');
- this.assertBounds();
- // Result can have 32 bits, convert it to unsigned
- return result >>> 0;
-}
-exports.varint32read = varint32read;
-
-
-/***/ }),
-
-/***/ 4061:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-// Public API of the protobuf-ts runtime.
-// Note: we do not use `export * from ...` to help tree shakers,
-// webpack verbose output hints that this should be useful
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-// Convenience JSON typings and corresponding type guards
-var json_typings_1 = __nccwpck_require__(70661);
-Object.defineProperty(exports, "typeofJsonValue", ({ enumerable: true, get: function () { return json_typings_1.typeofJsonValue; } }));
-Object.defineProperty(exports, "isJsonObject", ({ enumerable: true, get: function () { return json_typings_1.isJsonObject; } }));
-// Base 64 encoding
-var base64_1 = __nccwpck_require__(20196);
-Object.defineProperty(exports, "base64decode", ({ enumerable: true, get: function () { return base64_1.base64decode; } }));
-Object.defineProperty(exports, "base64encode", ({ enumerable: true, get: function () { return base64_1.base64encode; } }));
-// UTF8 encoding
-var protobufjs_utf8_1 = __nccwpck_require__(95290);
-Object.defineProperty(exports, "utf8read", ({ enumerable: true, get: function () { return protobufjs_utf8_1.utf8read; } }));
-// Binary format contracts, options for reading and writing, for example
-var binary_format_contract_1 = __nccwpck_require__(84921);
-Object.defineProperty(exports, "WireType", ({ enumerable: true, get: function () { return binary_format_contract_1.WireType; } }));
-Object.defineProperty(exports, "mergeBinaryOptions", ({ enumerable: true, get: function () { return binary_format_contract_1.mergeBinaryOptions; } }));
-Object.defineProperty(exports, "UnknownFieldHandler", ({ enumerable: true, get: function () { return binary_format_contract_1.UnknownFieldHandler; } }));
-// Standard IBinaryReader implementation
-var binary_reader_1 = __nccwpck_require__(65210);
-Object.defineProperty(exports, "BinaryReader", ({ enumerable: true, get: function () { return binary_reader_1.BinaryReader; } }));
-Object.defineProperty(exports, "binaryReadOptions", ({ enumerable: true, get: function () { return binary_reader_1.binaryReadOptions; } }));
-// Standard IBinaryWriter implementation
-var binary_writer_1 = __nccwpck_require__(44354);
-Object.defineProperty(exports, "BinaryWriter", ({ enumerable: true, get: function () { return binary_writer_1.BinaryWriter; } }));
-Object.defineProperty(exports, "binaryWriteOptions", ({ enumerable: true, get: function () { return binary_writer_1.binaryWriteOptions; } }));
-// Int64 and UInt64 implementations required for the binary format
-var pb_long_1 = __nccwpck_require__(47777);
-Object.defineProperty(exports, "PbLong", ({ enumerable: true, get: function () { return pb_long_1.PbLong; } }));
-Object.defineProperty(exports, "PbULong", ({ enumerable: true, get: function () { return pb_long_1.PbULong; } }));
-// JSON format contracts, options for reading and writing, for example
-var json_format_contract_1 = __nccwpck_require__(48139);
-Object.defineProperty(exports, "jsonReadOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonReadOptions; } }));
-Object.defineProperty(exports, "jsonWriteOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonWriteOptions; } }));
-Object.defineProperty(exports, "mergeJsonOptions", ({ enumerable: true, get: function () { return json_format_contract_1.mergeJsonOptions; } }));
-// Message type contract
-var message_type_contract_1 = __nccwpck_require__(1682);
-Object.defineProperty(exports, "MESSAGE_TYPE", ({ enumerable: true, get: function () { return message_type_contract_1.MESSAGE_TYPE; } }));
-// Message type implementation via reflection
-var message_type_1 = __nccwpck_require__(63664);
-Object.defineProperty(exports, "MessageType", ({ enumerable: true, get: function () { return message_type_1.MessageType; } }));
-// Reflection info, generated by the plugin, exposed to the user, used by reflection ops
-var reflection_info_1 = __nccwpck_require__(21370);
-Object.defineProperty(exports, "ScalarType", ({ enumerable: true, get: function () { return reflection_info_1.ScalarType; } }));
-Object.defineProperty(exports, "LongType", ({ enumerable: true, get: function () { return reflection_info_1.LongType; } }));
-Object.defineProperty(exports, "RepeatType", ({ enumerable: true, get: function () { return reflection_info_1.RepeatType; } }));
-Object.defineProperty(exports, "normalizeFieldInfo", ({ enumerable: true, get: function () { return reflection_info_1.normalizeFieldInfo; } }));
-Object.defineProperty(exports, "readFieldOptions", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOptions; } }));
-Object.defineProperty(exports, "readFieldOption", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOption; } }));
-Object.defineProperty(exports, "readMessageOption", ({ enumerable: true, get: function () { return reflection_info_1.readMessageOption; } }));
-// Message operations via reflection
-var reflection_type_check_1 = __nccwpck_require__(20903);
-Object.defineProperty(exports, "ReflectionTypeCheck", ({ enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } }));
-var reflection_create_1 = __nccwpck_require__(60390);
-Object.defineProperty(exports, "reflectionCreate", ({ enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } }));
-var reflection_scalar_default_1 = __nccwpck_require__(74863);
-Object.defineProperty(exports, "reflectionScalarDefault", ({ enumerable: true, get: function () { return reflection_scalar_default_1.reflectionScalarDefault; } }));
-var reflection_merge_partial_1 = __nccwpck_require__(7869);
-Object.defineProperty(exports, "reflectionMergePartial", ({ enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } }));
-var reflection_equals_1 = __nccwpck_require__(39473);
-Object.defineProperty(exports, "reflectionEquals", ({ enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } }));
-var reflection_binary_reader_1 = __nccwpck_require__(91593);
-Object.defineProperty(exports, "ReflectionBinaryReader", ({ enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } }));
-var reflection_binary_writer_1 = __nccwpck_require__(57170);
-Object.defineProperty(exports, "ReflectionBinaryWriter", ({ enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } }));
-var reflection_json_reader_1 = __nccwpck_require__(229);
-Object.defineProperty(exports, "ReflectionJsonReader", ({ enumerable: true, get: function () { return reflection_json_reader_1.ReflectionJsonReader; } }));
-var reflection_json_writer_1 = __nccwpck_require__(68980);
-Object.defineProperty(exports, "ReflectionJsonWriter", ({ enumerable: true, get: function () { return reflection_json_writer_1.ReflectionJsonWriter; } }));
-var reflection_contains_message_type_1 = __nccwpck_require__(67317);
-Object.defineProperty(exports, "containsMessageType", ({ enumerable: true, get: function () { return reflection_contains_message_type_1.containsMessageType; } }));
-// Oneof helpers
-var oneof_1 = __nccwpck_require__(78531);
-Object.defineProperty(exports, "isOneofGroup", ({ enumerable: true, get: function () { return oneof_1.isOneofGroup; } }));
-Object.defineProperty(exports, "setOneofValue", ({ enumerable: true, get: function () { return oneof_1.setOneofValue; } }));
-Object.defineProperty(exports, "getOneofValue", ({ enumerable: true, get: function () { return oneof_1.getOneofValue; } }));
-Object.defineProperty(exports, "clearOneofValue", ({ enumerable: true, get: function () { return oneof_1.clearOneofValue; } }));
-Object.defineProperty(exports, "getSelectedOneofValue", ({ enumerable: true, get: function () { return oneof_1.getSelectedOneofValue; } }));
-// Enum object type guard and reflection util, may be interesting to the user.
-var enum_object_1 = __nccwpck_require__(20085);
-Object.defineProperty(exports, "listEnumValues", ({ enumerable: true, get: function () { return enum_object_1.listEnumValues; } }));
-Object.defineProperty(exports, "listEnumNames", ({ enumerable: true, get: function () { return enum_object_1.listEnumNames; } }));
-Object.defineProperty(exports, "listEnumNumbers", ({ enumerable: true, get: function () { return enum_object_1.listEnumNumbers; } }));
-Object.defineProperty(exports, "isEnumObject", ({ enumerable: true, get: function () { return enum_object_1.isEnumObject; } }));
-// lowerCamelCase() is exported for plugin, rpc-runtime and other rpc packages
-var lower_camel_case_1 = __nccwpck_require__(34772);
-Object.defineProperty(exports, "lowerCamelCase", ({ enumerable: true, get: function () { return lower_camel_case_1.lowerCamelCase; } }));
-// assertion functions are exported for plugin, may also be useful to user
-var assert_1 = __nccwpck_require__(54253);
-Object.defineProperty(exports, "assert", ({ enumerable: true, get: function () { return assert_1.assert; } }));
-Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return assert_1.assertNever; } }));
-Object.defineProperty(exports, "assertInt32", ({ enumerable: true, get: function () { return assert_1.assertInt32; } }));
-Object.defineProperty(exports, "assertUInt32", ({ enumerable: true, get: function () { return assert_1.assertUInt32; } }));
-Object.defineProperty(exports, "assertFloat32", ({ enumerable: true, get: function () { return assert_1.assertFloat32; } }));
-
-
-/***/ }),
-
-/***/ 48139:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;
-const defaultsWrite = {
- emitDefaultValues: false,
- enumAsInteger: false,
- useProtoFieldName: false,
- prettySpaces: 0,
-}, defaultsRead = {
- ignoreUnknownFields: false,
-};
-/**
- * Make options for reading JSON data from partial options.
- */
-function jsonReadOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
-}
-exports.jsonReadOptions = jsonReadOptions;
-/**
- * Make options for writing JSON data from partial options.
- */
-function jsonWriteOptions(options) {
- return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
-}
-exports.jsonWriteOptions = jsonWriteOptions;
-/**
- * Merges JSON write or read options. Later values override earlier values. Type registries are merged.
- */
-function mergeJsonOptions(a, b) {
- var _a, _b;
- let c = Object.assign(Object.assign({}, a), b);
- c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];
- return c;
-}
-exports.mergeJsonOptions = mergeJsonOptions;
-
-
-/***/ }),
-
-/***/ 70661:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.isJsonObject = exports.typeofJsonValue = void 0;
-/**
- * Get the type of a JSON value.
- * Distinguishes between array, null and object.
- */
-function typeofJsonValue(value) {
- let t = typeof value;
- if (t == "object") {
- if (Array.isArray(value))
- return "array";
- if (value === null)
- return "null";
- }
- return t;
-}
-exports.typeofJsonValue = typeofJsonValue;
-/**
- * Is this a JSON object (instead of an array or null)?
- */
-function isJsonObject(value) {
- return value !== null && typeof value == "object" && !Array.isArray(value);
-}
-exports.isJsonObject = isJsonObject;
-
-
-/***/ }),
-
-/***/ 34772:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.lowerCamelCase = void 0;
-/**
- * Converts snake_case to lowerCamelCase.
- *
- * Should behave like protoc:
- * https://github.com/protocolbuffers/protobuf/blob/e8ae137c96444ea313485ed1118c5e43b2099cf1/src/google/protobuf/compiler/java/java_helpers.cc#L118
- */
-function lowerCamelCase(snakeCase) {
- let capNext = false;
- const sb = [];
- for (let i = 0; i < snakeCase.length; i++) {
- let next = snakeCase.charAt(i);
- if (next == '_') {
- capNext = true;
- }
- else if (/\d/.test(next)) {
- sb.push(next);
- capNext = true;
- }
- else if (capNext) {
- sb.push(next.toUpperCase());
- capNext = false;
- }
- else if (i == 0) {
- sb.push(next.toLowerCase());
- }
- else {
- sb.push(next);
- }
- }
- return sb.join('');
-}
-exports.lowerCamelCase = lowerCamelCase;
-
-
-/***/ }),
-
-/***/ 1682:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.MESSAGE_TYPE = void 0;
-/**
- * The symbol used as a key on message objects to store the message type.
- *
- * Note that this is an experimental feature - it is here to stay, but
- * implementation details may change without notice.
- */
-exports.MESSAGE_TYPE = Symbol.for("protobuf-ts/message-type");
-
-
-/***/ }),
-
-/***/ 63664:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.MessageType = void 0;
-const message_type_contract_1 = __nccwpck_require__(1682);
-const reflection_info_1 = __nccwpck_require__(21370);
-const reflection_type_check_1 = __nccwpck_require__(20903);
-const reflection_json_reader_1 = __nccwpck_require__(229);
-const reflection_json_writer_1 = __nccwpck_require__(68980);
-const reflection_binary_reader_1 = __nccwpck_require__(91593);
-const reflection_binary_writer_1 = __nccwpck_require__(57170);
-const reflection_create_1 = __nccwpck_require__(60390);
-const reflection_merge_partial_1 = __nccwpck_require__(7869);
-const json_typings_1 = __nccwpck_require__(70661);
-const json_format_contract_1 = __nccwpck_require__(48139);
-const reflection_equals_1 = __nccwpck_require__(39473);
-const binary_writer_1 = __nccwpck_require__(44354);
-const binary_reader_1 = __nccwpck_require__(65210);
-const baseDescriptors = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));
-/**
- * This standard message type provides reflection-based
- * operations to work with a message.
- */
-class MessageType {
- constructor(name, fields, options) {
- this.defaultCheckDepth = 16;
- this.typeName = name;
- this.fields = fields.map(reflection_info_1.normalizeFieldInfo);
- this.options = options !== null && options !== void 0 ? options : {};
- this.messagePrototype = Object.create(null, Object.assign(Object.assign({}, baseDescriptors), { [message_type_contract_1.MESSAGE_TYPE]: { value: this } }));
- this.refTypeCheck = new reflection_type_check_1.ReflectionTypeCheck(this);
- this.refJsonReader = new reflection_json_reader_1.ReflectionJsonReader(this);
- this.refJsonWriter = new reflection_json_writer_1.ReflectionJsonWriter(this);
- this.refBinReader = new reflection_binary_reader_1.ReflectionBinaryReader(this);
- this.refBinWriter = new reflection_binary_writer_1.ReflectionBinaryWriter(this);
- }
- create(value) {
- let message = reflection_create_1.reflectionCreate(this);
- if (value !== undefined) {
- reflection_merge_partial_1.reflectionMergePartial(this, message, value);
- }
- return message;
- }
- /**
- * Clone the message.
- *
- * Unknown fields are discarded.
- */
- clone(message) {
- let copy = this.create();
- reflection_merge_partial_1.reflectionMergePartial(this, copy, message);
- return copy;
- }
- /**
- * Determines whether two message of the same type have the same field values.
- * Checks for deep equality, traversing repeated fields, oneof groups, maps
- * and messages recursively.
- * Will also return true if both messages are `undefined`.
- */
- equals(a, b) {
- return reflection_equals_1.reflectionEquals(this, a, b);
- }
- /**
- * Is the given value assignable to our message type
- * and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
- */
- is(arg, depth = this.defaultCheckDepth) {
- return this.refTypeCheck.is(arg, depth, false);
- }
- /**
- * Is the given value assignable to our message type,
- * regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
- */
- isAssignable(arg, depth = this.defaultCheckDepth) {
- return this.refTypeCheck.is(arg, depth, true);
- }
- /**
- * Copy partial data into the target message.
- */
- mergePartial(target, source) {
- reflection_merge_partial_1.reflectionMergePartial(this, target, source);
- }
- /**
- * Create a new message from binary format.
- */
- fromBinary(data, options) {
- let opt = binary_reader_1.binaryReadOptions(options);
- return this.internalBinaryRead(opt.readerFactory(data), data.byteLength, opt);
- }
- /**
- * Read a new message from a JSON value.
- */
- fromJson(json, options) {
- return this.internalJsonRead(json, json_format_contract_1.jsonReadOptions(options));
- }
- /**
- * Read a new message from a JSON string.
- * This is equivalent to `T.fromJson(JSON.parse(json))`.
- */
- fromJsonString(json, options) {
- let value = JSON.parse(json);
- return this.fromJson(value, options);
- }
- /**
- * Write the message to canonical JSON value.
- */
- toJson(message, options) {
- return this.internalJsonWrite(message, json_format_contract_1.jsonWriteOptions(options));
- }
- /**
- * Convert the message to canonical JSON string.
- * This is equivalent to `JSON.stringify(T.toJson(t))`
- */
- toJsonString(message, options) {
- var _a;
- let value = this.toJson(message, options);
- return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);
- }
- /**
- * Write the message to binary format.
- */
- toBinary(message, options) {
- let opt = binary_writer_1.binaryWriteOptions(options);
- return this.internalBinaryWrite(message, opt.writerFactory(), opt).finish();
- }
- /**
- * This is an internal method. If you just want to read a message from
- * JSON, use `fromJson()` or `fromJsonString()`.
- *
- * Reads JSON value and merges the fields into the target
- * according to protobuf rules. If the target is omitted,
- * a new instance is created first.
- */
- internalJsonRead(json, options, target) {
- if (json !== null && typeof json == "object" && !Array.isArray(json)) {
- let message = target !== null && target !== void 0 ? target : this.create();
- this.refJsonReader.read(json, message, options);
- return message;
- }
- throw new Error(`Unable to parse message ${this.typeName} from JSON ${json_typings_1.typeofJsonValue(json)}.`);
- }
- /**
- * This is an internal method. If you just want to write a message
- * to JSON, use `toJson()` or `toJsonString().
- *
- * Writes JSON value and returns it.
- */
- internalJsonWrite(message, options) {
- return this.refJsonWriter.write(message, options);
- }
- /**
- * This is an internal method. If you just want to write a message
- * in binary format, use `toBinary()`.
- *
- * Serializes the message in binary format and appends it to the given
- * writer. Returns passed writer.
- */
- internalBinaryWrite(message, writer, options) {
- this.refBinWriter.write(message, writer, options);
- return writer;
- }
- /**
- * This is an internal method. If you just want to read a message from
- * binary data, use `fromBinary()`.
- *
- * Reads data from binary format and merges the fields into
- * the target according to protobuf rules. If the target is
- * omitted, a new instance is created first.
- */
- internalBinaryRead(reader, length, options, target) {
- let message = target !== null && target !== void 0 ? target : this.create();
- this.refBinReader.read(reader, message, options, length);
- return message;
- }
-}
-exports.MessageType = MessageType;
-
-
-/***/ }),
-
-/***/ 78531:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;
-/**
- * Is the given value a valid oneof group?
- *
- * We represent protobuf `oneof` as algebraic data types (ADT) in generated
- * code. But when working with messages of unknown type, the ADT does not
- * help us.
- *
- * This type guard checks if the given object adheres to the ADT rules, which
- * are as follows:
- *
- * 1) Must be an object.
- *
- * 2) Must have a "oneofKind" discriminator property.
- *
- * 3) If "oneofKind" is `undefined`, no member field is selected. The object
- * must not have any other properties.
- *
- * 4) If "oneofKind" is a `string`, the member field with this name is
- * selected.
- *
- * 5) If a member field is selected, the object must have a second property
- * with this name. The property must not be `undefined`.
- *
- * 6) No extra properties are allowed. The object has either one property
- * (no selection) or two properties (selection).
- *
- */
-function isOneofGroup(any) {
- if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {
- return false;
- }
- switch (typeof any.oneofKind) {
- case "string":
- if (any[any.oneofKind] === undefined)
- return false;
- return Object.keys(any).length == 2;
- case "undefined":
- return Object.keys(any).length == 1;
- default:
- return false;
- }
-}
-exports.isOneofGroup = isOneofGroup;
-/**
- * Returns the value of the given field in a oneof group.
- */
-function getOneofValue(oneof, kind) {
- return oneof[kind];
-}
-exports.getOneofValue = getOneofValue;
-function setOneofValue(oneof, kind, value) {
- if (oneof.oneofKind !== undefined) {
- delete oneof[oneof.oneofKind];
- }
- oneof.oneofKind = kind;
- if (value !== undefined) {
- oneof[kind] = value;
- }
-}
-exports.setOneofValue = setOneofValue;
-function setUnknownOneofValue(oneof, kind, value) {
- if (oneof.oneofKind !== undefined) {
- delete oneof[oneof.oneofKind];
- }
- oneof.oneofKind = kind;
- if (value !== undefined && kind !== undefined) {
- oneof[kind] = value;
- }
-}
-exports.setUnknownOneofValue = setUnknownOneofValue;
-/**
- * Removes the selected field in a oneof group.
- *
- * Note that the recommended way to modify a oneof group is to set
- * a new object:
- *
- * ```ts
- * message.result = { oneofKind: undefined };
- * ```
- */
-function clearOneofValue(oneof) {
- if (oneof.oneofKind !== undefined) {
- delete oneof[oneof.oneofKind];
- }
- oneof.oneofKind = undefined;
-}
-exports.clearOneofValue = clearOneofValue;
-/**
- * Returns the selected value of the given oneof group.
- *
- * Not that the recommended way to access a oneof group is to check
- * the "oneofKind" property and let TypeScript narrow down the union
- * type for you:
- *
- * ```ts
- * if (message.result.oneofKind === "error") {
- * message.result.error; // string
- * }
- * ```
- *
- * In the rare case you just need the value, and do not care about
- * which protobuf field is selected, you can use this function
- * for convenience.
- */
-function getSelectedOneofValue(oneof) {
- if (oneof.oneofKind === undefined) {
- return undefined;
- }
- return oneof[oneof.oneofKind];
-}
-exports.getSelectedOneofValue = getSelectedOneofValue;
-
-
-/***/ }),
-
-/***/ 47777:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.PbLong = exports.PbULong = exports.detectBi = void 0;
-const goog_varint_1 = __nccwpck_require__(30433);
-let BI;
-function detectBi() {
- const dv = new DataView(new ArrayBuffer(8));
- const ok = globalThis.BigInt !== undefined
- && typeof dv.getBigInt64 === "function"
- && typeof dv.getBigUint64 === "function"
- && typeof dv.setBigInt64 === "function"
- && typeof dv.setBigUint64 === "function";
- BI = ok ? {
- MIN: BigInt("-9223372036854775808"),
- MAX: BigInt("9223372036854775807"),
- UMIN: BigInt("0"),
- UMAX: BigInt("18446744073709551615"),
- C: BigInt,
- V: dv,
- } : undefined;
-}
-exports.detectBi = detectBi;
-detectBi();
-function assertBi(bi) {
- if (!bi)
- throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
-}
-// used to validate from(string) input (when bigint is unavailable)
-const RE_DECIMAL_STR = /^-?[0-9]+$/;
-// constants for binary math
-const TWO_PWR_32_DBL = 0x100000000;
-const HALF_2_PWR_32 = 0x080000000;
-// base class for PbLong and PbULong provides shared code
-class SharedPbLong {
- /**
- * Create a new instance with the given bits.
- */
- constructor(lo, hi) {
- this.lo = lo | 0;
- this.hi = hi | 0;
- }
- /**
- * Is this instance equal to 0?
- */
- isZero() {
- return this.lo == 0 && this.hi == 0;
- }
- /**
- * Convert to a native number.
- */
- toNumber() {
- let result = this.hi * TWO_PWR_32_DBL + (this.lo >>> 0);
- if (!Number.isSafeInteger(result))
- throw new Error("cannot convert to safe number");
- return result;
- }
-}
-/**
- * 64-bit unsigned integer as two 32-bit values.
- * Converts between `string`, `number` and `bigint` representations.
- */
-class PbULong extends SharedPbLong {
- /**
- * Create instance from a `string`, `number` or `bigint`.
- */
- static from(value) {
- if (BI)
- // noinspection FallThroughInSwitchStatementJS
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- if (value == "")
- throw new Error('string is no integer');
- value = BI.C(value);
- case "number":
- if (value === 0)
- return this.ZERO;
- value = BI.C(value);
- case "bigint":
- if (!value)
- return this.ZERO;
- if (value < BI.UMIN)
- throw new Error('signed value for ulong');
- if (value > BI.UMAX)
- throw new Error('ulong too large');
- BI.V.setBigUint64(0, value, true);
- return new PbULong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
- }
- else
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- value = value.trim();
- if (!RE_DECIMAL_STR.test(value))
- throw new Error('string is no integer');
- let [minus, lo, hi] = goog_varint_1.int64fromString(value);
- if (minus)
- throw new Error('signed value for ulong');
- return new PbULong(lo, hi);
- case "number":
- if (value == 0)
- return this.ZERO;
- if (!Number.isSafeInteger(value))
- throw new Error('number is no integer');
- if (value < 0)
- throw new Error('signed value for ulong');
- return new PbULong(value, value / TWO_PWR_32_DBL);
- }
- throw new Error('unknown value ' + typeof value);
- }
- /**
- * Convert to decimal string.
- */
- toString() {
- return BI ? this.toBigInt().toString() : goog_varint_1.int64toString(this.lo, this.hi);
- }
- /**
- * Convert to native bigint.
- */
- toBigInt() {
- assertBi(BI);
- BI.V.setInt32(0, this.lo, true);
- BI.V.setInt32(4, this.hi, true);
- return BI.V.getBigUint64(0, true);
- }
-}
-exports.PbULong = PbULong;
-/**
- * ulong 0 singleton.
- */
-PbULong.ZERO = new PbULong(0, 0);
-/**
- * 64-bit signed integer as two 32-bit values.
- * Converts between `string`, `number` and `bigint` representations.
- */
-class PbLong extends SharedPbLong {
- /**
- * Create instance from a `string`, `number` or `bigint`.
- */
- static from(value) {
- if (BI)
- // noinspection FallThroughInSwitchStatementJS
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- if (value == "")
- throw new Error('string is no integer');
- value = BI.C(value);
- case "number":
- if (value === 0)
- return this.ZERO;
- value = BI.C(value);
- case "bigint":
- if (!value)
- return this.ZERO;
- if (value < BI.MIN)
- throw new Error('signed long too small');
- if (value > BI.MAX)
- throw new Error('signed long too large');
- BI.V.setBigInt64(0, value, true);
- return new PbLong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
- }
- else
- switch (typeof value) {
- case "string":
- if (value == "0")
- return this.ZERO;
- value = value.trim();
- if (!RE_DECIMAL_STR.test(value))
- throw new Error('string is no integer');
- let [minus, lo, hi] = goog_varint_1.int64fromString(value);
- if (minus) {
- if (hi > HALF_2_PWR_32 || (hi == HALF_2_PWR_32 && lo != 0))
- throw new Error('signed long too small');
- }
- else if (hi >= HALF_2_PWR_32)
- throw new Error('signed long too large');
- let pbl = new PbLong(lo, hi);
- return minus ? pbl.negate() : pbl;
- case "number":
- if (value == 0)
- return this.ZERO;
- if (!Number.isSafeInteger(value))
- throw new Error('number is no integer');
- return value > 0
- ? new PbLong(value, value / TWO_PWR_32_DBL)
- : new PbLong(-value, -value / TWO_PWR_32_DBL).negate();
- }
- throw new Error('unknown value ' + typeof value);
- }
- /**
- * Do we have a minus sign?
- */
- isNegative() {
- return (this.hi & HALF_2_PWR_32) !== 0;
- }
- /**
- * Negate two's complement.
- * Invert all the bits and add one to the result.
- */
- negate() {
- let hi = ~this.hi, lo = this.lo;
- if (lo)
- lo = ~lo + 1;
- else
- hi += 1;
- return new PbLong(lo, hi);
- }
- /**
- * Convert to decimal string.
- */
- toString() {
- if (BI)
- return this.toBigInt().toString();
- if (this.isNegative()) {
- let n = this.negate();
- return '-' + goog_varint_1.int64toString(n.lo, n.hi);
- }
- return goog_varint_1.int64toString(this.lo, this.hi);
- }
- /**
- * Convert to native bigint.
- */
- toBigInt() {
- assertBi(BI);
- BI.V.setInt32(0, this.lo, true);
- BI.V.setInt32(4, this.hi, true);
- return BI.V.getBigInt64(0, true);
- }
-}
-exports.PbLong = PbLong;
-/**
- * long 0 singleton.
- */
-PbLong.ZERO = new PbLong(0, 0);
-
-
-/***/ }),
-
-/***/ 95290:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Copyright (c) 2016, Daniel Wirtz All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// * Neither the name of its author, nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.utf8read = void 0;
-const fromCharCodes = (chunk) => String.fromCharCode.apply(String, chunk);
-/**
- * @deprecated This function will no longer be exported with the next major
- * release, since protobuf-ts has switch to TextDecoder API. If you need this
- * function, please migrate to @protobufjs/utf8. For context, see
- * https://github.com/timostamm/protobuf-ts/issues/184
- *
- * Reads UTF8 bytes as a string.
- *
- * See [protobufjs / utf8](https://github.com/protobufjs/protobuf.js/blob/9893e35b854621cce64af4bf6be2cff4fb892796/lib/utf8/index.js#L40)
- *
- * Copyright (c) 2016, Daniel Wirtz
- */
-function utf8read(bytes) {
- if (bytes.length < 1)
- return "";
- let pos = 0, // position in bytes
- parts = [], chunk = [], i = 0, // char offset
- t; // temporary
- let len = bytes.length;
- while (pos < len) {
- t = bytes[pos++];
- if (t < 128)
- chunk[i++] = t;
- else if (t > 191 && t < 224)
- chunk[i++] = (t & 31) << 6 | bytes[pos++] & 63;
- else if (t > 239 && t < 365) {
- t = ((t & 7) << 18 | (bytes[pos++] & 63) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63) - 0x10000;
- chunk[i++] = 0xD800 + (t >> 10);
- chunk[i++] = 0xDC00 + (t & 1023);
- }
- else
- chunk[i++] = (t & 15) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63;
- if (i > 8191) {
- parts.push(fromCharCodes(chunk));
- i = 0;
- }
- }
- if (parts.length) {
- if (i)
- parts.push(fromCharCodes(chunk.slice(0, i)));
- return parts.join("");
- }
- return fromCharCodes(chunk.slice(0, i));
-}
-exports.utf8read = utf8read;
-
-
-/***/ }),
-
-/***/ 91593:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionBinaryReader = void 0;
-const binary_format_contract_1 = __nccwpck_require__(84921);
-const reflection_info_1 = __nccwpck_require__(21370);
-const reflection_long_convert_1 = __nccwpck_require__(24612);
-const reflection_scalar_default_1 = __nccwpck_require__(74863);
-/**
- * Reads proto3 messages in binary format using reflection information.
- *
- * https://developers.google.com/protocol-buffers/docs/encoding
- */
-class ReflectionBinaryReader {
- constructor(info) {
- this.info = info;
- }
- prepare() {
- var _a;
- if (!this.fieldNoToField) {
- const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
- this.fieldNoToField = new Map(fieldsInput.map(field => [field.no, field]));
- }
- }
- /**
- * Reads a message from binary format into the target message.
- *
- * Repeated fields are appended. Map entries are added, overwriting
- * existing keys.
- *
- * If a message field is already present, it will be merged with the
- * new data.
- */
- read(reader, message, options, length) {
- this.prepare();
- const end = length === undefined ? reader.len : reader.pos + length;
- while (reader.pos < end) {
- // read the tag and find the field
- const [fieldNo, wireType] = reader.tag(), field = this.fieldNoToField.get(fieldNo);
- if (!field) {
- let u = options.readUnknownField;
- if (u == "throw")
- throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.info.typeName}`);
- let d = reader.skip(wireType);
- if (u !== false)
- (u === true ? binary_format_contract_1.UnknownFieldHandler.onRead : u)(this.info.typeName, message, fieldNo, wireType, d);
- continue;
- }
- // target object for the field we are reading
- let target = message, repeated = field.repeat, localName = field.localName;
- // if field is member of oneof ADT, use ADT as target
- if (field.oneof) {
- target = target[field.oneof];
- // if other oneof member selected, set new ADT
- if (target.oneofKind !== localName)
- target = message[field.oneof] = {
- oneofKind: localName
- };
- }
- // we have handled oneof above, we just have read the value into `target[localName]`
- switch (field.kind) {
- case "scalar":
- case "enum":
- let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
- let L = field.kind == "scalar" ? field.L : undefined;
- if (repeated) {
- let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
- if (wireType == binary_format_contract_1.WireType.LengthDelimited && T != reflection_info_1.ScalarType.STRING && T != reflection_info_1.ScalarType.BYTES) {
- let e = reader.uint32() + reader.pos;
- while (reader.pos < e)
- arr.push(this.scalar(reader, T, L));
- }
- else
- arr.push(this.scalar(reader, T, L));
- }
- else
- target[localName] = this.scalar(reader, T, L);
- break;
- case "message":
- if (repeated) {
- let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
- let msg = field.T().internalBinaryRead(reader, reader.uint32(), options);
- arr.push(msg);
- }
- else
- target[localName] = field.T().internalBinaryRead(reader, reader.uint32(), options, target[localName]);
- break;
- case "map":
- let [mapKey, mapVal] = this.mapEntry(field, reader, options);
- // safe to assume presence of map object, oneof cannot contain repeated values
- target[localName][mapKey] = mapVal;
- break;
- }
- }
- }
- /**
- * Read a map field, expecting key field = 1, value field = 2
- */
- mapEntry(field, reader, options) {
- let length = reader.uint32();
- let end = reader.pos + length;
- let key = undefined; // javascript only allows number or string for object properties
- let val = undefined;
- while (reader.pos < end) {
- let [fieldNo, wireType] = reader.tag();
- switch (fieldNo) {
- case 1:
- if (field.K == reflection_info_1.ScalarType.BOOL)
- key = reader.bool().toString();
- else
- // long types are read as string, number types are okay as number
- key = this.scalar(reader, field.K, reflection_info_1.LongType.STRING);
- break;
- case 2:
- switch (field.V.kind) {
- case "scalar":
- val = this.scalar(reader, field.V.T, field.V.L);
- break;
- case "enum":
- val = reader.int32();
- break;
- case "message":
- val = field.V.T().internalBinaryRead(reader, reader.uint32(), options);
- break;
- }
- break;
- default:
- throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) in map entry for ${this.info.typeName}#${field.name}`);
- }
- }
- if (key === undefined) {
- let keyRaw = reflection_scalar_default_1.reflectionScalarDefault(field.K);
- key = field.K == reflection_info_1.ScalarType.BOOL ? keyRaw.toString() : keyRaw;
- }
- if (val === undefined)
- switch (field.V.kind) {
- case "scalar":
- val = reflection_scalar_default_1.reflectionScalarDefault(field.V.T, field.V.L);
- break;
- case "enum":
- val = 0;
- break;
- case "message":
- val = field.V.T().create();
- break;
- }
- return [key, val];
- }
- scalar(reader, type, longType) {
- switch (type) {
- case reflection_info_1.ScalarType.INT32:
- return reader.int32();
- case reflection_info_1.ScalarType.STRING:
- return reader.string();
- case reflection_info_1.ScalarType.BOOL:
- return reader.bool();
- case reflection_info_1.ScalarType.DOUBLE:
- return reader.double();
- case reflection_info_1.ScalarType.FLOAT:
- return reader.float();
- case reflection_info_1.ScalarType.INT64:
- return reflection_long_convert_1.reflectionLongConvert(reader.int64(), longType);
- case reflection_info_1.ScalarType.UINT64:
- return reflection_long_convert_1.reflectionLongConvert(reader.uint64(), longType);
- case reflection_info_1.ScalarType.FIXED64:
- return reflection_long_convert_1.reflectionLongConvert(reader.fixed64(), longType);
- case reflection_info_1.ScalarType.FIXED32:
- return reader.fixed32();
- case reflection_info_1.ScalarType.BYTES:
- return reader.bytes();
- case reflection_info_1.ScalarType.UINT32:
- return reader.uint32();
- case reflection_info_1.ScalarType.SFIXED32:
- return reader.sfixed32();
- case reflection_info_1.ScalarType.SFIXED64:
- return reflection_long_convert_1.reflectionLongConvert(reader.sfixed64(), longType);
- case reflection_info_1.ScalarType.SINT32:
- return reader.sint32();
- case reflection_info_1.ScalarType.SINT64:
- return reflection_long_convert_1.reflectionLongConvert(reader.sint64(), longType);
- }
- }
-}
-exports.ReflectionBinaryReader = ReflectionBinaryReader;
-
-
-/***/ }),
-
-/***/ 57170:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionBinaryWriter = void 0;
-const binary_format_contract_1 = __nccwpck_require__(84921);
-const reflection_info_1 = __nccwpck_require__(21370);
-const assert_1 = __nccwpck_require__(54253);
-const pb_long_1 = __nccwpck_require__(47777);
-/**
- * Writes proto3 messages in binary format using reflection information.
- *
- * https://developers.google.com/protocol-buffers/docs/encoding
- */
-class ReflectionBinaryWriter {
- constructor(info) {
- this.info = info;
- }
- prepare() {
- if (!this.fields) {
- const fieldsInput = this.info.fields ? this.info.fields.concat() : [];
- this.fields = fieldsInput.sort((a, b) => a.no - b.no);
- }
- }
- /**
- * Writes the message to binary format.
- */
- write(message, writer, options) {
- this.prepare();
- for (const field of this.fields) {
- let value, // this will be our field value, whether it is member of a oneof or not
- emitDefault, // whether we emit the default value (only true for oneof members)
- repeated = field.repeat, localName = field.localName;
- // handle oneof ADT
- if (field.oneof) {
- const group = message[field.oneof];
- if (group.oneofKind !== localName)
- continue; // if field is not selected, skip
- value = group[localName];
- emitDefault = true;
- }
- else {
- value = message[localName];
- emitDefault = false;
- }
- // we have handled oneof above. we just have to honor `emitDefault`.
- switch (field.kind) {
- case "scalar":
- case "enum":
- let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
- if (repeated) {
- assert_1.assert(Array.isArray(value));
- if (repeated == reflection_info_1.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 === undefined)
- assert_1.assert(field.opt);
- else
- this.scalar(writer, T, field.no, value, emitDefault || field.opt);
- break;
- case "message":
- if (repeated) {
- assert_1.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.assert(typeof value == 'object' && value !== null);
- for (const [key, val] of Object.entries(value))
- this.mapEntry(writer, options, field, key, val);
- break;
- }
- }
- let u = options.writeUnknownFields;
- if (u !== false)
- (u === true ? binary_format_contract_1.UnknownFieldHandler.onWrite : u)(this.info.typeName, message, writer);
- }
- mapEntry(writer, options, field, key, value) {
- writer.tag(field.no, binary_format_contract_1.WireType.LengthDelimited);
- writer.fork();
- // javascript only allows number or string for object properties
- // we convert from our representation to the protobuf type
- let keyValue = key;
- switch (field.K) {
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.UINT32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- keyValue = Number.parseInt(key);
- break;
- case reflection_info_1.ScalarType.BOOL:
- assert_1.assert(key == 'true' || key == 'false');
- keyValue = key == 'true';
- break;
- }
- // write key, expecting key field number = 1
- this.scalar(writer, field.K, 1, keyValue, true);
- // write value, expecting value field number = 2
- switch (field.V.kind) {
- case 'scalar':
- this.scalar(writer, field.V.T, 2, value, true);
- break;
- case 'enum':
- this.scalar(writer, reflection_info_1.ScalarType.INT32, 2, value, true);
- break;
- case 'message':
- this.message(writer, options, field.V.T(), 2, value);
- break;
- }
- writer.join();
- }
- message(writer, options, handler, fieldNo, value) {
- if (value === undefined)
- return;
- handler.internalBinaryWrite(value, writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited).fork(), options);
- writer.join();
- }
- /**
- * Write a single scalar value.
- */
- scalar(writer, type, fieldNo, value, emitDefault) {
- let [wireType, method, isDefault] = this.scalarInfo(type, value);
- if (!isDefault || emitDefault) {
- writer.tag(fieldNo, wireType);
- writer[method](value);
- }
- }
- /**
- * Write an array of scalar values in packed format.
- */
- packed(writer, type, fieldNo, value) {
- if (!value.length)
- return;
- assert_1.assert(type !== reflection_info_1.ScalarType.BYTES && type !== reflection_info_1.ScalarType.STRING);
- // write tag
- writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited);
- // begin length-delimited
- writer.fork();
- // write values without tags
- let [, method,] = this.scalarInfo(type);
- for (let i = 0; i < value.length; i++)
- writer[method](value[i]);
- // end length delimited
- writer.join();
- }
- /**
- * Get information for writing a scalar value.
- *
- * Returns tuple:
- * [0]: appropriate WireType
- * [1]: name of the appropriate method of IBinaryWriter
- * [2]: whether the given value is a default value
- *
- * If argument `value` is omitted, [2] is always false.
- */
- scalarInfo(type, value) {
- let t = binary_format_contract_1.WireType.Varint;
- let m;
- let i = value === undefined;
- let d = value === 0;
- switch (type) {
- case reflection_info_1.ScalarType.INT32:
- m = "int32";
- break;
- case reflection_info_1.ScalarType.STRING:
- d = i || !value.length;
- t = binary_format_contract_1.WireType.LengthDelimited;
- m = "string";
- break;
- case reflection_info_1.ScalarType.BOOL:
- d = value === false;
- m = "bool";
- break;
- case reflection_info_1.ScalarType.UINT32:
- m = "uint32";
- break;
- case reflection_info_1.ScalarType.DOUBLE:
- t = binary_format_contract_1.WireType.Bit64;
- m = "double";
- break;
- case reflection_info_1.ScalarType.FLOAT:
- t = binary_format_contract_1.WireType.Bit32;
- m = "float";
- break;
- case reflection_info_1.ScalarType.INT64:
- d = i || pb_long_1.PbLong.from(value).isZero();
- m = "int64";
- break;
- case reflection_info_1.ScalarType.UINT64:
- d = i || pb_long_1.PbULong.from(value).isZero();
- m = "uint64";
- break;
- case reflection_info_1.ScalarType.FIXED64:
- d = i || pb_long_1.PbULong.from(value).isZero();
- t = binary_format_contract_1.WireType.Bit64;
- m = "fixed64";
- break;
- case reflection_info_1.ScalarType.BYTES:
- d = i || !value.byteLength;
- t = binary_format_contract_1.WireType.LengthDelimited;
- m = "bytes";
- break;
- case reflection_info_1.ScalarType.FIXED32:
- t = binary_format_contract_1.WireType.Bit32;
- m = "fixed32";
- break;
- case reflection_info_1.ScalarType.SFIXED32:
- t = binary_format_contract_1.WireType.Bit32;
- m = "sfixed32";
- break;
- case reflection_info_1.ScalarType.SFIXED64:
- d = i || pb_long_1.PbLong.from(value).isZero();
- t = binary_format_contract_1.WireType.Bit64;
- m = "sfixed64";
- break;
- case reflection_info_1.ScalarType.SINT32:
- m = "sint32";
- break;
- case reflection_info_1.ScalarType.SINT64:
- d = i || pb_long_1.PbLong.from(value).isZero();
- m = "sint64";
- break;
- }
- return [t, m, i || d];
- }
-}
-exports.ReflectionBinaryWriter = ReflectionBinaryWriter;
-
-
-/***/ }),
-
-/***/ 67317:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.containsMessageType = void 0;
-const message_type_contract_1 = __nccwpck_require__(1682);
-/**
- * Check if the provided object is a proto message.
- *
- * Note that this is an experimental feature - it is here to stay, but
- * implementation details may change without notice.
- */
-function containsMessageType(msg) {
- return msg[message_type_contract_1.MESSAGE_TYPE] != null;
-}
-exports.containsMessageType = containsMessageType;
-
-
-/***/ }),
-
-/***/ 60390:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionCreate = void 0;
-const reflection_scalar_default_1 = __nccwpck_require__(74863);
-const message_type_contract_1 = __nccwpck_require__(1682);
-/**
- * Creates an instance of the generic message, using the field
- * information.
- */
-function reflectionCreate(type) {
- /**
- * This ternary can be removed in the next major version.
- * The `Object.create()` code path utilizes a new `messagePrototype`
- * property on the `IMessageType` which has this same `MESSAGE_TYPE`
- * non-enumerable property on it. Doing it this way means that we only
- * pay the cost of `Object.defineProperty()` once per `IMessageType`
- * class of once per "instance". The falsy code path is only provided
- * for backwards compatibility in cases where the runtime library is
- * updated without also updating the generated code.
- */
- const msg = type.messagePrototype
- ? Object.create(type.messagePrototype)
- : Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: type });
- for (let field of type.fields) {
- let name = field.localName;
- if (field.opt)
- continue;
- if (field.oneof)
- msg[field.oneof] = { oneofKind: undefined };
- else if (field.repeat)
- msg[name] = [];
- else
- switch (field.kind) {
- case "scalar":
- msg[name] = reflection_scalar_default_1.reflectionScalarDefault(field.T, field.L);
- break;
- case "enum":
- // we require 0 to be default value for all enums
- msg[name] = 0;
- break;
- case "map":
- msg[name] = {};
- break;
- }
- }
- return msg;
-}
-exports.reflectionCreate = reflectionCreate;
-
-
-/***/ }),
-
-/***/ 39473:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionEquals = void 0;
-const reflection_info_1 = __nccwpck_require__(21370);
-/**
- * Determines whether two message of the same type have the same field values.
- * Checks for deep equality, traversing repeated fields, oneof groups, maps
- * and messages recursively.
- * Will also return true if both messages are `undefined`.
- */
-function reflectionEquals(info, a, b) {
- if (a === b)
- return true;
- if (!a || !b)
- return false;
- for (let field of info.fields) {
- let localName = field.localName;
- let val_a = field.oneof ? a[field.oneof][localName] : a[localName];
- let val_b = field.oneof ? b[field.oneof][localName] : b[localName];
- switch (field.kind) {
- case "enum":
- case "scalar":
- let t = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
- if (!(field.repeat
- ? repeatedPrimitiveEq(t, val_a, val_b)
- : primitiveEq(t, val_a, val_b)))
- return false;
- break;
- case "map":
- if (!(field.V.kind == "message"
- ? repeatedMsgEq(field.V.T(), objectValues(val_a), objectValues(val_b))
- : repeatedPrimitiveEq(field.V.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.V.T, objectValues(val_a), objectValues(val_b))))
- return false;
- break;
- case "message":
- let T = field.T();
- if (!(field.repeat
- ? repeatedMsgEq(T, val_a, val_b)
- : T.equals(val_a, val_b)))
- return false;
- break;
- }
- }
- return true;
-}
-exports.reflectionEquals = reflectionEquals;
-const objectValues = Object.values;
-function primitiveEq(type, a, b) {
- if (a === b)
- return true;
- if (type !== reflection_info_1.ScalarType.BYTES)
- return false;
- let ba = a;
- let bb = b;
- if (ba.length !== bb.length)
- return false;
- for (let i = 0; i < ba.length; i++)
- if (ba[i] != bb[i])
- return false;
- return true;
-}
-function repeatedPrimitiveEq(type, a, b) {
- if (a.length !== b.length)
- return false;
- for (let i = 0; i < a.length; i++)
- if (!primitiveEq(type, a[i], b[i]))
- return false;
- return true;
-}
-function repeatedMsgEq(type, a, b) {
- if (a.length !== b.length)
- return false;
- for (let i = 0; i < a.length; i++)
- if (!type.equals(a[i], b[i]))
- return false;
- return true;
-}
-
-
-/***/ }),
-
-/***/ 21370:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;
-const lower_camel_case_1 = __nccwpck_require__(34772);
-/**
- * Scalar value types. This is a subset of field types declared by protobuf
- * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE
- * are omitted, but the numerical values are identical.
- */
-var ScalarType;
-(function (ScalarType) {
- // 0 is reserved for errors.
- // Order is weird for historical reasons.
- ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE";
- ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT";
- // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
- // negative values are likely.
- ScalarType[ScalarType["INT64"] = 3] = "INT64";
- ScalarType[ScalarType["UINT64"] = 4] = "UINT64";
- // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
- // negative values are likely.
- ScalarType[ScalarType["INT32"] = 5] = "INT32";
- ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64";
- ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32";
- ScalarType[ScalarType["BOOL"] = 8] = "BOOL";
- ScalarType[ScalarType["STRING"] = 9] = "STRING";
- // Tag-delimited aggregate.
- // Group type is deprecated and not supported in proto3. However, Proto3
- // implementations should still be able to parse the group wire format and
- // treat group fields as unknown fields.
- // TYPE_GROUP = 10,
- // TYPE_MESSAGE = 11, // Length-delimited aggregate.
- // New in version 2.
- ScalarType[ScalarType["BYTES"] = 12] = "BYTES";
- ScalarType[ScalarType["UINT32"] = 13] = "UINT32";
- // TYPE_ENUM = 14,
- ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32";
- ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64";
- ScalarType[ScalarType["SINT32"] = 17] = "SINT32";
- ScalarType[ScalarType["SINT64"] = 18] = "SINT64";
-})(ScalarType = exports.ScalarType || (exports.ScalarType = {}));
-/**
- * JavaScript representation of 64 bit integral types. Equivalent to the
- * field option "jstype".
- *
- * By default, protobuf-ts represents 64 bit types as `bigint`.
- *
- * You can change the default behaviour by enabling the plugin parameter
- * `long_type_string`, which will represent 64 bit types as `string`.
- *
- * Alternatively, you can change the behaviour for individual fields
- * with the field option "jstype":
- *
- * ```protobuf
- * uint64 my_field = 1 [jstype = JS_STRING];
- * uint64 other_field = 2 [jstype = JS_NUMBER];
- * ```
- */
-var LongType;
-(function (LongType) {
- /**
- * Use JavaScript `bigint`.
- *
- * Field option `[jstype = JS_NORMAL]`.
- */
- LongType[LongType["BIGINT"] = 0] = "BIGINT";
- /**
- * Use JavaScript `string`.
- *
- * Field option `[jstype = JS_STRING]`.
- */
- LongType[LongType["STRING"] = 1] = "STRING";
- /**
- * Use JavaScript `number`.
- *
- * Large values will loose precision.
- *
- * Field option `[jstype = JS_NUMBER]`.
- */
- LongType[LongType["NUMBER"] = 2] = "NUMBER";
-})(LongType = exports.LongType || (exports.LongType = {}));
-/**
- * Protobuf 2.1.0 introduced packed repeated fields.
- * Setting the field option `[packed = true]` enables packing.
- *
- * In proto3, all repeated fields are packed by default.
- * Setting the field option `[packed = false]` disables packing.
- *
- * Packed repeated fields are encoded with a single tag,
- * then a length-delimiter, then the element values.
- *
- * Unpacked repeated fields are encoded with a tag and
- * value for each element.
- *
- * `bytes` and `string` cannot be packed.
- */
-var RepeatType;
-(function (RepeatType) {
- /**
- * The field is not repeated.
- */
- RepeatType[RepeatType["NO"] = 0] = "NO";
- /**
- * The field is repeated and should be packed.
- * Invalid for `bytes` and `string`, they cannot be packed.
- */
- RepeatType[RepeatType["PACKED"] = 1] = "PACKED";
- /**
- * The field is repeated but should not be packed.
- * The only valid repeat type for repeated `bytes` and `string`.
- */
- RepeatType[RepeatType["UNPACKED"] = 2] = "UNPACKED";
-})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));
-/**
- * Turns PartialFieldInfo into FieldInfo.
- */
-function normalizeFieldInfo(field) {
- var _a, _b, _c, _d;
- field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name);
- field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name);
- field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO;
- field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : (field.repeat ? false : field.oneof ? false : field.kind == "message");
- return field;
-}
-exports.normalizeFieldInfo = normalizeFieldInfo;
-/**
- * Read custom field options from a generated message type.
- *
- * @deprecated use readFieldOption()
- */
-function readFieldOptions(messageType, fieldName, extensionName, extensionType) {
- var _a;
- const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
- return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
-}
-exports.readFieldOptions = readFieldOptions;
-function readFieldOption(messageType, fieldName, extensionName, extensionType) {
- var _a;
- const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
- if (!options) {
- return undefined;
- }
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readFieldOption = readFieldOption;
-function readMessageOption(messageType, extensionName, extensionType) {
- const options = messageType.options;
- const optionVal = options[extensionName];
- if (optionVal === undefined) {
- return optionVal;
- }
- return extensionType ? extensionType.fromJson(optionVal) : optionVal;
-}
-exports.readMessageOption = readMessageOption;
-
-
-/***/ }),
-
-/***/ 229:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionJsonReader = void 0;
-const json_typings_1 = __nccwpck_require__(70661);
-const base64_1 = __nccwpck_require__(20196);
-const reflection_info_1 = __nccwpck_require__(21370);
-const pb_long_1 = __nccwpck_require__(47777);
-const assert_1 = __nccwpck_require__(54253);
-const reflection_long_convert_1 = __nccwpck_require__(24612);
-/**
- * Reads proto3 messages in canonical JSON format using reflection information.
- *
- * https://developers.google.com/protocol-buffers/docs/proto3#json
- */
-class ReflectionJsonReader {
- constructor(info) {
- this.info = info;
- }
- prepare() {
- var _a;
- if (this.fMap === undefined) {
- this.fMap = {};
- const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
- for (const field of fieldsInput) {
- this.fMap[field.name] = field;
- this.fMap[field.jsonName] = field;
- this.fMap[field.localName] = field;
- }
- }
- }
- // Cannot parse JSON for #.
- assert(condition, fieldName, jsonValue) {
- if (!condition) {
- let what = json_typings_1.typeofJsonValue(jsonValue);
- if (what == "number" || what == "boolean")
- what = jsonValue.toString();
- throw new Error(`Cannot parse JSON ${what} for ${this.info.typeName}#${fieldName}`);
- }
- }
- /**
- * Reads a message from canonical JSON format into the target message.
- *
- * Repeated fields are appended. Map entries are added, overwriting
- * existing keys.
- *
- * If a message field is already present, it will be merged with the
- * new data.
- */
- read(input, message, options) {
- this.prepare();
- const oneofsHandled = [];
- for (const [jsonKey, jsonValue] of Object.entries(input)) {
- const field = this.fMap[jsonKey];
- if (!field) {
- if (!options.ignoreUnknownFields)
- throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${jsonKey}`);
- continue;
- }
- const localName = field.localName;
- // handle oneof ADT
- let target; // this will be the target for the field value, whether it is member of a oneof or not
- if (field.oneof) {
- if (jsonValue === null && (field.kind !== 'enum' || field.T()[0] !== 'google.protobuf.NullValue')) {
- continue;
- }
- // since json objects are unordered by specification, it is not possible to take the last of multiple oneofs
- if (oneofsHandled.includes(field.oneof))
- throw new Error(`Multiple members of the oneof group "${field.oneof}" of ${this.info.typeName} are present in JSON.`);
- oneofsHandled.push(field.oneof);
- target = message[field.oneof] = {
- oneofKind: localName
- };
- }
- else {
- target = message;
- }
- // we have handled oneof above. we just have read the value into `target`.
- if (field.kind == 'map') {
- if (jsonValue === null) {
- continue;
- }
- // check input
- this.assert(json_typings_1.isJsonObject(jsonValue), field.name, jsonValue);
- // our target to put map entries into
- const fieldObj = target[localName];
- // read entries
- for (const [jsonObjKey, jsonObjValue] of Object.entries(jsonValue)) {
- this.assert(jsonObjValue !== null, field.name + " map value", null);
- // read value
- let val;
- switch (field.V.kind) {
- case "message":
- val = field.V.T().internalJsonRead(jsonObjValue, options);
- break;
- case "enum":
- val = this.enum(field.V.T(), jsonObjValue, field.name, options.ignoreUnknownFields);
- if (val === false)
- continue;
- break;
- case "scalar":
- val = this.scalar(jsonObjValue, field.V.T, field.V.L, field.name);
- break;
- }
- this.assert(val !== undefined, field.name + " map value", jsonObjValue);
- // read key
- let key = jsonObjKey;
- if (field.K == reflection_info_1.ScalarType.BOOL)
- key = key == "true" ? true : key == "false" ? false : key;
- key = this.scalar(key, field.K, reflection_info_1.LongType.STRING, field.name).toString();
- fieldObj[key] = val;
- }
- }
- else if (field.repeat) {
- if (jsonValue === null)
- continue;
- // check input
- this.assert(Array.isArray(jsonValue), field.name, jsonValue);
- // our target to put array entries into
- const fieldArr = target[localName];
- // read array entries
- for (const jsonItem of jsonValue) {
- this.assert(jsonItem !== null, field.name, null);
- let val;
- switch (field.kind) {
- case "message":
- val = field.T().internalJsonRead(jsonItem, options);
- break;
- case "enum":
- val = this.enum(field.T(), jsonItem, field.name, options.ignoreUnknownFields);
- if (val === false)
- continue;
- break;
- case "scalar":
- val = this.scalar(jsonItem, field.T, field.L, field.name);
- break;
- }
- this.assert(val !== undefined, field.name, jsonValue);
- fieldArr.push(val);
- }
- }
- else {
- switch (field.kind) {
- case "message":
- if (jsonValue === null && field.T().typeName != 'google.protobuf.Value') {
- this.assert(field.oneof === undefined, field.name + " (oneof member)", null);
- continue;
- }
- target[localName] = field.T().internalJsonRead(jsonValue, options, target[localName]);
- break;
- case "enum":
- let val = this.enum(field.T(), jsonValue, field.name, options.ignoreUnknownFields);
- if (val === false)
- continue;
- target[localName] = val;
- break;
- case "scalar":
- target[localName] = this.scalar(jsonValue, field.T, field.L, field.name);
- break;
- }
- }
- }
- }
- /**
- * Returns `false` for unrecognized string representations.
- *
- * google.protobuf.NullValue accepts only JSON `null` (or the old `"NULL_VALUE"`).
- */
- enum(type, json, fieldName, ignoreUnknownFields) {
- if (type[0] == 'google.protobuf.NullValue')
- assert_1.assert(json === null || json === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`);
- if (json === null)
- // we require 0 to be default value for all enums
- return 0;
- switch (typeof json) {
- case "number":
- assert_1.assert(Number.isInteger(json), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json}.`);
- return json;
- case "string":
- let localEnumName = json;
- if (type[2] && json.substring(0, type[2].length) === type[2])
- // lookup without the shared prefix
- localEnumName = json.substring(type[2].length);
- let enumNumber = type[1][localEnumName];
- if (typeof enumNumber === 'undefined' && ignoreUnknownFields) {
- return false;
- }
- assert_1.assert(typeof enumNumber == "number", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for "${json}".`);
- return enumNumber;
- }
- assert_1.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json}".`);
- }
- scalar(json, type, longType, fieldName) {
- let e;
- try {
- switch (type) {
- // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
- // Either numbers or strings are accepted. Exponent notation is also accepted.
- case reflection_info_1.ScalarType.DOUBLE:
- case reflection_info_1.ScalarType.FLOAT:
- if (json === null)
- return .0;
- if (json === "NaN")
- return Number.NaN;
- if (json === "Infinity")
- return Number.POSITIVE_INFINITY;
- if (json === "-Infinity")
- return Number.NEGATIVE_INFINITY;
- if (json === "") {
- e = "empty string";
- break;
- }
- if (typeof json == "string" && json.trim().length !== json.length) {
- e = "extra whitespace";
- break;
- }
- if (typeof json != "string" && typeof json != "number") {
- break;
- }
- let float = Number(json);
- if (Number.isNaN(float)) {
- e = "not a number";
- break;
- }
- if (!Number.isFinite(float)) {
- // infinity and -infinity are handled by string representation above, so this is an error
- e = "too large or small";
- break;
- }
- if (type == reflection_info_1.ScalarType.FLOAT)
- assert_1.assertFloat32(float);
- return float;
- // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- case reflection_info_1.ScalarType.UINT32:
- if (json === null)
- return 0;
- let int32;
- if (typeof json == "number")
- int32 = json;
- else if (json === "")
- e = "empty string";
- else if (typeof json == "string") {
- if (json.trim().length !== json.length)
- e = "extra whitespace";
- else
- int32 = Number(json);
- }
- if (int32 === undefined)
- break;
- if (type == reflection_info_1.ScalarType.UINT32)
- assert_1.assertUInt32(int32);
- else
- assert_1.assertInt32(int32);
- return int32;
- // int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- if (json === null)
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);
- if (typeof json != "number" && typeof json != "string")
- break;
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.from(json), longType);
- case reflection_info_1.ScalarType.FIXED64:
- case reflection_info_1.ScalarType.UINT64:
- if (json === null)
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);
- if (typeof json != "number" && typeof json != "string")
- break;
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.from(json), longType);
- // bool:
- case reflection_info_1.ScalarType.BOOL:
- if (json === null)
- return false;
- if (typeof json !== "boolean")
- break;
- return json;
- // string:
- case reflection_info_1.ScalarType.STRING:
- if (json === null)
- return "";
- if (typeof json !== "string") {
- e = "extra whitespace";
- break;
- }
- try {
- encodeURIComponent(json);
- }
- catch (e) {
- e = "invalid UTF8";
- break;
- }
- return json;
- // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
- // Either standard or URL-safe base64 encoding with/without paddings are accepted.
- case reflection_info_1.ScalarType.BYTES:
- if (json === null || json === "")
- return new Uint8Array(0);
- if (typeof json !== 'string')
- break;
- return base64_1.base64decode(json);
- }
- }
- catch (error) {
- e = error.message;
- }
- this.assert(false, fieldName + (e ? " - " + e : ""), json);
- }
-}
-exports.ReflectionJsonReader = ReflectionJsonReader;
-
-
-/***/ }),
-
-/***/ 68980:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionJsonWriter = void 0;
-const base64_1 = __nccwpck_require__(20196);
-const pb_long_1 = __nccwpck_require__(47777);
-const reflection_info_1 = __nccwpck_require__(21370);
-const assert_1 = __nccwpck_require__(54253);
-/**
- * Writes proto3 messages in canonical JSON format using reflection
- * information.
- *
- * https://developers.google.com/protocol-buffers/docs/proto3#json
- */
-class ReflectionJsonWriter {
- constructor(info) {
- var _a;
- this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];
- }
- /**
- * Converts the message to a JSON object, based on the field descriptors.
- */
- write(message, options) {
- const json = {}, source = message;
- for (const field of this.fields) {
- // field is not part of a oneof, simply write as is
- if (!field.oneof) {
- let jsonValue = this.field(field, source[field.localName], options);
- if (jsonValue !== undefined)
- json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;
- continue;
- }
- // field is part of a oneof
- const group = source[field.oneof];
- if (group.oneofKind !== field.localName)
- continue; // not selected, skip
- 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.assert(jsonValue !== undefined);
- json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;
- }
- return json;
- }
- field(field, value, options) {
- let jsonValue = undefined;
- if (field.kind == 'map') {
- assert_1.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.assert(val !== undefined);
- jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
- }
- break;
- case "message":
- const messageType = field.V.T();
- for (const [entryKey, entryValue] of Object.entries(value)) {
- const val = this.message(messageType, entryValue, field.name, options);
- assert_1.assert(val !== undefined);
- jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
- }
- break;
- case "enum":
- const enumInfo = field.V.T();
- for (const [entryKey, entryValue] of Object.entries(value)) {
- assert_1.assert(entryValue === undefined || typeof entryValue == 'number');
- const val = this.enum(enumInfo, entryValue, field.name, false, true, options.enumAsInteger);
- assert_1.assert(val !== undefined);
- jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key
- }
- break;
- }
- if (options.emitDefaultValues || Object.keys(jsonObj).length > 0)
- jsonValue = jsonObj;
- }
- else if (field.repeat) {
- assert_1.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.assert(val !== undefined);
- jsonArr.push(val);
- }
- break;
- case "enum":
- const enumInfo = field.T();
- for (let i = 0; i < value.length; i++) {
- assert_1.assert(value[i] === undefined || typeof value[i] == 'number');
- const val = this.enum(enumInfo, value[i], field.name, field.opt, true, options.enumAsInteger);
- assert_1.assert(val !== undefined);
- jsonArr.push(val);
- }
- break;
- case "message":
- const messageType = field.T();
- for (let i = 0; i < value.length; i++) {
- const val = this.message(messageType, value[i], field.name, options);
- assert_1.assert(val !== undefined);
- jsonArr.push(val);
- }
- break;
- }
- // add converted array to json output
- if (options.emitDefaultValues || jsonArr.length > 0 || options.emitDefaultValues)
- jsonValue = jsonArr;
- }
- else {
- switch (field.kind) {
- case "scalar":
- jsonValue = this.scalar(field.T, value, field.name, field.opt, options.emitDefaultValues);
- break;
- case "enum":
- jsonValue = this.enum(field.T(), value, field.name, field.opt, options.emitDefaultValues, options.enumAsInteger);
- break;
- case "message":
- jsonValue = this.message(field.T(), value, field.name, options);
- break;
- }
- }
- return jsonValue;
- }
- /**
- * Returns `null` as the default for google.protobuf.NullValue.
- */
- enum(type, value, fieldName, optional, emitDefaultValues, enumAsInteger) {
- if (type[0] == 'google.protobuf.NullValue')
- return !emitDefaultValues && !optional ? undefined : null;
- if (value === undefined) {
- assert_1.assert(optional);
- return undefined;
- }
- if (value === 0 && !emitDefaultValues && !optional)
- // we require 0 to be default value for all enums
- return undefined;
- assert_1.assert(typeof value == 'number');
- assert_1.assert(Number.isInteger(value));
- if (enumAsInteger || !type[1].hasOwnProperty(value))
- // if we don't now the enum value, just return the number
- return value;
- if (type[2])
- // restore the dropped prefix
- return type[2] + type[1][value];
- return type[1][value];
- }
- message(type, value, fieldName, options) {
- if (value === undefined)
- return options.emitDefaultValues ? null : undefined;
- return type.internalJsonWrite(value, options);
- }
- scalar(type, value, fieldName, optional, emitDefaultValues) {
- if (value === undefined) {
- assert_1.assert(optional);
- return undefined;
- }
- const ed = emitDefaultValues || optional;
- // noinspection FallThroughInSwitchStatementJS
- switch (type) {
- // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- if (value === 0)
- return ed ? 0 : undefined;
- assert_1.assertInt32(value);
- return value;
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.UINT32:
- if (value === 0)
- return ed ? 0 : undefined;
- assert_1.assertUInt32(value);
- return value;
- // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
- // Either numbers or strings are accepted. Exponent notation is also accepted.
- case reflection_info_1.ScalarType.FLOAT:
- assert_1.assertFloat32(value);
- case reflection_info_1.ScalarType.DOUBLE:
- if (value === 0)
- return ed ? 0 : undefined;
- assert_1.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;
- // string:
- case reflection_info_1.ScalarType.STRING:
- if (value === "")
- return ed ? '' : undefined;
- assert_1.assert(typeof value == 'string');
- return value;
- // bool:
- case reflection_info_1.ScalarType.BOOL:
- if (value === false)
- return ed ? false : undefined;
- assert_1.assert(typeof value == 'boolean');
- return value;
- // JSON value will be a decimal string. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.UINT64:
- case reflection_info_1.ScalarType.FIXED64:
- assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');
- let ulong = pb_long_1.PbULong.from(value);
- if (ulong.isZero() && !ed)
- return undefined;
- return ulong.toString();
- // JSON value will be a decimal string. Either numbers or strings are accepted.
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');
- let long = pb_long_1.PbLong.from(value);
- if (long.isZero() && !ed)
- return undefined;
- return long.toString();
- // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
- // Either standard or URL-safe base64 encoding with/without paddings are accepted.
- case reflection_info_1.ScalarType.BYTES:
- assert_1.assert(value instanceof Uint8Array);
- if (!value.byteLength)
- return ed ? "" : undefined;
- return base64_1.base64encode(value);
- }
- }
-}
-exports.ReflectionJsonWriter = ReflectionJsonWriter;
-
-
-/***/ }),
-
-/***/ 24612:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionLongConvert = void 0;
-const reflection_info_1 = __nccwpck_require__(21370);
-/**
- * Utility method to convert a PbLong or PbUlong to a JavaScript
- * representation during runtime.
- *
- * Works with generated field information, `undefined` is equivalent
- * to `STRING`.
- */
-function reflectionLongConvert(long, type) {
- switch (type) {
- case reflection_info_1.LongType.BIGINT:
- return long.toBigInt();
- case reflection_info_1.LongType.NUMBER:
- return long.toNumber();
- default:
- // case undefined:
- // case LongType.STRING:
- return long.toString();
- }
-}
-exports.reflectionLongConvert = reflectionLongConvert;
-
-
-/***/ }),
-
-/***/ 7869:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionMergePartial = void 0;
-/**
- * Copy partial data into the target message.
- *
- * If a singular scalar or enum field is present in the source, it
- * replaces the field in the target.
- *
- * If a singular message field is present in the source, it is merged
- * with the target field by calling mergePartial() of the responsible
- * message type.
- *
- * If a repeated field is present in the source, its values replace
- * all values in the target array, removing extraneous values.
- * Repeated message fields are copied, not merged.
- *
- * If a map field is present in the source, entries are added to the
- * target map, replacing entries with the same key. Entries that only
- * exist in the target remain. Entries with message values are copied,
- * not merged.
- *
- * Note that this function differs from protobuf merge semantics,
- * which appends repeated fields.
- */
-function reflectionMergePartial(info, target, source) {
- let fieldValue, // the field value we are working with
- input = source, output; // where we want our field value to go
- for (let field of info.fields) {
- let name = field.localName;
- if (field.oneof) {
- const group = input[field.oneof]; // this is the oneof`s group in the source
- if ((group === null || group === void 0 ? void 0 : group.oneofKind) == undefined) { // the user is free to omit
- continue; // we skip this field, and all other members too
- }
- fieldValue = group[name]; // our value comes from the the oneof group of the source
- output = target[field.oneof]; // and our output is the oneof group of the target
- output.oneofKind = group.oneofKind; // always update discriminator
- if (fieldValue == undefined) {
- delete output[name]; // remove any existing value
- continue; // skip further work on field
- }
- }
- else {
- fieldValue = input[name]; // we are using the source directly
- output = target; // we want our field value to go directly into the target
- if (fieldValue == undefined) {
- continue; // skip further work on field, existing value is used as is
- }
- }
- if (field.repeat)
- output[name].length = fieldValue.length; // resize target array to match source array
- // now we just work with `fieldValue` and `output` to merge the value
- switch (field.kind) {
- case "scalar":
- case "enum":
- if (field.repeat)
- for (let i = 0; i < fieldValue.length; i++)
- output[name][i] = fieldValue[i]; // not a reference type
- else
- output[name] = fieldValue; // not a reference type
- break;
- case "message":
- let T = field.T();
- if (field.repeat)
- for (let i = 0; i < fieldValue.length; i++)
- output[name][i] = T.create(fieldValue[i]);
- else if (output[name] === undefined)
- output[name] = T.create(fieldValue); // nothing to merge with
- else
- T.mergePartial(output[name], fieldValue);
- break;
- case "map":
- // Map and repeated fields are simply overwritten, not appended or merged
- switch (field.V.kind) {
- case "scalar":
- case "enum":
- Object.assign(output[name], fieldValue); // elements are not reference types
- break;
- case "message":
- let T = field.V.T();
- for (let k of Object.keys(fieldValue))
- output[name][k] = T.create(fieldValue[k]);
- break;
- }
- break;
- }
- }
-}
-exports.reflectionMergePartial = reflectionMergePartial;
-
-
-/***/ }),
-
-/***/ 74863:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.reflectionScalarDefault = void 0;
-const reflection_info_1 = __nccwpck_require__(21370);
-const reflection_long_convert_1 = __nccwpck_require__(24612);
-const pb_long_1 = __nccwpck_require__(47777);
-/**
- * Creates the default value for a scalar type.
- */
-function reflectionScalarDefault(type, longType = reflection_info_1.LongType.STRING) {
- switch (type) {
- case reflection_info_1.ScalarType.BOOL:
- return false;
- case reflection_info_1.ScalarType.UINT64:
- case reflection_info_1.ScalarType.FIXED64:
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);
- case reflection_info_1.ScalarType.DOUBLE:
- case reflection_info_1.ScalarType.FLOAT:
- return 0.0;
- case reflection_info_1.ScalarType.BYTES:
- return new Uint8Array(0);
- case reflection_info_1.ScalarType.STRING:
- return "";
- default:
- // case ScalarType.INT32:
- // case ScalarType.UINT32:
- // case ScalarType.SINT32:
- // case ScalarType.FIXED32:
- // case ScalarType.SFIXED32:
- return 0;
- }
-}
-exports.reflectionScalarDefault = reflectionScalarDefault;
-
-
-/***/ }),
-
-/***/ 20903:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ReflectionTypeCheck = void 0;
-const reflection_info_1 = __nccwpck_require__(21370);
-const oneof_1 = __nccwpck_require__(78531);
-// noinspection JSMethodCanBeStatic
-class ReflectionTypeCheck {
- constructor(info) {
- var _a;
- this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];
- }
- prepare() {
- if (this.data)
- return;
- const req = [], known = [], oneofs = [];
- for (let field of this.fields) {
- if (field.oneof) {
- if (!oneofs.includes(field.oneof)) {
- oneofs.push(field.oneof);
- req.push(field.oneof);
- known.push(field.oneof);
- }
- }
- else {
- known.push(field.localName);
- switch (field.kind) {
- case "scalar":
- case "enum":
- if (!field.opt || field.repeat)
- req.push(field.localName);
- break;
- case "message":
- if (field.repeat)
- req.push(field.localName);
- break;
- case "map":
- req.push(field.localName);
- break;
- }
- }
- }
- this.data = { req, known, oneofs: Object.values(oneofs) };
- }
- /**
- * Is the argument a valid message as specified by the
- * reflection information?
- *
- * Checks all field types recursively. The `depth`
- * specifies how deep into the structure the check will be.
- *
- * With a depth of 0, only the presence of fields
- * is checked.
- *
- * With a depth of 1 or more, the field types are checked.
- *
- * With a depth of 2 or more, the members of map, repeated
- * and message fields are checked.
- *
- * Message fields will be checked recursively with depth - 1.
- *
- * The number of map entries / repeated values being checked
- * is < depth.
- */
- is(message, depth, allowExcessProperties = false) {
- if (depth < 0)
- return true;
- if (message === null || message === undefined || typeof message != 'object')
- return false;
- this.prepare();
- let keys = Object.keys(message), data = this.data;
- // if a required field is missing in arg, this cannot be a T
- if (keys.length < data.req.length || data.req.some(n => !keys.includes(n)))
- return false;
- if (!allowExcessProperties) {
- // if the arg contains a key we dont know, this is not a literal T
- if (keys.some(k => !data.known.includes(k)))
- return false;
- }
- // "With a depth of 0, only the presence and absence of fields is checked."
- // "With a depth of 1 or more, the field types are checked."
- if (depth < 1) {
- return true;
- }
- // check oneof group
- for (const name of data.oneofs) {
- const group = message[name];
- if (!oneof_1.isOneofGroup(group))
- return false;
- if (group.oneofKind === undefined)
- continue;
- const field = this.fields.find(f => f.localName === group.oneofKind);
- if (!field)
- return false; // we found no field, but have a kind, something is wrong
- if (!this.field(group[group.oneofKind], field, allowExcessProperties, depth))
- return false;
- }
- // check types
- for (const field of this.fields) {
- if (field.oneof !== undefined)
- continue;
- if (!this.field(message[field.localName], field, allowExcessProperties, depth))
- return false;
- }
- return true;
- }
- field(arg, field, allowExcessProperties, depth) {
- let repeated = field.repeat;
- switch (field.kind) {
- case "scalar":
- if (arg === undefined)
- return field.opt;
- if (repeated)
- return this.scalars(arg, field.T, depth, field.L);
- return this.scalar(arg, field.T, field.L);
- case "enum":
- if (arg === undefined)
- return field.opt;
- if (repeated)
- return this.scalars(arg, reflection_info_1.ScalarType.INT32, depth);
- return this.scalar(arg, reflection_info_1.ScalarType.INT32);
- case "message":
- if (arg === undefined)
- return true;
- if (repeated)
- return this.messages(arg, field.T(), allowExcessProperties, depth);
- return this.message(arg, field.T(), allowExcessProperties, depth);
- case "map":
- if (typeof arg != 'object' || arg === null)
- return false;
- if (depth < 2)
- return true;
- if (!this.mapKeys(arg, field.K, depth))
- return false;
- switch (field.V.kind) {
- case "scalar":
- return this.scalars(Object.values(arg), field.V.T, depth, field.V.L);
- case "enum":
- return this.scalars(Object.values(arg), reflection_info_1.ScalarType.INT32, depth);
- case "message":
- return this.messages(Object.values(arg), field.V.T(), allowExcessProperties, depth);
- }
- break;
- }
- return true;
- }
- message(arg, type, allowExcessProperties, depth) {
- if (allowExcessProperties) {
- return type.isAssignable(arg, depth);
- }
- return type.is(arg, depth);
- }
- messages(arg, type, allowExcessProperties, depth) {
- if (!Array.isArray(arg))
- return false;
- if (depth < 2)
- return true;
- if (allowExcessProperties) {
- for (let i = 0; i < arg.length && i < depth; i++)
- if (!type.isAssignable(arg[i], depth - 1))
- return false;
- }
- else {
- for (let i = 0; i < arg.length && i < depth; i++)
- if (!type.is(arg[i], depth - 1))
- return false;
- }
- return true;
- }
- scalar(arg, type, longType) {
- let argType = typeof arg;
- switch (type) {
- case reflection_info_1.ScalarType.UINT64:
- case reflection_info_1.ScalarType.FIXED64:
- case reflection_info_1.ScalarType.INT64:
- case reflection_info_1.ScalarType.SFIXED64:
- case reflection_info_1.ScalarType.SINT64:
- switch (longType) {
- case reflection_info_1.LongType.BIGINT:
- return argType == "bigint";
- case reflection_info_1.LongType.NUMBER:
- return argType == "number" && !isNaN(arg);
- default:
- return argType == "string";
- }
- case reflection_info_1.ScalarType.BOOL:
- return argType == 'boolean';
- case reflection_info_1.ScalarType.STRING:
- return argType == 'string';
- case reflection_info_1.ScalarType.BYTES:
- return arg instanceof Uint8Array;
- case reflection_info_1.ScalarType.DOUBLE:
- case reflection_info_1.ScalarType.FLOAT:
- return argType == 'number' && !isNaN(arg);
- default:
- // case ScalarType.UINT32:
- // case ScalarType.FIXED32:
- // case ScalarType.INT32:
- // case ScalarType.SINT32:
- // case ScalarType.SFIXED32:
- return argType == 'number' && Number.isInteger(arg);
- }
- }
- scalars(arg, type, depth, longType) {
- if (!Array.isArray(arg))
- return false;
- if (depth < 2)
- return true;
- if (Array.isArray(arg))
- for (let i = 0; i < arg.length && i < depth; i++)
- if (!this.scalar(arg[i], type, longType))
- return false;
- return true;
- }
- mapKeys(map, type, depth) {
- let keys = Object.keys(map);
- switch (type) {
- case reflection_info_1.ScalarType.INT32:
- case reflection_info_1.ScalarType.FIXED32:
- case reflection_info_1.ScalarType.SFIXED32:
- case reflection_info_1.ScalarType.SINT32:
- case reflection_info_1.ScalarType.UINT32:
- return this.scalars(keys.slice(0, depth).map(k => parseInt(k)), type, depth);
- case reflection_info_1.ScalarType.BOOL:
- return this.scalars(keys.slice(0, depth).map(k => k == 'true' ? true : k == 'false' ? false : k), type, depth);
- default:
- return this.scalars(keys, type, depth, reflection_info_1.LongType.STRING);
- }
- }
-}
-exports.ReflectionTypeCheck = ReflectionTypeCheck;
-
-
-/***/ }),
-
-/***/ 14812:
+/***/ 6284:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
module.exports =
{
parallel : __nccwpck_require__(8210),
- serial : __nccwpck_require__(50445),
+ serial : __nccwpck_require__(445),
serialOrdered : __nccwpck_require__(3578)
};
@@ -57730,10 +51089,10 @@ function clean(key)
/***/ }),
-/***/ 72794:
+/***/ 2794:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var defer = __nccwpck_require__(15295);
+var defer = __nccwpck_require__(5295);
// API
module.exports = async;
@@ -57771,7 +51130,7 @@ function async(callback)
/***/ }),
-/***/ 15295:
+/***/ 5295:
/***/ ((module) => {
module.exports = defer;
@@ -57807,7 +51166,7 @@ function defer(fn)
/***/ 9023:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var async = __nccwpck_require__(72794)
+var async = __nccwpck_require__(2794)
, abort = __nccwpck_require__(1700)
;
@@ -57886,7 +51245,7 @@ function runJob(iterator, key, item, callback)
/***/ }),
-/***/ 42474:
+/***/ 2474:
/***/ ((module) => {
// API
@@ -57930,11 +51289,11 @@ function state(list, sortMethod)
/***/ }),
-/***/ 37942:
+/***/ 7942:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var abort = __nccwpck_require__(1700)
- , async = __nccwpck_require__(72794)
+ , async = __nccwpck_require__(2794)
;
// API
@@ -57970,8 +51329,8 @@ function terminator(callback)
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var iterate = __nccwpck_require__(9023)
- , initState = __nccwpck_require__(42474)
- , terminator = __nccwpck_require__(37942)
+ , initState = __nccwpck_require__(2474)
+ , terminator = __nccwpck_require__(7942)
;
// Public API
@@ -58016,7 +51375,7 @@ function parallel(list, iterator, callback)
/***/ }),
-/***/ 50445:
+/***/ 445:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var serialOrdered = __nccwpck_require__(3578);
@@ -58044,8 +51403,8 @@ function serial(list, iterator, callback)
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var iterate = __nccwpck_require__(9023)
- , initState = __nccwpck_require__(42474)
- , terminator = __nccwpck_require__(37942)
+ , initState = __nccwpck_require__(2474)
+ , terminator = __nccwpck_require__(7942)
;
// Public API
@@ -58192,10 +51551,10 @@ function range(a, b, str) {
/***/ }),
-/***/ 83682:
+/***/ 3682:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var register = __nccwpck_require__(44670);
+var register = __nccwpck_require__(4670);
var addHook = __nccwpck_require__(5549);
var removeHook = __nccwpck_require__(6819);
@@ -58313,7 +51672,7 @@ function addHook(state, kind, name, hook) {
/***/ }),
-/***/ 44670:
+/***/ 4670:
/***/ ((module) => {
module.exports = register;
@@ -58373,10 +51732,10 @@ function removeHook(state, name, method) {
/***/ }),
-/***/ 33717:
+/***/ 3717:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var concatMap = __nccwpck_require__(86891);
+var concatMap = __nccwpck_require__(6891);
var balanced = __nccwpck_require__(9417);
module.exports = expandTop;
@@ -58581,12 +51940,12 @@ function expand(str, isTop) {
/***/ }),
-/***/ 85443:
+/***/ 5443:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var util = __nccwpck_require__(73837);
-var Stream = (__nccwpck_require__(12781).Stream);
-var DelayedStream = __nccwpck_require__(18611);
+var util = __nccwpck_require__(3837);
+var Stream = (__nccwpck_require__(2781).Stream);
+var DelayedStream = __nccwpck_require__(8611);
module.exports = CombinedStream;
function CombinedStream() {
@@ -58796,7 +52155,7 @@ CombinedStream.prototype._emitError = function(err) {
/***/ }),
-/***/ 86891:
+/***/ 6891:
/***/ ((module) => {
module.exports = function (xs, fn) {
@@ -58816,11 +52175,11 @@ var isArray = Array.isArray || function (xs) {
/***/ }),
-/***/ 18611:
+/***/ 8611:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var Stream = (__nccwpck_require__(12781).Stream);
-var util = __nccwpck_require__(73837);
+var Stream = (__nccwpck_require__(2781).Stream);
+var util = __nccwpck_require__(3837);
module.exports = DelayedStream;
function DelayedStream() {
@@ -58930,7 +52289,7 @@ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
/***/ }),
-/***/ 58932:
+/***/ 8932:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -58958,600 +52317,7 @@ exports.Deprecation = Deprecation;
/***/ }),
-/***/ 13598:
-/***/ ((module) => {
-
-"use strict";
-
-
-function _process (v, mod) {
- var i
- var r
-
- if (typeof mod === 'function') {
- r = mod(v)
- if (r !== undefined) {
- v = r
- }
- } else if (Array.isArray(mod)) {
- for (i = 0; i < mod.length; i++) {
- r = mod[i](v)
- if (r !== undefined) {
- v = r
- }
- }
- }
-
- return v
-}
-
-function parseKey (key, val) {
- // detect negative index notation
- if (key[0] === '-' && Array.isArray(val) && /^-\d+$/.test(key)) {
- return val.length + parseInt(key, 10)
- }
- return key
-}
-
-function isIndex (k) {
- return /^\d+$/.test(k)
-}
-
-function isObject (val) {
- return Object.prototype.toString.call(val) === '[object Object]'
-}
-
-function isArrayOrObject (val) {
- return Object(val) === val
-}
-
-function isEmptyObject (val) {
- return Object.keys(val).length === 0
-}
-
-var blacklist = ['__proto__', 'prototype', 'constructor']
-var blacklistFilter = function (part) { return blacklist.indexOf(part) === -1 }
-
-function parsePath (path, sep) {
- if (path.indexOf('[') >= 0) {
- path = path.replace(/\[/g, sep).replace(/]/g, '')
- }
-
- var parts = path.split(sep)
-
- var check = parts.filter(blacklistFilter)
-
- if (check.length !== parts.length) {
- throw Error('Refusing to update blacklisted property ' + path)
- }
-
- return parts
-}
-
-var hasOwnProperty = Object.prototype.hasOwnProperty
-
-function DotObject (separator, override, useArray, useBrackets) {
- if (!(this instanceof DotObject)) {
- return new DotObject(separator, override, useArray, useBrackets)
- }
-
- if (typeof override === 'undefined') override = false
- if (typeof useArray === 'undefined') useArray = true
- if (typeof useBrackets === 'undefined') useBrackets = true
- this.separator = separator || '.'
- this.override = override
- this.useArray = useArray
- this.useBrackets = useBrackets
- this.keepArray = false
-
- // contains touched arrays
- this.cleanup = []
-}
-
-var dotDefault = new DotObject('.', false, true, true)
-function wrap (method) {
- return function () {
- return dotDefault[method].apply(dotDefault, arguments)
- }
-}
-
-DotObject.prototype._fill = function (a, obj, v, mod) {
- var k = a.shift()
-
- if (a.length > 0) {
- obj[k] = obj[k] || (this.useArray && isIndex(a[0]) ? [] : {})
-
- if (!isArrayOrObject(obj[k])) {
- if (this.override) {
- obj[k] = {}
- } else {
- if (!(isArrayOrObject(v) && isEmptyObject(v))) {
- throw new Error(
- 'Trying to redefine `' + k + '` which is a ' + typeof obj[k]
- )
- }
-
- return
- }
- }
-
- this._fill(a, obj[k], v, mod)
- } else {
- if (!this.override && isArrayOrObject(obj[k]) && !isEmptyObject(obj[k])) {
- if (!(isArrayOrObject(v) && isEmptyObject(v))) {
- throw new Error("Trying to redefine non-empty obj['" + k + "']")
- }
-
- return
- }
-
- obj[k] = _process(v, mod)
- }
-}
-
-/**
- *
- * Converts an object with dotted-key/value pairs to it's expanded version
- *
- * Optionally transformed by a set of modifiers.
- *
- * Usage:
- *
- * var row = {
- * 'nr': 200,
- * 'doc.name': ' My Document '
- * }
- *
- * var mods = {
- * 'doc.name': [_s.trim, _s.underscored]
- * }
- *
- * dot.object(row, mods)
- *
- * @param {Object} obj
- * @param {Object} mods
- */
-DotObject.prototype.object = function (obj, mods) {
- var self = this
-
- Object.keys(obj).forEach(function (k) {
- var mod = mods === undefined ? null : mods[k]
- // normalize array notation.
- var ok = parsePath(k, self.separator).join(self.separator)
-
- if (ok.indexOf(self.separator) !== -1) {
- self._fill(ok.split(self.separator), obj, obj[k], mod)
- delete obj[k]
- } else {
- obj[k] = _process(obj[k], mod)
- }
- })
-
- return obj
-}
-
-/**
- * @param {String} path dotted path
- * @param {String} v value to be set
- * @param {Object} obj object to be modified
- * @param {Function|Array} mod optional modifier
- */
-DotObject.prototype.str = function (path, v, obj, mod) {
- var ok = parsePath(path, this.separator).join(this.separator)
-
- if (path.indexOf(this.separator) !== -1) {
- this._fill(ok.split(this.separator), obj, v, mod)
- } else {
- obj[path] = _process(v, mod)
- }
-
- return obj
-}
-
-/**
- *
- * Pick a value from an object using dot notation.
- *
- * Optionally remove the value
- *
- * @param {String} path
- * @param {Object} obj
- * @param {Boolean} remove
- */
-DotObject.prototype.pick = function (path, obj, remove, reindexArray) {
- var i
- var keys
- var val
- var key
- var cp
-
- keys = parsePath(path, this.separator)
- for (i = 0; i < keys.length; i++) {
- key = parseKey(keys[i], obj)
- if (obj && typeof obj === 'object' && key in obj) {
- if (i === keys.length - 1) {
- if (remove) {
- val = obj[key]
- if (reindexArray && Array.isArray(obj)) {
- obj.splice(key, 1)
- } else {
- delete obj[key]
- }
- if (Array.isArray(obj)) {
- cp = keys.slice(0, -1).join('.')
- if (this.cleanup.indexOf(cp) === -1) {
- this.cleanup.push(cp)
- }
- }
- return val
- } else {
- return obj[key]
- }
- } else {
- obj = obj[key]
- }
- } else {
- return undefined
- }
- }
- if (remove && Array.isArray(obj)) {
- obj = obj.filter(function (n) {
- return n !== undefined
- })
- }
- return obj
-}
-/**
- *
- * Delete value from an object using dot notation.
- *
- * @param {String} path
- * @param {Object} obj
- * @return {any} The removed value
- */
-DotObject.prototype.delete = function (path, obj) {
- return this.remove(path, obj, true)
-}
-
-/**
- *
- * Remove value from an object using dot notation.
- *
- * Will remove multiple items if path is an array.
- * In this case array indexes will be retained until all
- * removals have been processed.
- *
- * Use dot.delete() to automatically re-index arrays.
- *
- * @param {String|Array} path
- * @param {Object} obj
- * @param {Boolean} reindexArray
- * @return {any} The removed value
- */
-DotObject.prototype.remove = function (path, obj, reindexArray) {
- var i
-
- this.cleanup = []
- if (Array.isArray(path)) {
- for (i = 0; i < path.length; i++) {
- this.pick(path[i], obj, true, reindexArray)
- }
- if (!reindexArray) {
- this._cleanup(obj)
- }
- return obj
- } else {
- return this.pick(path, obj, true, reindexArray)
- }
-}
-
-DotObject.prototype._cleanup = function (obj) {
- var ret
- var i
- var keys
- var root
- if (this.cleanup.length) {
- for (i = 0; i < this.cleanup.length; i++) {
- keys = this.cleanup[i].split('.')
- root = keys.splice(0, -1).join('.')
- ret = root ? this.pick(root, obj) : obj
- ret = ret[keys[0]].filter(function (v) {
- return v !== undefined
- })
- this.set(this.cleanup[i], ret, obj)
- }
- this.cleanup = []
- }
-}
-
-/**
- * Alias method for `dot.remove`
- *
- * Note: this is not an alias for dot.delete()
- *
- * @param {String|Array} path
- * @param {Object} obj
- * @param {Boolean} reindexArray
- * @return {any} The removed value
- */
-DotObject.prototype.del = DotObject.prototype.remove
-
-/**
- *
- * Move a property from one place to the other.
- *
- * If the source path does not exist (undefined)
- * the target property will not be set.
- *
- * @param {String} source
- * @param {String} target
- * @param {Object} obj
- * @param {Function|Array} mods
- * @param {Boolean} merge
- */
-DotObject.prototype.move = function (source, target, obj, mods, merge) {
- if (typeof mods === 'function' || Array.isArray(mods)) {
- this.set(target, _process(this.pick(source, obj, true), mods), obj, merge)
- } else {
- merge = mods
- this.set(target, this.pick(source, obj, true), obj, merge)
- }
-
- return obj
-}
-
-/**
- *
- * Transfer a property from one object to another object.
- *
- * If the source path does not exist (undefined)
- * the property on the other object will not be set.
- *
- * @param {String} source
- * @param {String} target
- * @param {Object} obj1
- * @param {Object} obj2
- * @param {Function|Array} mods
- * @param {Boolean} merge
- */
-DotObject.prototype.transfer = function (
- source,
- target,
- obj1,
- obj2,
- mods,
- merge
-) {
- if (typeof mods === 'function' || Array.isArray(mods)) {
- this.set(
- target,
- _process(this.pick(source, obj1, true), mods),
- obj2,
- merge
- )
- } else {
- merge = mods
- this.set(target, this.pick(source, obj1, true), obj2, merge)
- }
-
- return obj2
-}
-
-/**
- *
- * Copy a property from one object to another object.
- *
- * If the source path does not exist (undefined)
- * the property on the other object will not be set.
- *
- * @param {String} source
- * @param {String} target
- * @param {Object} obj1
- * @param {Object} obj2
- * @param {Function|Array} mods
- * @param {Boolean} merge
- */
-DotObject.prototype.copy = function (source, target, obj1, obj2, mods, merge) {
- if (typeof mods === 'function' || Array.isArray(mods)) {
- this.set(
- target,
- _process(
- // clone what is picked
- JSON.parse(JSON.stringify(this.pick(source, obj1, false))),
- mods
- ),
- obj2,
- merge
- )
- } else {
- merge = mods
- this.set(target, this.pick(source, obj1, false), obj2, merge)
- }
-
- return obj2
-}
-
-/**
- *
- * Set a property on an object using dot notation.
- *
- * @param {String} path
- * @param {any} val
- * @param {Object} obj
- * @param {Boolean} merge
- */
-DotObject.prototype.set = function (path, val, obj, merge) {
- var i
- var k
- var keys
- var key
-
- // Do not operate if the value is undefined.
- if (typeof val === 'undefined') {
- return obj
- }
- keys = parsePath(path, this.separator)
-
- for (i = 0; i < keys.length; i++) {
- key = keys[i]
- if (i === keys.length - 1) {
- if (merge && isObject(val) && isObject(obj[key])) {
- for (k in val) {
- if (hasOwnProperty.call(val, k)) {
- obj[key][k] = val[k]
- }
- }
- } else if (merge && Array.isArray(obj[key]) && Array.isArray(val)) {
- for (var j = 0; j < val.length; j++) {
- obj[keys[i]].push(val[j])
- }
- } else {
- obj[key] = val
- }
- } else if (
- // force the value to be an object
- !hasOwnProperty.call(obj, key) ||
- (!isObject(obj[key]) && !Array.isArray(obj[key]))
- ) {
- // initialize as array if next key is numeric
- if (/^\d+$/.test(keys[i + 1])) {
- obj[key] = []
- } else {
- obj[key] = {}
- }
- }
- obj = obj[key]
- }
- return obj
-}
-
-/**
- *
- * Transform an object
- *
- * Usage:
- *
- * var obj = {
- * "id": 1,
- * "some": {
- * "thing": "else"
- * }
- * }
- *
- * var transform = {
- * "id": "nr",
- * "some.thing": "name"
- * }
- *
- * var tgt = dot.transform(transform, obj)
- *
- * @param {Object} recipe Transform recipe
- * @param {Object} obj Object to be transformed
- * @param {Array} mods modifiers for the target
- */
-DotObject.prototype.transform = function (recipe, obj, tgt) {
- obj = obj || {}
- tgt = tgt || {}
- Object.keys(recipe).forEach(
- function (key) {
- this.set(recipe[key], this.pick(key, obj), tgt)
- }.bind(this)
- )
- return tgt
-}
-
-/**
- *
- * Convert object to dotted-key/value pair
- *
- * Usage:
- *
- * var tgt = dot.dot(obj)
- *
- * or
- *
- * var tgt = {}
- * dot.dot(obj, tgt)
- *
- * @param {Object} obj source object
- * @param {Object} tgt target object
- * @param {Array} path path array (internal)
- */
-DotObject.prototype.dot = function (obj, tgt, path) {
- tgt = tgt || {}
- path = path || []
- var isArray = Array.isArray(obj)
-
- Object.keys(obj).forEach(
- function (key) {
- var index = isArray && this.useBrackets ? '[' + key + ']' : key
- if (
- isArrayOrObject(obj[key]) &&
- ((isObject(obj[key]) && !isEmptyObject(obj[key])) ||
- (Array.isArray(obj[key]) && !this.keepArray && obj[key].length !== 0))
- ) {
- if (isArray && this.useBrackets) {
- var previousKey = path[path.length - 1] || ''
- return this.dot(
- obj[key],
- tgt,
- path.slice(0, -1).concat(previousKey + index)
- )
- } else {
- return this.dot(obj[key], tgt, path.concat(index))
- }
- } else {
- if (isArray && this.useBrackets) {
- tgt[path.join(this.separator).concat('[' + key + ']')] = obj[key]
- } else {
- tgt[path.concat(index).join(this.separator)] = obj[key]
- }
- }
- }.bind(this)
- )
- return tgt
-}
-
-DotObject.pick = wrap('pick')
-DotObject.move = wrap('move')
-DotObject.transfer = wrap('transfer')
-DotObject.transform = wrap('transform')
-DotObject.copy = wrap('copy')
-DotObject.object = wrap('object')
-DotObject.str = wrap('str')
-DotObject.set = wrap('set')
-DotObject.delete = wrap('delete')
-DotObject.del = DotObject.remove = wrap('remove')
-DotObject.dot = wrap('dot');
-['override', 'overwrite'].forEach(function (prop) {
- Object.defineProperty(DotObject, prop, {
- get: function () {
- return dotDefault.override
- },
- set: function (val) {
- dotDefault.override = !!val
- }
- })
-});
-['useArray', 'keepArray', 'useBrackets'].forEach(function (prop) {
- Object.defineProperty(DotObject, prop, {
- get: function () {
- return dotDefault[prop]
- },
- set: function (val) {
- dotDefault[prop] = val
- }
- })
-})
-
-DotObject._process = _process
-
-module.exports = DotObject
-
-
-/***/ }),
-
-/***/ 47426:
+/***/ 7426:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
/*!
@@ -59565,12 +52331,12 @@ module.exports = DotObject
* Module exports.
*/
-module.exports = __nccwpck_require__(53765)
+module.exports = __nccwpck_require__(3765)
/***/ }),
-/***/ 43583:
+/***/ 3583:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -59588,8 +52354,8 @@ module.exports = __nccwpck_require__(53765)
* @private
*/
-var db = __nccwpck_require__(47426)
-var extname = (__nccwpck_require__(71017).extname)
+var db = __nccwpck_require__(7426)
+var extname = (__nccwpck_require__(1017).extname)
/**
* Module variables.
@@ -59766,19 +52532,19 @@ function populateMaps (extensions, types) {
/***/ }),
-/***/ 83973:
+/***/ 3973:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
module.exports = minimatch
minimatch.Minimatch = Minimatch
-var path = (function () { try { return __nccwpck_require__(71017) } catch (e) {}}()) || {
+var path = (function () { try { return __nccwpck_require__(1017) } catch (e) {}}()) || {
sep: '/'
}
minimatch.sep = path.sep
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
-var expand = __nccwpck_require__(33717)
+var expand = __nccwpck_require__(3717)
var plTypes = {
'!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
@@ -60720,7 +53486,7 @@ function regExpEscape (s) {
/***/ }),
-/***/ 80467:
+/***/ 467:
/***/ ((module, exports, __nccwpck_require__) => {
"use strict";
@@ -60730,12 +53496,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-var Stream = _interopDefault(__nccwpck_require__(12781));
-var http = _interopDefault(__nccwpck_require__(13685));
-var Url = _interopDefault(__nccwpck_require__(57310));
-var whatwgUrl = _interopDefault(__nccwpck_require__(28665));
-var https = _interopDefault(__nccwpck_require__(95687));
-var zlib = _interopDefault(__nccwpck_require__(59796));
+var Stream = _interopDefault(__nccwpck_require__(2781));
+var http = _interopDefault(__nccwpck_require__(3685));
+var Url = _interopDefault(__nccwpck_require__(7310));
+var whatwgUrl = _interopDefault(__nccwpck_require__(8665));
+var https = _interopDefault(__nccwpck_require__(5687));
+var zlib = _interopDefault(__nccwpck_require__(9796));
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
@@ -60886,7 +53652,7 @@ FetchError.prototype.name = 'FetchError';
let convert;
try {
- convert = (__nccwpck_require__(22877).convert);
+ convert = (__nccwpck_require__(2877).convert);
} catch (e) {}
const INTERNALS = Symbol('Body internals');
@@ -62518,7 +55284,7 @@ exports.AbortError = AbortError;
/***/ 1223:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var wrappy = __nccwpck_require__(62940)
+var wrappy = __nccwpck_require__(2940)
module.exports = wrappy(once)
module.exports.strict = wrappy(onceStrict)
@@ -62564,7 +55330,7 @@ function onceStrict (fn) {
/***/ }),
-/***/ 72043:
+/***/ 2043:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
;(function (sax) { // wrapper for non-node envs
@@ -62729,7 +55495,7 @@ function onceStrict (fn) {
var Stream
try {
- Stream = (__nccwpck_require__(12781).Stream)
+ Stream = (__nccwpck_require__(2781).Stream)
} catch (ex) {
Stream = function () {}
}
@@ -62800,7 +55566,7 @@ function onceStrict (fn) {
typeof Buffer.isBuffer === 'function' &&
Buffer.isBuffer(data)) {
if (!this._decoder) {
- var SD = (__nccwpck_require__(71576).StringDecoder)
+ var SD = (__nccwpck_require__(1576).StringDecoder)
this._decoder = new SD('utf8')
}
data = this._decoder.write(data)
@@ -64145,7 +56911,7 @@ function onceStrict (fn) {
/***/ }),
-/***/ 91532:
+/***/ 1532:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const ANY = Symbol('SemVer ANY')
@@ -64283,11 +57049,11 @@ class Comparator {
module.exports = Comparator
-const parseOptions = __nccwpck_require__(40785)
+const parseOptions = __nccwpck_require__(785)
const { safeRe: re, t } = __nccwpck_require__(9523)
-const cmp = __nccwpck_require__(75098)
-const debug = __nccwpck_require__(50427)
-const SemVer = __nccwpck_require__(48088)
+const cmp = __nccwpck_require__(5098)
+const debug = __nccwpck_require__(106)
+const SemVer = __nccwpck_require__(8088)
const Range = __nccwpck_require__(9828)
@@ -64296,8 +57062,6 @@ const Range = __nccwpck_require__(9828)
/***/ 9828:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SPACE_CHARACTERS = /\s+/g
-
// hoisted class for cyclic dependency
class Range {
constructor (range, options) {
@@ -64318,7 +57082,7 @@ class Range {
// just put it in the set and return
this.raw = range.value
this.set = [[range]]
- this.formatted = undefined
+ this.format()
return this
}
@@ -64329,7 +57093,10 @@ class Range {
// First reduce all whitespace as much as possible so we do not have to rely
// on potentially slow regexes like \s*. This is then stored and used for
// future error messages as well.
- this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
+ this.raw = range
+ .trim()
+ .split(/\s+/)
+ .join(' ')
// First, split on ||
this.set = this.raw
@@ -64363,29 +57130,14 @@ class Range {
}
}
- this.formatted = undefined
- }
-
- get range () {
- if (this.formatted === undefined) {
- this.formatted = ''
- for (let i = 0; i < this.set.length; i++) {
- if (i > 0) {
- this.formatted += '||'
- }
- const comps = this.set[i]
- for (let k = 0; k < comps.length; k++) {
- if (k > 0) {
- this.formatted += ' '
- }
- this.formatted += comps[k].toString().trim()
- }
- }
- }
- return this.formatted
+ this.format()
}
format () {
+ this.range = this.set
+ .map((comps) => comps.join(' ').trim())
+ .join('||')
+ .trim()
return this.range
}
@@ -64510,13 +57262,13 @@ class Range {
module.exports = Range
-const LRU = __nccwpck_require__(15339)
-const cache = new LRU()
+const LRU = __nccwpck_require__(1196)
+const cache = new LRU({ max: 1000 })
-const parseOptions = __nccwpck_require__(40785)
-const Comparator = __nccwpck_require__(91532)
-const debug = __nccwpck_require__(50427)
-const SemVer = __nccwpck_require__(48088)
+const parseOptions = __nccwpck_require__(785)
+const Comparator = __nccwpck_require__(1532)
+const debug = __nccwpck_require__(106)
+const SemVer = __nccwpck_require__(8088)
const {
safeRe: re,
t,
@@ -64524,7 +57276,7 @@ const {
tildeTrimReplace,
caretTrimReplace,
} = __nccwpck_require__(9523)
-const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(42293)
+const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(2293)
const isNullSet = c => c.value === '<0.0.0-0'
const isAny = c => c.value === ''
@@ -64782,10 +57534,9 @@ const replaceGTE0 = (comp, options) => {
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
-// TODO build?
const hyphenReplace = incPr => ($0,
from, fM, fm, fp, fpr, fb,
- to, tM, tm, tp, tpr) => {
+ to, tM, tm, tp, tpr, tb) => {
if (isX(fM)) {
from = ''
} else if (isX(fm)) {
@@ -64854,15 +57605,15 @@ const testSet = (set, version, options) => {
/***/ }),
-/***/ 48088:
+/***/ 8088:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const debug = __nccwpck_require__(50427)
-const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(42293)
+const debug = __nccwpck_require__(106)
+const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(2293)
const { safeRe: re, t } = __nccwpck_require__(9523)
-const parseOptions = __nccwpck_require__(40785)
-const { compareIdentifiers } = __nccwpck_require__(92463)
+const parseOptions = __nccwpck_require__(785)
+const { compareIdentifiers } = __nccwpck_require__(2463)
class SemVer {
constructor (version, options) {
options = parseOptions(options)
@@ -65017,7 +57768,7 @@ class SemVer {
do {
const a = this.build[i]
const b = other.build[i]
- debug('build compare', i, a, b)
+ debug('prerelease compare', i, a, b)
if (a === undefined && b === undefined) {
return 0
} else if (b === undefined) {
@@ -65163,10 +57914,10 @@ module.exports = SemVer
/***/ }),
-/***/ 48848:
+/***/ 8848:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const parse = __nccwpck_require__(75925)
+const parse = __nccwpck_require__(5925)
const clean = (version, options) => {
const s = parse(version.trim().replace(/^[=v]+/, ''), options)
return s ? s.version : null
@@ -65176,15 +57927,15 @@ module.exports = clean
/***/ }),
-/***/ 75098:
+/***/ 5098:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const eq = __nccwpck_require__(91898)
+const eq = __nccwpck_require__(1898)
const neq = __nccwpck_require__(6017)
-const gt = __nccwpck_require__(84123)
-const gte = __nccwpck_require__(15522)
-const lt = __nccwpck_require__(80194)
-const lte = __nccwpck_require__(77520)
+const gt = __nccwpck_require__(4123)
+const gte = __nccwpck_require__(5522)
+const lt = __nccwpck_require__(194)
+const lte = __nccwpck_require__(7520)
const cmp = (a, op, b, loose) => {
switch (op) {
@@ -65235,11 +57986,11 @@ module.exports = cmp
/***/ }),
-/***/ 13466:
+/***/ 3466:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
-const parse = __nccwpck_require__(75925)
+const SemVer = __nccwpck_require__(8088)
+const parse = __nccwpck_require__(5925)
const { safeRe: re, t } = __nccwpck_require__(9523)
const coerce = (version, options) => {
@@ -65302,10 +58053,10 @@ module.exports = coerce
/***/ }),
-/***/ 92156:
+/***/ 2156:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const compareBuild = (a, b, loose) => {
const versionA = new SemVer(a, loose)
const versionB = new SemVer(b, loose)
@@ -65316,20 +58067,20 @@ module.exports = compareBuild
/***/ }),
-/***/ 62804:
+/***/ 2804:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const compareLoose = (a, b) => compare(a, b, true)
module.exports = compareLoose
/***/ }),
-/***/ 44309:
+/***/ 4309:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const compare = (a, b, loose) =>
new SemVer(a, loose).compare(new SemVer(b, loose))
@@ -65338,10 +58089,10 @@ module.exports = compare
/***/ }),
-/***/ 64297:
+/***/ 4297:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const parse = __nccwpck_require__(75925)
+const parse = __nccwpck_require__(5925)
const diff = (version1, version2) => {
const v1 = parse(version1, null, true)
@@ -65410,40 +58161,40 @@ module.exports = diff
/***/ }),
-/***/ 91898:
+/***/ 1898:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const eq = (a, b, loose) => compare(a, b, loose) === 0
module.exports = eq
/***/ }),
-/***/ 84123:
+/***/ 4123:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const gt = (a, b, loose) => compare(a, b, loose) > 0
module.exports = gt
/***/ }),
-/***/ 15522:
+/***/ 5522:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const gte = (a, b, loose) => compare(a, b, loose) >= 0
module.exports = gte
/***/ }),
-/***/ 30900:
+/***/ 900:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const inc = (version, release, options, identifier, identifierBase) => {
if (typeof (options) === 'string') {
@@ -65466,40 +58217,40 @@ module.exports = inc
/***/ }),
-/***/ 80194:
+/***/ 194:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const lt = (a, b, loose) => compare(a, b, loose) < 0
module.exports = lt
/***/ }),
-/***/ 77520:
+/***/ 7520:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const lte = (a, b, loose) => compare(a, b, loose) <= 0
module.exports = lte
/***/ }),
-/***/ 76688:
+/***/ 6688:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const major = (a, loose) => new SemVer(a, loose).major
module.exports = major
/***/ }),
-/***/ 38447:
+/***/ 8447:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const minor = (a, loose) => new SemVer(a, loose).minor
module.exports = minor
@@ -65509,17 +58260,17 @@ module.exports = minor
/***/ 6017:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const neq = (a, b, loose) => compare(a, b, loose) !== 0
module.exports = neq
/***/ }),
-/***/ 75925:
+/***/ 5925:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const parse = (version, options, throwErrors = false) => {
if (version instanceof SemVer) {
return version
@@ -65539,20 +58290,20 @@ module.exports = parse
/***/ }),
-/***/ 42866:
+/***/ 2866:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const patch = (a, loose) => new SemVer(a, loose).patch
module.exports = patch
/***/ }),
-/***/ 24016:
+/***/ 4016:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const parse = __nccwpck_require__(75925)
+const parse = __nccwpck_require__(5925)
const prerelease = (version, options) => {
const parsed = parse(version, options)
return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
@@ -65562,10 +58313,10 @@ module.exports = prerelease
/***/ }),
-/***/ 76417:
+/***/ 6417:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
const rcompare = (a, b, loose) => compare(b, a, loose)
module.exports = rcompare
@@ -65575,7 +58326,7 @@ module.exports = rcompare
/***/ 8701:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compareBuild = __nccwpck_require__(92156)
+const compareBuild = __nccwpck_require__(2156)
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
module.exports = rsort
@@ -65599,20 +58350,20 @@ module.exports = satisfies
/***/ }),
-/***/ 61426:
+/***/ 1426:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const compareBuild = __nccwpck_require__(92156)
+const compareBuild = __nccwpck_require__(2156)
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
module.exports = sort
/***/ }),
-/***/ 19601:
+/***/ 9601:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const parse = __nccwpck_require__(75925)
+const parse = __nccwpck_require__(5925)
const valid = (version, options) => {
const v = parse(version, options)
return v ? v.version : null
@@ -65622,50 +58373,50 @@ module.exports = valid
/***/ }),
-/***/ 11383:
+/***/ 1383:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
// just pre-load all the stuff that index.js lazily exports
const internalRe = __nccwpck_require__(9523)
-const constants = __nccwpck_require__(42293)
-const SemVer = __nccwpck_require__(48088)
-const identifiers = __nccwpck_require__(92463)
-const parse = __nccwpck_require__(75925)
-const valid = __nccwpck_require__(19601)
-const clean = __nccwpck_require__(48848)
-const inc = __nccwpck_require__(30900)
-const diff = __nccwpck_require__(64297)
-const major = __nccwpck_require__(76688)
-const minor = __nccwpck_require__(38447)
-const patch = __nccwpck_require__(42866)
-const prerelease = __nccwpck_require__(24016)
-const compare = __nccwpck_require__(44309)
-const rcompare = __nccwpck_require__(76417)
-const compareLoose = __nccwpck_require__(62804)
-const compareBuild = __nccwpck_require__(92156)
-const sort = __nccwpck_require__(61426)
+const constants = __nccwpck_require__(2293)
+const SemVer = __nccwpck_require__(8088)
+const identifiers = __nccwpck_require__(2463)
+const parse = __nccwpck_require__(5925)
+const valid = __nccwpck_require__(9601)
+const clean = __nccwpck_require__(8848)
+const inc = __nccwpck_require__(900)
+const diff = __nccwpck_require__(4297)
+const major = __nccwpck_require__(6688)
+const minor = __nccwpck_require__(8447)
+const patch = __nccwpck_require__(2866)
+const prerelease = __nccwpck_require__(4016)
+const compare = __nccwpck_require__(4309)
+const rcompare = __nccwpck_require__(6417)
+const compareLoose = __nccwpck_require__(2804)
+const compareBuild = __nccwpck_require__(2156)
+const sort = __nccwpck_require__(1426)
const rsort = __nccwpck_require__(8701)
-const gt = __nccwpck_require__(84123)
-const lt = __nccwpck_require__(80194)
-const eq = __nccwpck_require__(91898)
+const gt = __nccwpck_require__(4123)
+const lt = __nccwpck_require__(194)
+const eq = __nccwpck_require__(1898)
const neq = __nccwpck_require__(6017)
-const gte = __nccwpck_require__(15522)
-const lte = __nccwpck_require__(77520)
-const cmp = __nccwpck_require__(75098)
-const coerce = __nccwpck_require__(13466)
-const Comparator = __nccwpck_require__(91532)
+const gte = __nccwpck_require__(5522)
+const lte = __nccwpck_require__(7520)
+const cmp = __nccwpck_require__(5098)
+const coerce = __nccwpck_require__(3466)
+const Comparator = __nccwpck_require__(1532)
const Range = __nccwpck_require__(9828)
const satisfies = __nccwpck_require__(6055)
-const toComparators = __nccwpck_require__(52706)
-const maxSatisfying = __nccwpck_require__(20579)
-const minSatisfying = __nccwpck_require__(10832)
-const minVersion = __nccwpck_require__(34179)
+const toComparators = __nccwpck_require__(2706)
+const maxSatisfying = __nccwpck_require__(579)
+const minSatisfying = __nccwpck_require__(832)
+const minVersion = __nccwpck_require__(4179)
const validRange = __nccwpck_require__(2098)
-const outside = __nccwpck_require__(60420)
+const outside = __nccwpck_require__(420)
const gtr = __nccwpck_require__(9380)
-const ltr = __nccwpck_require__(33323)
-const intersects = __nccwpck_require__(27008)
-const simplifyRange = __nccwpck_require__(75297)
+const ltr = __nccwpck_require__(3323)
+const intersects = __nccwpck_require__(7008)
+const simplifyRange = __nccwpck_require__(5297)
const subset = __nccwpck_require__(7863)
module.exports = {
parse,
@@ -65718,7 +58469,7 @@ module.exports = {
/***/ }),
-/***/ 42293:
+/***/ 2293:
/***/ ((module) => {
// Note: this is the semver.org version of the spec that it implements
@@ -65760,7 +58511,7 @@ module.exports = {
/***/ }),
-/***/ 50427:
+/***/ 106:
/***/ ((module) => {
const debug = (
@@ -65776,7 +58527,7 @@ module.exports = debug
/***/ }),
-/***/ 92463:
+/***/ 2463:
/***/ ((module) => {
const numeric = /^[0-9]+$/
@@ -65806,54 +58557,7 @@ module.exports = {
/***/ }),
-/***/ 15339:
-/***/ ((module) => {
-
-class LRUCache {
- constructor () {
- this.max = 1000
- this.map = new Map()
- }
-
- get (key) {
- const value = this.map.get(key)
- if (value === undefined) {
- return undefined
- } else {
- // Remove the key from the map and add it to the end
- this.map.delete(key)
- this.map.set(key, value)
- return value
- }
- }
-
- delete (key) {
- return this.map.delete(key)
- }
-
- set (key, value) {
- const deleted = this.delete(key)
-
- if (!deleted && value !== undefined) {
- // If cache is full, delete the least recently used item
- if (this.map.size >= this.max) {
- const firstKey = this.map.keys().next().value
- this.delete(firstKey)
- }
-
- this.map.set(key, value)
- }
-
- return this
- }
-}
-
-module.exports = LRUCache
-
-
-/***/ }),
-
-/***/ 40785:
+/***/ 785:
/***/ ((module) => {
// parse out just the options we care about
@@ -65882,8 +58586,8 @@ const {
MAX_SAFE_COMPONENT_LENGTH,
MAX_SAFE_BUILD_LENGTH,
MAX_LENGTH,
-} = __nccwpck_require__(42293)
-const debug = __nccwpck_require__(50427)
+} = __nccwpck_require__(2293)
+const debug = __nccwpck_require__(106)
exports = module.exports = {}
// The actual regexps go on exports.re
@@ -66097,20 +58801,812 @@ createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$')
createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$')
+/***/ }),
+
+/***/ 1196:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+// A linked list to keep track of recently-used-ness
+const Yallist = __nccwpck_require__(220)
+
+const MAX = Symbol('max')
+const LENGTH = Symbol('length')
+const LENGTH_CALCULATOR = Symbol('lengthCalculator')
+const ALLOW_STALE = Symbol('allowStale')
+const MAX_AGE = Symbol('maxAge')
+const DISPOSE = Symbol('dispose')
+const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')
+const LRU_LIST = Symbol('lruList')
+const CACHE = Symbol('cache')
+const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')
+
+const naiveLength = () => 1
+
+// lruList is a yallist where the head is the youngest
+// item, and the tail is the oldest. the list contains the Hit
+// objects as the entries.
+// Each Hit object has a reference to its Yallist.Node. This
+// never changes.
+//
+// cache is a Map (or PseudoMap) that matches the keys to
+// the Yallist.Node object.
+class LRUCache {
+ constructor (options) {
+ if (typeof options === 'number')
+ options = { max: options }
+
+ if (!options)
+ options = {}
+
+ if (options.max && (typeof options.max !== 'number' || options.max < 0))
+ throw new TypeError('max must be a non-negative number')
+ // Kind of weird to have a default max of Infinity, but oh well.
+ const max = this[MAX] = options.max || Infinity
+
+ const lc = options.length || naiveLength
+ this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc
+ this[ALLOW_STALE] = options.stale || false
+ if (options.maxAge && typeof options.maxAge !== 'number')
+ throw new TypeError('maxAge must be a number')
+ this[MAX_AGE] = options.maxAge || 0
+ this[DISPOSE] = options.dispose
+ this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
+ this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false
+ this.reset()
+ }
+
+ // resize the cache when the max changes.
+ set max (mL) {
+ if (typeof mL !== 'number' || mL < 0)
+ throw new TypeError('max must be a non-negative number')
+
+ this[MAX] = mL || Infinity
+ trim(this)
+ }
+ get max () {
+ return this[MAX]
+ }
+
+ set allowStale (allowStale) {
+ this[ALLOW_STALE] = !!allowStale
+ }
+ get allowStale () {
+ return this[ALLOW_STALE]
+ }
+
+ set maxAge (mA) {
+ if (typeof mA !== 'number')
+ throw new TypeError('maxAge must be a non-negative number')
+
+ this[MAX_AGE] = mA
+ trim(this)
+ }
+ get maxAge () {
+ return this[MAX_AGE]
+ }
+
+ // resize the cache when the lengthCalculator changes.
+ set lengthCalculator (lC) {
+ if (typeof lC !== 'function')
+ lC = naiveLength
+
+ if (lC !== this[LENGTH_CALCULATOR]) {
+ this[LENGTH_CALCULATOR] = lC
+ this[LENGTH] = 0
+ this[LRU_LIST].forEach(hit => {
+ hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
+ this[LENGTH] += hit.length
+ })
+ }
+ trim(this)
+ }
+ get lengthCalculator () { return this[LENGTH_CALCULATOR] }
+
+ get length () { return this[LENGTH] }
+ get itemCount () { return this[LRU_LIST].length }
+
+ rforEach (fn, thisp) {
+ thisp = thisp || this
+ for (let walker = this[LRU_LIST].tail; walker !== null;) {
+ const prev = walker.prev
+ forEachStep(this, fn, walker, thisp)
+ walker = prev
+ }
+ }
+
+ forEach (fn, thisp) {
+ thisp = thisp || this
+ for (let walker = this[LRU_LIST].head; walker !== null;) {
+ const next = walker.next
+ forEachStep(this, fn, walker, thisp)
+ walker = next
+ }
+ }
+
+ keys () {
+ return this[LRU_LIST].toArray().map(k => k.key)
+ }
+
+ values () {
+ return this[LRU_LIST].toArray().map(k => k.value)
+ }
+
+ reset () {
+ if (this[DISPOSE] &&
+ this[LRU_LIST] &&
+ this[LRU_LIST].length) {
+ this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))
+ }
+
+ this[CACHE] = new Map() // hash of items by key
+ this[LRU_LIST] = new Yallist() // list of items in order of use recency
+ this[LENGTH] = 0 // length of items in the list
+ }
+
+ dump () {
+ return this[LRU_LIST].map(hit =>
+ isStale(this, hit) ? false : {
+ k: hit.key,
+ v: hit.value,
+ e: hit.now + (hit.maxAge || 0)
+ }).toArray().filter(h => h)
+ }
+
+ dumpLru () {
+ return this[LRU_LIST]
+ }
+
+ set (key, value, maxAge) {
+ maxAge = maxAge || this[MAX_AGE]
+
+ if (maxAge && typeof maxAge !== 'number')
+ throw new TypeError('maxAge must be a number')
+
+ const now = maxAge ? Date.now() : 0
+ const len = this[LENGTH_CALCULATOR](value, key)
+
+ if (this[CACHE].has(key)) {
+ if (len > this[MAX]) {
+ del(this, this[CACHE].get(key))
+ return false
+ }
+
+ const node = this[CACHE].get(key)
+ const item = node.value
+
+ // dispose of the old one before overwriting
+ // split out into 2 ifs for better coverage tracking
+ if (this[DISPOSE]) {
+ if (!this[NO_DISPOSE_ON_SET])
+ this[DISPOSE](key, item.value)
+ }
+
+ item.now = now
+ item.maxAge = maxAge
+ item.value = value
+ this[LENGTH] += len - item.length
+ item.length = len
+ this.get(key)
+ trim(this)
+ return true
+ }
+
+ const hit = new Entry(key, value, len, now, maxAge)
+
+ // oversized objects fall out of cache automatically.
+ if (hit.length > this[MAX]) {
+ if (this[DISPOSE])
+ this[DISPOSE](key, value)
+
+ return false
+ }
+
+ this[LENGTH] += hit.length
+ this[LRU_LIST].unshift(hit)
+ this[CACHE].set(key, this[LRU_LIST].head)
+ trim(this)
+ return true
+ }
+
+ has (key) {
+ if (!this[CACHE].has(key)) return false
+ const hit = this[CACHE].get(key).value
+ return !isStale(this, hit)
+ }
+
+ get (key) {
+ return get(this, key, true)
+ }
+
+ peek (key) {
+ return get(this, key, false)
+ }
+
+ pop () {
+ const node = this[LRU_LIST].tail
+ if (!node)
+ return null
+
+ del(this, node)
+ return node.value
+ }
+
+ del (key) {
+ del(this, this[CACHE].get(key))
+ }
+
+ load (arr) {
+ // reset the cache
+ this.reset()
+
+ const now = Date.now()
+ // A previous serialized cache has the most recent items first
+ for (let l = arr.length - 1; l >= 0; l--) {
+ const hit = arr[l]
+ const expiresAt = hit.e || 0
+ if (expiresAt === 0)
+ // the item was created without expiration in a non aged cache
+ this.set(hit.k, hit.v)
+ else {
+ const maxAge = expiresAt - now
+ // dont add already expired items
+ if (maxAge > 0) {
+ this.set(hit.k, hit.v, maxAge)
+ }
+ }
+ }
+ }
+
+ prune () {
+ this[CACHE].forEach((value, key) => get(this, key, false))
+ }
+}
+
+const get = (self, key, doUse) => {
+ const node = self[CACHE].get(key)
+ if (node) {
+ const hit = node.value
+ if (isStale(self, hit)) {
+ del(self, node)
+ if (!self[ALLOW_STALE])
+ return undefined
+ } else {
+ if (doUse) {
+ if (self[UPDATE_AGE_ON_GET])
+ node.value.now = Date.now()
+ self[LRU_LIST].unshiftNode(node)
+ }
+ }
+ return hit.value
+ }
+}
+
+const isStale = (self, hit) => {
+ if (!hit || (!hit.maxAge && !self[MAX_AGE]))
+ return false
+
+ const diff = Date.now() - hit.now
+ return hit.maxAge ? diff > hit.maxAge
+ : self[MAX_AGE] && (diff > self[MAX_AGE])
+}
+
+const trim = self => {
+ if (self[LENGTH] > self[MAX]) {
+ for (let walker = self[LRU_LIST].tail;
+ self[LENGTH] > self[MAX] && walker !== null;) {
+ // We know that we're about to delete this one, and also
+ // what the next least recently used key will be, so just
+ // go ahead and set it now.
+ const prev = walker.prev
+ del(self, walker)
+ walker = prev
+ }
+ }
+}
+
+const del = (self, node) => {
+ if (node) {
+ const hit = node.value
+ if (self[DISPOSE])
+ self[DISPOSE](hit.key, hit.value)
+
+ self[LENGTH] -= hit.length
+ self[CACHE].delete(hit.key)
+ self[LRU_LIST].removeNode(node)
+ }
+}
+
+class Entry {
+ constructor (key, value, length, now, maxAge) {
+ this.key = key
+ this.value = value
+ this.length = length
+ this.now = now
+ this.maxAge = maxAge || 0
+ }
+}
+
+const forEachStep = (self, fn, node, thisp) => {
+ let hit = node.value
+ if (isStale(self, hit)) {
+ del(self, node)
+ if (!self[ALLOW_STALE])
+ hit = undefined
+ }
+ if (hit)
+ fn.call(thisp, hit.value, hit.key, self)
+}
+
+module.exports = LRUCache
+
+
+/***/ }),
+
+/***/ 5327:
+/***/ ((module) => {
+
+"use strict";
+
+module.exports = function (Yallist) {
+ Yallist.prototype[Symbol.iterator] = function* () {
+ for (let walker = this.head; walker; walker = walker.next) {
+ yield walker.value
+ }
+ }
+}
+
+
+/***/ }),
+
+/***/ 220:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+module.exports = Yallist
+
+Yallist.Node = Node
+Yallist.create = Yallist
+
+function Yallist (list) {
+ var self = this
+ if (!(self instanceof Yallist)) {
+ self = new Yallist()
+ }
+
+ self.tail = null
+ self.head = null
+ self.length = 0
+
+ if (list && typeof list.forEach === 'function') {
+ list.forEach(function (item) {
+ self.push(item)
+ })
+ } else if (arguments.length > 0) {
+ for (var i = 0, l = arguments.length; i < l; i++) {
+ self.push(arguments[i])
+ }
+ }
+
+ return self
+}
+
+Yallist.prototype.removeNode = function (node) {
+ if (node.list !== this) {
+ throw new Error('removing node which does not belong to this list')
+ }
+
+ var next = node.next
+ var prev = node.prev
+
+ if (next) {
+ next.prev = prev
+ }
+
+ if (prev) {
+ prev.next = next
+ }
+
+ if (node === this.head) {
+ this.head = next
+ }
+ if (node === this.tail) {
+ this.tail = prev
+ }
+
+ node.list.length--
+ node.next = null
+ node.prev = null
+ node.list = null
+
+ return next
+}
+
+Yallist.prototype.unshiftNode = function (node) {
+ if (node === this.head) {
+ return
+ }
+
+ if (node.list) {
+ node.list.removeNode(node)
+ }
+
+ var head = this.head
+ node.list = this
+ node.next = head
+ if (head) {
+ head.prev = node
+ }
+
+ this.head = node
+ if (!this.tail) {
+ this.tail = node
+ }
+ this.length++
+}
+
+Yallist.prototype.pushNode = function (node) {
+ if (node === this.tail) {
+ return
+ }
+
+ if (node.list) {
+ node.list.removeNode(node)
+ }
+
+ var tail = this.tail
+ node.list = this
+ node.prev = tail
+ if (tail) {
+ tail.next = node
+ }
+
+ this.tail = node
+ if (!this.head) {
+ this.head = node
+ }
+ this.length++
+}
+
+Yallist.prototype.push = function () {
+ for (var i = 0, l = arguments.length; i < l; i++) {
+ push(this, arguments[i])
+ }
+ return this.length
+}
+
+Yallist.prototype.unshift = function () {
+ for (var i = 0, l = arguments.length; i < l; i++) {
+ unshift(this, arguments[i])
+ }
+ return this.length
+}
+
+Yallist.prototype.pop = function () {
+ if (!this.tail) {
+ return undefined
+ }
+
+ var res = this.tail.value
+ this.tail = this.tail.prev
+ if (this.tail) {
+ this.tail.next = null
+ } else {
+ this.head = null
+ }
+ this.length--
+ return res
+}
+
+Yallist.prototype.shift = function () {
+ if (!this.head) {
+ return undefined
+ }
+
+ var res = this.head.value
+ this.head = this.head.next
+ if (this.head) {
+ this.head.prev = null
+ } else {
+ this.tail = null
+ }
+ this.length--
+ return res
+}
+
+Yallist.prototype.forEach = function (fn, thisp) {
+ thisp = thisp || this
+ for (var walker = this.head, i = 0; walker !== null; i++) {
+ fn.call(thisp, walker.value, i, this)
+ walker = walker.next
+ }
+}
+
+Yallist.prototype.forEachReverse = function (fn, thisp) {
+ thisp = thisp || this
+ for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
+ fn.call(thisp, walker.value, i, this)
+ walker = walker.prev
+ }
+}
+
+Yallist.prototype.get = function (n) {
+ for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
+ // abort out of the list early if we hit a cycle
+ walker = walker.next
+ }
+ if (i === n && walker !== null) {
+ return walker.value
+ }
+}
+
+Yallist.prototype.getReverse = function (n) {
+ for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
+ // abort out of the list early if we hit a cycle
+ walker = walker.prev
+ }
+ if (i === n && walker !== null) {
+ return walker.value
+ }
+}
+
+Yallist.prototype.map = function (fn, thisp) {
+ thisp = thisp || this
+ var res = new Yallist()
+ for (var walker = this.head; walker !== null;) {
+ res.push(fn.call(thisp, walker.value, this))
+ walker = walker.next
+ }
+ return res
+}
+
+Yallist.prototype.mapReverse = function (fn, thisp) {
+ thisp = thisp || this
+ var res = new Yallist()
+ for (var walker = this.tail; walker !== null;) {
+ res.push(fn.call(thisp, walker.value, this))
+ walker = walker.prev
+ }
+ return res
+}
+
+Yallist.prototype.reduce = function (fn, initial) {
+ var acc
+ var walker = this.head
+ if (arguments.length > 1) {
+ acc = initial
+ } else if (this.head) {
+ walker = this.head.next
+ acc = this.head.value
+ } else {
+ throw new TypeError('Reduce of empty list with no initial value')
+ }
+
+ for (var i = 0; walker !== null; i++) {
+ acc = fn(acc, walker.value, i)
+ walker = walker.next
+ }
+
+ return acc
+}
+
+Yallist.prototype.reduceReverse = function (fn, initial) {
+ var acc
+ var walker = this.tail
+ if (arguments.length > 1) {
+ acc = initial
+ } else if (this.tail) {
+ walker = this.tail.prev
+ acc = this.tail.value
+ } else {
+ throw new TypeError('Reduce of empty list with no initial value')
+ }
+
+ for (var i = this.length - 1; walker !== null; i--) {
+ acc = fn(acc, walker.value, i)
+ walker = walker.prev
+ }
+
+ return acc
+}
+
+Yallist.prototype.toArray = function () {
+ var arr = new Array(this.length)
+ for (var i = 0, walker = this.head; walker !== null; i++) {
+ arr[i] = walker.value
+ walker = walker.next
+ }
+ return arr
+}
+
+Yallist.prototype.toArrayReverse = function () {
+ var arr = new Array(this.length)
+ for (var i = 0, walker = this.tail; walker !== null; i++) {
+ arr[i] = walker.value
+ walker = walker.prev
+ }
+ return arr
+}
+
+Yallist.prototype.slice = function (from, to) {
+ to = to || this.length
+ if (to < 0) {
+ to += this.length
+ }
+ from = from || 0
+ if (from < 0) {
+ from += this.length
+ }
+ var ret = new Yallist()
+ if (to < from || to < 0) {
+ return ret
+ }
+ if (from < 0) {
+ from = 0
+ }
+ if (to > this.length) {
+ to = this.length
+ }
+ for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
+ walker = walker.next
+ }
+ for (; walker !== null && i < to; i++, walker = walker.next) {
+ ret.push(walker.value)
+ }
+ return ret
+}
+
+Yallist.prototype.sliceReverse = function (from, to) {
+ to = to || this.length
+ if (to < 0) {
+ to += this.length
+ }
+ from = from || 0
+ if (from < 0) {
+ from += this.length
+ }
+ var ret = new Yallist()
+ if (to < from || to < 0) {
+ return ret
+ }
+ if (from < 0) {
+ from = 0
+ }
+ if (to > this.length) {
+ to = this.length
+ }
+ for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
+ walker = walker.prev
+ }
+ for (; walker !== null && i > from; i--, walker = walker.prev) {
+ ret.push(walker.value)
+ }
+ return ret
+}
+
+Yallist.prototype.splice = function (start, deleteCount, ...nodes) {
+ if (start > this.length) {
+ start = this.length - 1
+ }
+ if (start < 0) {
+ start = this.length + start;
+ }
+
+ for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
+ walker = walker.next
+ }
+
+ var ret = []
+ for (var i = 0; walker && i < deleteCount; i++) {
+ ret.push(walker.value)
+ walker = this.removeNode(walker)
+ }
+ if (walker === null) {
+ walker = this.tail
+ }
+
+ if (walker !== this.head && walker !== this.tail) {
+ walker = walker.prev
+ }
+
+ for (var i = 0; i < nodes.length; i++) {
+ walker = insert(this, walker, nodes[i])
+ }
+ return ret;
+}
+
+Yallist.prototype.reverse = function () {
+ var head = this.head
+ var tail = this.tail
+ for (var walker = head; walker !== null; walker = walker.prev) {
+ var p = walker.prev
+ walker.prev = walker.next
+ walker.next = p
+ }
+ this.head = tail
+ this.tail = head
+ return this
+}
+
+function insert (self, node, value) {
+ var inserted = node === self.head ?
+ new Node(value, null, node, self) :
+ new Node(value, node, node.next, self)
+
+ if (inserted.next === null) {
+ self.tail = inserted
+ }
+ if (inserted.prev === null) {
+ self.head = inserted
+ }
+
+ self.length++
+
+ return inserted
+}
+
+function push (self, item) {
+ self.tail = new Node(item, self.tail, null, self)
+ if (!self.head) {
+ self.head = self.tail
+ }
+ self.length++
+}
+
+function unshift (self, item) {
+ self.head = new Node(item, null, self.head, self)
+ if (!self.tail) {
+ self.tail = self.head
+ }
+ self.length++
+}
+
+function Node (value, prev, next, list) {
+ if (!(this instanceof Node)) {
+ return new Node(value, prev, next, list)
+ }
+
+ this.list = list
+ this.value = value
+
+ if (prev) {
+ prev.next = this
+ this.prev = prev
+ } else {
+ this.prev = null
+ }
+
+ if (next) {
+ next.prev = this
+ this.next = next
+ } else {
+ this.next = null
+ }
+}
+
+try {
+ // add if support for Symbol.iterator is present
+ __nccwpck_require__(5327)(Yallist)
+} catch (er) {}
+
+
/***/ }),
/***/ 9380:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
// Determine if version is greater than all the versions possible in the range.
-const outside = __nccwpck_require__(60420)
+const outside = __nccwpck_require__(420)
const gtr = (version, range, options) => outside(version, range, '>', options)
module.exports = gtr
/***/ }),
-/***/ 27008:
+/***/ 7008:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const Range = __nccwpck_require__(9828)
@@ -66124,10 +59620,10 @@ module.exports = intersects
/***/ }),
-/***/ 33323:
+/***/ 3323:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const outside = __nccwpck_require__(60420)
+const outside = __nccwpck_require__(420)
// Determine if version is less than all the versions possible in the range
const ltr = (version, range, options) => outside(version, range, '<', options)
module.exports = ltr
@@ -66135,10 +59631,10 @@ module.exports = ltr
/***/ }),
-/***/ 20579:
+/***/ 579:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const Range = __nccwpck_require__(9828)
const maxSatisfying = (versions, range, options) => {
@@ -66167,10 +59663,10 @@ module.exports = maxSatisfying
/***/ }),
-/***/ 10832:
+/***/ 832:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const Range = __nccwpck_require__(9828)
const minSatisfying = (versions, range, options) => {
let min = null
@@ -66198,12 +59694,12 @@ module.exports = minSatisfying
/***/ }),
-/***/ 34179:
+/***/ 4179:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
+const SemVer = __nccwpck_require__(8088)
const Range = __nccwpck_require__(9828)
-const gt = __nccwpck_require__(84123)
+const gt = __nccwpck_require__(4123)
const minVersion = (range, loose) => {
range = new Range(range, loose)
@@ -66266,18 +59762,18 @@ module.exports = minVersion
/***/ }),
-/***/ 60420:
+/***/ 420:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const SemVer = __nccwpck_require__(48088)
-const Comparator = __nccwpck_require__(91532)
+const SemVer = __nccwpck_require__(8088)
+const Comparator = __nccwpck_require__(1532)
const { ANY } = Comparator
const Range = __nccwpck_require__(9828)
const satisfies = __nccwpck_require__(6055)
-const gt = __nccwpck_require__(84123)
-const lt = __nccwpck_require__(80194)
-const lte = __nccwpck_require__(77520)
-const gte = __nccwpck_require__(15522)
+const gt = __nccwpck_require__(4123)
+const lt = __nccwpck_require__(194)
+const lte = __nccwpck_require__(7520)
+const gte = __nccwpck_require__(5522)
const outside = (version, range, hilo, options) => {
version = new SemVer(version, options)
@@ -66353,14 +59849,14 @@ module.exports = outside
/***/ }),
-/***/ 75297:
+/***/ 5297:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
// given a set of versions and a range, create a "simplified" range
// that includes the same versions that the original range does
// If the original range is shorter than the simplified one, return that.
const satisfies = __nccwpck_require__(6055)
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
module.exports = (versions, range, options) => {
const set = []
let first = null
@@ -66411,10 +59907,10 @@ module.exports = (versions, range, options) => {
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const Range = __nccwpck_require__(9828)
-const Comparator = __nccwpck_require__(91532)
+const Comparator = __nccwpck_require__(1532)
const { ANY } = Comparator
const satisfies = __nccwpck_require__(6055)
-const compare = __nccwpck_require__(44309)
+const compare = __nccwpck_require__(4309)
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
// - Every simple range `r1, r2, ...` is a null set, OR
@@ -66661,7 +60157,7 @@ module.exports = subset
/***/ }),
-/***/ 52706:
+/***/ 2706:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const Range = __nccwpck_require__(9828)
@@ -66694,14 +60190,14 @@ module.exports = validRange
/***/ }),
-/***/ 84256:
+/***/ 4256:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-var punycode = __nccwpck_require__(85477);
-var mappingTable = __nccwpck_require__(72020);
+var punycode = __nccwpck_require__(5477);
+var mappingTable = __nccwpck_require__(2020);
var PROCESSING_OPTIONS = {
TRANSITIONAL: 0,
@@ -67323,27 +60819,27 @@ var __disposeResources;
/***/ }),
-/***/ 74294:
+/***/ 4294:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-module.exports = __nccwpck_require__(54219);
+module.exports = __nccwpck_require__(4219);
/***/ }),
-/***/ 54219:
+/***/ 4219:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-var net = __nccwpck_require__(41808);
-var tls = __nccwpck_require__(24404);
-var http = __nccwpck_require__(13685);
-var https = __nccwpck_require__(95687);
-var events = __nccwpck_require__(82361);
-var assert = __nccwpck_require__(39491);
-var util = __nccwpck_require__(73837);
+var net = __nccwpck_require__(1808);
+var tls = __nccwpck_require__(4404);
+var http = __nccwpck_require__(3685);
+var https = __nccwpck_require__(5687);
+var events = __nccwpck_require__(2361);
+var assert = __nccwpck_require__(9491);
+var util = __nccwpck_require__(3837);
exports.httpOverHttp = httpOverHttp;
@@ -67603,1178 +61099,32 @@ exports.debug = debug; // for test
/***/ }),
-/***/ 31524:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-
-
-/***/ }),
-
-/***/ 66647:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.isValidErrorCode = exports.httpStatusFromErrorCode = exports.TwirpErrorCode = exports.BadRouteError = exports.InternalServerErrorWith = exports.InternalServerError = exports.RequiredArgumentError = exports.InvalidArgumentError = exports.NotFoundError = exports.TwirpError = void 0;
-/**
- * Represents a twirp error
- */
-class TwirpError extends Error {
- constructor(code, msg) {
- super(msg);
- this.code = TwirpErrorCode.Internal;
- this.meta = {};
- this.code = code;
- this.msg = msg;
- Object.setPrototypeOf(this, TwirpError.prototype);
- }
- /**
- * Adds a metadata kv to the error
- * @param key
- * @param value
- */
- withMeta(key, value) {
- this.meta[key] = value;
- return this;
- }
- /**
- * Returns a single metadata value
- * return "" if not found
- * @param key
- */
- getMeta(key) {
- return this.meta[key] || "";
- }
- /**
- * Add the original error cause
- * @param err
- * @param addMeta
- */
- withCause(err, addMeta = false) {
- this._originalCause = err;
- if (addMeta) {
- this.withMeta("cause", err.message);
- }
- return this;
- }
- cause() {
- return this._originalCause;
- }
- /**
- * Returns the error representation to JSON
- */
- toJSON() {
- try {
- return JSON.stringify({
- code: this.code,
- msg: this.msg,
- meta: this.meta,
- });
- }
- catch (e) {
- return `{"code": "internal", "msg": "There was an error but it could not be serialized into JSON"}`;
- }
- }
- /**
- * Create a twirp error from an object
- * @param obj
- */
- static fromObject(obj) {
- const code = obj["code"] || TwirpErrorCode.Unknown;
- const msg = obj["msg"] || "unknown";
- const error = new TwirpError(code, msg);
- if (obj["meta"]) {
- Object.keys(obj["meta"]).forEach((key) => {
- error.withMeta(key, obj["meta"][key]);
- });
- }
- return error;
- }
-}
-exports.TwirpError = TwirpError;
-/**
- * NotFoundError constructor for the common NotFound error.
- */
-class NotFoundError extends TwirpError {
- constructor(msg) {
- super(TwirpErrorCode.NotFound, msg);
- }
-}
-exports.NotFoundError = NotFoundError;
-/**
- * InvalidArgumentError constructor for the common InvalidArgument error. Can be
- * used when an argument has invalid format, is a number out of range, is a bad
- * option, etc).
- */
-class InvalidArgumentError extends TwirpError {
- constructor(argument, validationMsg) {
- super(TwirpErrorCode.InvalidArgument, argument + " " + validationMsg);
- this.withMeta("argument", argument);
- }
-}
-exports.InvalidArgumentError = InvalidArgumentError;
-/**
- * RequiredArgumentError is a more specific constructor for InvalidArgument
- * error. Should be used when the argument is required (expected to have a
- * non-zero value).
- */
-class RequiredArgumentError extends InvalidArgumentError {
- constructor(argument) {
- super(argument, "is required");
- }
-}
-exports.RequiredArgumentError = RequiredArgumentError;
-/**
- * InternalError constructor for the common Internal error. Should be used to
- * specify that something bad or unexpected happened.
- */
-class InternalServerError extends TwirpError {
- constructor(msg) {
- super(TwirpErrorCode.Internal, msg);
- }
-}
-exports.InternalServerError = InternalServerError;
-/**
- * InternalErrorWith makes an internal error, wrapping the original error and using it
- * for the error message, and with metadata "cause" with the original error type.
- * This function is used by Twirp services to wrap non-Twirp errors as internal errors.
- * The wrapped error can be extracted later with err.cause()
- */
-class InternalServerErrorWith extends InternalServerError {
- constructor(err) {
- super(err.message);
- this.withMeta("cause", err.name);
- this.withCause(err);
- }
-}
-exports.InternalServerErrorWith = InternalServerErrorWith;
-/**
- * A standard BadRoute Error
- */
-class BadRouteError extends TwirpError {
- constructor(msg, method, url) {
- super(TwirpErrorCode.BadRoute, msg);
- this.withMeta("twirp_invalid_route", method + " " + url);
- }
-}
-exports.BadRouteError = BadRouteError;
-var TwirpErrorCode;
-(function (TwirpErrorCode) {
- // Canceled indicates the operation was cancelled (typically by the caller).
- TwirpErrorCode["Canceled"] = "canceled";
- // Unknown error. For example when handling errors raised by APIs that do not
- // return enough error information.
- TwirpErrorCode["Unknown"] = "unknown";
- // InvalidArgument indicates client specified an invalid argument. It
- // indicates arguments that are problematic regardless of the state of the
- // system (i.e. a malformed file name, required argument, number out of range,
- // etc.).
- TwirpErrorCode["InvalidArgument"] = "invalid_argument";
- // Malformed indicates an error occurred while decoding the client's request.
- // This may mean that the message was encoded improperly, or that there is a
- // disagreement in message format between the client and server.
- TwirpErrorCode["Malformed"] = "malformed";
- // DeadlineExceeded means operation expired before completion. For operations
- // that change the state of the system, this error may be returned even if the
- // operation has completed successfully (timeout).
- TwirpErrorCode["DeadlineExceeded"] = "deadline_exceeded";
- // NotFound means some requested entity was not found.
- TwirpErrorCode["NotFound"] = "not_found";
- // BadRoute means that the requested URL path wasn't routable to a Twirp
- // service and method. This is returned by the generated server, and usually
- // shouldn't be returned by applications. Instead, applications should use
- // NotFound or Unimplemented.
- TwirpErrorCode["BadRoute"] = "bad_route";
- // AlreadyExists means an attempt to create an entity failed because one
- // already exists.
- TwirpErrorCode["AlreadyExists"] = "already_exists";
- // PermissionDenied indicates the caller does not have permission to execute
- // the specified operation. It must not be used if the caller cannot be
- // identified (Unauthenticated).
- TwirpErrorCode["PermissionDenied"] = "permission_denied";
- // Unauthenticated indicates the request does not have valid authentication
- // credentials for the operation.
- TwirpErrorCode["Unauthenticated"] = "unauthenticated";
- // ResourceExhausted indicates some resource has been exhausted, perhaps a
- // per-user quota, or perhaps the entire file system is out of space.
- TwirpErrorCode["ResourceExhausted"] = "resource_exhausted";
- // FailedPrecondition indicates operation was rejected because the system is
- // not in a state required for the operation's execution. For example, doing
- // an rmdir operation on a directory that is non-empty, or on a non-directory
- // object, or when having conflicting read-modify-write on the same resource.
- TwirpErrorCode["FailedPrecondition"] = "failed_precondition";
- // Aborted indicates the operation was aborted, typically due to a concurrency
- // issue like sequencer check failures, transaction aborts, etc.
- TwirpErrorCode["Aborted"] = "aborted";
- // OutOfRange means operation was attempted past the valid range. For example,
- // seeking or reading past end of a paginated collection.
- //
- // Unlike InvalidArgument, this error indicates a problem that may be fixed if
- // the system state changes (i.e. adding more items to the collection).
- //
- // There is a fair bit of overlap between FailedPrecondition and OutOfRange.
- // We recommend using OutOfRange (the more specific error) when it applies so
- // that callers who are iterating through a space can easily look for an
- // OutOfRange error to detect when they are done.
- TwirpErrorCode["OutOfRange"] = "out_of_range";
- // Unimplemented indicates operation is not implemented or not
- // supported/enabled in this service.
- TwirpErrorCode["Unimplemented"] = "unimplemented";
- // Internal errors. When some invariants expected by the underlying system
- // have been broken. In other words, something bad happened in the library or
- // backend service. Do not confuse with HTTP Internal Server Error; an
- // Internal error could also happen on the client code, i.e. when parsing a
- // server response.
- TwirpErrorCode["Internal"] = "internal";
- // Unavailable indicates the service is currently unavailable. This is a most
- // likely a transient condition and may be corrected by retrying with a
- // backoff.
- TwirpErrorCode["Unavailable"] = "unavailable";
- // DataLoss indicates unrecoverable data loss or corruption.
- TwirpErrorCode["DataLoss"] = "data_loss";
-})(TwirpErrorCode = exports.TwirpErrorCode || (exports.TwirpErrorCode = {}));
-// ServerHTTPStatusFromErrorCode maps a Twirp error type into a similar HTTP
-// response status. It is used by the Twirp server handler to set the HTTP
-// response status code. Returns 0 if the ErrorCode is invalid.
-function httpStatusFromErrorCode(code) {
- switch (code) {
- case TwirpErrorCode.Canceled:
- return 408; // RequestTimeout
- case TwirpErrorCode.Unknown:
- return 500; // Internal Server Error
- case TwirpErrorCode.InvalidArgument:
- return 400; // BadRequest
- case TwirpErrorCode.Malformed:
- return 400; // BadRequest
- case TwirpErrorCode.DeadlineExceeded:
- return 408; // RequestTimeout
- case TwirpErrorCode.NotFound:
- return 404; // Not Found
- case TwirpErrorCode.BadRoute:
- return 404; // Not Found
- case TwirpErrorCode.AlreadyExists:
- return 409; // Conflict
- case TwirpErrorCode.PermissionDenied:
- return 403; // Forbidden
- case TwirpErrorCode.Unauthenticated:
- return 401; // Unauthorized
- case TwirpErrorCode.ResourceExhausted:
- return 429; // Too Many Requests
- case TwirpErrorCode.FailedPrecondition:
- return 412; // Precondition Failed
- case TwirpErrorCode.Aborted:
- return 409; // Conflict
- case TwirpErrorCode.OutOfRange:
- return 400; // Bad Request
- case TwirpErrorCode.Unimplemented:
- return 501; // Not Implemented
- case TwirpErrorCode.Internal:
- return 500; // Internal Server Error
- case TwirpErrorCode.Unavailable:
- return 503; // Service Unavailable
- case TwirpErrorCode.DataLoss:
- return 500; // Internal Server Error
- default:
- return 0; // Invalid!
- }
-}
-exports.httpStatusFromErrorCode = httpStatusFromErrorCode;
-// IsValidErrorCode returns true if is one of the valid predefined constants.
-function isValidErrorCode(code) {
- return httpStatusFromErrorCode(code) != 0;
-}
-exports.isValidErrorCode = isValidErrorCode;
-
-
-/***/ }),
-
-/***/ 56748:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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 __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
- t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
- t[p[i]] = s[p[i]];
- }
- return t;
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.Gateway = exports.Pattern = void 0;
-const querystring_1 = __nccwpck_require__(63477);
-const dotObject = __importStar(__nccwpck_require__(13598));
-const request_1 = __nccwpck_require__(8347);
-const errors_1 = __nccwpck_require__(66647);
-const http_client_1 = __nccwpck_require__(94091);
-const server_1 = __nccwpck_require__(26604);
-var Pattern;
-(function (Pattern) {
- Pattern["POST"] = "post";
- Pattern["GET"] = "get";
- Pattern["PATCH"] = "patch";
- Pattern["PUT"] = "put";
- Pattern["DELETE"] = "delete";
-})(Pattern = exports.Pattern || (exports.Pattern = {}));
-/**
- * The Gateway proxies http requests to Twirp Compliant
- * handlers
- */
-class Gateway {
- constructor(routes) {
- this.routes = routes;
- }
- /**
- * Middleware that rewrite the current request
- * to a Twirp compliant request
- */
- twirpRewrite(prefix = "/twirp") {
- return (req, resp, next) => {
- this.rewrite(req, resp, prefix)
- .then(() => next())
- .catch((e) => {
- if (e instanceof errors_1.TwirpError) {
- if (e.code !== errors_1.TwirpErrorCode.NotFound) {
- server_1.writeError(resp, e);
- }
- else {
- next();
- }
- }
- });
- };
- }
- /**
- * Rewrite an incoming request to a Twirp compliant request
- * @param req
- * @param resp
- * @param prefix
- */
- rewrite(req, resp, prefix = "/twirp") {
- return __awaiter(this, void 0, void 0, function* () {
- const [match, route] = this.matchRoute(req);
- const body = yield this.prepareTwirpBody(req, match, route);
- const twirpUrl = `${prefix}/${route.packageName}.${route.serviceName}/${route.methodName}`;
- req.url = twirpUrl;
- req.originalUrl = twirpUrl;
- req.method = "POST";
- req.headers["content-type"] = "application/json";
- req.rawBody = Buffer.from(JSON.stringify(body));
- if (route.responseBodyKey) {
- const endFn = resp.end.bind(resp);
- resp.end = function (chunk) {
- if (resp.statusCode === 200) {
- endFn(`{ "${route.responseBodyKey}": ${chunk} }`);
- }
- else {
- endFn(chunk);
- }
- };
- }
- });
- }
- /**
- * Create a reverse proxy handler to
- * proxy http requests to Twirp Compliant handlers
- * @param httpClientOption
- */
- reverseProxy(httpClientOption) {
- const client = http_client_1.NodeHttpRPC(httpClientOption);
- return (req, res) => __awaiter(this, void 0, void 0, function* () {
- try {
- const [match, route] = this.matchRoute(req);
- const body = yield this.prepareTwirpBody(req, match, route);
- const response = yield client.request(`${route.packageName}.${route.serviceName}`, route.methodName, "application/json", body);
- res.statusCode = 200;
- res.setHeader("content-type", "application/json");
- let jsonResponse;
- if (route.responseBodyKey) {
- jsonResponse = JSON.stringify({ [route.responseBodyKey]: response });
- }
- else {
- jsonResponse = JSON.stringify(response);
- }
- res.end(jsonResponse);
- }
- catch (e) {
- server_1.writeError(res, e);
- }
- });
- }
- /**
- * Prepares twirp body requests using http.google.annotions
- * compliant spec
- *
- * @param req
- * @param match
- * @param route
- * @protected
- */
- prepareTwirpBody(req, match, route) {
- return __awaiter(this, void 0, void 0, function* () {
- const _a = match.params, { query_string } = _a, params = __rest(_a, ["query_string"]);
- let requestBody = Object.assign({}, params);
- if (query_string && route.bodyKey !== "*") {
- const queryParams = this.parseQueryString(query_string);
- requestBody = Object.assign(Object.assign({}, queryParams), requestBody);
- }
- let body = {};
- if (route.bodyKey) {
- const data = yield request_1.getRequestData(req);
- try {
- const jsonBody = JSON.parse(data.toString() || "{}");
- if (route.bodyKey === "*") {
- body = jsonBody;
- }
- else {
- body[route.bodyKey] = jsonBody;
- }
- }
- catch (e) {
- const msg = "the json request could not be decoded";
- throw new errors_1.TwirpError(errors_1.TwirpErrorCode.Malformed, msg).withCause(e, true);
- }
- }
- return Object.assign(Object.assign({}, body), requestBody);
- });
- }
- /**
- * Matches a route
- * @param req
- */
- matchRoute(req) {
- var _a;
- const httpMethod = (_a = req.method) === null || _a === void 0 ? void 0 : _a.toLowerCase();
- if (!httpMethod) {
- throw new errors_1.BadRouteError(`method not allowed`, req.method || "", req.url || "");
- }
- const routes = this.routes[httpMethod];
- for (const route of routes) {
- const match = route.matcher(req.url || "/");
- if (match) {
- return [match, route];
- }
- }
- throw new errors_1.NotFoundError(`url ${req.url} not found`);
- }
- /**
- * Parse query string
- * @param queryString
- */
- parseQueryString(queryString) {
- const queryParams = querystring_1.parse(queryString.replace("?", ""));
- return dotObject.object(queryParams);
- }
-}
-exports.Gateway = Gateway;
-
-
-/***/ }),
-
-/***/ 4263:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.isHook = exports.chainHooks = void 0;
-// ChainHooks creates a new ServerHook which chains the callbacks in
-// each of the constituent hooks passed in. Each hook function will be
-// called in the order of the ServerHooks values passed in.
-//
-// For the erroring hooks, RequestReceived and RequestRouted, any returned
-// errors prevent processing by later hooks.
-function chainHooks(...hooks) {
- if (hooks.length === 0) {
- return null;
- }
- if (hooks.length === 1) {
- return hooks[0];
- }
- const serverHook = {
- requestReceived(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestReceived) {
- continue;
- }
- yield hook.requestReceived(ctx);
- }
- });
- },
- requestPrepared(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestPrepared) {
- continue;
- }
- console.warn("hook requestPrepared is deprecated and will be removed in the next release. " +
- "Please use responsePrepared instead.");
- yield hook.requestPrepared(ctx);
- }
- });
- },
- responsePrepared(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.responsePrepared) {
- continue;
- }
- yield hook.responsePrepared(ctx);
- }
- });
- },
- requestSent(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestSent) {
- continue;
- }
- console.warn("hook requestSent is deprecated and will be removed in the next release. " +
- "Please use responseSent instead.");
- yield hook.requestSent(ctx);
- }
- });
- },
- responseSent(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.responseSent) {
- continue;
- }
- yield hook.responseSent(ctx);
- }
- });
- },
- requestRouted(ctx) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.requestRouted) {
- continue;
- }
- yield hook.requestRouted(ctx);
- }
- });
- },
- error(ctx, err) {
- return __awaiter(this, void 0, void 0, function* () {
- for (const hook of hooks) {
- if (!hook.error) {
- continue;
- }
- yield hook.error(ctx, err);
- }
- });
- },
- };
- return serverHook;
-}
-exports.chainHooks = chainHooks;
-function isHook(object) {
- return ("requestReceived" in object ||
- "requestPrepared" in object ||
- "requestSent" in object ||
- "requestRouted" in object ||
- "responsePrepared" in object ||
- "responseSent" in object ||
- "error" in object);
-}
-exports.isHook = isHook;
-
-
-/***/ }),
-
-/***/ 94091:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__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 = (this && this.__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.FetchRPC = exports.wrapErrorResponseToTwirpError = exports.NodeHttpRPC = void 0;
-const http = __importStar(__nccwpck_require__(13685));
-const https = __importStar(__nccwpck_require__(95687));
-const url_1 = __nccwpck_require__(57310);
-const errors_1 = __nccwpck_require__(66647);
-/**
- * a node HTTP RPC implementation
- * @param options
- * @constructor
- */
-const NodeHttpRPC = (options) => ({
- request(service, method, contentType, data) {
- let client;
- return new Promise((resolve, rejected) => {
- const responseChunks = [];
- const requestData = contentType === "application/protobuf"
- ? Buffer.from(data)
- : JSON.stringify(data);
- const url = new url_1.URL(options.baseUrl);
- const isHttps = url.protocol === "https:";
- if (isHttps) {
- client = https;
- }
- else {
- client = http;
- }
- const prefix = url.pathname !== "/" ? url.pathname : "";
- const req = client
- .request(Object.assign(Object.assign({}, (options ? options : {})), { method: "POST", protocol: url.protocol, host: url.hostname, port: url.port ? url.port : isHttps ? 443 : 80, path: `${prefix}/${service}/${method}`, headers: Object.assign(Object.assign({}, (options.headers ? options.headers : {})), { "Content-Type": contentType, "Content-Length": contentType === "application/protobuf"
- ? Buffer.byteLength(requestData)
- : Buffer.from(requestData).byteLength }) }), (res) => {
- res.on("data", (chunk) => responseChunks.push(chunk));
- res.on("end", () => {
- const data = Buffer.concat(responseChunks);
- if (res.statusCode != 200) {
- rejected(wrapErrorResponseToTwirpError(data.toString()));
- }
- else {
- if (contentType === "application/json") {
- resolve(JSON.parse(data.toString()));
- }
- else {
- resolve(data);
- }
- }
- });
- res.on("error", (err) => {
- rejected(err);
- });
- })
- .on("error", (err) => {
- rejected(err);
- });
- req.end(requestData);
- });
- },
-});
-exports.NodeHttpRPC = NodeHttpRPC;
-function wrapErrorResponseToTwirpError(errorResponse) {
- return errors_1.TwirpError.fromObject(JSON.parse(errorResponse));
-}
-exports.wrapErrorResponseToTwirpError = wrapErrorResponseToTwirpError;
-/**
- * a browser fetch RPC implementation
- */
-const FetchRPC = (options) => ({
- request(service, method, contentType, data) {
- return __awaiter(this, void 0, void 0, function* () {
- const headers = new Headers(options.headers);
- headers.set("content-type", contentType);
- const response = yield fetch(`${options.baseUrl}/${service}/${method}`, Object.assign(Object.assign({}, options), { method: "POST", headers, body: data instanceof Uint8Array ? data : JSON.stringify(data) }));
- if (response.status === 200) {
- if (contentType === "application/json") {
- return yield response.json();
- }
- return new Uint8Array(yield response.arrayBuffer());
- }
- throw errors_1.TwirpError.fromObject(yield response.json());
- });
- },
-});
-exports.FetchRPC = FetchRPC;
-
-
-/***/ }),
-
-/***/ 66465:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.TwirpContentType = void 0;
-__exportStar(__nccwpck_require__(31524), exports);
-__exportStar(__nccwpck_require__(26604), exports);
-__exportStar(__nccwpck_require__(48913), exports);
-__exportStar(__nccwpck_require__(4263), exports);
-__exportStar(__nccwpck_require__(66647), exports);
-__exportStar(__nccwpck_require__(56748), exports);
-__exportStar(__nccwpck_require__(94091), exports);
-var request_1 = __nccwpck_require__(8347);
-Object.defineProperty(exports, "TwirpContentType", ({ enumerable: true, get: function () { return request_1.TwirpContentType; } }));
-
-
-/***/ }),
-
-/***/ 48913:
-/***/ (function(__unused_webpack_module, exports) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.chainInterceptors = void 0;
-// chains multiple Interceptors into a single Interceptor.
-// The first interceptor wraps the second one, and so on.
-// Returns null if interceptors is empty.
-function chainInterceptors(...interceptors) {
- if (interceptors.length === 0) {
- return;
- }
- if (interceptors.length === 1) {
- return interceptors[0];
- }
- const first = interceptors[0];
- return (ctx, request, handler) => __awaiter(this, void 0, void 0, function* () {
- let next = handler;
- for (let i = interceptors.length - 1; i > 0; i--) {
- next = ((next) => (ctx, typedRequest) => {
- return interceptors[i](ctx, typedRequest, next);
- })(next);
- }
- return first(ctx, request, next);
- });
-}
-exports.chainInterceptors = chainInterceptors;
-
-
-/***/ }),
-
-/***/ 8347:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.parseTwirpPath = exports.getRequestData = exports.validateRequest = exports.getContentType = exports.TwirpContentType = void 0;
-const errors_1 = __nccwpck_require__(66647);
-/**
- * Supported Twirp Content-Type
- */
-var TwirpContentType;
-(function (TwirpContentType) {
- TwirpContentType[TwirpContentType["Protobuf"] = 0] = "Protobuf";
- TwirpContentType[TwirpContentType["JSON"] = 1] = "JSON";
- TwirpContentType[TwirpContentType["Unknown"] = 2] = "Unknown";
-})(TwirpContentType = exports.TwirpContentType || (exports.TwirpContentType = {}));
-/**
- * Get supported content-type
- * @param mimeType
- */
-function getContentType(mimeType) {
- switch (mimeType) {
- case "application/protobuf":
- return TwirpContentType.Protobuf;
- case "application/json":
- return TwirpContentType.JSON;
- default:
- return TwirpContentType.Unknown;
- }
-}
-exports.getContentType = getContentType;
-/**
- * Validate a twirp request
- * @param ctx
- * @param request
- * @param pathPrefix
- */
-function validateRequest(ctx, request, pathPrefix) {
- if (request.method !== "POST") {
- const msg = `unsupported method ${request.method} (only POST is allowed)`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- const path = parseTwirpPath(request.url || "");
- if (path.pkgService !==
- (ctx.packageName ? ctx.packageName + "." : "") + ctx.serviceName) {
- const msg = `no handler for path ${request.url}`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- if (path.prefix !== pathPrefix) {
- const msg = `invalid path prefix ${path.prefix}, expected ${pathPrefix}, on path ${request.url}`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- const mimeContentType = request.headers["content-type"] || "";
- if (ctx.contentType === TwirpContentType.Unknown) {
- const msg = `unexpected Content-Type: ${request.headers["content-type"]}`;
- throw new errors_1.BadRouteError(msg, request.method || "", request.url || "");
- }
- return Object.assign(Object.assign({}, path), { mimeContentType, contentType: ctx.contentType });
-}
-exports.validateRequest = validateRequest;
-/**
- * Get request data from the body
- * @param req
- */
-function getRequestData(req) {
- return new Promise((resolve, reject) => {
- const reqWithRawBody = req;
- if (reqWithRawBody.rawBody instanceof Buffer) {
- resolve(reqWithRawBody.rawBody);
- return;
- }
- const chunks = [];
- req.on("data", (chunk) => chunks.push(chunk));
- req.on("end", () => __awaiter(this, void 0, void 0, function* () {
- const data = Buffer.concat(chunks);
- resolve(data);
- }));
- req.on("error", (err) => {
- if (req.aborted) {
- reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.DeadlineExceeded, "failed to read request: deadline exceeded"));
- }
- else {
- reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.Malformed, err.message).withCause(err));
- }
- });
- req.on("close", () => {
- reject(new errors_1.TwirpError(errors_1.TwirpErrorCode.Canceled, "failed to read request: context canceled"));
- });
- });
-}
-exports.getRequestData = getRequestData;
-/**
- * Parses twirp url path
- * @param path
- */
-function parseTwirpPath(path) {
- const parts = path.split("/");
- if (parts.length < 2) {
- return {
- pkgService: "",
- method: "",
- prefix: "",
- };
- }
- return {
- method: parts[parts.length - 1],
- pkgService: parts[parts.length - 2],
- prefix: parts.slice(0, parts.length - 2).join("/"),
- };
-}
-exports.parseTwirpPath = parseTwirpPath;
-
-
-/***/ }),
-
-/***/ 26604:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__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.writeError = exports.TwirpServer = void 0;
-const hooks_1 = __nccwpck_require__(4263);
-const request_1 = __nccwpck_require__(8347);
-const errors_1 = __nccwpck_require__(66647);
-/**
- * Runtime server implementation of a TwirpServer
- */
-class TwirpServer {
- constructor(options) {
- this.pathPrefix = "/twirp";
- this.hooks = [];
- this.interceptors = [];
- this.packageName = options.packageName;
- this.serviceName = options.serviceName;
- this.methodList = options.methodList;
- this.matchRoute = options.matchRoute;
- this.service = options.service;
- }
- /**
- * Returns the prefix for this server
- */
- get prefix() {
- return this.pathPrefix;
- }
- /**
- * The http handler for twirp complaint endpoints
- * @param options
- */
- httpHandler(options) {
- return (req, resp) => {
- // setup prefix
- if ((options === null || options === void 0 ? void 0 : options.prefix) !== undefined) {
- this.withPrefix(options.prefix);
- }
- return this._httpHandler(req, resp);
- };
- }
- /**
- * Adds interceptors or hooks to the request stack
- * @param middlewares
- */
- use(...middlewares) {
- middlewares.forEach((middleware) => {
- if (hooks_1.isHook(middleware)) {
- this.hooks.push(middleware);
- return this;
- }
- this.interceptors.push(middleware);
- });
- return this;
- }
- /**
- * Adds a prefix to the service url path
- * @param prefix
- */
- withPrefix(prefix) {
- if (prefix === false) {
- this.pathPrefix = "";
- }
- else {
- this.pathPrefix = prefix;
- }
- return this;
- }
- /**
- * Returns the regex matching path for this twirp server
- */
- matchingPath() {
- const baseRegex = this.baseURI().replace(/\./g, "\\.");
- return new RegExp(`${baseRegex}\/(${this.methodList.join("|")})`);
- }
- /**
- * Returns the base URI for this twirp server
- */
- baseURI() {
- return `${this.pathPrefix}/${this.packageName ? this.packageName + "." : ""}${this.serviceName}`;
- }
- /**
- * Create a twirp context
- * @param req
- * @param res
- * @private
- */
- createContext(req, res) {
- return {
- packageName: this.packageName,
- serviceName: this.serviceName,
- methodName: "",
- contentType: request_1.getContentType(req.headers["content-type"]),
- req: req,
- res: res,
- };
- }
- /**
- * Twrip server http handler implementation
- * @param req
- * @param resp
- * @private
- */
- _httpHandler(req, resp) {
- return __awaiter(this, void 0, void 0, function* () {
- const ctx = this.createContext(req, resp);
- try {
- yield this.invokeHook("requestReceived", ctx);
- const { method, mimeContentType } = request_1.validateRequest(ctx, req, this.pathPrefix || "");
- const handler = this.matchRoute(method, {
- onMatch: (ctx) => {
- return this.invokeHook("requestRouted", ctx);
- },
- onNotFound: () => {
- const msg = `no handler for path ${req.url}`;
- throw new errors_1.BadRouteError(msg, req.method || "", req.url || "");
- },
- });
- const body = yield request_1.getRequestData(req);
- const response = yield handler(ctx, this.service, body, this.interceptors);
- yield Promise.all([
- this.invokeHook("responsePrepared", ctx),
- // keep backwards compatibility till next release
- this.invokeHook("requestPrepared", ctx),
- ]);
- resp.statusCode = 200;
- resp.setHeader("Content-Type", mimeContentType);
- resp.end(response);
- }
- catch (e) {
- yield this.invokeHook("error", ctx, mustBeTwirpError(e));
- if (!resp.headersSent) {
- writeError(resp, e);
- }
- }
- finally {
- yield Promise.all([
- this.invokeHook("responseSent", ctx),
- // keep backwards compatibility till next release
- this.invokeHook("requestSent", ctx),
- ]);
- }
- });
- }
- /**
- * Invoke a hook
- * @param hookName
- * @param ctx
- * @param err
- * @protected
- */
- invokeHook(hookName, ctx, err) {
- return __awaiter(this, void 0, void 0, function* () {
- if (this.hooks.length === 0) {
- return;
- }
- const chainedHooks = hooks_1.chainHooks(...this.hooks);
- const hook = chainedHooks === null || chainedHooks === void 0 ? void 0 : chainedHooks[hookName];
- if (hook) {
- yield hook(ctx, err || new errors_1.InternalServerError("internal server error"));
- }
- });
- }
-}
-exports.TwirpServer = TwirpServer;
-/**
- * Write http error response
- * @param res
- * @param error
- */
-function writeError(res, error) {
- const twirpError = mustBeTwirpError(error);
- res.setHeader("Content-Type", "application/json");
- res.statusCode = errors_1.httpStatusFromErrorCode(twirpError.code);
- res.end(twirpError.toJSON());
-}
-exports.writeError = writeError;
-/**
- * Make sure that the error passed is a TwirpError
- * otherwise it will wrap it into an InternalError
- * @param err
- */
-function mustBeTwirpError(err) {
- if (err instanceof errors_1.TwirpError) {
- return err;
- }
- return new errors_1.InternalServerErrorWith(err);
-}
-
-
-/***/ }),
-
-/***/ 41773:
+/***/ 1773:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const Client = __nccwpck_require__(33598)
-const Dispatcher = __nccwpck_require__(60412)
-const errors = __nccwpck_require__(48045)
+const Client = __nccwpck_require__(3598)
+const Dispatcher = __nccwpck_require__(412)
+const errors = __nccwpck_require__(8045)
const Pool = __nccwpck_require__(4634)
-const BalancedPool = __nccwpck_require__(37931)
+const BalancedPool = __nccwpck_require__(7931)
const Agent = __nccwpck_require__(7890)
-const util = __nccwpck_require__(83983)
+const util = __nccwpck_require__(3983)
const { InvalidArgumentError } = errors
-const api = __nccwpck_require__(44059)
-const buildConnector = __nccwpck_require__(82067)
-const MockClient = __nccwpck_require__(58687)
-const MockAgent = __nccwpck_require__(66771)
-const MockPool = __nccwpck_require__(26193)
-const mockErrors = __nccwpck_require__(50888)
-const ProxyAgent = __nccwpck_require__(97858)
-const RetryHandler = __nccwpck_require__(82286)
-const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(21892)
-const DecoratorHandler = __nccwpck_require__(46930)
-const RedirectHandler = __nccwpck_require__(72860)
-const createRedirectInterceptor = __nccwpck_require__(38861)
+const api = __nccwpck_require__(4059)
+const buildConnector = __nccwpck_require__(2067)
+const MockClient = __nccwpck_require__(8687)
+const MockAgent = __nccwpck_require__(6771)
+const MockPool = __nccwpck_require__(6193)
+const mockErrors = __nccwpck_require__(888)
+const ProxyAgent = __nccwpck_require__(7858)
+const RetryHandler = __nccwpck_require__(2286)
+const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(1892)
+const DecoratorHandler = __nccwpck_require__(6930)
+const RedirectHandler = __nccwpck_require__(2860)
+const createRedirectInterceptor = __nccwpck_require__(8861)
let hasCrypto
try {
@@ -68857,7 +61207,7 @@ if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) {
let fetchImpl = null
module.exports.fetch = async function fetch (resource) {
if (!fetchImpl) {
- fetchImpl = (__nccwpck_require__(74881).fetch)
+ fetchImpl = (__nccwpck_require__(4881).fetch)
}
try {
@@ -68870,20 +61220,20 @@ if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) {
throw err
}
}
- module.exports.Headers = __nccwpck_require__(10554).Headers
- module.exports.Response = __nccwpck_require__(27823).Response
- module.exports.Request = __nccwpck_require__(48359).Request
- module.exports.FormData = __nccwpck_require__(72015).FormData
- module.exports.File = __nccwpck_require__(78511).File
+ module.exports.Headers = __nccwpck_require__(554).Headers
+ module.exports.Response = __nccwpck_require__(7823).Response
+ module.exports.Request = __nccwpck_require__(8359).Request
+ module.exports.FormData = __nccwpck_require__(2015).FormData
+ module.exports.File = __nccwpck_require__(8511).File
module.exports.FileReader = __nccwpck_require__(1446).FileReader
- const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(71246)
+ const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(1246)
module.exports.setGlobalOrigin = setGlobalOrigin
module.exports.getGlobalOrigin = getGlobalOrigin
- const { CacheStorage } = __nccwpck_require__(37907)
- const { kConstruct } = __nccwpck_require__(29174)
+ const { CacheStorage } = __nccwpck_require__(7907)
+ const { kConstruct } = __nccwpck_require__(9174)
// Cache & CacheStorage are tightly coupled with fetch. Even if it may run
// in an older version of Node, it doesn't have any use without fetch.
@@ -68891,7 +61241,7 @@ if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) {
}
if (util.nodeMajor >= 16) {
- const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(41724)
+ const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(1724)
module.exports.deleteCookie = deleteCookie
module.exports.getCookies = getCookies
@@ -68905,7 +61255,7 @@ if (util.nodeMajor >= 16) {
}
if (util.nodeMajor >= 18 && hasCrypto) {
- const { WebSocket } = __nccwpck_require__(54284)
+ const { WebSocket } = __nccwpck_require__(4284)
module.exports.WebSocket = WebSocket
}
@@ -68930,14 +61280,14 @@ module.exports.mockErrors = mockErrors
"use strict";
-const { InvalidArgumentError } = __nccwpck_require__(48045)
-const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(72785)
-const DispatcherBase = __nccwpck_require__(74839)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
+const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(2785)
+const DispatcherBase = __nccwpck_require__(4839)
const Pool = __nccwpck_require__(4634)
-const Client = __nccwpck_require__(33598)
-const util = __nccwpck_require__(83983)
-const createRedirectInterceptor = __nccwpck_require__(38861)
-const { WeakRef, FinalizationRegistry } = __nccwpck_require__(56436)()
+const Client = __nccwpck_require__(3598)
+const util = __nccwpck_require__(3983)
+const createRedirectInterceptor = __nccwpck_require__(8861)
+const { WeakRef, FinalizationRegistry } = __nccwpck_require__(6436)()
const kOnConnect = Symbol('onConnect')
const kOnDisconnect = Symbol('onDisconnect')
@@ -69083,8 +61433,8 @@ module.exports = Agent
/***/ 7032:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const { addAbortListener } = __nccwpck_require__(83983)
-const { RequestAbortedError } = __nccwpck_require__(48045)
+const { addAbortListener } = __nccwpck_require__(3983)
+const { RequestAbortedError } = __nccwpck_require__(8045)
const kListener = Symbol('kListener')
const kSignal = Symbol('kSignal')
@@ -69141,15 +61491,15 @@ module.exports = {
/***/ }),
-/***/ 29744:
+/***/ 9744:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { AsyncResource } = __nccwpck_require__(50852)
-const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(48045)
-const util = __nccwpck_require__(83983)
+const { AsyncResource } = __nccwpck_require__(852)
+const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045)
+const util = __nccwpck_require__(3983)
const { addSignal, removeSignal } = __nccwpck_require__(7032)
class ConnectHandler extends AsyncResource {
@@ -69253,7 +61603,7 @@ module.exports = connect
/***/ }),
-/***/ 28752:
+/***/ 8752:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -69263,16 +61613,16 @@ const {
Readable,
Duplex,
PassThrough
-} = __nccwpck_require__(12781)
+} = __nccwpck_require__(2781)
const {
InvalidArgumentError,
InvalidReturnValueError,
RequestAbortedError
-} = __nccwpck_require__(48045)
-const util = __nccwpck_require__(83983)
-const { AsyncResource } = __nccwpck_require__(50852)
+} = __nccwpck_require__(8045)
+const util = __nccwpck_require__(3983)
+const { AsyncResource } = __nccwpck_require__(852)
const { addSignal, removeSignal } = __nccwpck_require__(7032)
-const assert = __nccwpck_require__(39491)
+const assert = __nccwpck_require__(9491)
const kResume = Symbol('resume')
@@ -69510,20 +61860,20 @@ module.exports = pipeline
/***/ }),
-/***/ 55448:
+/***/ 5448:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const Readable = __nccwpck_require__(73858)
+const Readable = __nccwpck_require__(3858)
const {
InvalidArgumentError,
RequestAbortedError
-} = __nccwpck_require__(48045)
-const util = __nccwpck_require__(83983)
-const { getResolveErrorBodyCallback } = __nccwpck_require__(77474)
-const { AsyncResource } = __nccwpck_require__(50852)
+} = __nccwpck_require__(8045)
+const util = __nccwpck_require__(3983)
+const { getResolveErrorBodyCallback } = __nccwpck_require__(7474)
+const { AsyncResource } = __nccwpck_require__(852)
const { addSignal, removeSignal } = __nccwpck_require__(7032)
class RequestHandler extends AsyncResource {
@@ -69698,21 +62048,21 @@ module.exports.RequestHandler = RequestHandler
/***/ }),
-/***/ 75395:
+/***/ 5395:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { finished, PassThrough } = __nccwpck_require__(12781)
+const { finished, PassThrough } = __nccwpck_require__(2781)
const {
InvalidArgumentError,
InvalidReturnValueError,
RequestAbortedError
-} = __nccwpck_require__(48045)
-const util = __nccwpck_require__(83983)
-const { getResolveErrorBodyCallback } = __nccwpck_require__(77474)
-const { AsyncResource } = __nccwpck_require__(50852)
+} = __nccwpck_require__(8045)
+const util = __nccwpck_require__(3983)
+const { getResolveErrorBodyCallback } = __nccwpck_require__(7474)
+const { AsyncResource } = __nccwpck_require__(852)
const { addSignal, removeSignal } = __nccwpck_require__(7032)
class StreamHandler extends AsyncResource {
@@ -69926,17 +62276,17 @@ module.exports = stream
/***/ }),
-/***/ 36923:
+/***/ 6923:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(48045)
-const { AsyncResource } = __nccwpck_require__(50852)
-const util = __nccwpck_require__(83983)
+const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045)
+const { AsyncResource } = __nccwpck_require__(852)
+const util = __nccwpck_require__(3983)
const { addSignal, removeSignal } = __nccwpck_require__(7032)
-const assert = __nccwpck_require__(39491)
+const assert = __nccwpck_require__(9491)
class UpgradeHandler extends AsyncResource {
constructor (opts, callback) {
@@ -70039,22 +62389,22 @@ module.exports = upgrade
/***/ }),
-/***/ 44059:
+/***/ 4059:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-module.exports.request = __nccwpck_require__(55448)
-module.exports.stream = __nccwpck_require__(75395)
-module.exports.pipeline = __nccwpck_require__(28752)
-module.exports.upgrade = __nccwpck_require__(36923)
-module.exports.connect = __nccwpck_require__(29744)
+module.exports.request = __nccwpck_require__(5448)
+module.exports.stream = __nccwpck_require__(5395)
+module.exports.pipeline = __nccwpck_require__(8752)
+module.exports.upgrade = __nccwpck_require__(6923)
+module.exports.connect = __nccwpck_require__(9744)
/***/ }),
-/***/ 73858:
+/***/ 3858:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -70062,11 +62412,11 @@ module.exports.connect = __nccwpck_require__(29744)
-const assert = __nccwpck_require__(39491)
-const { Readable } = __nccwpck_require__(12781)
-const { RequestAbortedError, NotSupportedError, InvalidArgumentError } = __nccwpck_require__(48045)
-const util = __nccwpck_require__(83983)
-const { ReadableStreamFrom, toUSVString } = __nccwpck_require__(83983)
+const assert = __nccwpck_require__(9491)
+const { Readable } = __nccwpck_require__(2781)
+const { RequestAbortedError, NotSupportedError, InvalidArgumentError } = __nccwpck_require__(8045)
+const util = __nccwpck_require__(3983)
+const { ReadableStreamFrom, toUSVString } = __nccwpck_require__(3983)
let Blob
@@ -70346,7 +62696,7 @@ function consumeEnd (consume) {
resolve(dst.buffer)
} else if (type === 'blob') {
if (!Blob) {
- Blob = (__nccwpck_require__(14300).Blob)
+ Blob = (__nccwpck_require__(4300).Blob)
}
resolve(new Blob(body, { type: stream[kContentType] }))
}
@@ -70384,14 +62734,14 @@ function consumeFinish (consume, err) {
/***/ }),
-/***/ 77474:
+/***/ 7474:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const assert = __nccwpck_require__(39491)
+const assert = __nccwpck_require__(9491)
const {
ResponseStatusCodeError
-} = __nccwpck_require__(48045)
-const { toUSVString } = __nccwpck_require__(83983)
+} = __nccwpck_require__(8045)
+const { toUSVString } = __nccwpck_require__(3983)
async function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {
assert(body)
@@ -70437,7 +62787,7 @@ module.exports = { getResolveErrorBodyCallback }
/***/ }),
-/***/ 37931:
+/***/ 7931:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -70446,7 +62796,7 @@ module.exports = { getResolveErrorBodyCallback }
const {
BalancedPoolMissingUpstreamError,
InvalidArgumentError
-} = __nccwpck_require__(48045)
+} = __nccwpck_require__(8045)
const {
PoolBase,
kClients,
@@ -70454,10 +62804,10 @@ const {
kAddClient,
kRemoveClient,
kGetDispatcher
-} = __nccwpck_require__(73198)
+} = __nccwpck_require__(3198)
const Pool = __nccwpck_require__(4634)
-const { kUrl, kInterceptors } = __nccwpck_require__(72785)
-const { parseOrigin } = __nccwpck_require__(83983)
+const { kUrl, kInterceptors } = __nccwpck_require__(2785)
+const { parseOrigin } = __nccwpck_require__(3983)
const kFactory = Symbol('factory')
const kOptions = Symbol('options')
@@ -70635,24 +62985,24 @@ module.exports = BalancedPool
/***/ }),
-/***/ 66101:
+/***/ 6101:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { kConstruct } = __nccwpck_require__(29174)
-const { urlEquals, fieldValues: getFieldValues } = __nccwpck_require__(82396)
-const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(83983)
-const { kHeadersList } = __nccwpck_require__(72785)
-const { webidl } = __nccwpck_require__(21744)
-const { Response, cloneResponse } = __nccwpck_require__(27823)
-const { Request } = __nccwpck_require__(48359)
-const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(15861)
-const { fetching } = __nccwpck_require__(74881)
-const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(52538)
-const assert = __nccwpck_require__(39491)
-const { getGlobalDispatcher } = __nccwpck_require__(21892)
+const { kConstruct } = __nccwpck_require__(9174)
+const { urlEquals, fieldValues: getFieldValues } = __nccwpck_require__(2396)
+const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(3983)
+const { kHeadersList } = __nccwpck_require__(2785)
+const { webidl } = __nccwpck_require__(1744)
+const { Response, cloneResponse } = __nccwpck_require__(7823)
+const { Request } = __nccwpck_require__(8359)
+const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
+const { fetching } = __nccwpck_require__(4881)
+const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(2538)
+const assert = __nccwpck_require__(9491)
+const { getGlobalDispatcher } = __nccwpck_require__(1892)
/**
* @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation
@@ -71481,16 +63831,16 @@ module.exports = {
/***/ }),
-/***/ 37907:
+/***/ 7907:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { kConstruct } = __nccwpck_require__(29174)
-const { Cache } = __nccwpck_require__(66101)
-const { webidl } = __nccwpck_require__(21744)
-const { kEnumerableProperty } = __nccwpck_require__(83983)
+const { kConstruct } = __nccwpck_require__(9174)
+const { Cache } = __nccwpck_require__(6101)
+const { webidl } = __nccwpck_require__(1744)
+const { kEnumerableProperty } = __nccwpck_require__(3983)
class CacheStorage {
/**
@@ -71633,28 +63983,28 @@ module.exports = {
/***/ }),
-/***/ 29174:
+/***/ 9174:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
module.exports = {
- kConstruct: (__nccwpck_require__(72785).kConstruct)
+ kConstruct: (__nccwpck_require__(2785).kConstruct)
}
/***/ }),
-/***/ 82396:
+/***/ 2396:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const assert = __nccwpck_require__(39491)
+const assert = __nccwpck_require__(9491)
const { URLSerializer } = __nccwpck_require__(685)
-const { isValidHeaderName } = __nccwpck_require__(52538)
+const { isValidHeaderName } = __nccwpck_require__(2538)
/**
* @see https://url.spec.whatwg.org/#concept-url-equals
@@ -71703,7 +64053,7 @@ module.exports = {
/***/ }),
-/***/ 33598:
+/***/ 3598:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -71713,14 +64063,14 @@ module.exports = {
/* global WebAssembly */
-const assert = __nccwpck_require__(39491)
-const net = __nccwpck_require__(41808)
-const http = __nccwpck_require__(13685)
-const { pipeline } = __nccwpck_require__(12781)
-const util = __nccwpck_require__(83983)
-const timers = __nccwpck_require__(29459)
-const Request = __nccwpck_require__(62905)
-const DispatcherBase = __nccwpck_require__(74839)
+const assert = __nccwpck_require__(9491)
+const net = __nccwpck_require__(1808)
+const http = __nccwpck_require__(3685)
+const { pipeline } = __nccwpck_require__(2781)
+const util = __nccwpck_require__(3983)
+const timers = __nccwpck_require__(9459)
+const Request = __nccwpck_require__(2905)
+const DispatcherBase = __nccwpck_require__(4839)
const {
RequestContentLengthMismatchError,
ResponseContentLengthMismatchError,
@@ -71734,8 +64084,8 @@ const {
HTTPParserError,
ResponseExceededMaxSizeError,
ClientDestroyedError
-} = __nccwpck_require__(48045)
-const buildConnector = __nccwpck_require__(82067)
+} = __nccwpck_require__(8045)
+const buildConnector = __nccwpck_require__(2067)
const {
kUrl,
kReset,
@@ -71787,12 +64137,12 @@ const {
kHTTP2BuildRequest,
kHTTP2CopyHeaders,
kHTTP1BuildRequest
-} = __nccwpck_require__(72785)
+} = __nccwpck_require__(2785)
/** @type {import('http2')} */
let http2
try {
- http2 = __nccwpck_require__(85158)
+ http2 = __nccwpck_require__(5158)
} catch {
// @ts-ignore
http2 = { constants: {} }
@@ -71820,7 +64170,7 @@ const kClosedResolve = Symbol('kClosedResolve')
const channels = {}
try {
- const diagnosticsChannel = __nccwpck_require__(67643)
+ const diagnosticsChannel = __nccwpck_require__(7643)
channels.sendHeaders = diagnosticsChannel.channel('undici:client:sendHeaders')
channels.beforeConnect = diagnosticsChannel.channel('undici:client:beforeConnect')
channels.connectError = diagnosticsChannel.channel('undici:client:connectError')
@@ -72193,16 +64543,16 @@ function onHTTP2GoAway (code) {
resume(client)
}
-const constants = __nccwpck_require__(30953)
-const createRedirectInterceptor = __nccwpck_require__(38861)
+const constants = __nccwpck_require__(953)
+const createRedirectInterceptor = __nccwpck_require__(8861)
const EMPTY_BUF = Buffer.alloc(0)
async function lazyllhttp () {
- const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(61145) : undefined
+ const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(1145) : undefined
let mod
try {
- mod = await WebAssembly.compile(Buffer.from(__nccwpck_require__(95627), 'base64'))
+ mod = await WebAssembly.compile(Buffer.from(__nccwpck_require__(5627), 'base64'))
} catch (e) {
/* istanbul ignore next */
@@ -72210,7 +64560,7 @@ async function lazyllhttp () {
// being enabled, but the occurring of this other error
// * https://github.com/emscripten-core/emscripten/issues/11495
// got me to remove that check to avoid breaking Node 12.
- mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || __nccwpck_require__(61145), 'base64'))
+ mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || __nccwpck_require__(1145), 'base64'))
}
return await WebAssembly.instantiate(mod, {
@@ -73994,7 +66344,7 @@ module.exports = Client
/***/ }),
-/***/ 56436:
+/***/ 6436:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -74002,7 +66352,7 @@ module.exports = Client
/* istanbul ignore file: only for Node 12 */
-const { kConnected, kSize } = __nccwpck_require__(72785)
+const { kConnected, kSize } = __nccwpck_require__(2785)
class CompatWeakRef {
constructor (value) {
@@ -74050,7 +66400,7 @@ module.exports = function () {
/***/ }),
-/***/ 20663:
+/***/ 663:
/***/ ((module) => {
"use strict";
@@ -74070,16 +66420,16 @@ module.exports = {
/***/ }),
-/***/ 41724:
+/***/ 1724:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { parseSetCookie } = __nccwpck_require__(24408)
-const { stringify, getHeadersList } = __nccwpck_require__(43121)
-const { webidl } = __nccwpck_require__(21744)
-const { Headers } = __nccwpck_require__(10554)
+const { parseSetCookie } = __nccwpck_require__(4408)
+const { stringify, getHeadersList } = __nccwpck_require__(3121)
+const { webidl } = __nccwpck_require__(1744)
+const { Headers } = __nccwpck_require__(554)
/**
* @typedef {Object} Cookie
@@ -74262,16 +66612,16 @@ module.exports = {
/***/ }),
-/***/ 24408:
+/***/ 4408:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(20663)
-const { isCTLExcludingHtab } = __nccwpck_require__(43121)
+const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(663)
+const { isCTLExcludingHtab } = __nccwpck_require__(3121)
const { collectASequenceOfCodePointsFast } = __nccwpck_require__(685)
-const assert = __nccwpck_require__(39491)
+const assert = __nccwpck_require__(9491)
/**
* @description Parses the field-value attributes of a set-cookie header string.
@@ -74587,14 +66937,14 @@ module.exports = {
/***/ }),
-/***/ 43121:
+/***/ 3121:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const assert = __nccwpck_require__(39491)
-const { kHeadersList } = __nccwpck_require__(72785)
+const assert = __nccwpck_require__(9491)
+const { kHeadersList } = __nccwpck_require__(2785)
function isCTLExcludingHtab (value) {
if (value.length === 0) {
@@ -74886,16 +67236,16 @@ module.exports = {
/***/ }),
-/***/ 82067:
+/***/ 2067:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const net = __nccwpck_require__(41808)
-const assert = __nccwpck_require__(39491)
-const util = __nccwpck_require__(83983)
-const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(48045)
+const net = __nccwpck_require__(1808)
+const assert = __nccwpck_require__(9491)
+const util = __nccwpck_require__(3983)
+const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(8045)
let tls // include tls conditionally since it is not always available
@@ -74978,7 +67328,7 @@ function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...o
let socket
if (protocol === 'https:') {
if (!tls) {
- tls = __nccwpck_require__(24404)
+ tls = __nccwpck_require__(4404)
}
servername = servername || options.servername || util.getServerName(host) || null
@@ -75083,7 +67433,7 @@ module.exports = buildConnector
/***/ }),
-/***/ 14462:
+/***/ 4462:
/***/ ((module) => {
"use strict";
@@ -75209,7 +67559,7 @@ module.exports = {
/***/ }),
-/***/ 48045:
+/***/ 8045:
/***/ ((module) => {
"use strict";
@@ -75447,7 +67797,7 @@ module.exports = {
/***/ }),
-/***/ 62905:
+/***/ 2905:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -75456,10 +67806,10 @@ module.exports = {
const {
InvalidArgumentError,
NotSupportedError
-} = __nccwpck_require__(48045)
-const assert = __nccwpck_require__(39491)
-const { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = __nccwpck_require__(72785)
-const util = __nccwpck_require__(83983)
+} = __nccwpck_require__(8045)
+const assert = __nccwpck_require__(9491)
+const { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = __nccwpck_require__(2785)
+const util = __nccwpck_require__(3983)
// tokenRegExp and headerCharRegex have been lifted from
// https://github.com/nodejs/node/blob/main/lib/_http_common.js
@@ -75489,7 +67839,7 @@ const channels = {}
let extractBody
try {
- const diagnosticsChannel = __nccwpck_require__(67643)
+ const diagnosticsChannel = __nccwpck_require__(7643)
channels.create = diagnosticsChannel.channel('undici:request:create')
channels.bodySent = diagnosticsChannel.channel('undici:request:bodySent')
channels.headers = diagnosticsChannel.channel('undici:request:headers')
@@ -75654,7 +68004,7 @@ class Request {
}
if (!extractBody) {
- extractBody = (__nccwpck_require__(41472).extractBody)
+ extractBody = (__nccwpck_require__(9990).extractBody)
}
const [bodyStream, contentType] = extractBody(body)
@@ -75954,7 +68304,7 @@ module.exports = Request
/***/ }),
-/***/ 72785:
+/***/ 2785:
/***/ ((module) => {
module.exports = {
@@ -76024,22 +68374,22 @@ module.exports = {
/***/ }),
-/***/ 83983:
+/***/ 3983:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const assert = __nccwpck_require__(39491)
-const { kDestroyed, kBodyUsed } = __nccwpck_require__(72785)
-const { IncomingMessage } = __nccwpck_require__(13685)
-const stream = __nccwpck_require__(12781)
-const net = __nccwpck_require__(41808)
-const { InvalidArgumentError } = __nccwpck_require__(48045)
-const { Blob } = __nccwpck_require__(14300)
-const nodeUtil = __nccwpck_require__(73837)
-const { stringify } = __nccwpck_require__(63477)
-const { headerNameLowerCasedRecord } = __nccwpck_require__(14462)
+const assert = __nccwpck_require__(9491)
+const { kDestroyed, kBodyUsed } = __nccwpck_require__(2785)
+const { IncomingMessage } = __nccwpck_require__(3685)
+const stream = __nccwpck_require__(2781)
+const net = __nccwpck_require__(1808)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
+const { Blob } = __nccwpck_require__(4300)
+const nodeUtil = __nccwpck_require__(3837)
+const { stringify } = __nccwpck_require__(3477)
+const { headerNameLowerCasedRecord } = __nccwpck_require__(4462)
const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
@@ -76408,7 +68758,7 @@ async function * convertIterableToBuffer (iterable) {
let ReadableStream
function ReadableStreamFrom (iterable) {
if (!ReadableStream) {
- ReadableStream = (__nccwpck_require__(35356).ReadableStream)
+ ReadableStream = (__nccwpck_require__(5356).ReadableStream)
}
if (ReadableStream.from) {
@@ -76554,19 +68904,19 @@ module.exports = {
/***/ }),
-/***/ 74839:
+/***/ 4839:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const Dispatcher = __nccwpck_require__(60412)
+const Dispatcher = __nccwpck_require__(412)
const {
ClientDestroyedError,
ClientClosedError,
InvalidArgumentError
-} = __nccwpck_require__(48045)
-const { kDestroy, kClose, kDispatch, kInterceptors } = __nccwpck_require__(72785)
+} = __nccwpck_require__(8045)
+const { kDestroy, kClose, kDispatch, kInterceptors } = __nccwpck_require__(2785)
const kDestroyed = Symbol('destroyed')
const kClosed = Symbol('closed')
@@ -76754,13 +69104,13 @@ module.exports = DispatcherBase
/***/ }),
-/***/ 60412:
+/***/ 412:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const EventEmitter = __nccwpck_require__(82361)
+const EventEmitter = __nccwpck_require__(2361)
class Dispatcher extends EventEmitter {
dispatch () {
@@ -76781,14 +69131,14 @@ module.exports = Dispatcher
/***/ }),
-/***/ 41472:
+/***/ 9990:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const Busboy = __nccwpck_require__(50727)
-const util = __nccwpck_require__(83983)
+const Busboy = __nccwpck_require__(727)
+const util = __nccwpck_require__(3983)
const {
ReadableStreamFrom,
isBlobLike,
@@ -76796,17 +69146,17 @@ const {
readableStreamClose,
createDeferredPromise,
fullyReadBody
-} = __nccwpck_require__(52538)
-const { FormData } = __nccwpck_require__(72015)
-const { kState } = __nccwpck_require__(15861)
-const { webidl } = __nccwpck_require__(21744)
-const { DOMException, structuredClone } = __nccwpck_require__(41037)
-const { Blob, File: NativeFile } = __nccwpck_require__(14300)
-const { kBodyUsed } = __nccwpck_require__(72785)
-const assert = __nccwpck_require__(39491)
-const { isErrored } = __nccwpck_require__(83983)
-const { isUint8Array, isArrayBuffer } = __nccwpck_require__(29830)
-const { File: UndiciFile } = __nccwpck_require__(78511)
+} = __nccwpck_require__(2538)
+const { FormData } = __nccwpck_require__(2015)
+const { kState } = __nccwpck_require__(5861)
+const { webidl } = __nccwpck_require__(1744)
+const { DOMException, structuredClone } = __nccwpck_require__(1037)
+const { Blob, File: NativeFile } = __nccwpck_require__(4300)
+const { kBodyUsed } = __nccwpck_require__(2785)
+const assert = __nccwpck_require__(9491)
+const { isErrored } = __nccwpck_require__(3983)
+const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
+const { File: UndiciFile } = __nccwpck_require__(8511)
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
let ReadableStream = globalThis.ReadableStream
@@ -76819,7 +69169,7 @@ const textDecoder = new TextDecoder()
// https://fetch.spec.whatwg.org/#concept-bodyinit-extract
function extractBody (object, keepalive = false) {
if (!ReadableStream) {
- ReadableStream = (__nccwpck_require__(35356).ReadableStream)
+ ReadableStream = (__nccwpck_require__(5356).ReadableStream)
}
// 1. Let stream be null.
@@ -77040,7 +69390,7 @@ function extractBody (object, keepalive = false) {
function safelyExtractBody (object, keepalive = false) {
if (!ReadableStream) {
// istanbul ignore next
- ReadableStream = (__nccwpck_require__(35356).ReadableStream)
+ ReadableStream = (__nccwpck_require__(5356).ReadableStream)
}
// To safely extract a body and a `Content-Type` value from
@@ -77394,13 +69744,13 @@ module.exports = {
/***/ }),
-/***/ 41037:
+/***/ 1037:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { MessageChannel, receiveMessageOnPort } = __nccwpck_require__(71267)
+const { MessageChannel, receiveMessageOnPort } = __nccwpck_require__(1267)
const corsSafeListedMethods = ['GET', 'HEAD', 'POST']
const corsSafeListedMethodsSet = new Set(corsSafeListedMethods)
@@ -77556,9 +69906,9 @@ module.exports = {
/***/ 685:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const assert = __nccwpck_require__(39491)
-const { atob } = __nccwpck_require__(14300)
-const { isomorphicDecode } = __nccwpck_require__(52538)
+const assert = __nccwpck_require__(9491)
+const { atob } = __nccwpck_require__(4300)
+const { isomorphicDecode } = __nccwpck_require__(2538)
const encoder = new TextEncoder()
@@ -78187,19 +70537,19 @@ module.exports = {
/***/ }),
-/***/ 78511:
+/***/ 8511:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { Blob, File: NativeFile } = __nccwpck_require__(14300)
-const { types } = __nccwpck_require__(73837)
-const { kState } = __nccwpck_require__(15861)
-const { isBlobLike } = __nccwpck_require__(52538)
-const { webidl } = __nccwpck_require__(21744)
+const { Blob, File: NativeFile } = __nccwpck_require__(4300)
+const { types } = __nccwpck_require__(3837)
+const { kState } = __nccwpck_require__(5861)
+const { isBlobLike } = __nccwpck_require__(2538)
+const { webidl } = __nccwpck_require__(1744)
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
-const { kEnumerableProperty } = __nccwpck_require__(83983)
+const { kEnumerableProperty } = __nccwpck_require__(3983)
const encoder = new TextEncoder()
class File extends Blob {
@@ -78539,17 +70889,17 @@ module.exports = { File, FileLike, isFileLike }
/***/ }),
-/***/ 72015:
+/***/ 2015:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { isBlobLike, toUSVString, makeIterator } = __nccwpck_require__(52538)
-const { kState } = __nccwpck_require__(15861)
-const { File: UndiciFile, FileLike, isFileLike } = __nccwpck_require__(78511)
-const { webidl } = __nccwpck_require__(21744)
-const { Blob, File: NativeFile } = __nccwpck_require__(14300)
+const { isBlobLike, toUSVString, makeIterator } = __nccwpck_require__(2538)
+const { kState } = __nccwpck_require__(5861)
+const { File: UndiciFile, FileLike, isFileLike } = __nccwpck_require__(8511)
+const { webidl } = __nccwpck_require__(1744)
+const { Blob, File: NativeFile } = __nccwpck_require__(4300)
/** @type {globalThis['File']} */
const File = NativeFile ?? UndiciFile
@@ -78812,7 +71162,7 @@ module.exports = { FormData }
/***/ }),
-/***/ 71246:
+/***/ 1246:
/***/ ((module) => {
"use strict";
@@ -78860,7 +71210,7 @@ module.exports = {
/***/ }),
-/***/ 10554:
+/***/ 554:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -78868,16 +71218,16 @@ module.exports = {
-const { kHeadersList, kConstruct } = __nccwpck_require__(72785)
-const { kGuard } = __nccwpck_require__(15861)
-const { kEnumerableProperty } = __nccwpck_require__(83983)
+const { kHeadersList, kConstruct } = __nccwpck_require__(2785)
+const { kGuard } = __nccwpck_require__(5861)
+const { kEnumerableProperty } = __nccwpck_require__(3983)
const {
makeIterator,
isValidHeaderName,
isValidHeaderValue
-} = __nccwpck_require__(52538)
-const { webidl } = __nccwpck_require__(21744)
-const assert = __nccwpck_require__(39491)
+} = __nccwpck_require__(2538)
+const { webidl } = __nccwpck_require__(1744)
+const assert = __nccwpck_require__(9491)
const kHeadersMap = Symbol('headers map')
const kHeadersSortedMap = Symbol('headers map sorted')
@@ -79457,7 +71807,7 @@ module.exports = {
/***/ }),
-/***/ 74881:
+/***/ 4881:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -79471,10 +71821,10 @@ const {
makeAppropriateNetworkError,
filterResponse,
makeResponse
-} = __nccwpck_require__(27823)
-const { Headers } = __nccwpck_require__(10554)
-const { Request, makeRequest } = __nccwpck_require__(48359)
-const zlib = __nccwpck_require__(59796)
+} = __nccwpck_require__(7823)
+const { Headers } = __nccwpck_require__(554)
+const { Request, makeRequest } = __nccwpck_require__(8359)
+const zlib = __nccwpck_require__(9796)
const {
bytesMatch,
makePolicyContainer,
@@ -79504,10 +71854,10 @@ const {
urlIsLocal,
urlIsHttpHttpsScheme,
urlHasHttpsScheme
-} = __nccwpck_require__(52538)
-const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(15861)
-const assert = __nccwpck_require__(39491)
-const { safelyExtractBody } = __nccwpck_require__(41472)
+} = __nccwpck_require__(2538)
+const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
+const assert = __nccwpck_require__(9491)
+const { safelyExtractBody } = __nccwpck_require__(9990)
const {
redirectStatusSet,
nullBodyStatus,
@@ -79515,16 +71865,16 @@ const {
requestBodyHeader,
subresourceSet,
DOMException
-} = __nccwpck_require__(41037)
-const { kHeadersList } = __nccwpck_require__(72785)
-const EE = __nccwpck_require__(82361)
-const { Readable, pipeline } = __nccwpck_require__(12781)
-const { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = __nccwpck_require__(83983)
+} = __nccwpck_require__(1037)
+const { kHeadersList } = __nccwpck_require__(2785)
+const EE = __nccwpck_require__(2361)
+const { Readable, pipeline } = __nccwpck_require__(2781)
+const { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = __nccwpck_require__(3983)
const { dataURLProcessor, serializeAMimeType } = __nccwpck_require__(685)
-const { TransformStream } = __nccwpck_require__(35356)
-const { getGlobalDispatcher } = __nccwpck_require__(21892)
-const { webidl } = __nccwpck_require__(21744)
-const { STATUS_CODES } = __nccwpck_require__(13685)
+const { TransformStream } = __nccwpck_require__(5356)
+const { getGlobalDispatcher } = __nccwpck_require__(1892)
+const { webidl } = __nccwpck_require__(1744)
+const { STATUS_CODES } = __nccwpck_require__(3685)
const GET_OR_HEAD = ['GET', 'HEAD']
/** @type {import('buffer').resolveObjectURL} */
@@ -80266,7 +72616,7 @@ function schemeFetch (fetchParams) {
}
case 'blob:': {
if (!resolveObjectURL) {
- resolveObjectURL = (__nccwpck_require__(14300).resolveObjectURL)
+ resolveObjectURL = (__nccwpck_require__(4300).resolveObjectURL)
}
// 1. Let blobURLEntry be request’s current URL’s blob URL entry.
@@ -81265,7 +73615,7 @@ async function httpNetworkFetch (
// cancelAlgorithm set to cancelAlgorithm, highWaterMark set to
// highWaterMark, and sizeAlgorithm set to sizeAlgorithm.
if (!ReadableStream) {
- ReadableStream = (__nccwpck_require__(35356).ReadableStream)
+ ReadableStream = (__nccwpck_require__(5356).ReadableStream)
}
const stream = new ReadableStream(
@@ -81613,7 +73963,7 @@ module.exports = {
/***/ }),
-/***/ 48359:
+/***/ 8359:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -81621,17 +73971,17 @@ module.exports = {
-const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(41472)
-const { Headers, fill: fillHeaders, HeadersList } = __nccwpck_require__(10554)
-const { FinalizationRegistry } = __nccwpck_require__(56436)()
-const util = __nccwpck_require__(83983)
+const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(9990)
+const { Headers, fill: fillHeaders, HeadersList } = __nccwpck_require__(554)
+const { FinalizationRegistry } = __nccwpck_require__(6436)()
+const util = __nccwpck_require__(3983)
const {
isValidHTTPToken,
sameOrigin,
normalizeMethod,
makePolicyContainer,
normalizeMethodRecord
-} = __nccwpck_require__(52538)
+} = __nccwpck_require__(2538)
const {
forbiddenMethodsSet,
corsSafeListedMethodsSet,
@@ -81641,15 +73991,15 @@ const {
requestCredentials,
requestCache,
requestDuplex
-} = __nccwpck_require__(41037)
+} = __nccwpck_require__(1037)
const { kEnumerableProperty } = util
-const { kHeaders, kSignal, kState, kGuard, kRealm } = __nccwpck_require__(15861)
-const { webidl } = __nccwpck_require__(21744)
-const { getGlobalOrigin } = __nccwpck_require__(71246)
+const { kHeaders, kSignal, kState, kGuard, kRealm } = __nccwpck_require__(5861)
+const { webidl } = __nccwpck_require__(1744)
+const { getGlobalOrigin } = __nccwpck_require__(1246)
const { URLSerializer } = __nccwpck_require__(685)
-const { kHeadersList, kConstruct } = __nccwpck_require__(72785)
-const assert = __nccwpck_require__(39491)
-const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(82361)
+const { kHeadersList, kConstruct } = __nccwpck_require__(2785)
+const assert = __nccwpck_require__(9491)
+const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(2361)
let TransformStream = globalThis.TransformStream
@@ -82136,7 +74486,7 @@ class Request {
// 2. Set finalBody to the result of creating a proxy for inputBody.
if (!TransformStream) {
- TransformStream = (__nccwpck_require__(35356).TransformStream)
+ TransformStream = (__nccwpck_require__(5356).TransformStream)
}
// https://streams.spec.whatwg.org/#readablestream-create-a-proxy
@@ -82567,15 +74917,15 @@ module.exports = { Request, makeRequest }
/***/ }),
-/***/ 27823:
+/***/ 7823:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { Headers, HeadersList, fill } = __nccwpck_require__(10554)
-const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(41472)
-const util = __nccwpck_require__(83983)
+const { Headers, HeadersList, fill } = __nccwpck_require__(554)
+const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(9990)
+const util = __nccwpck_require__(3983)
const { kEnumerableProperty } = util
const {
isValidReasonPhrase,
@@ -82585,22 +74935,22 @@ const {
serializeJavascriptValueToJSONString,
isErrorLike,
isomorphicEncode
-} = __nccwpck_require__(52538)
+} = __nccwpck_require__(2538)
const {
redirectStatusSet,
nullBodyStatus,
DOMException
-} = __nccwpck_require__(41037)
-const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(15861)
-const { webidl } = __nccwpck_require__(21744)
-const { FormData } = __nccwpck_require__(72015)
-const { getGlobalOrigin } = __nccwpck_require__(71246)
+} = __nccwpck_require__(1037)
+const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
+const { webidl } = __nccwpck_require__(1744)
+const { FormData } = __nccwpck_require__(2015)
+const { getGlobalOrigin } = __nccwpck_require__(1246)
const { URLSerializer } = __nccwpck_require__(685)
-const { kHeadersList, kConstruct } = __nccwpck_require__(72785)
-const assert = __nccwpck_require__(39491)
-const { types } = __nccwpck_require__(73837)
+const { kHeadersList, kConstruct } = __nccwpck_require__(2785)
+const assert = __nccwpck_require__(9491)
+const { types } = __nccwpck_require__(3837)
-const ReadableStream = globalThis.ReadableStream || (__nccwpck_require__(35356).ReadableStream)
+const ReadableStream = globalThis.ReadableStream || (__nccwpck_require__(5356).ReadableStream)
const textEncoder = new TextEncoder('utf-8')
// https://fetch.spec.whatwg.org/#response-class
@@ -83146,7 +75496,7 @@ module.exports = {
/***/ }),
-/***/ 15861:
+/***/ 5861:
/***/ ((module) => {
"use strict";
@@ -83164,18 +75514,18 @@ module.exports = {
/***/ }),
-/***/ 52538:
+/***/ 2538:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = __nccwpck_require__(41037)
-const { getGlobalOrigin } = __nccwpck_require__(71246)
+const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = __nccwpck_require__(1037)
+const { getGlobalOrigin } = __nccwpck_require__(1246)
const { performance } = __nccwpck_require__(4074)
-const { isBlobLike, toUSVString, ReadableStreamFrom } = __nccwpck_require__(83983)
-const assert = __nccwpck_require__(39491)
-const { isUint8Array } = __nccwpck_require__(29830)
+const { isBlobLike, toUSVString, ReadableStreamFrom } = __nccwpck_require__(3983)
+const assert = __nccwpck_require__(9491)
+const { isUint8Array } = __nccwpck_require__(9830)
let supportedHashes = []
@@ -84137,7 +76487,7 @@ let ReadableStream = globalThis.ReadableStream
function isReadableStreamLike (stream) {
if (!ReadableStream) {
- ReadableStream = (__nccwpck_require__(35356).ReadableStream)
+ ReadableStream = (__nccwpck_require__(5356).ReadableStream)
}
return stream instanceof ReadableStream || (
@@ -84316,14 +76666,14 @@ module.exports = {
/***/ }),
-/***/ 21744:
+/***/ 1744:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { types } = __nccwpck_require__(73837)
-const { hasOwn, toUSVString } = __nccwpck_require__(52538)
+const { types } = __nccwpck_require__(3837)
+const { hasOwn, toUSVString } = __nccwpck_require__(2538)
/** @type {import('../../types/webidl').Webidl} */
const webidl = {}
@@ -84970,7 +77320,7 @@ module.exports = {
/***/ }),
-/***/ 84854:
+/***/ 4854:
/***/ ((module) => {
"use strict";
@@ -85278,16 +77628,16 @@ const {
staticPropertyDescriptors,
readOperation,
fireAProgressEvent
-} = __nccwpck_require__(87530)
+} = __nccwpck_require__(7530)
const {
kState,
kError,
kResult,
kEvents,
kAborted
-} = __nccwpck_require__(29054)
-const { webidl } = __nccwpck_require__(21744)
-const { kEnumerableProperty } = __nccwpck_require__(83983)
+} = __nccwpck_require__(9054)
+const { webidl } = __nccwpck_require__(1744)
+const { kEnumerableProperty } = __nccwpck_require__(3983)
class FileReader extends EventTarget {
constructor () {
@@ -85620,13 +77970,13 @@ module.exports = {
/***/ }),
-/***/ 55504:
+/***/ 5504:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { webidl } = __nccwpck_require__(21744)
+const { webidl } = __nccwpck_require__(1744)
const kState = Symbol('ProgressEvent state')
@@ -85706,7 +78056,7 @@ module.exports = {
/***/ }),
-/***/ 29054:
+/***/ 9054:
/***/ ((module) => {
"use strict";
@@ -85724,7 +78074,7 @@ module.exports = {
/***/ }),
-/***/ 87530:
+/***/ 7530:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -85736,14 +78086,14 @@ const {
kResult,
kAborted,
kLastProgressEventFired
-} = __nccwpck_require__(29054)
-const { ProgressEvent } = __nccwpck_require__(55504)
-const { getEncoding } = __nccwpck_require__(84854)
-const { DOMException } = __nccwpck_require__(41037)
+} = __nccwpck_require__(9054)
+const { ProgressEvent } = __nccwpck_require__(5504)
+const { getEncoding } = __nccwpck_require__(4854)
+const { DOMException } = __nccwpck_require__(1037)
const { serializeAMimeType, parseMIMEType } = __nccwpck_require__(685)
-const { types } = __nccwpck_require__(73837)
-const { StringDecoder } = __nccwpck_require__(71576)
-const { btoa } = __nccwpck_require__(14300)
+const { types } = __nccwpck_require__(3837)
+const { StringDecoder } = __nccwpck_require__(1576)
+const { btoa } = __nccwpck_require__(4300)
/** @type {PropertyDescriptor} */
const staticPropertyDescriptors = {
@@ -86124,7 +78474,7 @@ module.exports = {
/***/ }),
-/***/ 21892:
+/***/ 1892:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -86133,7 +78483,7 @@ module.exports = {
// We include a version number for the Dispatcher API. In case of breaking changes,
// this version number must be increased to avoid conflicts.
const globalDispatcher = Symbol.for('undici.globalDispatcher.1')
-const { InvalidArgumentError } = __nccwpck_require__(48045)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
const Agent = __nccwpck_require__(7890)
if (getGlobalDispatcher() === undefined) {
@@ -86164,7 +78514,7 @@ module.exports = {
/***/ }),
-/***/ 46930:
+/***/ 6930:
/***/ ((module) => {
"use strict";
@@ -86207,17 +78557,17 @@ module.exports = class DecoratorHandler {
/***/ }),
-/***/ 72860:
+/***/ 2860:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const util = __nccwpck_require__(83983)
-const { kBodyUsed } = __nccwpck_require__(72785)
-const assert = __nccwpck_require__(39491)
-const { InvalidArgumentError } = __nccwpck_require__(48045)
-const EE = __nccwpck_require__(82361)
+const util = __nccwpck_require__(3983)
+const { kBodyUsed } = __nccwpck_require__(2785)
+const assert = __nccwpck_require__(9491)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
+const EE = __nccwpck_require__(2361)
const redirectableStatusCodes = [300, 301, 302, 303, 307, 308]
@@ -86436,14 +78786,14 @@ module.exports = RedirectHandler
/***/ }),
-/***/ 82286:
+/***/ 2286:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const assert = __nccwpck_require__(39491)
+const assert = __nccwpck_require__(9491)
-const { kRetryHandlerDefaultRetry } = __nccwpck_require__(72785)
-const { RequestRetryError } = __nccwpck_require__(48045)
-const { isDisturbed, parseHeaders, parseRangeHeader } = __nccwpck_require__(83983)
+const { kRetryHandlerDefaultRetry } = __nccwpck_require__(2785)
+const { RequestRetryError } = __nccwpck_require__(8045)
+const { isDisturbed, parseHeaders, parseRangeHeader } = __nccwpck_require__(3983)
function calculateRetryAfterHeader (retryAfter) {
const current = Date.now()
@@ -86779,13 +79129,13 @@ module.exports = RetryHandler
/***/ }),
-/***/ 38861:
+/***/ 8861:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const RedirectHandler = __nccwpck_require__(72860)
+const RedirectHandler = __nccwpck_require__(2860)
function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {
return (dispatch) => {
@@ -86808,14 +79158,14 @@ module.exports = createRedirectInterceptor
/***/ }),
-/***/ 30953:
+/***/ 953:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
-const utils_1 = __nccwpck_require__(41891);
+const utils_1 = __nccwpck_require__(1891);
// C headers
var ERROR;
(function (ERROR) {
@@ -87093,7 +79443,7 @@ exports.SPECIAL_HEADERS = {
/***/ }),
-/***/ 61145:
+/***/ 1145:
/***/ ((module) => {
module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb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DACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4AB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BIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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AgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIh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AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAA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tAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYC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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=='
@@ -87109,7 +79459,7 @@ module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn
/***/ }),
-/***/ 41891:
+/***/ 1891:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -87131,13 +79481,13 @@ exports.enumToMap = enumToMap;
/***/ }),
-/***/ 66771:
+/***/ 6771:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { kClients } = __nccwpck_require__(72785)
+const { kClients } = __nccwpck_require__(2785)
const Agent = __nccwpck_require__(7890)
const {
kAgent,
@@ -87149,14 +79499,14 @@ const {
kGetNetConnect,
kOptions,
kFactory
-} = __nccwpck_require__(24347)
-const MockClient = __nccwpck_require__(58687)
-const MockPool = __nccwpck_require__(26193)
-const { matchValue, buildMockOptions } = __nccwpck_require__(79323)
-const { InvalidArgumentError, UndiciError } = __nccwpck_require__(48045)
-const Dispatcher = __nccwpck_require__(60412)
-const Pluralizer = __nccwpck_require__(78891)
-const PendingInterceptorsFormatter = __nccwpck_require__(86823)
+} = __nccwpck_require__(4347)
+const MockClient = __nccwpck_require__(8687)
+const MockPool = __nccwpck_require__(6193)
+const { matchValue, buildMockOptions } = __nccwpck_require__(9323)
+const { InvalidArgumentError, UndiciError } = __nccwpck_require__(8045)
+const Dispatcher = __nccwpck_require__(412)
+const Pluralizer = __nccwpck_require__(8891)
+const PendingInterceptorsFormatter = __nccwpck_require__(6823)
class FakeWeakRef {
constructor (value) {
@@ -87310,15 +79660,15 @@ module.exports = MockAgent
/***/ }),
-/***/ 58687:
+/***/ 8687:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { promisify } = __nccwpck_require__(73837)
-const Client = __nccwpck_require__(33598)
-const { buildMockDispatch } = __nccwpck_require__(79323)
+const { promisify } = __nccwpck_require__(3837)
+const Client = __nccwpck_require__(3598)
+const { buildMockDispatch } = __nccwpck_require__(9323)
const {
kDispatches,
kMockAgent,
@@ -87327,10 +79677,10 @@ const {
kOrigin,
kOriginalDispatch,
kConnected
-} = __nccwpck_require__(24347)
-const { MockInterceptor } = __nccwpck_require__(90410)
-const Symbols = __nccwpck_require__(72785)
-const { InvalidArgumentError } = __nccwpck_require__(48045)
+} = __nccwpck_require__(4347)
+const { MockInterceptor } = __nccwpck_require__(410)
+const Symbols = __nccwpck_require__(2785)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
/**
* MockClient provides an API that extends the Client to influence the mockDispatches.
@@ -87377,13 +79727,13 @@ module.exports = MockClient
/***/ }),
-/***/ 50888:
+/***/ 888:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { UndiciError } = __nccwpck_require__(48045)
+const { UndiciError } = __nccwpck_require__(8045)
class MockNotMatchedError extends UndiciError {
constructor (message) {
@@ -87402,13 +79752,13 @@ module.exports = {
/***/ }),
-/***/ 90410:
+/***/ 410:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(79323)
+const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(9323)
const {
kDispatches,
kDispatchKey,
@@ -87416,9 +79766,9 @@ const {
kDefaultTrailers,
kContentLength,
kMockDispatch
-} = __nccwpck_require__(24347)
-const { InvalidArgumentError } = __nccwpck_require__(48045)
-const { buildURL } = __nccwpck_require__(83983)
+} = __nccwpck_require__(4347)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
+const { buildURL } = __nccwpck_require__(3983)
/**
* Defines the scope API for an interceptor reply
@@ -87616,15 +79966,15 @@ module.exports.MockScope = MockScope
/***/ }),
-/***/ 26193:
+/***/ 6193:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { promisify } = __nccwpck_require__(73837)
+const { promisify } = __nccwpck_require__(3837)
const Pool = __nccwpck_require__(4634)
-const { buildMockDispatch } = __nccwpck_require__(79323)
+const { buildMockDispatch } = __nccwpck_require__(9323)
const {
kDispatches,
kMockAgent,
@@ -87633,10 +79983,10 @@ const {
kOrigin,
kOriginalDispatch,
kConnected
-} = __nccwpck_require__(24347)
-const { MockInterceptor } = __nccwpck_require__(90410)
-const Symbols = __nccwpck_require__(72785)
-const { InvalidArgumentError } = __nccwpck_require__(48045)
+} = __nccwpck_require__(4347)
+const { MockInterceptor } = __nccwpck_require__(410)
+const Symbols = __nccwpck_require__(2785)
+const { InvalidArgumentError } = __nccwpck_require__(8045)
/**
* MockPool provides an API that extends the Pool to influence the mockDispatches.
@@ -87683,7 +80033,7 @@ module.exports = MockPool
/***/ }),
-/***/ 24347:
+/***/ 4347:
/***/ ((module) => {
"use strict";
@@ -87714,27 +80064,27 @@ module.exports = {
/***/ }),
-/***/ 79323:
+/***/ 9323:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { MockNotMatchedError } = __nccwpck_require__(50888)
+const { MockNotMatchedError } = __nccwpck_require__(888)
const {
kDispatches,
kMockAgent,
kOriginalDispatch,
kOrigin,
kGetNetConnect
-} = __nccwpck_require__(24347)
-const { buildURL, nop } = __nccwpck_require__(83983)
-const { STATUS_CODES } = __nccwpck_require__(13685)
+} = __nccwpck_require__(4347)
+const { buildURL, nop } = __nccwpck_require__(3983)
+const { STATUS_CODES } = __nccwpck_require__(3685)
const {
types: {
isPromise
}
-} = __nccwpck_require__(73837)
+} = __nccwpck_require__(3837)
function matchValue (match, value) {
if (typeof match === 'string') {
@@ -88073,14 +80423,14 @@ module.exports = {
/***/ }),
-/***/ 86823:
+/***/ 6823:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { Transform } = __nccwpck_require__(12781)
-const { Console } = __nccwpck_require__(96206)
+const { Transform } = __nccwpck_require__(2781)
+const { Console } = __nccwpck_require__(6206)
/**
* Gets the output of `console.table(…)` as a string.
@@ -88121,7 +80471,7 @@ module.exports = class PendingInterceptorsFormatter {
/***/ }),
-/***/ 78891:
+/***/ 8891:
/***/ ((module) => {
"use strict";
@@ -88158,7 +80508,7 @@ module.exports = class Pluralizer {
/***/ }),
-/***/ 68266:
+/***/ 8266:
/***/ ((module) => {
"use strict";
@@ -88283,16 +80633,16 @@ module.exports = class FixedQueue {
/***/ }),
-/***/ 73198:
+/***/ 3198:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const DispatcherBase = __nccwpck_require__(74839)
-const FixedQueue = __nccwpck_require__(68266)
-const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(72785)
-const PoolStats = __nccwpck_require__(39689)
+const DispatcherBase = __nccwpck_require__(4839)
+const FixedQueue = __nccwpck_require__(8266)
+const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(2785)
+const PoolStats = __nccwpck_require__(9689)
const kClients = Symbol('clients')
const kNeedDrain = Symbol('needDrain')
@@ -88485,10 +80835,10 @@ module.exports = {
/***/ }),
-/***/ 39689:
+/***/ 9689:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(72785)
+const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(2785)
const kPool = Symbol('pool')
class PoolStats {
@@ -88538,14 +80888,14 @@ const {
kNeedDrain,
kAddClient,
kGetDispatcher
-} = __nccwpck_require__(73198)
-const Client = __nccwpck_require__(33598)
+} = __nccwpck_require__(3198)
+const Client = __nccwpck_require__(3598)
const {
InvalidArgumentError
-} = __nccwpck_require__(48045)
-const util = __nccwpck_require__(83983)
-const { kUrl, kInterceptors } = __nccwpck_require__(72785)
-const buildConnector = __nccwpck_require__(82067)
+} = __nccwpck_require__(8045)
+const util = __nccwpck_require__(3983)
+const { kUrl, kInterceptors } = __nccwpck_require__(2785)
+const buildConnector = __nccwpck_require__(2067)
const kOptions = Symbol('options')
const kConnections = Symbol('connections')
@@ -88628,19 +80978,19 @@ module.exports = Pool
/***/ }),
-/***/ 97858:
+/***/ 7858:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(72785)
-const { URL } = __nccwpck_require__(57310)
+const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(2785)
+const { URL } = __nccwpck_require__(7310)
const Agent = __nccwpck_require__(7890)
const Pool = __nccwpck_require__(4634)
-const DispatcherBase = __nccwpck_require__(74839)
-const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(48045)
-const buildConnector = __nccwpck_require__(82067)
+const DispatcherBase = __nccwpck_require__(4839)
+const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(8045)
+const buildConnector = __nccwpck_require__(2067)
const kAgent = Symbol('proxy agent')
const kClient = Symbol('proxy client')
@@ -88825,7 +81175,7 @@ module.exports = ProxyAgent
/***/ }),
-/***/ 29459:
+/***/ 9459:
/***/ ((module) => {
"use strict";
@@ -88930,27 +81280,27 @@ module.exports = {
/***/ }),
-/***/ 35354:
+/***/ 5354:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const diagnosticsChannel = __nccwpck_require__(67643)
-const { uid, states } = __nccwpck_require__(19188)
+const diagnosticsChannel = __nccwpck_require__(7643)
+const { uid, states } = __nccwpck_require__(9188)
const {
kReadyState,
kSentClose,
kByteParser,
kReceivedClose
-} = __nccwpck_require__(37578)
-const { fireEvent, failWebsocketConnection } = __nccwpck_require__(25515)
-const { CloseEvent } = __nccwpck_require__(52611)
-const { makeRequest } = __nccwpck_require__(48359)
-const { fetching } = __nccwpck_require__(74881)
-const { Headers } = __nccwpck_require__(10554)
-const { getGlobalDispatcher } = __nccwpck_require__(21892)
-const { kHeadersList } = __nccwpck_require__(72785)
+} = __nccwpck_require__(7578)
+const { fireEvent, failWebsocketConnection } = __nccwpck_require__(5515)
+const { CloseEvent } = __nccwpck_require__(2611)
+const { makeRequest } = __nccwpck_require__(8359)
+const { fetching } = __nccwpck_require__(4881)
+const { Headers } = __nccwpck_require__(554)
+const { getGlobalDispatcher } = __nccwpck_require__(1892)
+const { kHeadersList } = __nccwpck_require__(2785)
const channels = {}
channels.open = diagnosticsChannel.channel('undici:websocket:open')
@@ -89229,7 +81579,7 @@ module.exports = {
/***/ }),
-/***/ 19188:
+/***/ 9188:
/***/ ((module) => {
"use strict";
@@ -89288,15 +81638,15 @@ module.exports = {
/***/ }),
-/***/ 52611:
+/***/ 2611:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { webidl } = __nccwpck_require__(21744)
-const { kEnumerableProperty } = __nccwpck_require__(83983)
-const { MessagePort } = __nccwpck_require__(71267)
+const { webidl } = __nccwpck_require__(1744)
+const { kEnumerableProperty } = __nccwpck_require__(3983)
+const { MessagePort } = __nccwpck_require__(1267)
/**
* @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
@@ -89599,13 +81949,13 @@ module.exports = {
/***/ }),
-/***/ 25444:
+/***/ 5444:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { maxUnsigned16Bit } = __nccwpck_require__(19188)
+const { maxUnsigned16Bit } = __nccwpck_require__(9188)
/** @type {import('crypto')} */
let crypto
@@ -89680,18 +82030,18 @@ module.exports = {
/***/ }),
-/***/ 11688:
+/***/ 1688:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { Writable } = __nccwpck_require__(12781)
-const diagnosticsChannel = __nccwpck_require__(67643)
-const { parserStates, opcodes, states, emptyBuffer } = __nccwpck_require__(19188)
-const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(37578)
-const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = __nccwpck_require__(25515)
-const { WebsocketFrameSend } = __nccwpck_require__(25444)
+const { Writable } = __nccwpck_require__(2781)
+const diagnosticsChannel = __nccwpck_require__(7643)
+const { parserStates, opcodes, states, emptyBuffer } = __nccwpck_require__(9188)
+const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(7578)
+const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = __nccwpck_require__(5515)
+const { WebsocketFrameSend } = __nccwpck_require__(5444)
// This code was influenced by ws released under the MIT license.
// Copyright (c) 2011 Einar Otto Stangvik
@@ -90032,7 +82382,7 @@ module.exports = {
/***/ }),
-/***/ 37578:
+/***/ 7578:
/***/ ((module) => {
"use strict";
@@ -90052,15 +82402,15 @@ module.exports = {
/***/ }),
-/***/ 25515:
+/***/ 5515:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(37578)
-const { states, opcodes } = __nccwpck_require__(19188)
-const { MessageEvent, ErrorEvent } = __nccwpck_require__(52611)
+const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(7578)
+const { states, opcodes } = __nccwpck_require__(9188)
+const { MessageEvent, ErrorEvent } = __nccwpck_require__(2611)
/* globals Blob */
@@ -90260,17 +82610,17 @@ module.exports = {
/***/ }),
-/***/ 54284:
+/***/ 4284:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const { webidl } = __nccwpck_require__(21744)
-const { DOMException } = __nccwpck_require__(41037)
+const { webidl } = __nccwpck_require__(1744)
+const { DOMException } = __nccwpck_require__(1037)
const { URLSerializer } = __nccwpck_require__(685)
-const { getGlobalOrigin } = __nccwpck_require__(71246)
-const { staticPropertyDescriptors, states, opcodes, emptyBuffer } = __nccwpck_require__(19188)
+const { getGlobalOrigin } = __nccwpck_require__(1246)
+const { staticPropertyDescriptors, states, opcodes, emptyBuffer } = __nccwpck_require__(9188)
const {
kWebSocketURL,
kReadyState,
@@ -90279,14 +82629,14 @@ const {
kResponse,
kSentClose,
kByteParser
-} = __nccwpck_require__(37578)
-const { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = __nccwpck_require__(25515)
-const { establishWebSocketConnection } = __nccwpck_require__(35354)
-const { WebsocketFrameSend } = __nccwpck_require__(25444)
-const { ByteParser } = __nccwpck_require__(11688)
-const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(83983)
-const { getGlobalDispatcher } = __nccwpck_require__(21892)
-const { types } = __nccwpck_require__(73837)
+} = __nccwpck_require__(7578)
+const { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = __nccwpck_require__(5515)
+const { establishWebSocketConnection } = __nccwpck_require__(5354)
+const { WebsocketFrameSend } = __nccwpck_require__(5444)
+const { ByteParser } = __nccwpck_require__(1688)
+const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(3983)
+const { getGlobalDispatcher } = __nccwpck_require__(1892)
+const { types } = __nccwpck_require__(3837)
let experimentalWarned = false
@@ -90909,7 +83259,7 @@ module.exports = {
/***/ }),
-/***/ 45030:
+/***/ 5030:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -90935,7 +83285,688 @@ exports.getUserAgent = getUserAgent;
/***/ }),
-/***/ 54886:
+/***/ 5840:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(8628));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(6409));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(5122));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(9120));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(5332));
+
+var _version = _interopRequireDefault(__nccwpck_require__(2414));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(8950));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(2746));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 4569:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2054:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var _default = {
+ randomUUID: _crypto.default.randomUUID
+};
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 5332:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2746:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 814:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 807:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 5274:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 8950:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+exports.unsafeStringify = unsafeStringify;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).slice(1));
+}
+
+function unsafeStringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
+}
+
+function stringify(arr, offset = 0) {
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 8628:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(807));
+
+var _stringify = __nccwpck_require__(8950);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.unsafeStringify)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6409:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5998));
+
+var _md = _interopRequireDefault(__nccwpck_require__(4569));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 5998:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.URL = exports.DNS = void 0;
+exports["default"] = v35;
+
+var _stringify = __nccwpck_require__(8950);
+
+var _parse = _interopRequireDefault(__nccwpck_require__(2746));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function v35(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ var _namespace;
+
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 5122:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _native = _interopRequireDefault(__nccwpck_require__(2054));
+
+var _rng = _interopRequireDefault(__nccwpck_require__(807));
+
+var _stringify = __nccwpck_require__(8950);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ if (_native.default.randomUUID && !buf && !options) {
+ return _native.default.randomUUID();
+ }
+
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9120:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5998));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(5274));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6900:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(814));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2414:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.slice(14, 15), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 4886:
/***/ ((module) => {
"use strict";
@@ -91132,7 +84163,7 @@ conversions["RegExp"] = function (V, opts) {
/***/ }),
-/***/ 97537:
+/***/ 7537:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -91340,15 +84371,15 @@ exports.implementation = class URLImpl {
/***/ }),
-/***/ 63394:
+/***/ 3394:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(83185);
-const Impl = __nccwpck_require__(97537);
+const conversions = __nccwpck_require__(4886);
+const utils = __nccwpck_require__(3185);
+const Impl = __nccwpck_require__(7537);
const impl = utils.implSymbol;
@@ -91544,13 +84575,13 @@ module.exports = {
/***/ }),
-/***/ 28665:
+/***/ 8665:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-exports.URL = __nccwpck_require__(63394)["interface"];
+exports.URL = __nccwpck_require__(3394)["interface"];
exports.serializeURL = __nccwpck_require__(2158).serializeURL;
exports.serializeURLOrigin = __nccwpck_require__(2158).serializeURLOrigin;
exports.basicURLParse = __nccwpck_require__(2158).basicURLParse;
@@ -91568,8 +84599,8 @@ exports.parseURL = __nccwpck_require__(2158).parseURL;
"use strict";
-const punycode = __nccwpck_require__(85477);
-const tr46 = __nccwpck_require__(84256);
+const punycode = __nccwpck_require__(5477);
+const tr46 = __nccwpck_require__(4256);
const specialSchemes = {
ftp: 21,
@@ -92868,7 +85899,7 @@ module.exports.parseURL = function (input, options) {
/***/ }),
-/***/ 83185:
+/***/ 3185:
/***/ ((module) => {
"use strict";
@@ -92896,7 +85927,7 @@ module.exports.implForWrapper = function (wrapper) {
/***/ }),
-/***/ 62940:
+/***/ 2940:
/***/ ((module) => {
// Returns a wrapper function that returns a wrapped callback
@@ -92936,7 +85967,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 22624:
+/***/ 2624:
/***/ (function(__unused_webpack_module, exports) {
// Generated by CoffeeScript 1.12.7
@@ -92955,7 +85986,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 43337:
+/***/ 3337:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -92964,9 +85995,9 @@ function wrappy (fn, cb) {
var builder, defaults, escapeCDATA, requiresCDATA, wrapCDATA,
hasProp = {}.hasOwnProperty;
- builder = __nccwpck_require__(52958);
+ builder = __nccwpck_require__(2958);
- defaults = (__nccwpck_require__(97251).defaults);
+ defaults = (__nccwpck_require__(7251).defaults);
requiresCDATA = function(entry) {
return typeof entry === "string" && (entry.indexOf('&') >= 0 || entry.indexOf('>') >= 0 || entry.indexOf('<') >= 0);
@@ -93089,7 +86120,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 97251:
+/***/ 7251:
/***/ (function(__unused_webpack_module, exports) {
// Generated by CoffeeScript 1.12.7
@@ -93168,7 +86199,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 83314:
+/***/ 3314:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -93179,17 +86210,17 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- sax = __nccwpck_require__(72043);
+ sax = __nccwpck_require__(2043);
- events = __nccwpck_require__(82361);
+ events = __nccwpck_require__(2361);
- bom = __nccwpck_require__(22624);
+ bom = __nccwpck_require__(2624);
- processors = __nccwpck_require__(99236);
+ processors = __nccwpck_require__(9236);
- setImmediate = (__nccwpck_require__(39512).setImmediate);
+ setImmediate = (__nccwpck_require__(9512).setImmediate);
- defaults = (__nccwpck_require__(97251).defaults);
+ defaults = (__nccwpck_require__(7251).defaults);
isEmpty = function(thing) {
return typeof thing === "object" && (thing != null) && Object.keys(thing).length === 0;
@@ -93560,7 +86591,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 99236:
+/***/ 9236:
/***/ (function(__unused_webpack_module, exports) {
// Generated by CoffeeScript 1.12.7
@@ -93601,7 +86632,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 66189:
+/***/ 6189:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -93611,13 +86642,13 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- defaults = __nccwpck_require__(97251);
+ defaults = __nccwpck_require__(7251);
- builder = __nccwpck_require__(43337);
+ builder = __nccwpck_require__(3337);
- parser = __nccwpck_require__(83314);
+ parser = __nccwpck_require__(3314);
- processors = __nccwpck_require__(99236);
+ processors = __nccwpck_require__(9236);
exports.defaults = defaults.defaults;
@@ -93647,7 +86678,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 52839:
+/***/ 2839:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -93666,7 +86697,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 29267:
+/***/ 9267:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -93696,7 +86727,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 58229:
+/***/ 8229:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -93803,16 +86834,16 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 58376:
+/***/ 8376:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
(function() {
var NodeType, XMLAttribute, XMLNode;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
module.exports = XMLAttribute = (function() {
function XMLAttribute(parent, name, value) {
@@ -93918,7 +86949,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 90333:
+/***/ 333:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -93927,9 +86958,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLCharacterData = __nccwpck_require__(87709);
+ XMLCharacterData = __nccwpck_require__(7709);
module.exports = XMLCData = (function(superClass) {
extend(XMLCData, superClass);
@@ -93961,7 +86992,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 87709:
+/***/ 7709:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -93970,7 +87001,7 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
module.exports = XMLCharacterData = (function(superClass) {
extend(XMLCharacterData, superClass);
@@ -94047,7 +87078,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 74407:
+/***/ 4407:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94056,9 +87087,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLCharacterData = __nccwpck_require__(87709);
+ XMLCharacterData = __nccwpck_require__(7709);
module.exports = XMLComment = (function(superClass) {
extend(XMLComment, superClass);
@@ -94090,16 +87121,16 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 67465:
+/***/ 7465:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
(function() {
var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList;
- XMLDOMErrorHandler = __nccwpck_require__(46744);
+ XMLDOMErrorHandler = __nccwpck_require__(6744);
- XMLDOMStringList = __nccwpck_require__(97028);
+ XMLDOMStringList = __nccwpck_require__(7028);
module.exports = XMLDOMConfiguration = (function() {
function XMLDOMConfiguration() {
@@ -94161,7 +87192,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 46744:
+/***/ 6744:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -94184,7 +87215,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 78310:
+/***/ 8310:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -94223,7 +87254,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 97028:
+/***/ 7028:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -94258,7 +87289,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 81015:
+/***/ 1015:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94267,9 +87298,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
module.exports = XMLDTDAttList = (function(superClass) {
extend(XMLDTDAttList, superClass);
@@ -94320,7 +87351,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 52421:
+/***/ 2421:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94329,9 +87360,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
module.exports = XMLDTDElement = (function(superClass) {
extend(XMLDTDElement, superClass);
@@ -94365,7 +87396,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 40053:
+/***/ 53:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94374,11 +87405,11 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- isObject = (__nccwpck_require__(58229).isObject);
+ isObject = (__nccwpck_require__(8229).isObject);
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
module.exports = XMLDTDEntity = (function(superClass) {
extend(XMLDTDEntity, superClass);
@@ -94469,7 +87500,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 82837:
+/***/ 2837:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94478,9 +87509,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
module.exports = XMLDTDNotation = (function(superClass) {
extend(XMLDTDNotation, superClass);
@@ -94528,7 +87559,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 46364:
+/***/ 6364:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94537,11 +87568,11 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- isObject = (__nccwpck_require__(58229).isObject);
+ isObject = (__nccwpck_require__(8229).isObject);
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
module.exports = XMLDeclaration = (function(superClass) {
extend(XMLDeclaration, superClass);
@@ -94578,7 +87609,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 81801:
+/***/ 1801:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94587,19 +87618,19 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- isObject = (__nccwpck_require__(58229).isObject);
+ isObject = (__nccwpck_require__(8229).isObject);
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLDTDAttList = __nccwpck_require__(81015);
+ XMLDTDAttList = __nccwpck_require__(1015);
- XMLDTDEntity = __nccwpck_require__(40053);
+ XMLDTDEntity = __nccwpck_require__(53);
- XMLDTDElement = __nccwpck_require__(52421);
+ XMLDTDElement = __nccwpck_require__(2421);
- XMLDTDNotation = __nccwpck_require__(82837);
+ XMLDTDNotation = __nccwpck_require__(2837);
XMLNamedNodeMap = __nccwpck_require__(4361);
@@ -94771,7 +87802,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 53730:
+/***/ 3730:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -94780,19 +87811,19 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- isPlainObject = (__nccwpck_require__(58229).isPlainObject);
+ isPlainObject = (__nccwpck_require__(8229).isPlainObject);
- XMLDOMImplementation = __nccwpck_require__(78310);
+ XMLDOMImplementation = __nccwpck_require__(8310);
- XMLDOMConfiguration = __nccwpck_require__(67465);
+ XMLDOMConfiguration = __nccwpck_require__(7465);
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
XMLStringifier = __nccwpck_require__(8594);
- XMLStringWriter = __nccwpck_require__(85913);
+ XMLStringWriter = __nccwpck_require__(5913);
module.exports = XMLDocument = (function(superClass) {
extend(XMLDocument, superClass);
@@ -95020,7 +88051,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 77356:
+/***/ 7356:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -95028,41 +88059,41 @@ function wrappy (fn, cb) {
var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject, isPlainObject, ref,
hasProp = {}.hasOwnProperty;
- ref = __nccwpck_require__(58229), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue;
+ ref = __nccwpck_require__(8229), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLDocument = __nccwpck_require__(53730);
+ XMLDocument = __nccwpck_require__(3730);
XMLElement = __nccwpck_require__(9437);
- XMLCData = __nccwpck_require__(90333);
+ XMLCData = __nccwpck_require__(333);
- XMLComment = __nccwpck_require__(74407);
+ XMLComment = __nccwpck_require__(4407);
- XMLRaw = __nccwpck_require__(16329);
+ XMLRaw = __nccwpck_require__(6329);
- XMLText = __nccwpck_require__(21318);
+ XMLText = __nccwpck_require__(1318);
- XMLProcessingInstruction = __nccwpck_require__(56939);
+ XMLProcessingInstruction = __nccwpck_require__(6939);
- XMLDeclaration = __nccwpck_require__(46364);
+ XMLDeclaration = __nccwpck_require__(6364);
- XMLDocType = __nccwpck_require__(81801);
+ XMLDocType = __nccwpck_require__(1801);
- XMLDTDAttList = __nccwpck_require__(81015);
+ XMLDTDAttList = __nccwpck_require__(1015);
- XMLDTDEntity = __nccwpck_require__(40053);
+ XMLDTDEntity = __nccwpck_require__(53);
- XMLDTDElement = __nccwpck_require__(52421);
+ XMLDTDElement = __nccwpck_require__(2421);
- XMLDTDNotation = __nccwpck_require__(82837);
+ XMLDTDNotation = __nccwpck_require__(2837);
- XMLAttribute = __nccwpck_require__(58376);
+ XMLAttribute = __nccwpck_require__(8376);
XMLStringifier = __nccwpck_require__(8594);
- XMLStringWriter = __nccwpck_require__(85913);
+ XMLStringWriter = __nccwpck_require__(5913);
WriterState = __nccwpck_require__(9766);
@@ -95555,7 +88586,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 43590:
+/***/ 3590:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -95564,9 +88595,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
module.exports = XMLDummy = (function(superClass) {
extend(XMLDummy, superClass);
@@ -95602,13 +88633,13 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- ref = __nccwpck_require__(58229), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue;
+ ref = __nccwpck_require__(8229), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue;
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLAttribute = __nccwpck_require__(58376);
+ XMLAttribute = __nccwpck_require__(8376);
XMLNamedNodeMap = __nccwpck_require__(4361);
@@ -95963,7 +88994,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 67608:
+/***/ 7608:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -95971,7 +89002,7 @@ function wrappy (fn, cb) {
var DocumentPosition, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction, isObject, ref1,
hasProp = {}.hasOwnProperty;
- ref1 = __nccwpck_require__(58229), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue;
+ ref1 = __nccwpck_require__(8229), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue;
XMLElement = null;
@@ -96011,18 +89042,18 @@ function wrappy (fn, cb) {
this.baseURI = null;
if (!XMLElement) {
XMLElement = __nccwpck_require__(9437);
- XMLCData = __nccwpck_require__(90333);
- XMLComment = __nccwpck_require__(74407);
- XMLDeclaration = __nccwpck_require__(46364);
- XMLDocType = __nccwpck_require__(81801);
- XMLRaw = __nccwpck_require__(16329);
- XMLText = __nccwpck_require__(21318);
- XMLProcessingInstruction = __nccwpck_require__(56939);
- XMLDummy = __nccwpck_require__(43590);
- NodeType = __nccwpck_require__(29267);
- XMLNodeList = __nccwpck_require__(36768);
+ XMLCData = __nccwpck_require__(333);
+ XMLComment = __nccwpck_require__(4407);
+ XMLDeclaration = __nccwpck_require__(6364);
+ XMLDocType = __nccwpck_require__(1801);
+ XMLRaw = __nccwpck_require__(6329);
+ XMLText = __nccwpck_require__(1318);
+ XMLProcessingInstruction = __nccwpck_require__(6939);
+ XMLDummy = __nccwpck_require__(3590);
+ NodeType = __nccwpck_require__(9267);
+ XMLNodeList = __nccwpck_require__(6768);
XMLNamedNodeMap = __nccwpck_require__(4361);
- DocumentPosition = __nccwpck_require__(52839);
+ DocumentPosition = __nccwpck_require__(2839);
}
}
@@ -96755,7 +89786,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 36768:
+/***/ 6768:
/***/ (function(module) {
// Generated by CoffeeScript 1.12.7
@@ -96790,7 +89821,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 56939:
+/***/ 6939:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -96799,9 +89830,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLCharacterData = __nccwpck_require__(87709);
+ XMLCharacterData = __nccwpck_require__(7709);
module.exports = XMLProcessingInstruction = (function(superClass) {
extend(XMLProcessingInstruction, superClass);
@@ -96846,7 +89877,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 16329:
+/***/ 6329:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -96855,9 +89886,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLNode = __nccwpck_require__(67608);
+ XMLNode = __nccwpck_require__(7608);
module.exports = XMLRaw = (function(superClass) {
extend(XMLRaw, superClass);
@@ -96888,7 +89919,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 78601:
+/***/ 8601:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -96897,9 +89928,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLWriterBase = __nccwpck_require__(66752);
+ XMLWriterBase = __nccwpck_require__(6752);
WriterState = __nccwpck_require__(9766);
@@ -97071,7 +90102,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 85913:
+/***/ 5913:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -97080,7 +90111,7 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- XMLWriterBase = __nccwpck_require__(66752);
+ XMLWriterBase = __nccwpck_require__(6752);
module.exports = XMLStringWriter = (function(superClass) {
extend(XMLStringWriter, superClass);
@@ -97360,7 +90391,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 21318:
+/***/ 1318:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -97369,9 +90400,9 @@ function wrappy (fn, cb) {
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLCharacterData = __nccwpck_require__(87709);
+ XMLCharacterData = __nccwpck_require__(7709);
module.exports = XMLText = (function(superClass) {
extend(XMLText, superClass);
@@ -97436,7 +90467,7 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 66752:
+/***/ 6752:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
@@ -97444,35 +90475,35 @@ function wrappy (fn, cb) {
var NodeType, WriterState, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLText, XMLWriterBase, assign,
hasProp = {}.hasOwnProperty;
- assign = (__nccwpck_require__(58229).assign);
+ assign = (__nccwpck_require__(8229).assign);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
- XMLDeclaration = __nccwpck_require__(46364);
+ XMLDeclaration = __nccwpck_require__(6364);
- XMLDocType = __nccwpck_require__(81801);
+ XMLDocType = __nccwpck_require__(1801);
- XMLCData = __nccwpck_require__(90333);
+ XMLCData = __nccwpck_require__(333);
- XMLComment = __nccwpck_require__(74407);
+ XMLComment = __nccwpck_require__(4407);
XMLElement = __nccwpck_require__(9437);
- XMLRaw = __nccwpck_require__(16329);
+ XMLRaw = __nccwpck_require__(6329);
- XMLText = __nccwpck_require__(21318);
+ XMLText = __nccwpck_require__(1318);
- XMLProcessingInstruction = __nccwpck_require__(56939);
+ XMLProcessingInstruction = __nccwpck_require__(6939);
- XMLDummy = __nccwpck_require__(43590);
+ XMLDummy = __nccwpck_require__(3590);
- XMLDTDAttList = __nccwpck_require__(81015);
+ XMLDTDAttList = __nccwpck_require__(1015);
- XMLDTDElement = __nccwpck_require__(52421);
+ XMLDTDElement = __nccwpck_require__(2421);
- XMLDTDEntity = __nccwpck_require__(40053);
+ XMLDTDEntity = __nccwpck_require__(53);
- XMLDTDNotation = __nccwpck_require__(82837);
+ XMLDTDNotation = __nccwpck_require__(2837);
WriterState = __nccwpck_require__(9766);
@@ -97871,26 +90902,26 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 52958:
+/***/ 2958:
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
// Generated by CoffeeScript 1.12.7
(function() {
var NodeType, WriterState, XMLDOMImplementation, XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction, ref;
- ref = __nccwpck_require__(58229), assign = ref.assign, isFunction = ref.isFunction;
+ ref = __nccwpck_require__(8229), assign = ref.assign, isFunction = ref.isFunction;
- XMLDOMImplementation = __nccwpck_require__(78310);
+ XMLDOMImplementation = __nccwpck_require__(8310);
- XMLDocument = __nccwpck_require__(53730);
+ XMLDocument = __nccwpck_require__(3730);
- XMLDocumentCB = __nccwpck_require__(77356);
+ XMLDocumentCB = __nccwpck_require__(7356);
- XMLStringWriter = __nccwpck_require__(85913);
+ XMLStringWriter = __nccwpck_require__(5913);
- XMLStreamWriter = __nccwpck_require__(78601);
+ XMLStreamWriter = __nccwpck_require__(8601);
- NodeType = __nccwpck_require__(29267);
+ NodeType = __nccwpck_require__(9267);
WriterState = __nccwpck_require__(9766);
@@ -97943,13 +90974,13 @@ function wrappy (fn, cb) {
/***/ }),
-/***/ 69042:
+/***/ 9042:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ERROR_HINT = exports.ERROR_REQUEST = exports.EVENT_NAME_PULL_REQUEST = exports.ENV_GITHUB_EVENT_NAME = exports.GDS_GRAALVM_PRODUCT_ID = exports.GDS_BASE = exports.MANDREL_NAMESPACE = exports.GRAALVM_RELEASES_REPO = exports.GRAALVM_PLATFORM = exports.GRAALVM_GH_USER = exports.GRAALVM_FILE_EXTENSION = exports.GRAALVM_ARCH = exports.JDK_HOME_SUFFIX = exports.JDK_PLATFORM = exports.JDK_ARCH = exports.VERSION_LATEST = exports.VERSION_DEV = exports.DISTRIBUTION_LIBERICA = exports.DISTRIBUTION_MANDREL = exports.DISTRIBUTION_GRAALVM_COMMUNITY = exports.DISTRIBUTION_GRAALVM = exports.EXECUTABLE_SUFFIX = exports.IS_WINDOWS = exports.IS_MACOS = exports.IS_LINUX = exports.INPUT_NI_MUSL = exports.INPUT_CHECK_FOR_UPDATES = exports.INPUT_CACHE = exports.INPUT_SET_JAVA_HOME = exports.INPUT_GITHUB_TOKEN = exports.INPUT_COMPONENTS = exports.INPUT_DISTRIBUTION = exports.INPUT_JAVA_PACKAGE = exports.INPUT_JAVA_VERSION = exports.INPUT_GDS_TOKEN = exports.INPUT_VERSION = exports.ACTION_VERSION = void 0;
+exports.ERROR_HINT = exports.ERROR_REQUEST = exports.EVENT_NAME_PULL_REQUEST = exports.ENV_GITHUB_EVENT_NAME = exports.GDS_GRAALVM_PRODUCT_ID = exports.GDS_BASE = exports.MANDREL_NAMESPACE = exports.GRAALVM_RELEASES_REPO = exports.GRAALVM_PLATFORM = exports.GRAALVM_GH_USER = exports.GRAALVM_FILE_EXTENSION = exports.GRAALVM_ARCH = exports.JDK_HOME_SUFFIX = exports.JDK_PLATFORM = exports.JDK_ARCH = exports.VERSION_LATEST = exports.VERSION_DEV = exports.DISTRIBUTION_LIBERICA = exports.DISTRIBUTION_MANDREL = exports.DISTRIBUTION_GRAALVM_COMMUNITY = exports.DISTRIBUTION_GRAALVM = exports.EXECUTABLE_SUFFIX = exports.IS_WINDOWS = exports.IS_MACOS = exports.IS_LINUX = exports.NATIVE_IMAGE_OPTIONS_ENV = exports.INPUT_NI_MUSL = exports.INPUT_CHECK_FOR_UPDATES = exports.INPUT_CACHE = exports.INPUT_SET_JAVA_HOME = exports.INPUT_GITHUB_TOKEN = exports.INPUT_COMPONENTS = exports.INPUT_DISTRIBUTION = exports.INPUT_JAVA_PACKAGE = exports.INPUT_JAVA_VERSION = exports.INPUT_GDS_TOKEN = exports.INPUT_VERSION = exports.ACTION_VERSION = void 0;
exports.ACTION_VERSION = '1.2.7';
exports.INPUT_VERSION = 'version';
exports.INPUT_GDS_TOKEN = 'gds-token';
@@ -97962,6 +90993,7 @@ exports.INPUT_SET_JAVA_HOME = 'set-java-home';
exports.INPUT_CACHE = 'cache';
exports.INPUT_CHECK_FOR_UPDATES = 'check-for-updates';
exports.INPUT_NI_MUSL = 'native-image-musl';
+exports.NATIVE_IMAGE_OPTIONS_ENV = 'NATIVE_IMAGE_OPTIONS';
exports.IS_LINUX = process.platform === 'linux';
exports.IS_MACOS = process.platform === 'darwin';
exports.IS_WINDOWS = process.platform === 'win32';
@@ -98054,13 +91086,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98071,10 +91113,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.setUpDependencies = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const constants_1 = __nccwpck_require__(69042);
-const utils_1 = __nccwpck_require__(71314);
+exports.setUpDependencies = setUpDependencies;
+const core = __importStar(__nccwpck_require__(2186));
+const constants_1 = __nccwpck_require__(9042);
+const utils_1 = __nccwpck_require__(1314);
const APT_GET_INSTALL_BASE = 'sudo apt-get -y --no-upgrade install';
const COMPONENT_TO_DEPS = new Map([
[
@@ -98105,12 +91147,11 @@ function setUpDependencies(components) {
}
});
}
-exports.setUpDependencies = setUpDependencies;
/***/ }),
-/***/ 59179:
+/***/ 9179:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -98158,13 +91199,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98178,12 +91229,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.save = exports.restore = void 0;
-const path_1 = __nccwpck_require__(71017);
-const os_1 = __importDefault(__nccwpck_require__(22037));
-const cache = __importStar(__nccwpck_require__(27799));
-const core = __importStar(__nccwpck_require__(42186));
-const glob = __importStar(__nccwpck_require__(28090));
+exports.restore = restore;
+exports.save = save;
+const path_1 = __nccwpck_require__(1017);
+const os_1 = __importDefault(__nccwpck_require__(2037));
+const cache = __importStar(__nccwpck_require__(7799));
+const core = __importStar(__nccwpck_require__(2186));
+const glob = __importStar(__nccwpck_require__(8090));
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key';
const CACHE_MATCHED_KEY = 'cache-matched-key';
const CACHE_KEY_PREFIX = 'setup-graalvm';
@@ -98278,7 +91330,6 @@ function restore(id) {
}
});
}
-exports.restore = restore;
/**
* Save the dependency cache
* @param id ID of the package manager, should be "maven" or "gradle"
@@ -98319,7 +91370,6 @@ function save(id) {
}
});
}
-exports.save = save;
/**
* @param packageManager the specified package manager by user
* @param error the error thrown by the saveCache
@@ -98338,7 +91388,7 @@ function isProbablyGradleDaemonProblem(packageManager, error) {
/***/ }),
-/***/ 96780:
+/***/ 6780:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -98359,16 +91409,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.checkForUpdates = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+exports.checkForUpdates = checkForUpdates;
+const core = __importStar(__nccwpck_require__(2186));
function checkForUpdates(graalVMVersion, javaVersion) {
if (javaVersion === '20') {
core.notice('A new GraalVM release is available! Please consider upgrading to GraalVM for JDK 21: https://medium.com/graalvm/graalvm-for-jdk-21-is-here-ee01177dd12d');
@@ -98386,12 +91446,11 @@ function checkForUpdates(graalVMVersion, javaVersion) {
}
// TODO: add support for JDK-specific update checks (e.g., 17.0.X)
}
-exports.checkForUpdates = checkForUpdates;
/***/ }),
-/***/ 10316:
+/***/ 316:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -98412,13 +91471,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98429,12 +91498,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.setUpNativeImageMusl = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const tc = __importStar(__nccwpck_require__(27784));
-const utils_1 = __nccwpck_require__(71314);
-const path_1 = __nccwpck_require__(71017);
+exports.setUpNativeImageMusl = setUpNativeImageMusl;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const tc = __importStar(__nccwpck_require__(7784));
+const utils_1 = __nccwpck_require__(1314);
+const path_1 = __nccwpck_require__(1017);
const MUSL_NAME = 'x86_64-linux-musl-native';
const MUSL_VERSION = '10.2.1';
function setUpNativeImageMusl() {
@@ -98470,12 +91539,11 @@ function setUpNativeImageMusl() {
core.addPath((0, path_1.join)(toolPath, 'bin'));
});
}
-exports.setUpNativeImageMusl = setUpNativeImageMusl;
/***/ }),
-/***/ 92046:
+/***/ 2046:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -98496,13 +91564,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98513,16 +91591,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.generateReports = exports.setUpNativeImageBuildReports = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const fs = __importStar(__nccwpck_require__(57147));
-const github = __importStar(__nccwpck_require__(95438));
-const semver = __importStar(__nccwpck_require__(11383));
-const path_1 = __nccwpck_require__(71017);
-const os_1 = __nccwpck_require__(22037);
-const utils_1 = __nccwpck_require__(71314);
-const BUILD_OUTPUT_JSON_PATH = (0, path_1.join)((0, os_1.tmpdir)(), 'native-image-build-output.json');
+exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
+exports.generateReports = generateReports;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const github = __importStar(__nccwpck_require__(5438));
+const semver = __importStar(__nccwpck_require__(1383));
+const utils_1 = __nccwpck_require__(1314);
+const BUILD_OUTPUT_JSON_PATH = (0, utils_1.tmpfile)('native-image-build-output.json');
const BYTES_TO_KiB = 1024;
const BYTES_TO_MiB = 1024 * 1024;
const BYTES_TO_GiB = 1024 * 1024 * 1024;
@@ -98530,9 +91607,6 @@ const DOCS_BASE = 'https://github.com/oracle/graal/blob/master/docs/reference-ma
const INPUT_NI_JOB_REPORTS = 'native-image-job-reports';
const INPUT_NI_PR_REPORTS = 'native-image-pr-reports';
const INPUT_NI_PR_REPORTS_UPDATE = 'native-image-pr-reports-update-existing';
-const NATIVE_IMAGE_CONFIG_FILE = (0, path_1.join)((0, os_1.tmpdir)(), 'native-image-options.properties');
-const NATIVE_IMAGE_OPTIONS_ENV = 'NATIVE_IMAGE_OPTIONS';
-const NATIVE_IMAGE_CONFIG_FILE_ENV = 'NATIVE_IMAGE_CONFIG_FILE';
const PR_COMMENT_TITLE = '## GraalVM Native Image Build Report';
function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, javaVersionOrDev, graalVMVersion) {
return __awaiter(this, void 0, void 0, function* () {
@@ -98549,10 +91623,9 @@ function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, javaVersionOrDev
core.warning(`Build reports for PRs and job summaries are only available in GraalVM 22.2.0 or later. This build job uses GraalVM ${graalVMVersion}.`);
return;
}
- setNativeImageOption(javaVersionOrDev, `-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows
+ (0, utils_1.setNativeImageOption)(javaVersionOrDev, `-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows
});
}
-exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
function generateReports() {
return __awaiter(this, void 0, void 0, function* () {
if (areJobReportsEnabled() || arePRReportsEnabled()) {
@@ -98581,7 +91654,6 @@ function generateReports() {
}
});
}
-exports.generateReports = generateReports;
function areJobReportsEnabled() {
return core.getInput(INPUT_NI_JOB_REPORTS) === 'true';
}
@@ -98591,38 +91663,6 @@ function arePRReportsEnabled() {
function arePRReportsUpdateEnabled() {
return (0, utils_1.isPREvent)() && core.getInput(INPUT_NI_PR_REPORTS_UPDATE) === 'true';
}
-function setNativeImageOption(javaVersionOrDev, optionValue) {
- const coercedJavaVersionOrDev = semver.coerce(javaVersionOrDev);
- if ((coercedJavaVersionOrDev &&
- semver.gte(coercedJavaVersionOrDev, '22.0.0')) ||
- javaVersionOrDev === c.VERSION_DEV ||
- javaVersionOrDev.endsWith('-ea')) {
- /* NATIVE_IMAGE_OPTIONS was introduced in GraalVM for JDK 22 (so were EA builds). */
- let newOptionValue = optionValue;
- const existingOptions = process.env[NATIVE_IMAGE_OPTIONS_ENV];
- if (existingOptions) {
- newOptionValue = `${existingOptions} ${newOptionValue}`;
- }
- core.exportVariable(NATIVE_IMAGE_OPTIONS_ENV, newOptionValue);
- }
- else {
- const optionsFile = getNativeImageOptionsFile();
- if (fs.existsSync(optionsFile)) {
- fs.appendFileSync(optionsFile, ` ${optionValue}`);
- }
- else {
- fs.writeFileSync(optionsFile, `NativeImageArgs = ${optionValue}`);
- }
- }
-}
-function getNativeImageOptionsFile() {
- let optionsFile = process.env[NATIVE_IMAGE_CONFIG_FILE_ENV];
- if (optionsFile === undefined) {
- optionsFile = NATIVE_IMAGE_CONFIG_FILE;
- core.exportVariable(NATIVE_IMAGE_CONFIG_FILE_ENV, optionsFile);
- }
- return optionsFile;
-}
function createReport(data) {
const context = github.context;
const info = data.general_info;
@@ -98852,7 +91892,7 @@ function secondsToHuman(seconds) {
/***/ }),
-/***/ 19543:
+/***/ 9181:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -98873,13 +91913,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -98890,20 +91940,265 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.fetchArtifactEE = exports.fetchArtifact = exports.downloadGraalVMEELegacy = exports.downloadGraalVM = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const fs = __importStar(__nccwpck_require__(57147));
-const httpClient = __importStar(__nccwpck_require__(96255));
-const io = __importStar(__nccwpck_require__(47351));
-const path = __importStar(__nccwpck_require__(71017));
-const stream = __importStar(__nccwpck_require__(12781));
-const util = __importStar(__nccwpck_require__(73837));
-const semver = __importStar(__nccwpck_require__(11383));
-const retry_helper_1 = __nccwpck_require__(38279);
-const utils_1 = __nccwpck_require__(71314);
-const assert_1 = __nccwpck_require__(39491);
-const uuid_1 = __nccwpck_require__(63730);
+exports.setUpSBOMSupport = setUpSBOMSupport;
+exports.processSBOM = processSBOM;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const github = __importStar(__nccwpck_require__(5438));
+const glob = __importStar(__nccwpck_require__(8090));
+const path_1 = __nccwpck_require__(1017);
+const semver = __importStar(__nccwpck_require__(1383));
+const utils_1 = __nccwpck_require__(1314);
+const INPUT_NI_SBOM = 'native-image-enable-sbom';
+const SBOM_FILE_SUFFIX = '.sbom.json';
+const MIN_JAVA_VERSION = '24.0.0';
+let javaVersionOrLatestEA = null;
+function setUpSBOMSupport(javaVersionOrDev, distribution) {
+ if (!isFeatureEnabled()) {
+ return;
+ }
+ validateJavaVersionAndDistribution(javaVersionOrDev, distribution);
+ javaVersionOrLatestEA = javaVersionOrDev;
+ (0, utils_1.setNativeImageOption)(javaVersionOrLatestEA, '--enable-sbom=export');
+ core.info('Enabled SBOM generation for Native Image build');
+}
+function validateJavaVersionAndDistribution(javaVersionOrDev, distribution) {
+ if (distribution !== c.DISTRIBUTION_GRAALVM) {
+ throw new Error(`The '${INPUT_NI_SBOM}' option is only supported for Oracle GraalVM (distribution '${c.DISTRIBUTION_GRAALVM}'), but found distribution '${distribution}'.`);
+ }
+ if (javaVersionOrDev === 'dev') {
+ throw new Error(`The '${INPUT_NI_SBOM}' option is not supported for java-version 'dev'.`);
+ }
+ if (javaVersionOrDev === 'latest-ea') {
+ return;
+ }
+ const coercedJavaVersion = semver.coerce(javaVersionOrDev);
+ if (!coercedJavaVersion || semver.gt(MIN_JAVA_VERSION, coercedJavaVersion)) {
+ throw new Error(`The '${INPUT_NI_SBOM}' option is only supported for GraalVM for JDK ${MIN_JAVA_VERSION} or later, but found java-version '${javaVersionOrDev}'.`);
+ }
+}
+function processSBOM() {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (!isFeatureEnabled()) {
+ return;
+ }
+ if (javaVersionOrLatestEA === null) {
+ throw new Error('setUpSBOMSupport must be called before processSBOM');
+ }
+ const sbomPath = yield findSBOMFilePath();
+ try {
+ const sbomContent = fs.readFileSync(sbomPath, 'utf8');
+ const sbomData = parseSBOM(sbomContent);
+ const components = mapToComponentsWithDependencies(sbomData);
+ printSBOMContent(components);
+ const snapshot = convertSBOMToSnapshot(sbomPath, components);
+ yield submitDependencySnapshot(snapshot);
+ }
+ catch (error) {
+ throw new Error(`Failed to process and submit SBOM to the GitHub dependency submission API: ${error instanceof Error ? error.message : String(error)}`);
+ }
+ });
+}
+function isFeatureEnabled() {
+ return core.getInput(INPUT_NI_SBOM) === 'true';
+}
+function findSBOMFilePath() {
+ return __awaiter(this, void 0, void 0, function* () {
+ const globber = yield glob.create(`**/*${SBOM_FILE_SUFFIX}`);
+ const sbomFiles = yield globber.glob();
+ if (sbomFiles.length === 0) {
+ throw new Error('No SBOM found. Make sure native-image build completed successfully.');
+ }
+ if (sbomFiles.length > 1) {
+ throw new Error(`Expected one SBOM but found multiple: ${sbomFiles.join(', ')}.`);
+ }
+ core.info(`Found SBOM: ${sbomFiles[0]}`);
+ return sbomFiles[0];
+ });
+}
+function parseSBOM(jsonString) {
+ try {
+ const sbomData = JSON.parse(jsonString);
+ return sbomData;
+ }
+ catch (error) {
+ throw new Error(`Failed to parse SBOM JSON: ${error instanceof Error ? error.message : String(error)}`);
+ }
+}
+// Maps the SBOM to a list of components with their dependencies
+function mapToComponentsWithDependencies(sbom) {
+ if (!sbom || sbom.components.length === 0) {
+ throw new Error('Invalid SBOM data or no components found.');
+ }
+ return sbom.components.map((component) => {
+ var _a, _b;
+ const dependencies = ((_b = (_a = sbom.dependencies) === null || _a === void 0 ? void 0 : _a.find((dep) => dep.ref === component['bom-ref'])) === null || _b === void 0 ? void 0 : _b.dependsOn) || [];
+ return {
+ name: component.name,
+ version: component.version,
+ purl: component.purl,
+ dependencies,
+ 'bom-ref': component['bom-ref']
+ };
+ });
+}
+function printSBOMContent(components) {
+ core.info('=== SBOM Content ===');
+ for (const component of components) {
+ core.info(`- ${component['bom-ref']}`);
+ if (component.dependencies && component.dependencies.length > 0) {
+ core.info(` depends on: ${component.dependencies.join(', ')}`);
+ }
+ }
+ core.info('==================');
+}
+function convertSBOMToSnapshot(sbomPath, components) {
+ const context = github.context;
+ const sbomFileName = (0, path_1.basename)(sbomPath);
+ if (!sbomFileName.endsWith(SBOM_FILE_SUFFIX)) {
+ throw new Error(`Invalid SBOM file name: ${sbomFileName}. Expected a file ending with ${SBOM_FILE_SUFFIX}.`);
+ }
+ return {
+ version: 0,
+ sha: context.sha,
+ ref: context.ref,
+ job: {
+ correlator: `${context.workflow}_${context.job}`,
+ id: context.runId.toString(),
+ html_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
+ },
+ detector: {
+ name: 'Oracle GraalVM',
+ version: javaVersionOrLatestEA !== null && javaVersionOrLatestEA !== void 0 ? javaVersionOrLatestEA : '',
+ url: 'https://www.graalvm.org/'
+ },
+ scanned: new Date().toISOString(),
+ manifests: {
+ [sbomFileName]: {
+ name: sbomFileName,
+ resolved: mapComponentsToGithubAPIFormat(components),
+ metadata: {
+ generated_by: 'SBOM generated by GraalVM Native Image',
+ action_version: c.ACTION_VERSION
+ }
+ }
+ }
+ };
+}
+function mapComponentsToGithubAPIFormat(components) {
+ return Object.fromEntries(components
+ .filter(component => {
+ if (!component.purl) {
+ core.info(`Component ${component.name} does not have a valid package URL (purl). Skipping.`);
+ }
+ return component.purl;
+ })
+ .map(component => [
+ component.name,
+ {
+ package_url: component.purl,
+ dependencies: component.dependencies || []
+ }
+ ]));
+}
+function submitDependencySnapshot(snapshotData) {
+ return __awaiter(this, void 0, void 0, function* () {
+ const token = core.getInput(c.INPUT_GITHUB_TOKEN, { required: true });
+ const octokit = github.getOctokit(token);
+ const context = github.context;
+ try {
+ yield octokit.request('POST /repos/{owner}/{repo}/dependency-graph/snapshots', {
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ version: snapshotData.version,
+ sha: snapshotData.sha,
+ ref: snapshotData.ref,
+ job: snapshotData.job,
+ detector: snapshotData.detector,
+ metadata: {},
+ scanned: snapshotData.scanned,
+ manifests: snapshotData.manifests,
+ headers: {
+ 'X-GitHub-Api-Version': '2022-11-28'
+ }
+ });
+ core.info('Dependency snapshot submitted successfully.');
+ }
+ catch (error) {
+ throw new Error(`Failed to submit dependency snapshot for SBOM: ${error instanceof Error ? error.message : String(error)}`);
+ }
+ });
+}
+
+
+/***/ }),
+
+/***/ 9543:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
+var __awaiter = (this && this.__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.downloadGraalVM = downloadGraalVM;
+exports.downloadGraalVMEELegacy = downloadGraalVMEELegacy;
+exports.fetchArtifact = fetchArtifact;
+exports.fetchArtifactEE = fetchArtifactEE;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const httpClient = __importStar(__nccwpck_require__(6255));
+const io = __importStar(__nccwpck_require__(7436));
+const path = __importStar(__nccwpck_require__(1017));
+const stream = __importStar(__nccwpck_require__(2781));
+const util = __importStar(__nccwpck_require__(3837));
+const semver = __importStar(__nccwpck_require__(1383));
+const retry_helper_1 = __nccwpck_require__(8279);
+const utils_1 = __nccwpck_require__(1314);
+const assert_1 = __nccwpck_require__(9491);
+const uuid_1 = __nccwpck_require__(5840);
function downloadGraalVM(gdsToken, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const userAgent = `GraalVMGitHubAction/${c.ACTION_VERSION} (arch:${c.GRAALVM_ARCH}; os:${c.GRAALVM_PLATFORM}; java:${javaVersion})`;
@@ -98911,7 +92206,6 @@ function downloadGraalVM(gdsToken, javaVersion) {
return downloadArtifact(gdsToken, userAgent, baseArtifact);
});
}
-exports.downloadGraalVM = downloadGraalVM;
function downloadGraalVMEELegacy(gdsToken, version, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const userAgent = `GraalVMGitHubAction/${c.ACTION_VERSION} (arch:${c.GRAALVM_ARCH}; os:${c.GRAALVM_PLATFORM}; java:${javaVersion})`;
@@ -98919,7 +92213,6 @@ function downloadGraalVMEELegacy(gdsToken, version, javaVersion) {
return downloadArtifact(gdsToken, userAgent, baseArtifact);
});
}
-exports.downloadGraalVMEELegacy = downloadGraalVMEELegacy;
function fetchArtifact(userAgent, metadata, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const http = new httpClient.HttpClient(userAgent);
@@ -98953,7 +92246,6 @@ function fetchArtifact(userAgent, metadata, javaVersion) {
return artifactResponse.items[0];
});
}
-exports.fetchArtifact = fetchArtifact;
function fetchArtifactEE(userAgent, metadata, version, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const http = new httpClient.HttpClient(userAgent);
@@ -98980,7 +92272,6 @@ function fetchArtifactEE(userAgent, metadata, version, javaVersion) {
return artifactResponse.items[0];
});
}
-exports.fetchArtifactEE = fetchArtifactEE;
function downloadArtifact(gdsToken, userAgent, artifact) {
return __awaiter(this, void 0, void 0, function* () {
let downloadPath;
@@ -99092,7 +92383,7 @@ function getTempDirectory() {
/***/ }),
-/***/ 25254:
+/***/ 5254:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -99113,13 +92404,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -99130,14 +92431,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.setUpGraalVMRelease = exports.findGraalVMVersion = exports.setUpGraalVMLatest_22_X = exports.findHighestJavaVersion = exports.setUpGraalVMJDKDevBuild = exports.findLatestGraalVMJDKCEJavaVersion = exports.setUpGraalVMJDKCE = exports.findLatestEABuildDownloadUrl = exports.setUpGraalVMJDK = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const semver = __importStar(__nccwpck_require__(11383));
-const utils_1 = __nccwpck_require__(71314);
-const gds_1 = __nccwpck_require__(19543);
-const tool_cache_1 = __nccwpck_require__(27784);
-const path_1 = __nccwpck_require__(71017);
+exports.setUpGraalVMJDK = setUpGraalVMJDK;
+exports.findLatestEABuildDownloadUrl = findLatestEABuildDownloadUrl;
+exports.setUpGraalVMJDKCE = setUpGraalVMJDKCE;
+exports.findLatestGraalVMJDKCEJavaVersion = findLatestGraalVMJDKCEJavaVersion;
+exports.setUpGraalVMJDKDevBuild = setUpGraalVMJDKDevBuild;
+exports.findHighestJavaVersion = findHighestJavaVersion;
+exports.setUpGraalVMLatest_22_X = setUpGraalVMLatest_22_X;
+exports.findGraalVMVersion = findGraalVMVersion;
+exports.setUpGraalVMRelease = setUpGraalVMRelease;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const semver = __importStar(__nccwpck_require__(1383));
+const utils_1 = __nccwpck_require__(1314);
+const gds_1 = __nccwpck_require__(9543);
+const tool_cache_1 = __nccwpck_require__(7784);
+const path_1 = __nccwpck_require__(1017);
const GRAALVM_DL_BASE = 'https://download.oracle.com/graalvm';
const GRAALVM_CE_DL_BASE = `https://github.com/graalvm/${c.GRAALVM_RELEASES_REPO}/releases/download`;
const ORACLE_GRAALVM_REPO_EA_BUILDS = 'oracle-graalvm-ea-builds';
@@ -99198,7 +92507,6 @@ function setUpGraalVMJDK(javaVersionOrDev, gdsToken) {
return (0, utils_1.downloadExtractAndCacheJDK)(downloader, toolName, javaVersion);
});
}
-exports.setUpGraalVMJDK = setUpGraalVMJDK;
function findLatestEABuildDownloadUrl(javaEaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const filePath = `versions/${javaEaVersion}.json`;
@@ -99232,7 +92540,6 @@ function findLatestEABuildDownloadUrl(javaEaVersion) {
return `${latestVersion.download_base_url}${file.filename}`;
});
}
-exports.findLatestEABuildDownloadUrl = findLatestEABuildDownloadUrl;
function setUpGraalVMJDKCE(javaVersionOrDev) {
return __awaiter(this, void 0, void 0, function* () {
if (javaVersionOrDev === c.VERSION_DEV) {
@@ -99251,7 +92558,6 @@ function setUpGraalVMJDKCE(javaVersionOrDev) {
return (0, utils_1.downloadExtractAndCacheJDK)(downloader, toolName, javaVersion);
});
}
-exports.setUpGraalVMJDKCE = setUpGraalVMJDKCE;
function findLatestGraalVMJDKCEJavaVersion(majorJavaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const matchingRefs = yield (0, utils_1.getMatchingTags)(c.GRAALVM_GH_USER, c.GRAALVM_RELEASES_REPO, `${GRAALVM_JDK_TAG_PREFIX}${majorJavaVersion}`);
@@ -99271,7 +92577,6 @@ function findLatestGraalVMJDKCEJavaVersion(majorJavaVersion) {
return highestVersion;
});
}
-exports.findLatestGraalVMJDKCEJavaVersion = findLatestGraalVMJDKCEJavaVersion;
function determineToolName(javaVersion, isCommunity) {
return `graalvm${isCommunity ? '-community' : ''}-jdk-${javaVersion}_${c.JDK_PLATFORM}-${c.JDK_ARCH}_bin`;
}
@@ -99298,7 +92603,6 @@ function setUpGraalVMJDKDevBuild() {
return (0, utils_1.downloadAndExtractJDK)(downloadUrl);
});
}
-exports.setUpGraalVMJDKDevBuild = setUpGraalVMJDKDevBuild;
function findHighestJavaVersion(release, version) {
const graalVMIdentifierPattern = determineGraalVMLegacyIdentifier(false, version, '(\\d+)');
const expectedFileNameRegExp = new RegExp(`^${graalVMIdentifierPattern}${c.GRAALVM_FILE_EXTENSION.replace(/\./g, '\\.')}$`);
@@ -99319,7 +92623,6 @@ function findHighestJavaVersion(release, version) {
throw new Error('Could not find highest Java version. Please file an issue at: https://github.com/graalvm/setup-graalvm/issues.');
}
}
-exports.findHighestJavaVersion = findHighestJavaVersion;
// Support for GraalVM 22.X releases and earlier
function setUpGraalVMLatest_22_X(gdsToken, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
@@ -99332,7 +92635,6 @@ function setUpGraalVMLatest_22_X(gdsToken, javaVersion) {
return setUpGraalVMRelease(gdsToken, version, javaVersion);
});
}
-exports.setUpGraalVMLatest_22_X = setUpGraalVMLatest_22_X;
function findGraalVMVersion(release) {
const tag_name = release.tag_name;
if (!tag_name.startsWith(GRAALVM_TAG_PREFIX)) {
@@ -99340,7 +92642,6 @@ function findGraalVMVersion(release) {
}
return tag_name.substring(GRAALVM_TAG_PREFIX.length, tag_name.length);
}
-exports.findGraalVMVersion = findGraalVMVersion;
function setUpGraalVMRelease(gdsToken, version, javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const isEE = gdsToken.length > 0;
@@ -99355,7 +92656,6 @@ function setUpGraalVMRelease(gdsToken, version, javaVersion) {
return (0, utils_1.downloadExtractAndCacheJDK)(downloader, toolName, version);
});
}
-exports.setUpGraalVMRelease = setUpGraalVMRelease;
function findDownloadUrl(release, javaVersion) {
const graalVMIdentifier = determineGraalVMLegacyIdentifier(false, c.VERSION_DEV, javaVersion);
const expectedFileName = `${graalVMIdentifier}${c.GRAALVM_FILE_EXTENSION}`;
@@ -99393,7 +92693,7 @@ function downloadGraalVMCELegacy(version, javaVersion) {
/***/ }),
-/***/ 85609:
+/***/ 5609:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -99414,13 +92714,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -99431,13 +92741,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.setUpGUComponents = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const semver = __importStar(__nccwpck_require__(11383));
-const constants_1 = __nccwpck_require__(69042);
-const utils_1 = __nccwpck_require__(71314);
-const path_1 = __nccwpck_require__(71017);
+exports.setUpGUComponents = setUpGUComponents;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const semver = __importStar(__nccwpck_require__(1383));
+const constants_1 = __nccwpck_require__(9042);
+const utils_1 = __nccwpck_require__(1314);
+const path_1 = __nccwpck_require__(1017);
const BASE_FLAGS = ['--non-interactive', 'install', '--no-progress'];
const COMPONENT_TO_POST_INSTALL_HOOK = new Map([
[
@@ -99480,7 +92790,6 @@ function setUpGUComponents(javaVersion, graalVMVersion, graalVMHome, components,
}
});
}
-exports.setUpGUComponents = setUpGUComponents;
function installGUComponents(gdsToken, graalVMHome, components) {
return __awaiter(this, void 0, void 0, function* () {
yield (0, utils_1.exec)('gu', BASE_FLAGS.concat(components), {
@@ -99501,7 +92810,7 @@ function installGUComponents(gdsToken, graalVMHome, components) {
/***/ }),
-/***/ 79684:
+/***/ 9684:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -99522,13 +92831,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -99539,12 +92858,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.findLibericaURL = exports.findLatestLibericaJavaVersion = exports.setUpLiberica = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const semver = __importStar(__nccwpck_require__(11383));
-const utils_1 = __nccwpck_require__(71314);
-const tool_cache_1 = __nccwpck_require__(27784);
-const child_process_1 = __nccwpck_require__(32081);
+exports.setUpLiberica = setUpLiberica;
+exports.findLatestLibericaJavaVersion = findLatestLibericaJavaVersion;
+exports.findLibericaURL = findLibericaURL;
+const c = __importStar(__nccwpck_require__(9042));
+const semver = __importStar(__nccwpck_require__(1383));
+const utils_1 = __nccwpck_require__(1314);
+const tool_cache_1 = __nccwpck_require__(7784);
+const child_process_1 = __nccwpck_require__(2081);
const LIBERICA_GH_USER = 'bell-sw';
const LIBERICA_RELEASES_REPO = 'LibericaNIK';
const LIBERICA_JDK_TAG_PREFIX = 'jdk-';
@@ -99557,7 +92878,6 @@ function setUpLiberica(javaVersion, javaPackage) {
return (0, utils_1.downloadExtractAndCacheJDK)(() => __awaiter(this, void 0, void 0, function* () { return (0, tool_cache_1.downloadTool)(downloadUrl); }), toolName, javaVersion);
});
}
-exports.setUpLiberica = setUpLiberica;
function findLatestLibericaJavaVersion(javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const matchingRefs = yield (0, utils_1.getMatchingTags)(LIBERICA_GH_USER, LIBERICA_RELEASES_REPO, `${LIBERICA_JDK_TAG_PREFIX}${javaVersion}`);
@@ -99581,7 +92901,6 @@ function findLatestLibericaJavaVersion(javaVersion) {
return bestMatch;
});
}
-exports.findLatestLibericaJavaVersion = findLatestLibericaJavaVersion;
function findLibericaURL(javaVersion, javaPackage) {
return __awaiter(this, void 0, void 0, function* () {
const release = yield (0, utils_1.getTaggedRelease)(LIBERICA_GH_USER, LIBERICA_RELEASES_REPO, LIBERICA_JDK_TAG_PREFIX + javaVersion);
@@ -99597,7 +92916,6 @@ function findLibericaURL(javaVersion, javaPackage) {
throw new Error(`Unable to find asset for java-version: ${javaVersion}, java-package: ${javaPackage}, platform: ${platform}. ${c.ERROR_REQUEST}`);
});
}
-exports.findLibericaURL = findLibericaURL;
function determineToolName(javaVersion, javaPackage) {
const variant = determineVariantPart(javaPackage);
const platform = determinePlatformPart();
@@ -99630,7 +92948,7 @@ function isDigit(c) {
/***/ }),
-/***/ 70399:
+/***/ 399:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -99651,13 +92969,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -99668,22 +92996,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const graalvm = __importStar(__nccwpck_require__(25254));
-const semver = __importStar(__nccwpck_require__(11383));
-const cache_1 = __nccwpck_require__(27799);
-const path_1 = __nccwpck_require__(71017);
-const cache_2 = __nccwpck_require__(59179);
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const graalvm = __importStar(__nccwpck_require__(5254));
+const semver = __importStar(__nccwpck_require__(1383));
+const cache_1 = __nccwpck_require__(7799);
+const path_1 = __nccwpck_require__(1017);
+const cache_2 = __nccwpck_require__(9179);
const dependencies_1 = __nccwpck_require__(7760);
-const gu_1 = __nccwpck_require__(85609);
-const mandrel_1 = __nccwpck_require__(88766);
-const liberica_1 = __nccwpck_require__(79684);
-const check_for_updates_1 = __nccwpck_require__(96780);
-const musl_1 = __nccwpck_require__(10316);
-const msvc_1 = __nccwpck_require__(31165);
-const reports_1 = __nccwpck_require__(92046);
-const exec_1 = __nccwpck_require__(71514);
+const gu_1 = __nccwpck_require__(5609);
+const mandrel_1 = __nccwpck_require__(8766);
+const liberica_1 = __nccwpck_require__(9684);
+const check_for_updates_1 = __nccwpck_require__(6780);
+const musl_1 = __nccwpck_require__(316);
+const msvc_1 = __nccwpck_require__(1165);
+const reports_1 = __nccwpck_require__(2046);
+const exec_1 = __nccwpck_require__(1514);
+const sbom_1 = __nccwpck_require__(9181);
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
@@ -99795,6 +93124,7 @@ function run() {
yield (0, cache_2.restore)(cache);
}
(0, reports_1.setUpNativeImageBuildReports)(isGraalVMforJDK17OrLater, javaVersion, graalVMVersion);
+ (0, sbom_1.setUpSBOMSupport)(javaVersion, distribution);
core.startGroup(`Successfully set up '${(0, path_1.basename)(graalVMHome)}'`);
yield (0, exec_1.exec)((0, path_1.join)(graalVMHome, 'bin', `java${c.EXECUTABLE_SUFFIX}`), [
javaVersion.startsWith('8') ? '-version' : '--version'
@@ -99812,7 +93142,7 @@ run();
/***/ }),
-/***/ 88766:
+/***/ 8766:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -99833,13 +93163,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -99850,12 +93190,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.stripMandrelNamespace = exports.getLatestMandrelReleaseUrl = exports.setUpMandrel = exports.MANDREL_TAG_PREFIX = exports.MANDREL_REPO = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const httpClient = __importStar(__nccwpck_require__(96255));
-const utils_1 = __nccwpck_require__(71314);
-const tool_cache_1 = __nccwpck_require__(27784);
-const path_1 = __nccwpck_require__(71017);
+exports.MANDREL_TAG_PREFIX = exports.MANDREL_REPO = void 0;
+exports.setUpMandrel = setUpMandrel;
+exports.getLatestMandrelReleaseUrl = getLatestMandrelReleaseUrl;
+exports.stripMandrelNamespace = stripMandrelNamespace;
+const c = __importStar(__nccwpck_require__(9042));
+const httpClient = __importStar(__nccwpck_require__(6255));
+const utils_1 = __nccwpck_require__(1314);
+const tool_cache_1 = __nccwpck_require__(7784);
+const path_1 = __nccwpck_require__(1017);
exports.MANDREL_REPO = 'mandrel';
exports.MANDREL_TAG_PREFIX = c.MANDREL_NAMESPACE;
const MANDREL_DL_BASE = 'https://github.com/graalvm/mandrel/releases/download';
@@ -99877,7 +93220,6 @@ function setUpMandrel(mandrelVersion, javaVersion) {
return mandrelHome;
});
}
-exports.setUpMandrel = setUpMandrel;
function setUpMandrelLatest(javaVersion) {
return __awaiter(this, void 0, void 0, function* () {
const latest_release_url = yield getLatestMandrelReleaseUrl(javaVersion);
@@ -99916,7 +93258,6 @@ function getLatestMandrelReleaseUrl(javaVersion) {
}
});
}
-exports.getLatestMandrelReleaseUrl = getLatestMandrelReleaseUrl;
function getLatestMandrelReleaseUrlHelper(_http, java_version, pkg_info_uri) {
return __awaiter(this, void 0, void 0, function* () {
var _a;
@@ -99969,12 +93310,11 @@ function stripMandrelNamespace(graalVMVersion) {
return graalVMVersion;
}
}
-exports.stripMandrelNamespace = stripMandrelNamespace;
/***/ }),
-/***/ 31165:
+/***/ 1165:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -99995,19 +93335,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.setUpWindowsEnvironment = exports.needsWindowsEnvironmentSetup = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const child_process_1 = __nccwpck_require__(32081);
-const fs_1 = __nccwpck_require__(57147);
-const constants_1 = __nccwpck_require__(69042);
+exports.needsWindowsEnvironmentSetup = needsWindowsEnvironmentSetup;
+exports.setUpWindowsEnvironment = setUpWindowsEnvironment;
+const core = __importStar(__nccwpck_require__(2186));
+const child_process_1 = __nccwpck_require__(2081);
+const fs_1 = __nccwpck_require__(7147);
+const constants_1 = __nccwpck_require__(9042);
// Keep in sync with https://github.com/actions/virtual-environments
const KNOWN_VISUAL_STUDIO_INSTALLATIONS = [
'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise', // 'windows-2022' and 'windows-latest'
@@ -100037,7 +93388,6 @@ function needsWindowsEnvironmentSetup(javaVersion, graalVMVersion, isGraalVMforJ
}
return true;
}
-exports.needsWindowsEnvironmentSetup = needsWindowsEnvironmentSetup;
function setUpWindowsEnvironment(javaVersion, graalVMVersion, isGraalVMforJDK17OrLater) {
if (!needsWindowsEnvironmentSetup(javaVersion, graalVMVersion, isGraalVMforJDK17OrLater)) {
return;
@@ -100074,12 +93424,11 @@ function setUpWindowsEnvironment(javaVersion, graalVMVersion, isGraalVMforJDK17O
}
core.endGroup();
}
-exports.setUpWindowsEnvironment = setUpWindowsEnvironment;
/***/ }),
-/***/ 71314:
+/***/ 1314:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -100100,13 +93449,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
-var __importStar = (this && this.__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 __importStar = (this && this.__importStar) || (function () {
+ var ownKeys = function(o) {
+ ownKeys = Object.getOwnPropertyNames || function (o) {
+ var ar = [];
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
+ return ar;
+ };
+ return ownKeys(o);
+ };
+ return 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(result, mod, k[i]);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+})();
var __awaiter = (this && this.__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) {
@@ -100117,18 +93476,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.createPRComment = exports.updatePRComment = exports.findExistingPRCommentId = exports.isPREvent = exports.toSemVer = exports.calculateSHA256 = exports.downloadExtractAndCacheJDK = exports.downloadAndExtractJDK = exports.getMatchingTags = exports.getTaggedRelease = exports.getContents = exports.getLatestRelease = exports.exec = void 0;
-const c = __importStar(__nccwpck_require__(69042));
-const core = __importStar(__nccwpck_require__(42186));
-const github = __importStar(__nccwpck_require__(95438));
-const httpClient = __importStar(__nccwpck_require__(96255));
-const semver = __importStar(__nccwpck_require__(11383));
-const tc = __importStar(__nccwpck_require__(27784));
-const exec_1 = __nccwpck_require__(71514);
-const fs_1 = __nccwpck_require__(57147);
-const core_1 = __nccwpck_require__(76762);
+exports.exec = exec;
+exports.getLatestRelease = getLatestRelease;
+exports.getContents = getContents;
+exports.getTaggedRelease = getTaggedRelease;
+exports.getMatchingTags = getMatchingTags;
+exports.downloadAndExtractJDK = downloadAndExtractJDK;
+exports.downloadExtractAndCacheJDK = downloadExtractAndCacheJDK;
+exports.calculateSHA256 = calculateSHA256;
+exports.toSemVer = toSemVer;
+exports.isPREvent = isPREvent;
+exports.findExistingPRCommentId = findExistingPRCommentId;
+exports.updatePRComment = updatePRComment;
+exports.createPRComment = createPRComment;
+exports.tmpfile = tmpfile;
+exports.setNativeImageOption = setNativeImageOption;
+const c = __importStar(__nccwpck_require__(9042));
+const core = __importStar(__nccwpck_require__(2186));
+const github = __importStar(__nccwpck_require__(5438));
+const httpClient = __importStar(__nccwpck_require__(6255));
+const semver = __importStar(__nccwpck_require__(1383));
+const tc = __importStar(__nccwpck_require__(7784));
+const fs = __importStar(__nccwpck_require__(7147));
+const exec_1 = __nccwpck_require__(1514);
+const fs_1 = __nccwpck_require__(7147);
+const core_1 = __nccwpck_require__(6762);
const crypto_1 = __nccwpck_require__(6113);
-const path_1 = __nccwpck_require__(71017);
+const path_1 = __nccwpck_require__(1017);
+const os_1 = __nccwpck_require__(2037);
// Set up Octokit for github.com only and in the same way as @actions/github (see https://git.io/Jy9YP)
const baseUrl = 'https://api.github.com';
const GitHubDotCom = core_1.Octokit.defaults({
@@ -100147,7 +93522,6 @@ function exec(commandLine, args, options) {
}
});
}
-exports.exec = exec;
function getLatestRelease(repo) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -100159,7 +93533,6 @@ function getLatestRelease(repo) {
})).data;
});
}
-exports.getLatestRelease = getLatestRelease;
function getContents(repo, path) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -100172,7 +93545,6 @@ function getContents(repo, path) {
})).data;
});
}
-exports.getContents = getContents;
function getTaggedRelease(owner, repo, tag) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -100185,7 +93557,6 @@ function getTaggedRelease(owner, repo, tag) {
})).data;
});
}
-exports.getTaggedRelease = getTaggedRelease;
function getMatchingTags(owner, repo, tagPrefix) {
return __awaiter(this, void 0, void 0, function* () {
const githubToken = getGitHubToken();
@@ -100198,13 +93569,11 @@ function getMatchingTags(owner, repo, tagPrefix) {
})).data;
});
}
-exports.getMatchingTags = getMatchingTags;
function downloadAndExtractJDK(downloadUrl) {
return __awaiter(this, void 0, void 0, function* () {
return findJavaHomeInSubfolder(yield extract(yield tc.downloadTool(downloadUrl)));
});
}
-exports.downloadAndExtractJDK = downloadAndExtractJDK;
function downloadExtractAndCacheJDK(downloader, toolName, version) {
return __awaiter(this, void 0, void 0, function* () {
const semVersion = toSemVer(version);
@@ -100220,13 +93589,11 @@ function downloadExtractAndCacheJDK(downloader, toolName, version) {
return findJavaHomeInSubfolder(toolPath);
});
}
-exports.downloadExtractAndCacheJDK = downloadExtractAndCacheJDK;
function calculateSHA256(filePath) {
const hashSum = (0, crypto_1.createHash)('sha256');
hashSum.update((0, fs_1.readFileSync)(filePath));
return hashSum.digest('hex');
}
-exports.calculateSHA256 = calculateSHA256;
function extract(downloadPath) {
return __awaiter(this, void 0, void 0, function* () {
if (c.GRAALVM_FILE_EXTENSION === '.tar.gz') {
@@ -100266,11 +93633,9 @@ function toSemVer(version) {
}
return validVersion;
}
-exports.toSemVer = toSemVer;
function isPREvent() {
return process.env[c.ENV_GITHUB_EVENT_NAME] === c.EVENT_NAME_PULL_REQUEST;
}
-exports.isPREvent = isPREvent;
function getGitHubToken() {
return core.getInput(c.INPUT_GITHUB_TOKEN);
}
@@ -100294,7 +93659,6 @@ function findExistingPRCommentId(bodyStartsWith) {
}
});
}
-exports.findExistingPRCommentId = findExistingPRCommentId;
function updatePRComment(content, commentId) {
return __awaiter(this, void 0, void 0, function* () {
if (!isPREvent()) {
@@ -100308,7 +93672,6 @@ function updatePRComment(content, commentId) {
}
});
}
-exports.updatePRComment = updatePRComment;
function createPRComment(content) {
return __awaiter(this, void 0, void 0, function* () {
var _a;
@@ -100324,12 +93687,48 @@ function createPRComment(content) {
}
});
}
-exports.createPRComment = createPRComment;
+function tmpfile(fileName) {
+ return (0, path_1.join)((0, os_1.tmpdir)(), fileName);
+}
+function setNativeImageOption(javaVersionOrDev, optionValue) {
+ const coercedJavaVersionOrDev = semver.coerce(javaVersionOrDev);
+ if ((coercedJavaVersionOrDev &&
+ semver.gte(coercedJavaVersionOrDev, '22.0.0')) ||
+ javaVersionOrDev === c.VERSION_DEV ||
+ javaVersionOrDev.endsWith('-ea')) {
+ /* NATIVE_IMAGE_OPTIONS was introduced in GraalVM for JDK 22 (so were EA builds). */
+ let newOptionValue = optionValue;
+ const existingOptions = process.env[c.NATIVE_IMAGE_OPTIONS_ENV];
+ if (existingOptions) {
+ newOptionValue = `${existingOptions} ${newOptionValue}`;
+ }
+ core.exportVariable(c.NATIVE_IMAGE_OPTIONS_ENV, newOptionValue);
+ }
+ else {
+ const optionsFile = getNativeImageOptionsFile();
+ if (fs.existsSync(optionsFile)) {
+ fs.appendFileSync(optionsFile, ` ${optionValue}`);
+ }
+ else {
+ fs.writeFileSync(optionsFile, `NativeImageArgs = ${optionValue}`);
+ }
+ }
+}
+const NATIVE_IMAGE_CONFIG_FILE = tmpfile('native-image-options.properties');
+const NATIVE_IMAGE_CONFIG_FILE_ENV = 'NATIVE_IMAGE_CONFIG_FILE';
+function getNativeImageOptionsFile() {
+ let optionsFile = process.env[NATIVE_IMAGE_CONFIG_FILE_ENV];
+ if (optionsFile === undefined) {
+ optionsFile = NATIVE_IMAGE_CONFIG_FILE;
+ core.exportVariable(NATIVE_IMAGE_CONFIG_FILE_ENV, optionsFile);
+ }
+ return optionsFile;
+}
/***/ }),
-/***/ 22877:
+/***/ 2877:
/***/ ((module) => {
module.exports = eval("require")("encoding");
@@ -100337,7 +93736,7 @@ module.exports = eval("require")("encoding");
/***/ }),
-/***/ 39491:
+/***/ 9491:
/***/ ((module) => {
"use strict";
@@ -100345,7 +93744,7 @@ module.exports = require("assert");
/***/ }),
-/***/ 50852:
+/***/ 852:
/***/ ((module) => {
"use strict";
@@ -100353,7 +93752,7 @@ module.exports = require("async_hooks");
/***/ }),
-/***/ 14300:
+/***/ 4300:
/***/ ((module) => {
"use strict";
@@ -100361,7 +93760,7 @@ module.exports = require("buffer");
/***/ }),
-/***/ 32081:
+/***/ 2081:
/***/ ((module) => {
"use strict";
@@ -100369,7 +93768,7 @@ module.exports = require("child_process");
/***/ }),
-/***/ 96206:
+/***/ 6206:
/***/ ((module) => {
"use strict";
@@ -100385,7 +93784,7 @@ module.exports = require("crypto");
/***/ }),
-/***/ 67643:
+/***/ 7643:
/***/ ((module) => {
"use strict";
@@ -100393,7 +93792,7 @@ module.exports = require("diagnostics_channel");
/***/ }),
-/***/ 82361:
+/***/ 2361:
/***/ ((module) => {
"use strict";
@@ -100401,7 +93800,7 @@ module.exports = require("events");
/***/ }),
-/***/ 57147:
+/***/ 7147:
/***/ ((module) => {
"use strict";
@@ -100409,7 +93808,7 @@ module.exports = require("fs");
/***/ }),
-/***/ 13685:
+/***/ 3685:
/***/ ((module) => {
"use strict";
@@ -100417,7 +93816,7 @@ module.exports = require("http");
/***/ }),
-/***/ 85158:
+/***/ 5158:
/***/ ((module) => {
"use strict";
@@ -100425,7 +93824,7 @@ module.exports = require("http2");
/***/ }),
-/***/ 95687:
+/***/ 5687:
/***/ ((module) => {
"use strict";
@@ -100433,7 +93832,7 @@ module.exports = require("https");
/***/ }),
-/***/ 41808:
+/***/ 1808:
/***/ ((module) => {
"use strict";
@@ -100441,7 +93840,7 @@ module.exports = require("net");
/***/ }),
-/***/ 15673:
+/***/ 5673:
/***/ ((module) => {
"use strict";
@@ -100449,7 +93848,7 @@ module.exports = require("node:events");
/***/ }),
-/***/ 70612:
+/***/ 612:
/***/ ((module) => {
"use strict";
@@ -100457,7 +93856,7 @@ module.exports = require("node:os");
/***/ }),
-/***/ 97742:
+/***/ 7742:
/***/ ((module) => {
"use strict";
@@ -100465,7 +93864,7 @@ module.exports = require("node:process");
/***/ }),
-/***/ 84492:
+/***/ 4492:
/***/ ((module) => {
"use strict";
@@ -100473,7 +93872,7 @@ module.exports = require("node:stream");
/***/ }),
-/***/ 47261:
+/***/ 7261:
/***/ ((module) => {
"use strict";
@@ -100481,7 +93880,7 @@ module.exports = require("node:util");
/***/ }),
-/***/ 22037:
+/***/ 2037:
/***/ ((module) => {
"use strict";
@@ -100489,7 +93888,7 @@ module.exports = require("os");
/***/ }),
-/***/ 71017:
+/***/ 1017:
/***/ ((module) => {
"use strict";
@@ -100505,7 +93904,7 @@ module.exports = require("perf_hooks");
/***/ }),
-/***/ 85477:
+/***/ 5477:
/***/ ((module) => {
"use strict";
@@ -100513,7 +93912,7 @@ module.exports = require("punycode");
/***/ }),
-/***/ 63477:
+/***/ 3477:
/***/ ((module) => {
"use strict";
@@ -100521,7 +93920,7 @@ module.exports = require("querystring");
/***/ }),
-/***/ 12781:
+/***/ 2781:
/***/ ((module) => {
"use strict";
@@ -100529,7 +93928,7 @@ module.exports = require("stream");
/***/ }),
-/***/ 35356:
+/***/ 5356:
/***/ ((module) => {
"use strict";
@@ -100537,7 +93936,7 @@ module.exports = require("stream/web");
/***/ }),
-/***/ 71576:
+/***/ 1576:
/***/ ((module) => {
"use strict";
@@ -100545,7 +93944,7 @@ module.exports = require("string_decoder");
/***/ }),
-/***/ 39512:
+/***/ 9512:
/***/ ((module) => {
"use strict";
@@ -100553,7 +93952,7 @@ module.exports = require("timers");
/***/ }),
-/***/ 24404:
+/***/ 4404:
/***/ ((module) => {
"use strict";
@@ -100561,7 +93960,7 @@ module.exports = require("tls");
/***/ }),
-/***/ 57310:
+/***/ 7310:
/***/ ((module) => {
"use strict";
@@ -100569,7 +93968,7 @@ module.exports = require("url");
/***/ }),
-/***/ 73837:
+/***/ 3837:
/***/ ((module) => {
"use strict";
@@ -100577,7 +93976,7 @@ module.exports = require("util");
/***/ }),
-/***/ 29830:
+/***/ 9830:
/***/ ((module) => {
"use strict";
@@ -100585,7 +93984,7 @@ module.exports = require("util/types");
/***/ }),
-/***/ 71267:
+/***/ 1267:
/***/ ((module) => {
"use strict";
@@ -100593,7 +93992,7 @@ module.exports = require("worker_threads");
/***/ }),
-/***/ 59796:
+/***/ 9796:
/***/ ((module) => {
"use strict";
@@ -100601,7 +94000,7 @@ module.exports = require("zlib");
/***/ }),
-/***/ 31875:
+/***/ 1875:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -100651,7 +94050,7 @@ exports.AzureKeyCredential = AzureKeyCredential;
/***/ }),
-/***/ 51377:
+/***/ 1377:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100660,7 +94059,7 @@ exports.AzureKeyCredential = AzureKeyCredential;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isNamedKeyCredential = exports.AzureNamedKeyCredential = void 0;
-const core_util_1 = __nccwpck_require__(80637);
+const core_util_1 = __nccwpck_require__(637);
/**
* A static name/key-based credential that supports updating
* the underlying name and key values.
@@ -100727,7 +94126,7 @@ exports.isNamedKeyCredential = isNamedKeyCredential;
/***/ }),
-/***/ 27182:
+/***/ 7182:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100736,7 +94135,7 @@ exports.isNamedKeyCredential = isNamedKeyCredential;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isSASCredential = exports.AzureSASCredential = void 0;
-const core_util_1 = __nccwpck_require__(80637);
+const core_util_1 = __nccwpck_require__(637);
/**
* A static-signature-based credential that supports updating
* the underlying signature value.
@@ -100790,7 +94189,7 @@ exports.isSASCredential = isSASCredential;
/***/ }),
-/***/ 98834:
+/***/ 8834:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100799,23 +94198,23 @@ exports.isSASCredential = isSASCredential;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isTokenCredential = exports.isSASCredential = exports.AzureSASCredential = exports.isNamedKeyCredential = exports.AzureNamedKeyCredential = exports.isKeyCredential = exports.AzureKeyCredential = void 0;
-var azureKeyCredential_js_1 = __nccwpck_require__(31875);
+var azureKeyCredential_js_1 = __nccwpck_require__(1875);
Object.defineProperty(exports, "AzureKeyCredential", ({ enumerable: true, get: function () { return azureKeyCredential_js_1.AzureKeyCredential; } }));
-var keyCredential_js_1 = __nccwpck_require__(59122);
+var keyCredential_js_1 = __nccwpck_require__(9122);
Object.defineProperty(exports, "isKeyCredential", ({ enumerable: true, get: function () { return keyCredential_js_1.isKeyCredential; } }));
-var azureNamedKeyCredential_js_1 = __nccwpck_require__(51377);
+var azureNamedKeyCredential_js_1 = __nccwpck_require__(1377);
Object.defineProperty(exports, "AzureNamedKeyCredential", ({ enumerable: true, get: function () { return azureNamedKeyCredential_js_1.AzureNamedKeyCredential; } }));
Object.defineProperty(exports, "isNamedKeyCredential", ({ enumerable: true, get: function () { return azureNamedKeyCredential_js_1.isNamedKeyCredential; } }));
-var azureSASCredential_js_1 = __nccwpck_require__(27182);
+var azureSASCredential_js_1 = __nccwpck_require__(7182);
Object.defineProperty(exports, "AzureSASCredential", ({ enumerable: true, get: function () { return azureSASCredential_js_1.AzureSASCredential; } }));
Object.defineProperty(exports, "isSASCredential", ({ enumerable: true, get: function () { return azureSASCredential_js_1.isSASCredential; } }));
-var tokenCredential_js_1 = __nccwpck_require__(39162);
+var tokenCredential_js_1 = __nccwpck_require__(9162);
Object.defineProperty(exports, "isTokenCredential", ({ enumerable: true, get: function () { return tokenCredential_js_1.isTokenCredential; } }));
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 59122:
+/***/ 9122:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100824,7 +94223,7 @@ Object.defineProperty(exports, "isTokenCredential", ({ enumerable: true, get: fu
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isKeyCredential = void 0;
-const core_util_1 = __nccwpck_require__(80637);
+const core_util_1 = __nccwpck_require__(637);
/**
* Tests an object to determine whether it implements KeyCredential.
*
@@ -100838,7 +94237,7 @@ exports.isKeyCredential = isKeyCredential;
/***/ }),
-/***/ 39162:
+/***/ 9162:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -100868,7 +94267,7 @@ exports.isTokenCredential = isTokenCredential;
/***/ }),
-/***/ 57759:
+/***/ 7759:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100877,8 +94276,8 @@ exports.isTokenCredential = isTokenCredential;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.pollHttpOperation = exports.isOperationError = exports.getResourceLocation = exports.getOperationStatus = exports.getOperationLocation = exports.initHttpOperation = exports.getStatusFromInitialResponse = exports.getErrorFromResponse = exports.parseRetryAfter = exports.inferLroMode = void 0;
-const operation_js_1 = __nccwpck_require__(70281);
-const logger_js_1 = __nccwpck_require__(28121);
+const operation_js_1 = __nccwpck_require__(281);
+const logger_js_1 = __nccwpck_require__(8121);
function getOperationLocationPollingUrl(inputs) {
const { azureAsyncOperation, operationLocation } = inputs;
return operationLocation ?? azureAsyncOperation;
@@ -101168,7 +94567,7 @@ exports.pollHttpOperation = pollHttpOperation;
/***/ }),
-/***/ 78412:
+/***/ 8412:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101177,8 +94576,8 @@ exports.pollHttpOperation = pollHttpOperation;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createHttpPoller = void 0;
-const operation_js_1 = __nccwpck_require__(57759);
-const poller_js_1 = __nccwpck_require__(76713);
+const operation_js_1 = __nccwpck_require__(7759);
+const poller_js_1 = __nccwpck_require__(6713);
/**
* Creates a poller that can be used to poll a long-running operation.
* @param lro - Description of the long-running operation
@@ -101228,7 +94627,7 @@ exports.createHttpPoller = createHttpPoller;
/***/ }),
-/***/ 90334:
+/***/ 5069:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101238,7 +94637,7 @@ exports.createHttpPoller = createHttpPoller;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createHttpPoller = void 0;
const tslib_1 = __nccwpck_require__(4351);
-var poller_js_1 = __nccwpck_require__(78412);
+var poller_js_1 = __nccwpck_require__(8412);
Object.defineProperty(exports, "createHttpPoller", ({ enumerable: true, get: function () { return poller_js_1.createHttpPoller; } }));
/**
* This can be uncommented to expose the protocol-agnostic poller
@@ -101252,14 +94651,14 @@ Object.defineProperty(exports, "createHttpPoller", ({ enumerable: true, get: fun
// } from "./poller/models";
// export { buildCreatePoller } from "./poller/poller";
/** legacy */
-tslib_1.__exportStar(__nccwpck_require__(52260), exports);
-tslib_1.__exportStar(__nccwpck_require__(17270), exports);
-tslib_1.__exportStar(__nccwpck_require__(93586), exports);
+tslib_1.__exportStar(__nccwpck_require__(2260), exports);
+tslib_1.__exportStar(__nccwpck_require__(7270), exports);
+tslib_1.__exportStar(__nccwpck_require__(3586), exports);
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 52260:
+/***/ 2260:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101268,13 +94667,13 @@ tslib_1.__exportStar(__nccwpck_require__(93586), exports);
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.LroEngine = void 0;
-var lroEngine_js_1 = __nccwpck_require__(35780);
+var lroEngine_js_1 = __nccwpck_require__(5780);
Object.defineProperty(exports, "LroEngine", ({ enumerable: true, get: function () { return lroEngine_js_1.LroEngine; } }));
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 35780:
+/***/ 5780:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101283,10 +94682,10 @@ Object.defineProperty(exports, "LroEngine", ({ enumerable: true, get: function (
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.LroEngine = void 0;
-const operation_js_1 = __nccwpck_require__(77954);
-const constants_js_1 = __nccwpck_require__(53846);
-const poller_js_1 = __nccwpck_require__(17270);
-const operation_js_2 = __nccwpck_require__(70281);
+const operation_js_1 = __nccwpck_require__(7954);
+const constants_js_1 = __nccwpck_require__(3846);
+const poller_js_1 = __nccwpck_require__(7270);
+const operation_js_2 = __nccwpck_require__(281);
/**
* The LRO Engine, a class that performs polling.
*/
@@ -101315,7 +94714,7 @@ exports.LroEngine = LroEngine;
/***/ }),
-/***/ 77954:
+/***/ 7954:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101324,8 +94723,8 @@ exports.LroEngine = LroEngine;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.GenericPollOperation = void 0;
-const operation_js_1 = __nccwpck_require__(57759);
-const logger_js_1 = __nccwpck_require__(28121);
+const operation_js_1 = __nccwpck_require__(7759);
+const logger_js_1 = __nccwpck_require__(8121);
const createStateProxy = () => ({
initState: (config) => ({ config, isStarted: true }),
setCanceled: (state) => (state.isCancelled = true),
@@ -101420,7 +94819,7 @@ exports.GenericPollOperation = GenericPollOperation;
/***/ }),
-/***/ 93586:
+/***/ 3586:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -101432,7 +94831,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
/***/ }),
-/***/ 17270:
+/***/ 7270:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -101852,7 +95251,7 @@ exports.Poller = Poller;
/***/ }),
-/***/ 28121:
+/***/ 8121:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101861,7 +95260,7 @@ exports.Poller = Poller;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.logger = void 0;
-const logger_1 = __nccwpck_require__(89497);
+const logger_1 = __nccwpck_require__(9497);
/**
* The `@azure/logger` configuration for this package.
* @internal
@@ -101871,7 +95270,7 @@ exports.logger = (0, logger_1.createClientLogger)("core-lro");
/***/ }),
-/***/ 53846:
+/***/ 3846:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -101892,7 +95291,7 @@ exports.terminalStates = ["succeeded", "canceled", "failed"];
/***/ }),
-/***/ 70281:
+/***/ 281:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101901,8 +95300,8 @@ exports.terminalStates = ["succeeded", "canceled", "failed"];
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.pollOperation = exports.initOperation = exports.deserializeState = void 0;
-const logger_js_1 = __nccwpck_require__(28121);
-const constants_js_1 = __nccwpck_require__(53846);
+const logger_js_1 = __nccwpck_require__(8121);
+const constants_js_1 = __nccwpck_require__(3846);
/**
* Deserializes the state
*/
@@ -102071,7 +95470,7 @@ exports.pollOperation = pollOperation;
/***/ }),
-/***/ 76713:
+/***/ 6713:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102080,9 +95479,9 @@ exports.pollOperation = pollOperation;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.buildCreatePoller = void 0;
-const operation_js_1 = __nccwpck_require__(70281);
-const constants_js_1 = __nccwpck_require__(53846);
-const core_util_1 = __nccwpck_require__(80637);
+const operation_js_1 = __nccwpck_require__(281);
+const constants_js_1 = __nccwpck_require__(3846);
+const core_util_1 = __nccwpck_require__(637);
const createStateProxy = () => ({
/**
* The state at this point is created to be of type OperationState.
@@ -102252,7 +95651,7 @@ exports.buildCreatePoller = buildCreatePoller;
/***/ }),
-/***/ 85002:
+/***/ 5002:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102335,7 +95734,7 @@ async function* getPageAsyncIterator(pagedResult, options = {}) {
/***/ }),
-/***/ 37947:
+/***/ 7947:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102344,13 +95743,13 @@ async function* getPageAsyncIterator(pagedResult, options = {}) {
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
const tslib_1 = __nccwpck_require__(4351);
-tslib_1.__exportStar(__nccwpck_require__(42519), exports);
-tslib_1.__exportStar(__nccwpck_require__(85002), exports);
+tslib_1.__exportStar(__nccwpck_require__(2519), exports);
+tslib_1.__exportStar(__nccwpck_require__(5002), exports);
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 42519:
+/***/ 2519:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102362,7 +95761,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
/***/ }),
-/***/ 87205:
+/***/ 7205:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102426,7 +95825,7 @@ exports.stringToUint8Array = stringToUint8Array;
/***/ }),
-/***/ 97980:
+/***/ 7980:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102476,7 +95875,7 @@ exports.isReactNative = typeof navigator !== "undefined" && navigator?.product =
/***/ }),
-/***/ 12376:
+/***/ 2376:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102485,7 +95884,7 @@ exports.isReactNative = typeof navigator !== "undefined" && navigator?.product =
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createAbortablePromise = void 0;
-const abort_controller_1 = __nccwpck_require__(54812);
+const abort_controller_1 = __nccwpck_require__(4812);
/**
* Creates an abortable promise.
* @param buildPromise - A function that takes the resolve and reject functions as parameters.
@@ -102529,7 +95928,7 @@ exports.createAbortablePromise = createAbortablePromise;
/***/ }),
-/***/ 19259:
+/***/ 9259:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102538,7 +95937,7 @@ exports.createAbortablePromise = createAbortablePromise;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.delay = void 0;
-const createAbortablePromise_js_1 = __nccwpck_require__(12376);
+const createAbortablePromise_js_1 = __nccwpck_require__(2376);
const StandardAbortMessage = "The delay was aborted.";
/**
* A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.
@@ -102562,7 +95961,7 @@ exports.delay = delay;
/***/ }),
-/***/ 46734:
+/***/ 6734:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102571,7 +95970,7 @@ exports.delay = delay;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getErrorMessage = exports.isError = void 0;
-const object_js_1 = __nccwpck_require__(56538);
+const object_js_1 = __nccwpck_require__(6538);
/**
* Typeguard for an error object shape (has name and message)
* @param e - Something caught by a catch clause.
@@ -102616,7 +96015,7 @@ exports.getErrorMessage = getErrorMessage;
/***/ }),
-/***/ 80637:
+/***/ 637:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102625,29 +96024,29 @@ exports.getErrorMessage = getErrorMessage;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.stringToUint8Array = exports.uint8ArrayToString = exports.isWebWorker = exports.isReactNative = exports.isDeno = exports.isNode = exports.isBun = exports.isBrowser = exports.randomUUID = exports.objectHasProperty = exports.isObjectWithProperties = exports.isDefined = exports.computeSha256Hmac = exports.computeSha256Hash = exports.getErrorMessage = exports.isError = exports.isObject = exports.getRandomIntegerInclusive = exports.createAbortablePromise = exports.cancelablePromiseRace = exports.delay = void 0;
-var delay_js_1 = __nccwpck_require__(19259);
+var delay_js_1 = __nccwpck_require__(9259);
Object.defineProperty(exports, "delay", ({ enumerable: true, get: function () { return delay_js_1.delay; } }));
-var aborterUtils_js_1 = __nccwpck_require__(87205);
+var aborterUtils_js_1 = __nccwpck_require__(7205);
Object.defineProperty(exports, "cancelablePromiseRace", ({ enumerable: true, get: function () { return aborterUtils_js_1.cancelablePromiseRace; } }));
-var createAbortablePromise_js_1 = __nccwpck_require__(12376);
+var createAbortablePromise_js_1 = __nccwpck_require__(2376);
Object.defineProperty(exports, "createAbortablePromise", ({ enumerable: true, get: function () { return createAbortablePromise_js_1.createAbortablePromise; } }));
-var random_js_1 = __nccwpck_require__(93710);
+var random_js_1 = __nccwpck_require__(3710);
Object.defineProperty(exports, "getRandomIntegerInclusive", ({ enumerable: true, get: function () { return random_js_1.getRandomIntegerInclusive; } }));
-var object_js_1 = __nccwpck_require__(56538);
+var object_js_1 = __nccwpck_require__(6538);
Object.defineProperty(exports, "isObject", ({ enumerable: true, get: function () { return object_js_1.isObject; } }));
-var error_js_1 = __nccwpck_require__(46734);
+var error_js_1 = __nccwpck_require__(6734);
Object.defineProperty(exports, "isError", ({ enumerable: true, get: function () { return error_js_1.isError; } }));
Object.defineProperty(exports, "getErrorMessage", ({ enumerable: true, get: function () { return error_js_1.getErrorMessage; } }));
-var sha256_js_1 = __nccwpck_require__(94793);
+var sha256_js_1 = __nccwpck_require__(4793);
Object.defineProperty(exports, "computeSha256Hash", ({ enumerable: true, get: function () { return sha256_js_1.computeSha256Hash; } }));
Object.defineProperty(exports, "computeSha256Hmac", ({ enumerable: true, get: function () { return sha256_js_1.computeSha256Hmac; } }));
var typeGuards_js_1 = __nccwpck_require__(1187);
Object.defineProperty(exports, "isDefined", ({ enumerable: true, get: function () { return typeGuards_js_1.isDefined; } }));
Object.defineProperty(exports, "isObjectWithProperties", ({ enumerable: true, get: function () { return typeGuards_js_1.isObjectWithProperties; } }));
Object.defineProperty(exports, "objectHasProperty", ({ enumerable: true, get: function () { return typeGuards_js_1.objectHasProperty; } }));
-var uuidUtils_js_1 = __nccwpck_require__(17658);
+var uuidUtils_js_1 = __nccwpck_require__(7658);
Object.defineProperty(exports, "randomUUID", ({ enumerable: true, get: function () { return uuidUtils_js_1.randomUUID; } }));
-var checkEnvironment_js_1 = __nccwpck_require__(97980);
+var checkEnvironment_js_1 = __nccwpck_require__(7980);
Object.defineProperty(exports, "isBrowser", ({ enumerable: true, get: function () { return checkEnvironment_js_1.isBrowser; } }));
Object.defineProperty(exports, "isBun", ({ enumerable: true, get: function () { return checkEnvironment_js_1.isBun; } }));
Object.defineProperty(exports, "isNode", ({ enumerable: true, get: function () { return checkEnvironment_js_1.isNode; } }));
@@ -102661,7 +96060,7 @@ Object.defineProperty(exports, "stringToUint8Array", ({ enumerable: true, get: f
/***/ }),
-/***/ 56538:
+/***/ 6538:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102686,7 +96085,7 @@ exports.isObject = isObject;
/***/ }),
-/***/ 93710:
+/***/ 3710:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102718,7 +96117,7 @@ exports.getRandomIntegerInclusive = getRandomIntegerInclusive;
/***/ }),
-/***/ 94793:
+/***/ 4793:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102799,7 +96198,7 @@ exports.objectHasProperty = objectHasProperty;
/***/ }),
-/***/ 17658:
+/***/ 7658:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102826,7 +96225,7 @@ exports.randomUUID = randomUUID;
/***/ }),
-/***/ 42118:
+/***/ 2118:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -102864,7 +96263,7 @@ exports.AbortError = AbortError;
/***/ }),
-/***/ 54812:
+/***/ 4812:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102873,13 +96272,13 @@ exports.AbortError = AbortError;
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AbortError = void 0;
-var AbortError_js_1 = __nccwpck_require__(42118);
+var AbortError_js_1 = __nccwpck_require__(2118);
Object.defineProperty(exports, "AbortError", ({ enumerable: true, get: function () { return AbortError_js_1.AbortError; } }));
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 80162:
+/***/ 162:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102887,7 +96286,7 @@ Object.defineProperty(exports, "AbortError", ({ enumerable: true, get: function
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const log_js_1 = __nccwpck_require__(18898);
+const log_js_1 = __nccwpck_require__(8898);
const debugEnvVariable = (typeof process !== "undefined" && process.env && process.env.DEBUG) || undefined;
let enabledString;
let enabledNamespaces = [];
@@ -102981,7 +96380,7 @@ exports["default"] = debugObj;
/***/ }),
-/***/ 89497:
+/***/ 9497:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102991,7 +96390,7 @@ exports["default"] = debugObj;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createClientLogger = exports.getLogLevel = exports.setLogLevel = exports.AzureLogger = void 0;
const tslib_1 = __nccwpck_require__(4351);
-const debug_js_1 = tslib_1.__importDefault(__nccwpck_require__(80162));
+const debug_js_1 = tslib_1.__importDefault(__nccwpck_require__(162));
const registeredLoggers = new Set();
const logLevelFromEnv = (typeof process !== "undefined" && process.env && process.env.AZURE_LOG_LEVEL) || undefined;
let azureLogLevel;
@@ -103093,7 +96492,7 @@ function isAzureLogLevel(logLevel) {
/***/ }),
-/***/ 18898:
+/***/ 8898:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -103103,9 +96502,9 @@ function isAzureLogLevel(logLevel) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.log = void 0;
const tslib_1 = __nccwpck_require__(4351);
-const node_os_1 = __nccwpck_require__(70612);
-const node_util_1 = tslib_1.__importDefault(__nccwpck_require__(47261));
-const process = tslib_1.__importStar(__nccwpck_require__(97742));
+const node_os_1 = __nccwpck_require__(612);
+const node_util_1 = tslib_1.__importDefault(__nccwpck_require__(7261));
+const process = tslib_1.__importStar(__nccwpck_require__(7742));
function log(message, ...args) {
process.stderr.write(`${node_util_1.default.format(message, ...args)}${node_os_1.EOL}`);
}
@@ -103114,19 +96513,19 @@ exports.log = log;
/***/ }),
-/***/ 92960:
+/***/ 2960:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const WritableStream = (__nccwpck_require__(84492).Writable)
-const inherits = (__nccwpck_require__(47261).inherits)
+const WritableStream = (__nccwpck_require__(4492).Writable)
+const inherits = (__nccwpck_require__(7261).inherits)
-const StreamSearch = __nccwpck_require__(51142)
+const StreamSearch = __nccwpck_require__(1142)
-const PartStream = __nccwpck_require__(81620)
-const HeaderParser = __nccwpck_require__(92032)
+const PartStream = __nccwpck_require__(1620)
+const HeaderParser = __nccwpck_require__(2032)
const DASH = 45
const B_ONEDASH = Buffer.from('-')
@@ -103335,17 +96734,17 @@ module.exports = Dicer
/***/ }),
-/***/ 92032:
+/***/ 2032:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const EventEmitter = (__nccwpck_require__(15673).EventEmitter)
-const inherits = (__nccwpck_require__(47261).inherits)
-const getLimit = __nccwpck_require__(21467)
+const EventEmitter = (__nccwpck_require__(5673).EventEmitter)
+const inherits = (__nccwpck_require__(7261).inherits)
+const getLimit = __nccwpck_require__(1467)
-const StreamSearch = __nccwpck_require__(51142)
+const StreamSearch = __nccwpck_require__(1142)
const B_DCRLF = Buffer.from('\r\n\r\n')
const RE_CRLF = /\r\n/g
@@ -103443,14 +96842,14 @@ module.exports = HeaderParser
/***/ }),
-/***/ 81620:
+/***/ 1620:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const inherits = (__nccwpck_require__(47261).inherits)
-const ReadableStream = (__nccwpck_require__(84492).Readable)
+const inherits = (__nccwpck_require__(7261).inherits)
+const ReadableStream = (__nccwpck_require__(4492).Readable)
function PartStream (opts) {
ReadableStream.call(this, opts)
@@ -103464,7 +96863,7 @@ module.exports = PartStream
/***/ }),
-/***/ 51142:
+/***/ 1142:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -103496,8 +96895,8 @@ module.exports = PartStream
* Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation
* by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool
*/
-const EventEmitter = (__nccwpck_require__(15673).EventEmitter)
-const inherits = (__nccwpck_require__(47261).inherits)
+const EventEmitter = (__nccwpck_require__(5673).EventEmitter)
+const inherits = (__nccwpck_require__(7261).inherits)
function SBMH (needle) {
if (typeof needle === 'string') {
@@ -103700,19 +97099,19 @@ module.exports = SBMH
/***/ }),
-/***/ 50727:
+/***/ 727:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const WritableStream = (__nccwpck_require__(84492).Writable)
-const { inherits } = __nccwpck_require__(47261)
-const Dicer = __nccwpck_require__(92960)
+const WritableStream = (__nccwpck_require__(4492).Writable)
+const { inherits } = __nccwpck_require__(7261)
+const Dicer = __nccwpck_require__(2960)
-const MultipartParser = __nccwpck_require__(32183)
-const UrlencodedParser = __nccwpck_require__(78306)
-const parseParams = __nccwpck_require__(31854)
+const MultipartParser = __nccwpck_require__(2183)
+const UrlencodedParser = __nccwpck_require__(8306)
+const parseParams = __nccwpck_require__(1854)
function Busboy (opts) {
if (!(this instanceof Busboy)) { return new Busboy(opts) }
@@ -103793,7 +97192,7 @@ module.exports.Dicer = Dicer
/***/ }),
-/***/ 32183:
+/***/ 2183:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -103806,15 +97205,15 @@ module.exports.Dicer = Dicer
// * support limits.fieldNameSize
// -- this will require modifications to utils.parseParams
-const { Readable } = __nccwpck_require__(84492)
-const { inherits } = __nccwpck_require__(47261)
+const { Readable } = __nccwpck_require__(4492)
+const { inherits } = __nccwpck_require__(7261)
-const Dicer = __nccwpck_require__(92960)
+const Dicer = __nccwpck_require__(2960)
-const parseParams = __nccwpck_require__(31854)
-const decodeText = __nccwpck_require__(84619)
-const basename = __nccwpck_require__(48647)
-const getLimit = __nccwpck_require__(21467)
+const parseParams = __nccwpck_require__(1854)
+const decodeText = __nccwpck_require__(4619)
+const basename = __nccwpck_require__(8647)
+const getLimit = __nccwpck_require__(1467)
const RE_BOUNDARY = /^boundary$/i
const RE_FIELD = /^form-data$/i
@@ -104107,15 +97506,15 @@ module.exports = Multipart
/***/ }),
-/***/ 78306:
+/***/ 8306:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const Decoder = __nccwpck_require__(27100)
-const decodeText = __nccwpck_require__(84619)
-const getLimit = __nccwpck_require__(21467)
+const Decoder = __nccwpck_require__(7100)
+const decodeText = __nccwpck_require__(4619)
+const getLimit = __nccwpck_require__(1467)
const RE_CHARSET = /^charset$/i
@@ -104305,7 +97704,7 @@ module.exports = UrlEncoded
/***/ }),
-/***/ 27100:
+/***/ 7100:
/***/ ((module) => {
"use strict";
@@ -104367,7 +97766,7 @@ module.exports = Decoder
/***/ }),
-/***/ 48647:
+/***/ 8647:
/***/ ((module) => {
"use strict";
@@ -104389,7 +97788,7 @@ module.exports = function basename (path) {
/***/ }),
-/***/ 84619:
+/***/ 4619:
/***/ (function(module) {
"use strict";
@@ -104511,7 +97910,7 @@ module.exports = decodeText
/***/ }),
-/***/ 21467:
+/***/ 1467:
/***/ ((module) => {
"use strict";
@@ -104535,14 +97934,14 @@ module.exports = function getLimit (limits, name, defaultLimit) {
/***/ }),
-/***/ 31854:
+/***/ 1854:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
/* eslint-disable object-property-newline */
-const decodeText = __nccwpck_require__(84619)
+const decodeText = __nccwpck_require__(4619)
const RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g
@@ -104739,632 +98138,7 @@ module.exports = parseParams
/***/ }),
-/***/ 63730:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0;
-var max_js_1 = __nccwpck_require__(44838);
-Object.defineProperty(exports, "MAX", ({ enumerable: true, get: function () { return max_js_1.default; } }));
-var nil_js_1 = __nccwpck_require__(34578);
-Object.defineProperty(exports, "NIL", ({ enumerable: true, get: function () { return nil_js_1.default; } }));
-var parse_js_1 = __nccwpck_require__(62526);
-Object.defineProperty(exports, "parse", ({ enumerable: true, get: function () { return parse_js_1.default; } }));
-var stringify_js_1 = __nccwpck_require__(22428);
-Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return stringify_js_1.default; } }));
-var v1_js_1 = __nccwpck_require__(56904);
-Object.defineProperty(exports, "v1", ({ enumerable: true, get: function () { return v1_js_1.default; } }));
-var v1ToV6_js_1 = __nccwpck_require__(90728);
-Object.defineProperty(exports, "v1ToV6", ({ enumerable: true, get: function () { return v1ToV6_js_1.default; } }));
-var v3_js_1 = __nccwpck_require__(6261);
-Object.defineProperty(exports, "v3", ({ enumerable: true, get: function () { return v3_js_1.default; } }));
-var v4_js_1 = __nccwpck_require__(59079);
-Object.defineProperty(exports, "v4", ({ enumerable: true, get: function () { return v4_js_1.default; } }));
-var v5_js_1 = __nccwpck_require__(19985);
-Object.defineProperty(exports, "v5", ({ enumerable: true, get: function () { return v5_js_1.default; } }));
-var v6_js_1 = __nccwpck_require__(21952);
-Object.defineProperty(exports, "v6", ({ enumerable: true, get: function () { return v6_js_1.default; } }));
-var v6ToV1_js_1 = __nccwpck_require__(97112);
-Object.defineProperty(exports, "v6ToV1", ({ enumerable: true, get: function () { return v6ToV1_js_1.default; } }));
-var v7_js_1 = __nccwpck_require__(3598);
-Object.defineProperty(exports, "v7", ({ enumerable: true, get: function () { return v7_js_1.default; } }));
-var validate_js_1 = __nccwpck_require__(83053);
-Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return validate_js_1.default; } }));
-var version_js_1 = __nccwpck_require__(94384);
-Object.defineProperty(exports, "version", ({ enumerable: true, get: function () { return version_js_1.default; } }));
-
-
-/***/ }),
-
-/***/ 44838:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
-
-
-/***/ }),
-
-/***/ 13905:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const crypto_1 = __nccwpck_require__(6113);
-function md5(bytes) {
- if (Array.isArray(bytes)) {
- bytes = Buffer.from(bytes);
- }
- else if (typeof bytes === 'string') {
- bytes = Buffer.from(bytes, 'utf8');
- }
- return (0, crypto_1.createHash)('md5').update(bytes).digest();
-}
-exports["default"] = md5;
-
-
-/***/ }),
-
-/***/ 76622:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const crypto_1 = __nccwpck_require__(6113);
-exports["default"] = { randomUUID: crypto_1.randomUUID };
-
-
-/***/ }),
-
-/***/ 34578:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports["default"] = '00000000-0000-0000-0000-000000000000';
-
-
-/***/ }),
-
-/***/ 62526:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const validate_js_1 = __nccwpck_require__(83053);
-function parse(uuid) {
- if (!(0, validate_js_1.default)(uuid)) {
- throw TypeError('Invalid UUID');
- }
- let v;
- return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff);
-}
-exports["default"] = parse;
-
-
-/***/ }),
-
-/***/ 29556:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports["default"] = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
-
-
-/***/ }),
-
-/***/ 18186:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const crypto_1 = __nccwpck_require__(6113);
-const rnds8Pool = new Uint8Array(256);
-let poolPtr = rnds8Pool.length;
-function rng() {
- if (poolPtr > rnds8Pool.length - 16) {
- (0, crypto_1.randomFillSync)(rnds8Pool);
- poolPtr = 0;
- }
- return rnds8Pool.slice(poolPtr, (poolPtr += 16));
-}
-exports["default"] = rng;
-
-
-/***/ }),
-
-/***/ 98850:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const crypto_1 = __nccwpck_require__(6113);
-function sha1(bytes) {
- if (Array.isArray(bytes)) {
- bytes = Buffer.from(bytes);
- }
- else if (typeof bytes === 'string') {
- bytes = Buffer.from(bytes, 'utf8');
- }
- return (0, crypto_1.createHash)('sha1').update(bytes).digest();
-}
-exports["default"] = sha1;
-
-
-/***/ }),
-
-/***/ 22428:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.unsafeStringify = void 0;
-const validate_js_1 = __nccwpck_require__(83053);
-const byteToHex = [];
-for (let i = 0; i < 256; ++i) {
- byteToHex.push((i + 0x100).toString(16).slice(1));
-}
-function unsafeStringify(arr, offset = 0) {
- return (byteToHex[arr[offset + 0]] +
- byteToHex[arr[offset + 1]] +
- byteToHex[arr[offset + 2]] +
- byteToHex[arr[offset + 3]] +
- '-' +
- byteToHex[arr[offset + 4]] +
- byteToHex[arr[offset + 5]] +
- '-' +
- byteToHex[arr[offset + 6]] +
- byteToHex[arr[offset + 7]] +
- '-' +
- byteToHex[arr[offset + 8]] +
- byteToHex[arr[offset + 9]] +
- '-' +
- byteToHex[arr[offset + 10]] +
- byteToHex[arr[offset + 11]] +
- byteToHex[arr[offset + 12]] +
- byteToHex[arr[offset + 13]] +
- byteToHex[arr[offset + 14]] +
- byteToHex[arr[offset + 15]]).toLowerCase();
-}
-exports.unsafeStringify = unsafeStringify;
-function stringify(arr, offset = 0) {
- const uuid = unsafeStringify(arr, offset);
- if (!(0, validate_js_1.default)(uuid)) {
- throw TypeError('Stringified UUID is invalid');
- }
- return uuid;
-}
-exports["default"] = stringify;
-
-
-/***/ }),
-
-/***/ 56904:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.updateV1State = void 0;
-const rng_js_1 = __nccwpck_require__(18186);
-const stringify_js_1 = __nccwpck_require__(22428);
-const _state = {};
-function v1(options, buf, offset) {
- let bytes;
- const isV6 = options?._v6 ?? false;
- if (options) {
- const optionsKeys = Object.keys(options);
- if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
- options = undefined;
- }
- }
- if (options) {
- bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
- }
- else {
- const now = Date.now();
- const rnds = (0, rng_js_1.default)();
- updateV1State(_state, now, rnds);
- bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
- }
- return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes);
-}
-function updateV1State(state, now, rnds) {
- state.msecs ??= -Infinity;
- state.nsecs ??= 0;
- if (now === state.msecs) {
- state.nsecs++;
- if (state.nsecs >= 10000) {
- state.node = undefined;
- state.nsecs = 0;
- }
- }
- else if (now > state.msecs) {
- state.nsecs = 0;
- }
- else if (now < state.msecs) {
- state.node = undefined;
- }
- if (!state.node) {
- state.node = rnds.slice(10, 16);
- state.node[0] |= 0x01;
- state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
- }
- state.msecs = now;
- return state;
-}
-exports.updateV1State = updateV1State;
-function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
- if (rnds.length < 16) {
- throw new Error('Random bytes length must be >= 16');
- }
- if (!buf) {
- buf = new Uint8Array(16);
- offset = 0;
- }
- else {
- if (offset < 0 || offset + 16 > buf.length) {
- throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
- }
- }
- msecs ??= Date.now();
- nsecs ??= 0;
- clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
- node ??= rnds.slice(10, 16);
- msecs += 12219292800000;
- const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
- buf[offset++] = (tl >>> 24) & 0xff;
- buf[offset++] = (tl >>> 16) & 0xff;
- buf[offset++] = (tl >>> 8) & 0xff;
- buf[offset++] = tl & 0xff;
- const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
- buf[offset++] = (tmh >>> 8) & 0xff;
- buf[offset++] = tmh & 0xff;
- buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
- buf[offset++] = (tmh >>> 16) & 0xff;
- buf[offset++] = (clockseq >>> 8) | 0x80;
- buf[offset++] = clockseq & 0xff;
- for (let n = 0; n < 6; ++n) {
- buf[offset++] = node[n];
- }
- return buf;
-}
-exports["default"] = v1;
-
-
-/***/ }),
-
-/***/ 90728:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const parse_js_1 = __nccwpck_require__(62526);
-const stringify_js_1 = __nccwpck_require__(22428);
-function v1ToV6(uuid) {
- const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
- const v6Bytes = _v1ToV6(v1Bytes);
- return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
-}
-exports["default"] = v1ToV6;
-function _v1ToV6(v1Bytes) {
- return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
-}
-
-
-/***/ }),
-
-/***/ 6261:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.URL = exports.DNS = void 0;
-const md5_js_1 = __nccwpck_require__(13905);
-const v35_js_1 = __nccwpck_require__(13042);
-var v35_js_2 = __nccwpck_require__(13042);
-Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } }));
-Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } }));
-function v3(value, namespace, buf, offset) {
- return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset);
-}
-v3.DNS = v35_js_1.DNS;
-v3.URL = v35_js_1.URL;
-exports["default"] = v3;
-
-
-/***/ }),
-
-/***/ 13042:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.URL = exports.DNS = exports.stringToBytes = void 0;
-const parse_js_1 = __nccwpck_require__(62526);
-const stringify_js_1 = __nccwpck_require__(22428);
-function stringToBytes(str) {
- str = unescape(encodeURIComponent(str));
- const bytes = new Uint8Array(str.length);
- for (let i = 0; i < str.length; ++i) {
- bytes[i] = str.charCodeAt(i);
- }
- return bytes;
-}
-exports.stringToBytes = stringToBytes;
-exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
-exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
-function v35(version, hash, value, namespace, buf, offset) {
- const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
- const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace;
- if (typeof namespace === 'string') {
- namespace = (0, parse_js_1.default)(namespace);
- }
- if (namespace?.length !== 16) {
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
- }
- let bytes = new Uint8Array(16 + valueBytes.length);
- bytes.set(namespaceBytes);
- bytes.set(valueBytes, namespaceBytes.length);
- bytes = hash(bytes);
- bytes[6] = (bytes[6] & 0x0f) | version;
- bytes[8] = (bytes[8] & 0x3f) | 0x80;
- if (buf) {
- offset = offset || 0;
- for (let i = 0; i < 16; ++i) {
- buf[offset + i] = bytes[i];
- }
- return buf;
- }
- return (0, stringify_js_1.unsafeStringify)(bytes);
-}
-exports["default"] = v35;
-
-
-/***/ }),
-
-/***/ 59079:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const native_js_1 = __nccwpck_require__(76622);
-const rng_js_1 = __nccwpck_require__(18186);
-const stringify_js_1 = __nccwpck_require__(22428);
-function v4(options, buf, offset) {
- if (native_js_1.default.randomUUID && !buf && !options) {
- return native_js_1.default.randomUUID();
- }
- options = options || {};
- const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)();
- if (rnds.length < 16) {
- throw new Error('Random bytes length must be >= 16');
- }
- rnds[6] = (rnds[6] & 0x0f) | 0x40;
- rnds[8] = (rnds[8] & 0x3f) | 0x80;
- if (buf) {
- offset = offset || 0;
- if (offset < 0 || offset + 16 > buf.length) {
- throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
- }
- for (let i = 0; i < 16; ++i) {
- buf[offset + i] = rnds[i];
- }
- return buf;
- }
- return (0, stringify_js_1.unsafeStringify)(rnds);
-}
-exports["default"] = v4;
-
-
-/***/ }),
-
-/***/ 19985:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.URL = exports.DNS = void 0;
-const sha1_js_1 = __nccwpck_require__(98850);
-const v35_js_1 = __nccwpck_require__(13042);
-var v35_js_2 = __nccwpck_require__(13042);
-Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } }));
-Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } }));
-function v5(value, namespace, buf, offset) {
- return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset);
-}
-v5.DNS = v35_js_1.DNS;
-v5.URL = v35_js_1.URL;
-exports["default"] = v5;
-
-
-/***/ }),
-
-/***/ 21952:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const stringify_js_1 = __nccwpck_require__(22428);
-const v1_js_1 = __nccwpck_require__(56904);
-const v1ToV6_js_1 = __nccwpck_require__(90728);
-function v6(options, buf, offset) {
- options ??= {};
- offset ??= 0;
- let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
- bytes = (0, v1ToV6_js_1.default)(bytes);
- if (buf) {
- for (let i = 0; i < 16; i++) {
- buf[offset + i] = bytes[i];
- }
- return buf;
- }
- return (0, stringify_js_1.unsafeStringify)(bytes);
-}
-exports["default"] = v6;
-
-
-/***/ }),
-
-/***/ 97112:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const parse_js_1 = __nccwpck_require__(62526);
-const stringify_js_1 = __nccwpck_require__(22428);
-function v6ToV1(uuid) {
- const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
- const v1Bytes = _v6ToV1(v6Bytes);
- return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
-}
-exports["default"] = v6ToV1;
-function _v6ToV1(v6Bytes) {
- return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
-}
-
-
-/***/ }),
-
-/***/ 3598:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.updateV7State = void 0;
-const rng_js_1 = __nccwpck_require__(18186);
-const stringify_js_1 = __nccwpck_require__(22428);
-const _state = {};
-function v7(options, buf, offset) {
- let bytes;
- if (options) {
- bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset);
- }
- else {
- const now = Date.now();
- const rnds = (0, rng_js_1.default)();
- updateV7State(_state, now, rnds);
- bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
- }
- return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes);
-}
-function updateV7State(state, now, rnds) {
- state.msecs ??= -Infinity;
- state.seq ??= 0;
- if (now > state.msecs) {
- state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
- state.msecs = now;
- }
- else {
- state.seq = (state.seq + 1) | 0;
- if (state.seq === 0) {
- state.msecs++;
- }
- }
- return state;
-}
-exports.updateV7State = updateV7State;
-function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
- if (rnds.length < 16) {
- throw new Error('Random bytes length must be >= 16');
- }
- if (!buf) {
- buf = new Uint8Array(16);
- offset = 0;
- }
- else {
- if (offset < 0 || offset + 16 > buf.length) {
- throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
- }
- }
- msecs ??= Date.now();
- seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
- buf[offset++] = (msecs / 0x10000000000) & 0xff;
- buf[offset++] = (msecs / 0x100000000) & 0xff;
- buf[offset++] = (msecs / 0x1000000) & 0xff;
- buf[offset++] = (msecs / 0x10000) & 0xff;
- buf[offset++] = (msecs / 0x100) & 0xff;
- buf[offset++] = msecs & 0xff;
- buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
- buf[offset++] = (seq >>> 20) & 0xff;
- buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
- buf[offset++] = (seq >>> 6) & 0xff;
- buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
- buf[offset++] = rnds[11];
- buf[offset++] = rnds[12];
- buf[offset++] = rnds[13];
- buf[offset++] = rnds[14];
- buf[offset++] = rnds[15];
- return buf;
-}
-exports["default"] = v7;
-
-
-/***/ }),
-
-/***/ 83053:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const regex_js_1 = __nccwpck_require__(29556);
-function validate(uuid) {
- return typeof uuid === 'string' && regex_js_1.default.test(uuid);
-}
-exports["default"] = validate;
-
-
-/***/ }),
-
-/***/ 94384:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const validate_js_1 = __nccwpck_require__(83053);
-function version(uuid) {
- if (!(0, validate_js_1.default)(uuid)) {
- throw TypeError('Invalid UUID');
- }
- return parseInt(uuid.slice(14, 15), 16);
-}
-exports["default"] = version;
-
-
-/***/ }),
-
-/***/ 49167:
-/***/ ((module) => {
-
-"use strict";
-module.exports = JSON.parse('{"name":"@actions/cache","version":"4.0.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1","twirp-ts":"^2.5.0"},"devDependencies":{"@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
-
-/***/ }),
-
-/***/ 53765:
+/***/ 3765:
/***/ ((module) => {
"use strict";
@@ -105372,7 +98146,7 @@ module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":"
/***/ }),
-/***/ 72020:
+/***/ 2020:
/***/ ((module) => {
"use strict";
@@ -105422,7 +98196,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
-/******/ var __webpack_exports__ = __nccwpck_require__(70399);
+/******/ var __webpack_exports__ = __nccwpck_require__(399);
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
diff --git a/package-lock.json b/package-lock.json
index 3c98fd1..da52382 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,6 +19,7 @@
"@actions/tool-cache": "^2.0.2",
"@octokit/core": "^5.2.0",
"@octokit/types": "^12.6.0",
+ "@github/dependency-submission-toolkit": "^2.0.4",
"semver": "^7.6.3",
"uuid": "^11.0.5"
},
@@ -1111,6 +1112,22 @@
"integrity": "sha512-gIhjdJp/c2beaIWWIlsXdqXVRUz3r2BxBCpfz/F3JXHvSAQ1paMYjLH+maEATtENg+k5eLV7gA+9yPp762ieuw==",
"dev": true
},
+ "node_modules/@github/dependency-submission-toolkit": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/@github/dependency-submission-toolkit/-/dependency-submission-toolkit-2.0.4.tgz",
+ "integrity": "sha512-uQia1YSLTrVmy+f6XpAzy/MEFDvjMg/VOm9pdROxVKQA5SvLXDvXeGgxLwy9fH+sXHqtDWRnVOI1+UAcQ4pi/w==",
+ "license": "MIT",
+ "workspaces": [
+ "example"
+ ],
+ "dependencies": {
+ "@actions/core": "^1.10.1",
+ "@actions/github": "^6.0.0",
+ "@octokit/request-error": "^5.0.1",
+ "@octokit/webhooks-types": "^7.3.1",
+ "packageurl-js": "^1.2.1"
+ }
+ },
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.14",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
@@ -1796,6 +1813,12 @@
"@octokit/openapi-types": "^20.0.0"
}
},
+ "node_modules/@octokit/webhooks-types": {
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-7.6.1.tgz",
+ "integrity": "sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==",
+ "license": "MIT"
+ },
"node_modules/@opentelemetry/api": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.8.0.tgz",
@@ -6648,6 +6671,12 @@
"node": ">=6"
}
},
+ "node_modules/packageurl-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-1.2.1.tgz",
+ "integrity": "sha512-cZ6/MzuXaoFd16/k0WnwtI298UCaDHe/XlSh85SeOKbGZ1hq0xvNbx3ILyCMyk7uFQxl6scF3Aucj6/EO9NwcA==",
+ "license": "MIT"
+ },
"node_modules/parent-module": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
@@ -7998,10 +8027,11 @@
}
},
"node_modules/typescript": {
- "version": "5.4.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
- "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
+ "version": "5.7.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz",
+ "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==",
"dev": true,
+ "license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
diff --git a/package.json b/package.json
index 5ca9135..6dea35a 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,7 @@
"@actions/tool-cache": "^2.0.2",
"@octokit/core": "^5.2.0",
"@octokit/types": "^12.6.0",
+ "@github/dependency-submission-toolkit": "^2.0.4",
"semver": "^7.6.3",
"uuid": "^11.0.5"
},
diff --git a/src/cleanup.ts b/src/cleanup.ts
index 3ed1b0c..4ebd75a 100644
--- a/src/cleanup.ts
+++ b/src/cleanup.ts
@@ -28,6 +28,7 @@ import * as core from '@actions/core'
import * as constants from './constants'
import {save} from './features/cache'
import {generateReports} from './features/reports'
+import {processSBOM} from './features/sbom'
/**
* Check given input and run a save process for the specified package manager
@@ -58,6 +59,7 @@ async function ignoreErrors(promise: Promise): Promise {
export async function run(): Promise {
await ignoreErrors(generateReports())
+ await ignoreErrors(processSBOM())
await ignoreErrors(saveCache())
}
diff --git a/src/constants.ts b/src/constants.ts
index acb6aaf..519700f 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -14,6 +14,8 @@ export const INPUT_CACHE = 'cache'
export const INPUT_CHECK_FOR_UPDATES = 'check-for-updates'
export const INPUT_NI_MUSL = 'native-image-musl'
+export const NATIVE_IMAGE_OPTIONS_ENV = 'NATIVE_IMAGE_OPTIONS'
+
export const IS_LINUX = process.platform === 'linux'
export const IS_MACOS = process.platform === 'darwin'
export const IS_WINDOWS = process.platform === 'win32'
diff --git a/src/features/reports.ts b/src/features/reports.ts
index fd21fd3..3793b31 100644
--- a/src/features/reports.ts
+++ b/src/features/reports.ts
@@ -3,17 +3,17 @@ import * as core from '@actions/core'
import * as fs from 'fs'
import * as github from '@actions/github'
import * as semver from 'semver'
-import {join} from 'path'
-import {tmpdir} from 'os'
import {
createPRComment,
findExistingPRCommentId,
isPREvent,
toSemVer,
- updatePRComment
+ updatePRComment,
+ tmpfile,
+ setNativeImageOption
} from '../utils'
-const BUILD_OUTPUT_JSON_PATH = join(tmpdir(), 'native-image-build-output.json')
+const BUILD_OUTPUT_JSON_PATH = tmpfile('native-image-build-output.json')
const BYTES_TO_KiB = 1024
const BYTES_TO_MiB = 1024 * 1024
const BYTES_TO_GiB = 1024 * 1024 * 1024
@@ -22,12 +22,6 @@ const DOCS_BASE =
const INPUT_NI_JOB_REPORTS = 'native-image-job-reports'
const INPUT_NI_PR_REPORTS = 'native-image-pr-reports'
const INPUT_NI_PR_REPORTS_UPDATE = 'native-image-pr-reports-update-existing'
-const NATIVE_IMAGE_CONFIG_FILE = join(
- tmpdir(),
- 'native-image-options.properties'
-)
-const NATIVE_IMAGE_OPTIONS_ENV = 'NATIVE_IMAGE_OPTIONS'
-const NATIVE_IMAGE_CONFIG_FILE_ENV = 'NATIVE_IMAGE_CONFIG_FILE'
const PR_COMMENT_TITLE = '## GraalVM Native Image Build Report'
interface AnalysisResult {
@@ -169,43 +163,6 @@ function arePRReportsUpdateEnabled(): boolean {
return isPREvent() && core.getInput(INPUT_NI_PR_REPORTS_UPDATE) === 'true'
}
-function setNativeImageOption(
- javaVersionOrDev: string,
- optionValue: string
-): void {
- const coercedJavaVersionOrDev = semver.coerce(javaVersionOrDev)
- if (
- (coercedJavaVersionOrDev &&
- semver.gte(coercedJavaVersionOrDev, '22.0.0')) ||
- javaVersionOrDev === c.VERSION_DEV ||
- javaVersionOrDev.endsWith('-ea')
- ) {
- /* NATIVE_IMAGE_OPTIONS was introduced in GraalVM for JDK 22 (so were EA builds). */
- let newOptionValue = optionValue
- const existingOptions = process.env[NATIVE_IMAGE_OPTIONS_ENV]
- if (existingOptions) {
- newOptionValue = `${existingOptions} ${newOptionValue}`
- }
- core.exportVariable(NATIVE_IMAGE_OPTIONS_ENV, newOptionValue)
- } else {
- const optionsFile = getNativeImageOptionsFile()
- if (fs.existsSync(optionsFile)) {
- fs.appendFileSync(optionsFile, ` ${optionValue}`)
- } else {
- fs.writeFileSync(optionsFile, `NativeImageArgs = ${optionValue}`)
- }
- }
-}
-
-function getNativeImageOptionsFile(): string {
- let optionsFile = process.env[NATIVE_IMAGE_CONFIG_FILE_ENV]
- if (optionsFile === undefined) {
- optionsFile = NATIVE_IMAGE_CONFIG_FILE
- core.exportVariable(NATIVE_IMAGE_CONFIG_FILE_ENV, optionsFile)
- }
- return optionsFile
-}
-
function createReport(data: BuildOutput): string {
const context = github.context
const info = data.general_info
diff --git a/src/features/sbom.ts b/src/features/sbom.ts
new file mode 100644
index 0000000..125e077
--- /dev/null
+++ b/src/features/sbom.ts
@@ -0,0 +1,300 @@
+import * as c from '../constants'
+import * as core from '@actions/core'
+import * as fs from 'fs'
+import * as github from '@actions/github'
+import * as glob from '@actions/glob'
+import {basename} from 'path'
+import * as semver from 'semver'
+import {setNativeImageOption} from '../utils'
+
+const INPUT_NI_SBOM = 'native-image-enable-sbom'
+const SBOM_FILE_SUFFIX = '.sbom.json'
+const MIN_JAVA_VERSION = '24.0.0'
+
+let javaVersionOrLatestEA: string | null = null
+
+interface SBOM {
+ components: Component[]
+ dependencies: Dependency[]
+}
+
+interface Component {
+ name: string
+ version?: string
+ purl?: string
+ dependencies?: string[]
+ 'bom-ref': string
+}
+
+interface Dependency {
+ ref: string
+ dependsOn: string[]
+}
+
+interface DependencySnapshot {
+ version: number
+ sha: string
+ ref: string
+ job: {
+ correlator: string
+ id: string
+ html_url?: string
+ }
+ detector: {
+ name: string
+ version: string
+ url: string
+ }
+ scanned: string
+ manifests: Record<
+ string,
+ {
+ name: string
+ metadata?: Record
+ // Not including the 'file' property because we cannot specify any reasonable value for 'source_location'
+ // since the SBOM will not necessarily be saved in the repository of the user.
+ // GitHub docs: https://docs.github.com/en/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository
+ resolved: Record<
+ string,
+ {
+ package_url: string
+ relationship?: 'direct'
+ scope?: 'runtime'
+ dependencies?: string[]
+ }
+ >
+ }
+ >
+}
+
+export function setUpSBOMSupport(
+ javaVersionOrDev: string,
+ distribution: string
+): void {
+ if (!isFeatureEnabled()) {
+ return
+ }
+
+ validateJavaVersionAndDistribution(javaVersionOrDev, distribution)
+ javaVersionOrLatestEA = javaVersionOrDev
+ setNativeImageOption(javaVersionOrLatestEA, '--enable-sbom=export')
+ core.info('Enabled SBOM generation for Native Image build')
+}
+
+function validateJavaVersionAndDistribution(
+ javaVersionOrDev: string,
+ distribution: string
+): void {
+ if (distribution !== c.DISTRIBUTION_GRAALVM) {
+ throw new Error(
+ `The '${INPUT_NI_SBOM}' option is only supported for Oracle GraalVM (distribution '${c.DISTRIBUTION_GRAALVM}'), but found distribution '${distribution}'.`
+ )
+ }
+
+ if (javaVersionOrDev === 'dev') {
+ throw new Error(
+ `The '${INPUT_NI_SBOM}' option is not supported for java-version 'dev'.`
+ )
+ }
+
+ if (javaVersionOrDev === 'latest-ea') {
+ return
+ }
+
+ const coercedJavaVersion = semver.coerce(javaVersionOrDev)
+ if (!coercedJavaVersion || semver.gt(MIN_JAVA_VERSION, coercedJavaVersion)) {
+ throw new Error(
+ `The '${INPUT_NI_SBOM}' option is only supported for GraalVM for JDK ${MIN_JAVA_VERSION} or later, but found java-version '${javaVersionOrDev}'.`
+ )
+ }
+}
+
+export async function processSBOM(): Promise {
+ if (!isFeatureEnabled()) {
+ return
+ }
+
+ if (javaVersionOrLatestEA === null) {
+ throw new Error('setUpSBOMSupport must be called before processSBOM')
+ }
+
+ const sbomPath = await findSBOMFilePath()
+ try {
+ const sbomContent = fs.readFileSync(sbomPath, 'utf8')
+ const sbomData = parseSBOM(sbomContent)
+ const components = mapToComponentsWithDependencies(sbomData)
+ printSBOMContent(components)
+ const snapshot = convertSBOMToSnapshot(sbomPath, components)
+ await submitDependencySnapshot(snapshot)
+ } catch (error) {
+ throw new Error(
+ `Failed to process and submit SBOM to the GitHub dependency submission API: ${error instanceof Error ? error.message : String(error)}`
+ )
+ }
+}
+
+function isFeatureEnabled(): boolean {
+ return core.getInput(INPUT_NI_SBOM) === 'true'
+}
+
+async function findSBOMFilePath(): Promise {
+ const globber = await glob.create(`**/*${SBOM_FILE_SUFFIX}`)
+ const sbomFiles = await globber.glob()
+
+ if (sbomFiles.length === 0) {
+ throw new Error(
+ 'No SBOM found. Make sure native-image build completed successfully.'
+ )
+ }
+
+ if (sbomFiles.length > 1) {
+ throw new Error(
+ `Expected one SBOM but found multiple: ${sbomFiles.join(', ')}.`
+ )
+ }
+
+ core.info(`Found SBOM: ${sbomFiles[0]}`)
+ return sbomFiles[0]
+}
+
+function parseSBOM(jsonString: string): SBOM {
+ try {
+ const sbomData: SBOM = JSON.parse(jsonString)
+ return sbomData
+ } catch (error) {
+ throw new Error(
+ `Failed to parse SBOM JSON: ${error instanceof Error ? error.message : String(error)}`
+ )
+ }
+}
+
+// Maps the SBOM to a list of components with their dependencies
+function mapToComponentsWithDependencies(sbom: SBOM): Component[] {
+ if (!sbom || sbom.components.length === 0) {
+ throw new Error('Invalid SBOM data or no components found.')
+ }
+
+ return sbom.components.map((component: Component) => {
+ const dependencies =
+ sbom.dependencies?.find(
+ (dep: Dependency) => dep.ref === component['bom-ref']
+ )?.dependsOn || []
+
+ return {
+ name: component.name,
+ version: component.version,
+ purl: component.purl,
+ dependencies,
+ 'bom-ref': component['bom-ref']
+ }
+ })
+}
+
+function printSBOMContent(components: Component[]): void {
+ core.info('=== SBOM Content ===')
+ for (const component of components) {
+ core.info(`- ${component['bom-ref']}`)
+ if (component.dependencies && component.dependencies.length > 0) {
+ core.info(` depends on: ${component.dependencies.join(', ')}`)
+ }
+ }
+ core.info('==================')
+}
+
+function convertSBOMToSnapshot(
+ sbomPath: string,
+ components: Component[]
+): DependencySnapshot {
+ const context = github.context
+ const sbomFileName = basename(sbomPath)
+
+ if (!sbomFileName.endsWith(SBOM_FILE_SUFFIX)) {
+ throw new Error(
+ `Invalid SBOM file name: ${sbomFileName}. Expected a file ending with ${SBOM_FILE_SUFFIX}.`
+ )
+ }
+
+ return {
+ version: 0,
+ sha: context.sha,
+ ref: context.ref,
+ job: {
+ correlator: `${context.workflow}_${context.job}`,
+ id: context.runId.toString(),
+ html_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
+ },
+ detector: {
+ name: 'Oracle GraalVM',
+ version: javaVersionOrLatestEA ?? '',
+ url: 'https://www.graalvm.org/'
+ },
+ scanned: new Date().toISOString(),
+ manifests: {
+ [sbomFileName]: {
+ name: sbomFileName,
+ resolved: mapComponentsToGithubAPIFormat(components),
+ metadata: {
+ generated_by: 'SBOM generated by GraalVM Native Image',
+ action_version: c.ACTION_VERSION
+ }
+ }
+ }
+ }
+}
+
+function mapComponentsToGithubAPIFormat(
+ components: Component[]
+): Record {
+ return Object.fromEntries(
+ components
+ .filter(component => {
+ if (!component.purl) {
+ core.info(
+ `Component ${component.name} does not have a valid package URL (purl). Skipping.`
+ )
+ }
+ return component.purl
+ })
+ .map(component => [
+ component.name,
+ {
+ package_url: component.purl as string,
+ dependencies: component.dependencies || []
+ }
+ ])
+ )
+}
+
+async function submitDependencySnapshot(
+ snapshotData: DependencySnapshot
+): Promise {
+ const token = core.getInput(c.INPUT_GITHUB_TOKEN, {required: true})
+ const octokit = github.getOctokit(token)
+ const context = github.context
+
+ try {
+ await octokit.request(
+ 'POST /repos/{owner}/{repo}/dependency-graph/snapshots',
+ {
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ version: snapshotData.version,
+ sha: snapshotData.sha,
+ ref: snapshotData.ref,
+ job: snapshotData.job,
+ detector: snapshotData.detector,
+ metadata: {},
+ scanned: snapshotData.scanned,
+ manifests: snapshotData.manifests,
+ headers: {
+ 'X-GitHub-Api-Version': '2022-11-28'
+ }
+ }
+ )
+ core.info('Dependency snapshot submitted successfully.')
+ } catch (error) {
+ throw new Error(
+ `Failed to submit dependency snapshot for SBOM: ${error instanceof Error ? error.message : String(error)}`
+ )
+ }
+}
diff --git a/src/main.ts b/src/main.ts
index 7f32b82..7a27c13 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -14,6 +14,7 @@ import {setUpNativeImageMusl} from './features/musl'
import {setUpWindowsEnvironment} from './msvc'
import {setUpNativeImageBuildReports} from './features/reports'
import {exec} from '@actions/exec'
+import {setUpSBOMSupport} from './features/sbom'
async function run(): Promise {
try {
@@ -148,7 +149,6 @@ async function run(): Promise {
if (setJavaHome) {
core.exportVariable('JAVA_HOME', graalVMHome)
}
-
await setUpGUComponents(
javaVersion,
graalVMVersion,
@@ -165,6 +165,7 @@ async function run(): Promise {
javaVersion,
graalVMVersion
)
+ setUpSBOMSupport(javaVersion, distribution)
core.startGroup(`Successfully set up '${basename(graalVMHome)}'`)
await exec(join(graalVMHome, 'bin', `java${c.EXECUTABLE_SUFFIX}`), [
diff --git a/src/utils.ts b/src/utils.ts
index 655d1d9..5273b54 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -4,11 +4,13 @@ import * as github from '@actions/github'
import * as httpClient from '@actions/http-client'
import * as semver from 'semver'
import * as tc from '@actions/tool-cache'
+import * as fs from 'fs'
import {ExecOptions, exec as e} from '@actions/exec'
import {readFileSync, readdirSync} from 'fs'
import {Octokit} from '@octokit/core'
import {createHash} from 'crypto'
import {join} from 'path'
+import {tmpdir} from 'os'
// Set up Octokit for github.com only and in the same way as @actions/github (see https://git.io/Jy9YP)
const baseUrl = 'https://api.github.com'
@@ -247,3 +249,47 @@ export async function createPRComment(content: string): Promise {
)
}
}
+
+export function tmpfile(fileName: string) {
+ return join(tmpdir(), fileName)
+}
+
+export function setNativeImageOption(
+ javaVersionOrDev: string,
+ optionValue: string
+): void {
+ const coercedJavaVersionOrDev = semver.coerce(javaVersionOrDev)
+ if (
+ (coercedJavaVersionOrDev &&
+ semver.gte(coercedJavaVersionOrDev, '22.0.0')) ||
+ javaVersionOrDev === c.VERSION_DEV ||
+ javaVersionOrDev.endsWith('-ea')
+ ) {
+ /* NATIVE_IMAGE_OPTIONS was introduced in GraalVM for JDK 22 (so were EA builds). */
+ let newOptionValue = optionValue
+ const existingOptions = process.env[c.NATIVE_IMAGE_OPTIONS_ENV]
+ if (existingOptions) {
+ newOptionValue = `${existingOptions} ${newOptionValue}`
+ }
+ core.exportVariable(c.NATIVE_IMAGE_OPTIONS_ENV, newOptionValue)
+ } else {
+ const optionsFile = getNativeImageOptionsFile()
+ if (fs.existsSync(optionsFile)) {
+ fs.appendFileSync(optionsFile, ` ${optionValue}`)
+ } else {
+ fs.writeFileSync(optionsFile, `NativeImageArgs = ${optionValue}`)
+ }
+ }
+}
+
+const NATIVE_IMAGE_CONFIG_FILE = tmpfile('native-image-options.properties')
+const NATIVE_IMAGE_CONFIG_FILE_ENV = 'NATIVE_IMAGE_CONFIG_FILE'
+
+function getNativeImageOptionsFile(): string {
+ let optionsFile = process.env[NATIVE_IMAGE_CONFIG_FILE_ENV]
+ if (optionsFile === undefined) {
+ optionsFile = NATIVE_IMAGE_CONFIG_FILE
+ core.exportVariable(NATIVE_IMAGE_CONFIG_FILE_ENV, optionsFile)
+ }
+ return optionsFile
+}