Compare commits

...
Author SHA1 Message Date
Bot Githubaction b128da9bf0 Update gradle-actions-caching library to v0.9.0 (#996)
## What's Changed

> [!IMPORTANT]
> **Cache invalidation:** The cache protocol version has been bumped to `v2`, invalidating all cache entries written by earlier releases. The first build after upgrading will not find existing caches and will repopulate them from scratch.

### Improvements
* **Consistent cache-entry names in reports** — every extracted cache entry now has a single, unique name reported identically on both restore and save. Previously the restore report could show a raw glob pattern (e.g. `caches/modules-*/files-*/*/*/*/*/`) instead of a friendly name like `dependencies`. Bundled entries are named by artifact type, per-file entries by their Gradle-User-Home-relative path, and per-project entries by `project-<rootProjectName>`.
2026-06-16 19:59:10 +00:00
bot-githubaction ee7ea9a078 [bot] Update dist directory 2026-06-16 18:15:16 +00:00
Daz DeBoerandClaude Opus 4.8 9c445f57df Support experimental project-entry caching (configuration-cache + build-logic) (#994)
Pass develocityAccessToken and develocityServerUrl the
`gradle-actions-caching`: required to support project-entry caching
(build-logic + configuration-cache), which has experimental support in
'gradle-actions-cache@v0.8.0. This support is not yet released and will
be available as a restricted trial.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 18:14:19 +00:00
Bot Githubaction bbaaec0da2 Update gradle-actions-caching library to v0.8.0 (#993)
Updates to the latest gradle-actions-caching library, bringing experimental support for caching of project content.
2026-06-16 18:07:10 +00:00
bot-githubaction 54d3208a40 [bot] Update dist directory 2026-06-13 01:52:50 +00:00
Daz DeBoerandClaude Opus 4.8 e993c93d71 Render configuration-cache status in the caching Job Summary (#989)
Render the configuration-cache restore-state in the caching Job Summary,
driven by the new `CacheReport.configurationCache` field produced by the
`gradle-actions-caching` provider.

## What's here

- `cache-service.ts`: add a `ConfigurationCacheStatus` type
(`not-active` / `restored` / `not-restored` / `restore-incomplete`) and
an optional `configurationCache` field on `CacheReport`.
- `caching-report.ts`: a `CONFIG_CACHE_COPY` map and a prominent status
line in `renderCachingReport`, beside the cleanup line. The `not-active`
case links to the `#cache-encryption-key` docs.

## Cross-repo dependency

The field is populated by gradle/actions-caching PR #75 ("Restore
configuration-cache support for simple builds"). This rendering compiles
independently (it uses this repo's own `CacheReport` type) and renders
nothing until the vendored `gradle-actions-caching` bundle is refreshed
from that branch — so this should land with/after the vendor refresh.

## Verification

`npm run check` clean; full Jest suite (366 tests) passes, including 3
new rendering tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 19:51:57 -06:00
bot-githubaction 3f131e8634 [bot] Update dist directory 2026-06-12 15:22:42 +00:00
97715a29bc Redesign the caching Job Summary (#985)
Redesigns the caching section of the Job Summary into a single,
consistent layout across every cache provider and state, and integrates
the provider message into the report rather than appending it
disconnected at the bottom.

## Motivation

The caching report was produced by three divergent code paths (NoOp /
basic / enhanced), each rendering its own markdown:

- **Explicitly disabled** → a one-line message, no expand, no provider
note.
- **Enhanced** (incl. skipped-due-to-existing-home) → a full `<details>`
block.
- **Basic** → a one-line message with **no** expandable details at all.

The Enhanced/Basic provider note floated at the very bottom,
disconnected from the report.

## What changed

`save()` now returns structured `CacheReport` data instead of
pre-rendered HTML, and a single renderer (`caching-report.ts`) produces
one unified layout for all variants:

- **Section heading**: `#### <icon> Gradle Caching — <Provider>
(<status>)`
- **Status line** explaining what the cache did
- **Integrated provider note** woven in under the heading — now shown
**unconditionally** (no longer gated on license acceptance)
- **Expandable cache-entry details** when there are entries — basic
caching now gets this too

The two disabled variants (explicitly disabled, and skipped due to a
pre-existing Gradle User Home) render as **compact callouts with no
expandable section**.

### Main repo
- `caching-report.ts` (new): central renderer + all framing copy + entry
table/`<pre>` helpers.
- `cache-service.ts`: `CacheReport` / `CacheEntryReport` / status types;
`save()` returns `CacheReport`.
- `cache-service-loader.ts`: `NoOp` returns a report;
`LicenseWarningCacheService` removed; new `getProviderNote()`.
- `cache-service-basic.ts`: builds a `CacheReport`.
- `job-summary.ts` / `setup-gradle.ts`: thread `CacheReport` +
`ProviderNote`.
- `configuration.ts`: remove now-unused `isCacheLicenseAccepted()`.

### Vendored library
The structured contract requires **gradle-actions-caching v0.7.0**
(gradle/actions-caching#74). This PR updates the vendored library to
that release — the official `Update gradle-actions-caching library to
v0.7.0` vendor commit is included here, so merging this PR ships the
redesign together with the library it depends on.

## Testing

- Both repos build; prettier + eslint clean.
- `gradle/actions`: 363/363 Jest tests pass, including new
`caching-report.test.ts` covering every variant.
- `gradle-actions-caching`: 74/74 pass under JDK 17.
- Rendered markdown verified for all five variants (enhanced/basic
enabled & read-only, disabled, skipped).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Bot Githubaction <bot-githubaction@gradle.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 15:21:52 +00:00
Daz DeBoerandClaude Opus 4.8 8b6cdb5f58 CI: add requireable aggregate/no-op checks for branch protection (#984)
Prepares CI so a small, stable set of **required status checks** can be
enabled (which in turn unlocks auto-merge), instead of having to list
every fanned-out matrix job. GitHub required checks match by exact name
— no wildcards — so this reduces the surface to a handful of high-level
checks.

## Changes

- **`ci-integ-test.yml`**: add an aggregate gate job
`integ-test-success` that `needs:` all four top-level jobs (the three
suite jobs each wrap a reusable workflow that fans out into many nested
checks) and fails if any did not succeed. `if: always()` ensures it
reports even when a dependency fails. This collapses dozens of nested
integ-test checks into a single requireable check.

- **`ci-init-script-check.yml`**: remove the workflow-level
`pull_request.paths` filter so the workflow runs on every PR and always
reports a status check (previously it was absent on most PRs, which
would deadlock a required check). Relevant-change detection moves into
the job via `tj-actions/changed-files` (same pinned action already used
by `ci-check-no-dist-update.yml`). On a PR the Java/Gradle/test steps
run only when init-script files changed; otherwise the job is a fast
no-op that still succeeds. Push and `workflow_dispatch` runs execute
fully as before.

## Suggested required-check set (all run on every PR, none can deadlock)

- `CI-check-and-unit-test / check-format-and-unit-test`
- `ci-validate-typings.yml / validate-typings`
- `CI-validate-wrappers / validation`
- `CI-codeql / Analyze (javascript-typescript)`
- `CI-integ-test / integ-test-success`
- `CI-init-script-check / test-init-scripts`

`ci-check-no-dist-update` is intentionally **omitted** — it only runs on
`dist/**` edits and is designed to fail, so it shouldn't be a required
gate.

> Confirm the exact check names from the list GitHub shows after this
branch runs once.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 11:04:23 -06:00
bot-githubaction 5852e0e5d8 [bot] Update dist directory 2026-06-10 16:15:39 +00:00
318eed7038 Hide obsolete Job summaries (#902)
- Injects a `<!-- gradle-job-summary: ${jobCorrelator} -->` marker on
each job summary
- Lists 100 last comments: unfortunately there is no API to specifically
filter for comments, and checking the last 100 comments (the limit) is
usually enough and does not require iterating over pages
- Mutate comments having this expected marker

I tried to add some tests, but I'm not familiar enough to setup a
complete test suite with proper mocking of GitHub/Octokit with jest.

I could potentially extract the `prComment` creation to check for the
marker presence, let me know.

Note: it seems like there is currently an issue on mutating comments as
`OUTDATED` through graphql. Although it does not work as expected
(flagging as OUTDATED) the comments are still minimized, which is what
we want.
- https://github.com/orgs/community/discussions/19865

Implements #176

---------

Co-authored-by: Daz DeBoer <daz@gradle.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 10:14:48 -06:00
Björn Kautler a740661292 Improve typings (#938)
This PR adds a missing enum value, and makes strings that are actually
delimited lists those lists, so that you for example in the generated
Kotlin bindings can simply do
```kotlin
additionalArguments = listOf(
    "--info",
    "--stacktrace",
    "--show-version"
)
```
instead of needing to do
```kotlin
additionalArguments = listOf(
    "--info",
    "--stacktrace",
    "--show-version"
).joinToString(" ")
```
or writing it all in one line as one string.

This is also how the typings for older versions are in the typing
catalog.

Theoretically, this is a breaking changes as the typings define the API
surface of the action and from the typings bindings are generated. I'll
leave it up to you how you handle it regarding version increase or when
to merge.
2026-06-10 08:54:56 -06:00
Bot Githubaction 7ae0d0208c Update gradle-actions-caching library to v0.6.0 (#982)
Updates to the latest gradle-actions-caching library.
2026-06-10 08:51:32 -06:00
Daz DeBoerandClaude Opus 4.8 e473973a5b Scope CI-integ-test concurrency groups per-branch
The concurrency groups used fixed names spanning all branches, so a push
to main could cancel a pending PR run (and vice versa), leaving PRs not
fully tested.

Append ${{ github.ref }} to each group so runs only supersede pending
runs on the same branch, while different branches run in parallel. Also
drop the `queue: max` key, which is not a valid GitHub Actions
concurrency option and was ignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 07:33:01 -07:00
Daz DeBoer 35a4a3f355 Queue up integ-test runs 2026-06-10 08:24:34 -06:00
bot-githubaction b6eebf33f1 [bot] Update dist directory 2026-06-10 14:15:10 +00:00
Daz DeBoerandClaude Opus 4.8 9901393644 Remove unnecessary dependency overrides (#981)
Removes all `overrides` from `sources/package.json`. Two commits, each
independently verified:

## 1. Remove redundant security overrides

The `shell-quote`, `fast-xml-parser`, `fast-xml-builder` and `eslint >
brace-expansion` overrides added in #980 are **no-ops**: npm's natural
resolution already lands on the exact same patched versions, so they
upgrade nothing. The vulnerabilities were actually resolved by
regenerating the lockfile, not by the overrides.

## 2. Remove obsolete Octokit/Azure overrides

`@azure/logger`, `@octokit/request`, `@octokit/request-error` and
`@octokit/plugin-paginate-rest` were point-in-time pins added to
force-upgrade then-vulnerable transitive deps (5d947f45, #601). The
parent packages (`@actions/github`, `@actions/artifact`) have since
advanced and now resolve **newer, non-vulnerable** versions naturally —
so the overrides only pinned stale versions:

| Package | Pinned (override) | Natural |
|---|---|---|
| `@octokit/request` | 8.4.1 | 10.0.10 |
| `@octokit/request-error` | 5.1.1 | 7.1.0 |
| `@octokit/plugin-paginate-rest` | 9.2.2 | 14.0.0 |
| `@azure/logger` | 1.1.4 | 1.3.0 |

## Verification

- `npm audit` → **0 vulnerabilities**
- `./build` → passes
- `npm test` → **352/352 passing**

### Note on a flaky test
While testing I saw the `wrapper-validation` test *"fetches wrapper jar
checksums for snapshots"* intermittently fail (1–2 failures, then pass
on retry). It is a **pre-existing flaky network test** — it makes ~175
live calls to Gradle services and sits right at its 60s timeout. Its
code path imports neither Octokit nor Azure (`src/wrapper-validation/`
uses only `@actions/http-client`/`nock`/`cheerio`), so it is unrelated
to these overrides; the `nock`/`@mswjs/interceptors`/`undici` versions
are identical before and after.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 08:14:07 -06:00
Daz DeBoer 20ce680c89 Update RELEASING.md 2026-06-09 19:55:28 -06:00
bot-githubaction 5e2ebd065d [bot] Update dist directory 2026-06-10 01:07:29 +00:00
Daz DeBoerandClaude Opus 4.8 9e2c1cc01d Resolve npm security vulnerabilities via dependency overrides (#980)
## What

Adds `overrides` to `sources/package.json` to force patched versions of
transitively-pulled packages flagged by Dependabot, plus one moderate
issue surfaced by `npm audit`:

| Package | Severity | Patched to | Pulled in via |
|---|---|---|---|
| `shell-quote` | Critical | 1.8.4 | `npm-run-all` |
| `fast-xml-builder` | High | 1.2.0 | `@actions/artifact` →
`@azure/storage-blob` → `@azure/core-xml` → `fast-xml-parser` |
| `fast-xml-parser` | Medium | 5.8.0 | `@actions/artifact` →
`@azure/storage-blob` → `@azure/core-xml` |
| `brace-expansion` | Moderate | 5.0.6 | `eslint` |

## Notes

- All four are **transitive** dependencies, so they're pinned via the
existing `overrides` block rather than direct version bumps.
- The patched versions satisfy the parents' declared ranges (e.g.
`@azure/core-xml` requires `fast-xml-parser ^5.0.7`; `fast-xml-parser`
5.8.0 requires `fast-xml-builder ^1.2.0`), so nothing is
force-downgraded or broken.
- `brace-expansion` is **scoped under `eslint`** rather than a blanket
override — most copies in the tree were already on the patched 5.0.6,
and only `eslint`'s was stuck at the vulnerable 5.0.5. A global override
would have forced unrelated 1.x/2.x copies up a major version.

## Verification

- `npm audit` → **0 vulnerabilities**
- `npm ci` → clean install, 0 vulnerabilities
- `npm test` → **352 passed, 14 suites**

The root `dist/` directory is intentionally left for the CI workflow to
update.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 19:06:38 -06:00
bot-githubaction 657f690528 [bot] Update dist directory 2026-06-10 00:10:45 +00:00
Daz DeBoerandClaude Opus 4.8 9d6bacde37 Update @actions/cache and @actions/artifact, stop ignoring them in Dependabot (#978)
## What

- Bumps `@actions/cache` 6.0.0 → 6.0.1
- Bumps `@actions/artifact` 6.1.0 → 6.2.1
- Removes the Dependabot `ignore` rules for both so they're maintained
automatically going forward

## Why

Both deps were excluded from Dependabot's automatic updates:
`*actions/cache*` was fully ignored, and `*actions/artifact*` had
major/minor bumps ignored. Neither restriction is necessary.

The `cache` ignore existed out of concern for keeping versions aligned
with the vendored `gradle-actions-caching` library. That alignment isn't
required:

- The vendored bundle (`sources/vendor/gradle-actions-caching/index.js`)
**inlines** its own (patched) `@actions/cache` and exposes a type-clean
API (`restore`/`save`) that never leaks `@actions/cache` types across
the boundary.
- This repo's own direct `@actions/cache` usage is a **separate,
unpatched copy** consumed via the stock string-returning API
(`cache-service-basic.ts`, `provision.ts`), with no
`patch-package`/`postinstall` in this repo.

So there's no cross-repo sync requirement — these can be updated like
any other dependency.

## Verification

- `npm install --package-lock-only` regenerated the lockfile (resolves
cache 6.0.1, artifact 6.2.1)
- `./build` passes clean

The root `dist/` directory is intentionally left for the CI workflow to
update.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 18:10:02 -06:00
bot-githubaction 79f6b196a7 [bot] Update dist directory 2026-06-09 18:59:33 +00:00
dependabot[bot] 6781648d2b Bump the npm-dependencies group in /sources with 5 updates (#977)
Bumps the npm-dependencies group in /sources with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [semver](https://github.com/npm/node-semver) | `7.8.1` | `7.8.3` |
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `25.9.1` | `25.9.2` |
|
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
| `8.59.4` | `8.61.0` |
| [eslint](https://github.com/eslint/eslint) | `10.4.0` | `10.4.1` |
| [prettier](https://github.com/prettier/prettier) | `3.8.3` | `3.8.4` |

Updates `semver` from 7.8.1 to 7.8.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/releases">semver's
releases</a>.</em></p>
<blockquote>
<h2>v7.8.3</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.2...v7.8.3">7.8.3</a>
(2026-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/872">#872</a>
align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)
(<a
href="https://github.com/wayyoungboy"><code>@​wayyoungboy</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/866">#866</a>
bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
</ul>
<h2>v7.8.2</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.2">7.8.2</a>
(2026-06-04)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/870">#870</a>
increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)
(<a href="https://github.com/liuzemei"><code>@​liuzemei</code></a>, <a
href="https://github.com/SheldonNeo"><code>@​SheldonNeo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/blob/main/CHANGELOG.md">semver's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.2...v7.8.3">7.8.3</a>
(2026-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/872">#872</a>
align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)
(<a
href="https://github.com/wayyoungboy"><code>@​wayyoungboy</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/866">#866</a>
bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
</ul>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.2">7.8.2</a>
(2026-06-04)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/870">#870</a>
increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)
(<a href="https://github.com/liuzemei"><code>@​liuzemei</code></a>, <a
href="https://github.com/SheldonNeo"><code>@​SheldonNeo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/6b77aa84a648a4b54ea32a21e6db60ebd54d5040"><code>6b77aa8</code></a>
chore: release 7.8.3 (<a
href="https://redirect.github.com/npm/node-semver/issues/873">#873</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
chore: bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
fix: align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/efafcf8d029faa3d1ab74b5ec98d620112af859d"><code>efafcf8</code></a>
chore: release 7.8.2 (<a
href="https://redirect.github.com/npm/node-semver/issues/871">#871</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
fix: increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)</li>
<li>See full diff in <a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.3">compare
view</a></li>
</ul>
</details>
<br />

Updates `@types/node` from 25.9.1 to 25.9.2
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />

Updates `@typescript-eslint/eslint-plugin` from 8.59.4 to 8.61.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/releases">@​typescript-eslint/eslint-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v8.61.0</h2>
<h2>8.61.0 (2026-06-08)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>ast-spec:</strong> change type of
<code>UnaryExpression.prefix</code> to always <code>true</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12372">#12372</a>)</li>
<li><strong>ast-spec:</strong> tighten types of
<code>ArrowFunction</code>, <code>YieldExpression</code>,
<code>TSTypePredicate</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12373">#12373</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>rule-schema-to-typescript-types:</strong> respect ECMAScript
line terminators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12374">#12374</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>lumir</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.61.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.60.1</h2>
<h2>8.60.1 (2026-06-01)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> respect ECMAScript line terminators
in ts-comment rules (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12352">#12352</a>)</li>
<li><strong>eslint-plugin:</strong> [no-shadow] correct rule to match
ESLint v10 handling (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12182">#12182</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>lumir</li>
<li>Nevette Bailey <a
href="https://github.com/nevette-bailey"><code>@​nevette-bailey</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.1">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.60.0</h2>
<h2>8.60.0 (2026-05-25)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>rule-tester:</strong> added updates of RuleTester from
upstream (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12291">#12291</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li>playground TS version selector is not working (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12326">#12326</a>,
<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/issues/12325">#12325</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md">@​typescript-eslint/eslint-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>8.61.0 (2026-06-08)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>ast-spec:</strong> change type of
<code>UnaryExpression.prefix</code> to always <code>true</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12372">#12372</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.61.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.60.1 (2026-06-01)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-shadow] correct rule to match
ESLint v10 handling (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12182">#12182</a>)</li>
<li><strong>eslint-plugin:</strong> respect ECMAScript line terminators
in ts-comment rules (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12352">#12352</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>lumir</li>
<li>Nevette Bailey <a
href="https://github.com/nevette-bailey"><code>@​nevette-bailey</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.1">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.60.0 (2026-05-25)</h2>
<p>This was a version bump only for eslint-plugin to align it with other
projects, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/16a5b247affc32af21b695cf96dfd75d7ded50a3"><code>16a5b24</code></a>
chore(release): publish 8.61.0</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ef1fd28c68b10da2e5b56823da8491f10f2c2b97"><code>ef1fd28</code></a>
feat(ast-spec): change type of <code>UnaryExpression.prefix</code> to
always <code>true</code> (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12">#12</a>...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/4f84a697aedc436559c3ae09b5b357d98b448d68"><code>4f84a69</code></a>
chore(release): publish 8.60.1</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/598af564db50593277ba46c7fdea3648e4425391"><code>598af56</code></a>
docs(eslint-plugin): clarify no-redeclare type-value collision not
covered by...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/1849b530c254fb4f89d7270160f3a998e4acd964"><code>1849b53</code></a>
chore: typecheck using tsgo (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12139">#12139</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/5341d59dd3c21fc4e2bf3bce55cf35d8f84e5216"><code>5341d59</code></a>
chore: fix lint issues (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12369">#12369</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/f525814f01766487ab34a54d56de20ea5c4fb576"><code>f525814</code></a>
fix(eslint-plugin): [no-shadow] correct rule to match ESLint v10
handling (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/1">#1</a>...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2df540cd8bbeb3e2c56d516912f69bf63c1e9450"><code>2df540c</code></a>
chore(eslint-plugin): defer type checks to improve rules performance (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12296">#12296</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/1ab4284789b36cf482a4d9924719162a02d54243"><code>1ab4284</code></a>
fix(eslint-plugin): respect ECMAScript line terminators in ts-comment
rules (...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2f49df599b2db5f2937caf975d3c63e5cdeb0ea1"><code>2f49df5</code></a>
docs: update references to <code>@stylistic/eslint-plugin</code> rules
in documentation ...</li>
<li>Additional commits viewable in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.61.0/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.4.0 to 10.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.4.1</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/e557467db7496220eebcbe2ac5ea6d38c12bb1ec"><code>e557467</code></a>
fix: update <code>@eslint/plugin-kit</code> version to 0.7.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20930">#20930</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d4ce898796ca22c3b96aa70d3014cb85f4bac1cd"><code>d4ce898</code></a>
fix: propagate failures from delegated commands (<a
href="https://redirect.github.com/eslint/eslint/issues/20917">#20917</a>)
(Minh Vu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f4f3507460bc016b5be979c05d2969793f570cbf"><code>f4f3507</code></a>
fix: prefer-arrow-callback invalid autofix with newline after
<code>async</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20916">#20916</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c5bc78b37e08b9054a11f0cc2d81808bb24acb85"><code>c5bc78b</code></a>
fix: false positive for reference in <code>finally</code> block (<a
href="https://redirect.github.com/eslint/eslint/issues/20655">#20655</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/27538c01f5df4e9306f6f4ba867b2dd6307fae59"><code>27538c0</code></a>
fix: add missing CodePath and CodePathSegment types (<a
href="https://redirect.github.com/eslint/eslint/issues/20853">#20853</a>)
(Pixel998)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/61b0add61ffc52665562be7bb96f526690a78b30"><code>61b0add</code></a>
docs: remove deprecated rule from related rules of
<code>max-params</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20921">#20921</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/305d5b91aeac24d36fde42f75625a8f183d4ce43"><code>305d5b9</code></a>
docs: remove deprecated rules from related rules section (<a
href="https://redirect.github.com/eslint/eslint/issues/20911">#20911</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/49b0202d01918b8061720d586dffd7c68047090c"><code>49b0202</code></a>
docs: fix <code>display: none</code> of ad (<a
href="https://redirect.github.com/eslint/eslint/issues/20901">#20901</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9067f9492ec998afc5b4f057a477ecf6ebd45e44"><code>9067f94</code></a>
docs: switch build to Node.js 24 (<a
href="https://redirect.github.com/eslint/eslint/issues/20893">#20893</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c91b0417e3420c76807ce1fa2aea76e2de87ab86"><code>c91b041</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e349265cb37f3ebc837e178e48a725bb782bd870"><code>e349265</code></a>
docs: clarify semver strings in rule deprecation objects (<a
href="https://redirect.github.com/eslint/eslint/issues/20885">#20885</a>)
(Milos Djermanovic)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/b0e466b6ab47bfc7de43d8de0c315d8ee83aa584"><code>b0e466b</code></a>
test: add <code>data</code> property to invalid tests cases for rules
(<a
href="https://redirect.github.com/eslint/eslint/issues/20924">#20924</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f78838bc4c86d487e1bcc7cede260c4467721c46"><code>f78838b</code></a>
test: add CodePath type coverage (<a
href="https://redirect.github.com/eslint/eslint/issues/20904">#20904</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1daa4bd734b79a62e317d0394394a6b38cff49f9"><code>1daa4bd</code></a>
chore: update <code>eslint-plugin-eslint-comments</code> test data to
latest commit (<a
href="https://redirect.github.com/eslint/eslint/issues/20922">#20922</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/002942ce988ea28b78e0a2f3b074081e638b552c"><code>002942c</code></a>
ci: declare contents:read on update-readme workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/20919">#20919</a>)
(Arpit Jain)</li>
<li><a
href="https://github.com/eslint/eslint/commit/64bca24e7bed35bc3c864fc625cb2d89eca87d5b"><code>64bca24</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20912">#20912</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6d7c832950d5e92499d88e504080661f888f8f56"><code>6d7c832</code></a>
chore: ignore fflate updates in renovate (<a
href="https://redirect.github.com/eslint/eslint/issues/20908">#20908</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b2c86382164d87c6203b78d52068cd6a2a6ffe30"><code>b2c8638</code></a>
ci: bump pnpm/action-setup from 6.0.7 to 6.0.8 (<a
href="https://redirect.github.com/eslint/eslint/issues/20889">#20889</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/a9b8d7f74c50211701cfc49710fa541fd91b2aa5"><code>a9b8d7f</code></a>
chore: increase maxBuffer for ecosystem tests (<a
href="https://redirect.github.com/eslint/eslint/issues/20881">#20881</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b702ead5e1ed7cb9f28238a454797662efb37396"><code>b702ead</code></a>
chore: update ecosystem update PR settings (<a
href="https://redirect.github.com/eslint/eslint/issues/20884">#20884</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/507f60e9a78c9a902bc8759f066ae17a1ea6cd81"><code>507f60e</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20882">#20882</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/92f5c5bb6bf3a5d167c8ee53a430833410295c6d"><code>92f5c5b</code></a>
test: add unit test for message-count (<a
href="https://redirect.github.com/eslint/eslint/issues/20878">#20878</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/df321080af5758b1fa25e4b9a40e26135642dd6e"><code>df32108</code></a>
chore: add <code>@​eslint/markdown</code> and typescript-eslint
ecosystem tests (<a
href="https://redirect.github.com/eslint/eslint/issues/20837">#20837</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/327f91d36aa49f2a50ded931d841a16374fd875f"><code>327f91d</code></a>
chore: use includeIgnoreFile internally (<a
href="https://redirect.github.com/eslint/eslint/issues/20876">#20876</a>)
(Kirk Waiblinger)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f0dc4bd893fb3a9f44e4ddc3ad7063ffb0beacd3"><code>f0dc4bd</code></a>
chore: pin fflate@0.8.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20877">#20877</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0f4bd257a67a082b756de746d9e0c4842ab764ca"><code>0f4bd25</code></a>
ci: run Discord alert for ecosystem test failures (<a
href="https://redirect.github.com/eslint/eslint/issues/20873">#20873</a>)
(Copilot)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/4a3d15a99c452c4db2fd56b577fa7597e98ab0c2"><code>4a3d15a</code></a>
10.4.1</li>
<li><a
href="https://github.com/eslint/eslint/commit/43e7e2bdc5c6cacc535446b7d23c10f780384ba8"><code>43e7e2b</code></a>
Build: changelog update for 10.4.1</li>
<li><a
href="https://github.com/eslint/eslint/commit/e557467db7496220eebcbe2ac5ea6d38c12bb1ec"><code>e557467</code></a>
fix: update <code>@eslint/plugin-kit</code> version to 0.7.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20930">#20930</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b0e466b6ab47bfc7de43d8de0c315d8ee83aa584"><code>b0e466b</code></a>
test: add <code>data</code> property to invalid tests cases for rules
(<a
href="https://redirect.github.com/eslint/eslint/issues/20924">#20924</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d4ce898796ca22c3b96aa70d3014cb85f4bac1cd"><code>d4ce898</code></a>
fix: propagate failures from delegated commands (<a
href="https://redirect.github.com/eslint/eslint/issues/20917">#20917</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f4f3507460bc016b5be979c05d2969793f570cbf"><code>f4f3507</code></a>
fix: prefer-arrow-callback invalid autofix with newline after
<code>async</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20916">#20916</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f78838bc4c86d487e1bcc7cede260c4467721c46"><code>f78838b</code></a>
test: add CodePath type coverage (<a
href="https://redirect.github.com/eslint/eslint/issues/20904">#20904</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61b0add61ffc52665562be7bb96f526690a78b30"><code>61b0add</code></a>
docs: remove deprecated rule from related rules of
<code>max-params</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20921">#20921</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1daa4bd734b79a62e317d0394394a6b38cff49f9"><code>1daa4bd</code></a>
chore: update <code>eslint-plugin-eslint-comments</code> test data to
latest commit (<a
href="https://redirect.github.com/eslint/eslint/issues/20">#20</a>...</li>
<li><a
href="https://github.com/eslint/eslint/commit/002942ce988ea28b78e0a2f3b074081e638b552c"><code>002942c</code></a>
ci: declare contents:read on update-readme workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/20919">#20919</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.4.0...v10.4.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `prettier` from 3.8.3 to 3.8.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/releases">prettier's
releases</a>.</em></p>
<blockquote>
<h2>3.8.4</h2>
<ul>
<li>Markdown: Fix blank lines between list items and nested sub-lists
being removed in Markdown/MDX (<a
href="https://redirect.github.com/prettier/prettier/pull/17746">prettier/prettier#17746</a>
by <a
href="https://github.com/byplayer"><code>@​byplayer</code></a>)</li>
</ul>
<p>🔗 <a
href="https://github.com/prettier/prettier/blob/3.8.4/CHANGELOG.md#384">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's
changelog</a>.</em></p>
<blockquote>
<h1>3.8.4</h1>
<p><a
href="https://github.com/prettier/prettier/compare/3.8.3...3.8.4">diff</a></p>
<h4>Markdown: Fix blank lines between list items and nested sub-lists
being removed in Markdown/MDX (<a
href="https://redirect.github.com/prettier/prettier/pull/17746">#17746</a>
by <a
href="https://github.com/byplayer"><code>@​byplayer</code></a>)</h4>
<p>Prettier was removing blank lines between list items and their nested
sub-lists, converting loose lists into tight lists and changing their
semantic meaning.</p>
<!-- raw HTML omitted -->
<pre lang="markdown"><code>&lt;!-- Input --&gt;
- a
<ul>
<li>
<p>b</p>
</li>
<li>
<p>c</p>
<ul>
<li>d</li>
</ul>
</li>
</ul>
<p>&lt;!-- Prettier 3.8.3 --&gt;</p>
<ul>
<li>a
<ul>
<li>b</li>
</ul>
</li>
<li>c
<ul>
<li>d</li>
</ul>
</li>
</ul>
<p>&lt;!-- Prettier 3.8.4 --&gt;</p>
<ul>
<li>
<p>a</p>
<ul>
<li>b</li>
</ul>
</li>
<li>
<p>c</p>
<ul>
<li>d<br />
</code></pre></li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prettier/prettier/commit/1c6ba5539141552e0e8e22d401ea620d8fdff468"><code>1c6ba55</code></a>
Release 3.8.4</li>
<li><a
href="https://github.com/prettier/prettier/commit/4a673dc9b59ddf7296bbab9822093d2971da84a8"><code>4a673dc</code></a>
Fix blank lines between list items and nested sub-lists being removed in
Mark...</li>
<li><a
href="https://github.com/prettier/prettier/commit/074aaedbb052a288e89d15eb0a4214de37a08866"><code>074aaed</code></a>
Replace <code>main</code> branch in changelog link with tags (<a
href="https://redirect.github.com/prettier/prettier/issues/19054">#19054</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/c22a003ae97917c5043e8685b4fdff0f93e978f9"><code>c22a003</code></a>
Bump Prettier dependency to 3.8.3</li>
<li><a
href="https://github.com/prettier/prettier/commit/07bad1f04536e9799927007baf466e67151576f0"><code>07bad1f</code></a>
Clean changelog_unreleased</li>
<li>See full diff in <a
href="https://github.com/prettier/prettier/compare/3.8.3...3.8.4">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| @types/node | [>= 22.a, < 23] |
</details>


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 12:58:37 -06:00
bot-githubaction a3b40d2308 [bot] Update dist directory 2026-06-09 18:25:58 +00:00
Bot Githubaction f37016fb25 Bump references to Develocity Gradle plugin from 4.4.0 to 4.4.2 (#973)
This PR bumps references to Develocity Gradle plugin from 4.4.0 to
4.4.2.
2026-06-09 12:25:09 -06:00
bot-githubaction 2afdab2a02 [bot] Update dist directory 2026-06-09 09:50:27 +00:00
dependabot[bot]andJérôme Prinet 1046ffaf33 Bump the npm-dependencies group across 1 directory with 14 updates (#970)
Bumps the npm-dependencies group with 14 updates in the /sources
directory:

| Package | From | To |
| --- | --- | --- |
|
[@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core)
| `3.0.0` | `3.0.1` |
|
[@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github)
| `9.0.0` | `9.1.1` |
|
[@actions/glob](https://github.com/actions/toolkit/tree/HEAD/packages/glob)
| `0.6.1` | `0.7.0` |
|
[@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client)
| `4.0.0` | `4.0.1` |
| [semver](https://github.com/npm/node-semver) | `7.7.4` | `7.8.1` |
| [which](https://github.com/npm/node-which) | `6.0.1` | `7.0.0` |
|
[@jest/globals](https://github.com/jestjs/jest/tree/HEAD/packages/jest-globals)
| `30.3.0` | `30.4.1` |
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `25.5.0` | `25.9.1` |
|
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
| `8.58.0` | `8.59.4` |
| [eslint](https://github.com/eslint/eslint) | `10.1.0` | `10.4.0` |
| [globals](https://github.com/sindresorhus/globals) | `17.4.0` |
`17.6.0` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) |
`30.3.0` | `30.4.2` |
| [prettier](https://github.com/prettier/prettier) | `3.8.1` | `3.8.3` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.9` |
`29.4.11` |


Updates `@actions/core` from 3.0.0 to 3.0.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md">@​actions/core's
changelog</a>.</em></p>
<blockquote>
<h2>3.0.1</h2>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.1</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2348">#2348</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/core">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/github` from 9.0.0 to 9.1.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md">@​actions/github's
changelog</a>.</em></p>
<blockquote>
<h3>9.1.1</h3>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2346">#2346</a></li>
</ul>
<h3>9.1.0</h3>
<ul>
<li>Append <code>actions_orchestration_id</code> to user-agent when the
<code>ACTIONS_ORCHESTRATION_ID</code> environment variable is set <a
href="https://redirect.github.com/actions/toolkit/pull/2364">#2364</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/github">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/glob` from 0.6.1 to 0.7.0
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/glob/RELEASES.md">@​actions/glob's
changelog</a>.</em></p>
<blockquote>
<h2>0.7.0</h2>
<ul>
<li>Bump <code>minimatch</code> from <code>^3.0.4</code> to
<code>^10.2.5</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2355">#2355</a></li>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2345">#2345</a></li>
<li>Bump <code>brace-expansion</code> in <code>/packages/glob</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2369">#2369</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/glob">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/http-client` from 4.0.0 to 4.0.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md">@​actions/http-client's
changelog</a>.</em></p>
<blockquote>
<h2>4.0.1</h2>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2347">#2347</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/http-client">compare
view</a></li>
</ul>
</details>
<br />

Updates `semver` from 7.7.4 to 7.8.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/releases">semver's
releases</a>.</em></p>
<blockquote>
<h2>v7.8.1</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1">7.8.1</a>
(2026-05-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/869">#869</a>
strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)
(<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/867">#867</a>
handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)
(<a
href="https://github.com/puneetdixit200"><code>@​puneetdixit200</code></a>,
Puneet Dixit)</li>
</ul>
<h2>v7.8.0</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0">7.8.0</a>
(2026-05-08)</h2>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/855">#855</a>
Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)
(<a href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>,
<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/859">#859</a>
Warn when defaulting to --inc=patch in CLI (<a
href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/853">#853</a>
fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)
(<a
href="https://github.com/ankitkumar572005"><code>@​ankitkumar572005</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/37776c31e2f3448fd852c975888e37b03efe9afe"><code>37776c3</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/846">#846</a>
fix BNF grammar to distinguish prerelease from build identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/846">#846</a>)
(<a href="https://github.com/abhu85"><code>@​abhu85</code></a>, <a
href="https://github.com/claude"><code>@​claude</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
<code>template-oss-apply@5.0.0</code> (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/852">#852</a>
bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a
href="https://github.com/npm-cli-bot"><code>@​npm-cli-bot</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/blob/main/CHANGELOG.md">semver's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1">7.8.1</a>
(2026-05-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/869">#869</a>
strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)
(<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/867">#867</a>
handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)
(<a
href="https://github.com/puneetdixit200"><code>@​puneetdixit200</code></a>,
Puneet Dixit)</li>
</ul>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0">7.8.0</a>
(2026-05-08)</h2>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/855">#855</a>
Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)
(<a href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>,
<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/859">#859</a>
Warn when defaulting to --inc=patch in CLI (<a
href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/853">#853</a>
fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)
(<a
href="https://github.com/ankitkumar572005"><code>@​ankitkumar572005</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/37776c31e2f3448fd852c975888e37b03efe9afe"><code>37776c3</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/846">#846</a>
fix BNF grammar to distinguish prerelease from build identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/846">#846</a>)
(<a href="https://github.com/abhu85"><code>@​abhu85</code></a>, <a
href="https://github.com/claude"><code>@​claude</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
<code>template-oss-apply@5.0.0</code> (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/852">#852</a>
bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a
href="https://github.com/npm-cli-bot"><code>@​npm-cli-bot</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/76416081a8413383cf6e24c82cafa438bd076d41"><code>7641608</code></a>
chore: release 7.8.1 (<a
href="https://redirect.github.com/npm/node-semver/issues/868">#868</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
fix: strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
fix: handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/efa4be6096c1f9b77d9d27d6132f6220c43b4e31"><code>efa4be6</code></a>
chore: release 7.8.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/847">#847</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
chore: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
chore: template-oss-apply@5.0.0</li>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
fix: Warn when defaulting to --inc=patch in CLI</li>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
feat: Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
docs: fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
chore: bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `which` from 6.0.1 to 7.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-which/releases">which's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2><a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">7.0.0</a>
(2026-05-08)</h2>
<h3>⚠️ BREAKING CHANGES</h3>
<ul>
<li><code>which</code> now supports node <code>^22.22.2 || ^24.15.0 ||
&gt;=26.0.0</code></li>
<li>template-oss-apply</li>
</ul>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
bump to new node engine range (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-which/blob/main/CHANGELOG.md">which's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">7.0.0</a>
(2026-05-08)</h2>
<h3>⚠️ BREAKING CHANGES</h3>
<ul>
<li><code>which</code> now supports node <code>^22.22.2 || ^24.15.0 ||
&gt;=26.0.0</code></li>
<li>template-oss-apply</li>
</ul>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
bump to new node engine range (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/297db11d58eebe01551ae0875a127a89ee63d2cb"><code>297db11</code></a>
chore: release 7.0.0 (<a
href="https://redirect.github.com/npm/node-which/issues/177">#177</a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
chore: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
feat!: bump to new node engine range</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
feat!: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-which/commit/482490851357b9c22da31dc4b06736dcac180344"><code>4824908</code></a>
deps &amp; engine update</li>
<li>See full diff in <a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `@jest/globals` from 30.3.0 to 30.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/releases">@​jest/globals's
releases</a>.</em></p>
<blockquote>
<h2>v30.4.1</h2>
<h2>Features</h2>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1">https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1</a></p>
<h2>v30.4.0</h2>
<p>Big release! 😀</p>
<p>Main feature is a rewrite of our custom runtime in preparation for
stabilisation of native support of ESM. As part of that work
<code>require(esm)</code> module is now supported on Node 24.9+ (still
requires <code>--experimental-vm-modules</code> like before).</p>
<p>In addition we now support fake timers for the recently released
<code>Temporal</code> API in Node v26.</p>
<p>React 19 is also supported properly in <code>pretty-format</code>,
meaning snapshots of React components now work like they should.</p>
<p>Due to all the changes, there might be regressions that snuck in.
Please report them!</p>
<p>Full list of changes below</p>
<h2>Features</h2>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
<li><code>[pretty-format]</code> Support React 19 (<a
href="https://redirect.github.com/jestjs/jest/pull/16123">#16123</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[expect-utils]</code> Fix <code>toStrictEqual</code> failing
on <code>structuredClone</code> results due to cross-realm constructor
mismatch (<a
href="https://redirect.github.com/jestjs/jest/pull/15959">#15959</a>)</li>
<li><code>[@jest/expect-utils]</code> Prevent
<code>toMatchObject</code>/subset matching from throwing when
encountering exotic iterables (<a
href="https://redirect.github.com/jestjs/jest/pull/15952">#15952</a>)</li>
<li><code>[fake-timers]</code> Convert <code>Date</code> to milliseconds
before passing to <code>@sinonjs/fake-timers</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16029">#16029</a>)</li>
<li><code>[jest]</code> Export <code>GlobalConfig</code> and
<code>ProjectConfig</code> TypeScript types (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/blob/main/CHANGELOG.md">@​jest/globals's
changelog</a>.</em></p>
<blockquote>
<h2>30.4.1</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<h2>30.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
<li><code>[pretty-format]</code> Support React 19 (<a
href="https://redirect.github.com/jestjs/jest/pull/16123">#16123</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect-utils]</code> Fix <code>toStrictEqual</code> failing
on <code>structuredClone</code> results due to cross-realm constructor
mismatch (<a
href="https://redirect.github.com/jestjs/jest/pull/15959">#15959</a>)</li>
<li><code>[@jest/expect-utils]</code> Prevent
<code>toMatchObject</code>/subset matching from throwing when
encountering exotic iterables (<a
href="https://redirect.github.com/jestjs/jest/pull/15952">#15952</a>)</li>
<li><code>[fake-timers]</code> Convert <code>Date</code> to milliseconds
before passing to <code>@sinonjs/fake-timers</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16029">#16029</a>)</li>
<li><code>[jest]</code> Export <code>GlobalConfig</code> and
<code>ProjectConfig</code> TypeScript types (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-circus]</code> Prevent crash when
<code>asyncError</code> is undefined for non-Error throws (<a
href="https://redirect.github.com/jestjs/jest/pull/16003">#16003</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> Include
<code>Error.cause</code> in JSON <code>failureMessages</code> output (<a
href="https://redirect.github.com/jestjs/jest/pull/15967">#15967</a>)</li>
<li><code>[jest-config]</code> Fix preset path resolution on Windows
when the preset uses subpath <code>exports</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/15961">#15961</a>)</li>
<li><code>[jest-config]</code> Allow <code>collectCoverage</code> and
<code>coverageProvider</code> in project config without a validation
warning (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-config]</code> Project config validator now emits
&quot;is not supported in an individual project configuration&quot;
instead of &quot;probably a typing mistake&quot; for known global-only
options (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-environment-node]</code> Fix
<code>--localstorage-file</code> warning on Node 25+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16086">#16086</a>)</li>
<li><code>[jest-reporters]</code> Apply global coverage threshold to
unmatched pattern files in addition to glob/path thresholds (<a
href="https://redirect.github.com/jestjs/jest/pull/16137">#16137</a>)</li>
<li><code>[jest-reporters, jest-runner, jest-runtime,
jest-transform]</code> Fix coverage report not showing correct code
coverage when using <code>projects</code> config option (<a
href="https://redirect.github.com/jestjs/jest/pull/16140">#16140</a>)</li>
<li><code>[jest-runtime]</code> Resolve <code>expect</code> and
<code>@jest/expect</code> from the internal module registry so test-file
imports share the same <code>JestAssertionError</code> as the global
<code>expect</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16130">#16130</a>)</li>
<li><code>[jest-runtime]</code> Improve CJS-from-ESM interop:
<code>__esModule</code>/Babel default unwrap, broader named-export
coverage, and shared CJS singleton across importers (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
<li><code>[jest-runtime]</code> Load <code>.js</code> files with ESM
syntax but no <code>&quot;type&quot;:&quot;module&quot;</code> marker as
native ESM (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
<li><code>[jest-runtime]</code> Extend the
<code>.js</code>-with-ESM-syntax fallback to <code>require()</code> on
Node v24.9+ - falls back to <code>require(esm)</code> when the CJS
parser rejects ESM syntax (<a
href="https://redirect.github.com/jestjs/jest/pull/16078">#16078</a>)</li>
<li><code>[jest-runtime]</code> Fix deadlocks and double-evaluation in
concurrent ESM and wasm imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/jestjs/jest/commit/b3b4a09ed3005369dacc7466d1d2122797283785"><code>b3b4a09</code></a>
v30.4.1</li>
<li><a
href="https://github.com/jestjs/jest/commit/5cbb21e0b3037edb42e503ec1a1ce80efad40c20"><code>5cbb21e</code></a>
v30.4.0</li>
<li>See full diff in <a
href="https://github.com/jestjs/jest/commits/v30.4.1/packages/jest-globals">compare
view</a></li>
</ul>
</details>
<br />

Updates `@types/node` from 25.5.0 to 25.9.1
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />

Updates `@typescript-eslint/eslint-plugin` from 8.58.0 to 8.59.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/releases">@​typescript-eslint/eslint-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v8.59.4</h2>
<h2>8.59.4 (2026-05-18)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-floating-promises] stack
overflow when using recursive types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12294">#12294</a>)</li>
<li><strong>project-service:</strong> throw error cause in
<code>getParsedConfigFileFromTSServer</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12321">#12321</a>)</li>
<li><strong>typescript-eslint:</strong> export Compatible* types from
typescript-eslint to resolve pnpm TS error (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12340">#12340</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>lumir</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.4">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.59.3</h2>
<h2>8.59.3 (2026-05-11)</h2>
<p>This was a version bump only, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.3">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.59.2</h2>
<h2>8.59.2 (2026-05-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unsafe-type-assertion] handle
crash on recursive template literal types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12150">#12150</a>)</li>
<li><strong>eslint-plugin:</strong> [no-deprecated] object destructuring
values should be treated as declarations (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12292">#12292</a>)</li>
<li><strong>rule-tester:</strong> add TypeScript as a peer dependency
(<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12288">#12288</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Dariusz Czajkowski</li>
<li>Dima Barabash</li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.2">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.59.1</h2>
<h2>8.59.1 (2026-04-27)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md">@​typescript-eslint/eslint-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>8.59.4 (2026-05-18)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-floating-promises] stack
overflow when using recursive types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12294">#12294</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.4">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.59.3 (2026-05-11)</h2>
<p>This was a version bump only for eslint-plugin to align it with other
projects, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.3">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.59.2 (2026-05-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-deprecated] object destructuring
values should be treated as declarations (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12292">#12292</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unsafe-type-assertion] handle
crash on recursive template literal types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12150">#12150</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Dima Barabash</li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.2">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.59.1 (2026-04-27)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unnecessary-condition] treat
void as nullish in no-unnecessary-condition (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12241">#12241</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-arguments]
handle instantiation expressions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12220">#12220</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
avoid false positive in logical assignment assertions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12278">#12278</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
preserve phantom type arguments in generic inference (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12269">#12269</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
preserve index signatures in undefined unions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12257">#12257</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion] fix
crash &quot;TypeError: checker.getTypeArguments is not a function&quot;
(<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12246">#12246</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ca6ca1431b6d18235297a7e29feb5d98f012dff2"><code>ca6ca14</code></a>
chore(release): publish 8.59.4</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/4302433ae6bf93d4ddc35264ad1b951254758566"><code>4302433</code></a>
fix(eslint-plugin): [no-floating-promises] stack overflow when using
recursiv...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/10b79f1ba8e98610a3af85152a1b3b406f91e633"><code>10b79f1</code></a>
chore(deps): update dependency eslint to v10.4.0 (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12339">#12339</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2a6765d9628dc776f8127c96f088bb807c0bcab2"><code>2a6765d</code></a>
chore: clenaup <code>getAwaitedType</code> from
<code>typescript.d.ts</code> (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12302">#12302</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/48e13c0261e3cb1bf4f4dfaa462cdb3a56ef7383"><code>48e13c0</code></a>
chore(release): publish 8.59.3</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/e26dc8003ababf078aad4df17765ee4cea30644c"><code>e26dc80</code></a>
docs: update stale links to latest (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12313">#12313</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/44f9625336841a8ee3eb01a9e02e49b1d7b12648"><code>44f9625</code></a>
chore(deps): update vitest monorepo to v4.1.5 (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12307">#12307</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2ec35f1760aade4df4c631d76d78c7ed5e136333"><code>2ec35f1</code></a>
chore(release): publish 8.59.2</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ec3ef25390f7daf5a9ff33a60282bdbbb49ab0f3"><code>ec3ef25</code></a>
test: make no-useless-empty-export tests fully static (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12260">#12260</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/60d0a513870d833617374ff8ea256d86ca3cbbbb"><code>60d0a51</code></a>
chore(eslint-plugin): switch auto-generated test cases to hand-written
in no-...</li>
<li>Additional commits viewable in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.59.4/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.1.0 to 10.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.4.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/1a45ec596af1dd5f880e6874cb8f24dafb6a7ecf"><code>1a45ec5</code></a>
feat: check sequence expressions in <code>for-direction</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20701">#20701</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/450040bd89b989b3531824c6be45feb5fe3d936b"><code>450040b</code></a>
feat: add <code>includeIgnoreFile()</code> to <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/20735">#20735</a>)
(Kirk Waiblinger)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/544c0c3da589166ad8e5d634f35d3d06701c57be"><code>544c0c3</code></a>
fix: escape code path DOT labels in debug output (<a
href="https://redirect.github.com/eslint/eslint/issues/20866">#20866</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6799431203f2579632d0870f98ba132067f4040c"><code>6799431</code></a>
fix: update dependency <code>@​eslint/config-helpers</code> to ^0.6.0
(<a
href="https://redirect.github.com/eslint/eslint/issues/20850">#20850</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/f078fef5005dceb14fc162aab7c7200e027688dd"><code>f078fef</code></a>
fix: handle non-array deprecated rule replacements (<a
href="https://redirect.github.com/eslint/eslint/issues/20825">#20825</a>)
(xbinaryx)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/7e52a7151fb92eec0e0f67fe4e5ddbd1ccce796f"><code>7e52a71</code></a>
docs: add mention of <code>@eslint-react/eslint-plugin</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20869">#20869</a>)
(Pavel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/db3468ba746407d7f286f18f7ea9db6df0e3bc08"><code>db3468b</code></a>
docs: tweak wording around ambiguous CJS-vs-ESM config (<a
href="https://redirect.github.com/eslint/eslint/issues/20865">#20865</a>)
(Kirk Waiblinger)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90846643ec6e97d447ae0d831fabe6d17b0a998a"><code>9084664</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9cc73875046e3c4b8313644cbb1e99e26b36bd3f"><code>9cc7387</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3d7b5484407403817aa9071a394d336d8ea96eb5"><code>3d7b548</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/191ec3c0a3f94ce0f110df761f0b2b8949011ccb"><code>191ec3c</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6616856f28fa514a30f87b5539fc100d739a94bf"><code>6616856</code></a>
chore: upgrade knip to v6 (<a
href="https://redirect.github.com/eslint/eslint/issues/20875">#20875</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d13b084a3ad02f926e9addaa35fc383759ea5554"><code>d13b084</code></a>
ci: ensure auto-created PRs run CI (<a
href="https://redirect.github.com/eslint/eslint/issues/20860">#20860</a>)
(lumir)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e71c7af86dce9acc1d18cb12d2184309f6841594"><code>e71c7af</code></a>
ci: bump pnpm/action-setup from 6.0.5 to 6.0.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/20862">#20862</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/d84393dea170f54191fd20c8268b52c81c0ccd99"><code>d84393d</code></a>
test: add unit tests for SuppressionsService.applySuppressions() (<a
href="https://redirect.github.com/eslint/eslint/issues/20863">#20863</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/24db8cb8e6f07fba667121777a15b1785486be94"><code>24db8cb</code></a>
test: add tests for SuppressionsService.save() (<a
href="https://redirect.github.com/eslint/eslint/issues/20802">#20802</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2ef0549cac4a9537e4c3a26b9f3edd4c99476bf6"><code>2ef0549</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20857">#20857</a>)
(github-actions[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/a4297918d264d229a06cd96051ef9b91c7b86732"><code>a429791</code></a>
ci: remove <code>eslint-webpack-plugin</code> types integration test (<a
href="https://redirect.github.com/eslint/eslint/issues/20668">#20668</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9e37386aa7f2ce220b2ef74a6afbac5f6b3527c5"><code>9e37386</code></a>
chore: replace <code>recast</code> with range approach in
code-sample-minimizer (<a
href="https://redirect.github.com/eslint/eslint/issues/20682">#20682</a>)
(Copilot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0dd1f9ffc9a07704d46e2a4c8d4ccc0d0908b0c0"><code>0dd1f9f</code></a>
test: disable warning for
<code>vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20845">#20845</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9da3c7bc92d9579f8db19ecb56e718538d09db2b"><code>9da3c7b</code></a>
refactor: remove deprecated <code>meta.language</code> and migrate
<code>meta.dialects</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20716">#20716</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2099ed12a0a74c3d7f0808514362af2499b4fe2b"><code>2099ed1</code></a>
refactor: add <code>meta.defaultOptions</code> to more rules, enable
linting (<a
href="https://redirect.github.com/eslint/eslint/issues/20800">#20800</a>)
(xbinaryx)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f1dfbc9ca57196de7092e1888cc99427bd6fe06e"><code>f1dfbc9</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20836">#20836</a>)
(github-actions[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/c75941390c14728806cd4baef4f6072f6de78318"><code>c759413</code></a>
ci: bump pnpm/action-setup from 6.0.3 to 6.0.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/20843">#20843</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/5b817d6fdc9ae2c35b528dc662b2eca8f40f64aa"><code>5b817d6</code></a>
test: add unit tests for lib/shared/ast-utils (<a
href="https://redirect.github.com/eslint/eslint/issues/20838">#20838</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1c13ae3934c198c494e5958fa3a68b33244ff06a"><code>1c13ae3</code></a>
test: add unit tests for lib/shared/severity (<a
href="https://redirect.github.com/eslint/eslint/issues/20835">#20835</a>)
(kuldeep kumar)</li>
</ul>
<h2>v10.3.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/379571a975f2b24d88037b9de2e72ec61d004130"><code>379571a</code></a>
feat: add suggestions for no-unused-private-class-members (<a
href="https://redirect.github.com/eslint/eslint/issues/20773">#20773</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/b6ae5cf07b9b51802367539cb24b245b61eaa37c"><code>b6ae5cf</code></a>
fix: handle unavailable require cache (<a
href="https://redirect.github.com/eslint/eslint/issues/20812">#20812</a>)
(Simon Podlipsky)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6fb3685bcbe9a6f72fd7dfb9129686b6fb96b0bd"><code>6fb3685</code></a>
fix: rule suggestions cause continuation in class body (<a
href="https://redirect.github.com/eslint/eslint/issues/20787">#20787</a>)
(Milos Djermanovic)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/32cc7ab4ec653ce89da92deb5c40a9f4fc707fe5"><code>32cc7ab</code></a>
docs: fix typos in docs and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/20809">#20809</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7f479376a2fa463d823ab762db6bb37ce8d2ee8f"><code>7f47937</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/d32235ec19ceea211fa86452afa383ca05f5c2f9"><code>d32235e</code></a>
ci: use pnpm in <code>eslint-flat-config-utils</code> type integration
test (<a
href="https://redirect.github.com/eslint/eslint/issues/20826">#20826</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3ffb14ea517de750ed1181579ef844af342e4096"><code>3ffb14e</code></a>
chore: clean up typos in comments and JSDoc (<a
href="https://redirect.github.com/eslint/eslint/issues/20821">#20821</a>)
(Pixel998)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/452c4010c07dc2e36fe6ec6a8c48298878e86887"><code>452c401</code></a>
10.4.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/b6417e8b55c9525070d6e168b485ce6ff21688ed"><code>b6417e8</code></a>
Build: changelog update for 10.4.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/6616856f28fa514a30f87b5539fc100d739a94bf"><code>6616856</code></a>
chore: upgrade knip to v6 (<a
href="https://redirect.github.com/eslint/eslint/issues/20875">#20875</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d13b084a3ad02f926e9addaa35fc383759ea5554"><code>d13b084</code></a>
ci: ensure auto-created PRs run CI (<a
href="https://redirect.github.com/eslint/eslint/issues/20860">#20860</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7e52a7151fb92eec0e0f67fe4e5ddbd1ccce796f"><code>7e52a71</code></a>
docs: add mention of <code>@eslint-react/eslint-plugin</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20869">#20869</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e71c7af86dce9acc1d18cb12d2184309f6841594"><code>e71c7af</code></a>
ci: bump pnpm/action-setup from 6.0.5 to 6.0.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/20862">#20862</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/544c0c3da589166ad8e5d634f35d3d06701c57be"><code>544c0c3</code></a>
fix: escape code path DOT labels in debug output (<a
href="https://redirect.github.com/eslint/eslint/issues/20866">#20866</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/db3468ba746407d7f286f18f7ea9db6df0e3bc08"><code>db3468b</code></a>
docs: tweak wording around ambiguous CJS-vs-ESM config (<a
href="https://redirect.github.com/eslint/eslint/issues/20865">#20865</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d84393dea170f54191fd20c8268b52c81c0ccd99"><code>d84393d</code></a>
test: add unit tests for SuppressionsService.applySuppressions() (<a
href="https://redirect.github.com/eslint/eslint/issues/20863">#20863</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90846643ec6e97d447ae0d831fabe6d17b0a998a"><code>9084664</code></a>
docs: Update README</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.1.0...v10.4.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.4.0 to 17.6.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globals/releases">globals's
releases</a>.</em></p>
<blockquote>
<h2>v17.6.0</h2>
<ul>
<li>Update globals (2026-05-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/343">#343</a>)
00a4dd9</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.5.0...v17.6.0">https://github.com/sindresorhus/globals/compare/v17.5.0...v17.6.0</a></p>
<h2>v17.5.0</h2>
<ul>
<li>Update globals (2026-04-12) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/342">#342</a>)
5d84602</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.4.0...v17.5.0">https://github.com/sindresorhus/globals/compare/v17.4.0...v17.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/6b15870f1c08b60b5b57afe45a703d9ed0be39bc"><code>6b15870</code></a>
17.6.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/00a4dd9821830a9b044798120e86b1bb1a54648d"><code>00a4dd9</code></a>
Update globals (2026-05-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/343">#343</a>)</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/b8170c8e1d648291b613c5b39a69652c796fa36c"><code>b8170c8</code></a>
17.5.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/5d846029679832931f38ced6381cc95bcb9abd80"><code>5d84602</code></a>
Update globals (2026-04-12) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/342">#342</a>)</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/1b727e5f4cc39121b8e77b9f27574a8ca27391fc"><code>1b727e5</code></a>
Fix build script for ES globals (<a
href="https://redirect.github.com/sindresorhus/globals/issues/341">#341</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.4.0...v17.6.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `jest` from 30.3.0 to 30.4.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/releases">jest's
releases</a>.</em></p>
<blockquote>
<h2>v30.4.2</h2>
<h1>Fixes</h1>
<ul>
<li><code>[jest-runtime]</code> Fix named imports from CJS modules whose
<code>module.exports</code> is a function with own-property exports (<a
href="https://redirect.github.com/jestjs/jest/pull/16150">#16150</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.1...v30.4.2">https://github.com/jestjs/jest/compare/v30.4.1...v30.4.2</a></p>
<h2>v30.4.1</h2>
<h2>Features</h2>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1">https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1</a></p>
<h2>v30.4.0</h2>
<p>Big release! 😀</p>
<p>Main feature is a rewrite of our custom runtime in preparation for
stabilisation of native support of ESM. As part of that work
<code>require(esm)</code> module is now supported on Node 24.9+ (still
requires <code>--experimental-vm-modules</code> like before).</p>
<p>In addition we now support fake timers for the recently released
<code>Temporal</code> API in Node v26.</p>
<p>React 19 is also supported properly in <code>pretty-format</code>,
meaning snapshots of React components now work like they should.</p>
<p>Due to all the changes, there might be regressions that snuck in.
Please report them!</p>
<p>Full list of changes below</p>
<h2>Features</h2>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/blob/main/CHANGELOG.md">jest's
changelog</a>.</em></p>
<blockquote>
<h2>30.4.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Fix named imports from CJS modules whose
<code>module.exports</code> is a function with own-property exports (<a
href="https://redirect.github.com/jestjs/jest/pull/16150">#16150</a>)</li>
</ul>
<h2>30.4.1</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<h2>30.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
t...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-06-09 11:49:38 +02:00
dependabot[bot]andJérôme Prinet 8499b50242 Bump the github-actions group across 2 directories with 8 updates (#976)
Bumps the github-actions group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6.0.2` |
`6.0.3` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.3.0`
| `6.4.0` |
| [gradle/actions](https://github.com/gradle/actions) | `6.0.1` |
`6.1.0` |
|
[tj-actions/changed-files](https://github.com/tj-actions/changed-files)
| `47.0.5` | `47.0.6` |
| [github/codeql-action](https://github.com/github/codeql-action) |
`4.35.1` | `4.36.2` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact)
| `7.0.0` | `7.0.1` |
| [actions/github-script](https://github.com/actions/github-script) |
`8.0.0` | `9.0.0` |
|
[peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request)
| `8.1.0` | `8.1.1` |

Bumps the github-actions group with 2 updates in the
/.github/actions/build-dist directory:
[actions/setup-node](https://github.com/actions/setup-node) and
[actions/upload-artifact](https://github.com/actions/upload-artifact).

Updates `actions/checkout` from 6.0.2 to 6.0.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/releases">actions/checkout's
releases</a>.</em></p>
<blockquote>
<h2>v6.0.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Update changelog by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2357">actions/checkout#2357</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>Update changelog for v6.0.3 by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2446">actions/checkout#2446</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/yaananth"><code>@​yaananth</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6...v6.0.3">https://github.com/actions/checkout/compare/v6...v6.0.3</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v6.0.3</h2>
<ul>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<h2>v6.0.2</h2>
<ul>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<h2>v6.0.1</h2>
<ul>
<li>Add worktree support for persist-credentials includeIf by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li>
</ul>
<h2>v6.0.0</h2>
<ul>
<li>Persist creds to a separate file by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li>
<li>Update README to include Node.js 24 support details and requirements
by <a href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li>
</ul>
<h2>v5.0.1</h2>
<ul>
<li>Port v6 cleanup to v5 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li>
</ul>
<h2>v5.0.0</h2>
<ul>
<li>Update actions checkout to use node 24 by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li>
</ul>
<h2>v4.3.1</h2>
<ul>
<li>Port v6 cleanup to v4 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li>
</ul>
<h2>v4.3.0</h2>
<ul>
<li>docs: update README.md by <a
href="https://github.com/motss"><code>@​motss</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li>
<li>Add internal repos for checking out multiple repositories by <a
href="https://github.com/mouismail"><code>@​mouismail</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li>
<li>Documentation update - add recommended permissions to Readme by <a
href="https://github.com/benwells"><code>@​benwells</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li>
<li>Adjust positioning of user email note and permissions heading by <a
href="https://github.com/joshmgross"><code>@​joshmgross</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li>
<li>Update README.md by <a
href="https://github.com/nebuk89"><code>@​nebuk89</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li>
<li>Update CODEOWNERS for actions by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li>
<li>Update package dependencies by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li>
</ul>
<h2>v4.2.2</h2>
<ul>
<li><code>url-helper.ts</code> now leverages well-known environment
variables by <a href="https://github.com/jww3"><code>@​jww3</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li>
<li>Expand unit test coverage for <code>isGhes</code> by <a
href="https://github.com/jww3"><code>@​jww3</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li>
</ul>
<h2>v4.2.1</h2>
<ul>
<li>Check out other refs/* by commit if provided, fall back to ref by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li>
</ul>
<h2>v4.2.0</h2>
<ul>
<li>Add Ref and Commit outputs by <a
href="https://github.com/lucacome"><code>@​lucacome</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
<li>Dependency updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>- <a
href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a>,
<a
href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li>
</ul>
<h2>v4.1.7</h2>
<ul>
<li>Bump the minor-npm-dependencies group across 1 directory with 4
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li>
<li>Bump actions/checkout from 3 to 4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li>
<li>Check out other refs/* by commit by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/checkout/commit/df4cb1c069e1874edd31b4311f1884172cec0e10"><code>df4cb1c</code></a>
Update changelog for v6.0.3 (<a
href="https://redirect.github.com/actions/checkout/issues/2446">#2446</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/1cce3390c2bfda521930d01229c073c7ff920824"><code>1cce339</code></a>
Fix checkout init for SHA-256 repositories (<a
href="https://redirect.github.com/actions/checkout/issues/2439">#2439</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/900f2210b1d28bbbd0bd22d17926b9e224e8f231"><code>900f221</code></a>
fix: expand merge commit SHA regex and add SHA-256 test cases (<a
href="https://redirect.github.com/actions/checkout/issues/2414">#2414</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/0c366fd6a839edf440554fa01a7085ccba70ac98"><code>0c366fd</code></a>
Update changelog (<a
href="https://redirect.github.com/actions/checkout/issues/2357">#2357</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.3.0 to 6.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"><code>48b55a0</code></a>
Update Node.js versions in versions.yml and bump package to v6.4.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1533">#1533</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/ab72c7e7eba0eaa11f8cab0f5679243900c2cac9"><code>ab72c7e</code></a>
Upgrade <a href="https://github.com/actions"><code>@​actions</code></a>
dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1525">#1525</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e">compare
view</a></li>
</ul>
</details>
<br />

Updates `gradle/actions` from 6.0.1 to 6.1.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions's
releases</a>.</em></p>
<blockquote>
<h2>v6.1.0</h2>
<h2>New: Basic Cache Provider</h2>
<p>A new MIT-licensed <strong>Basic Caching</strong> provider is now
available as an alternative to the proprietary <strong>Enhanced
Caching</strong> provided by <code>gradle-actions-caching</code>. Choose
Basic Caching by setting <code>cache-provider: basic</code> on
<code>setup-gradle</code> or <code>dependency-submission</code>
actions.</p>
<ul>
<li>Built on <code>@actions/cache</code> -- fully open source</li>
<li>Caches <code>~/.gradle/caches</code> and
<code>~/.gradle/wrapper</code> directories</li>
<li>Cache key derived from build files (<code>*.gradle*</code>,
<code>gradle-wrapper.properties</code>, etc.)</li>
<li>Clean cache on build file changes (no restore keys, preventing stale
entry accumulation)</li>
</ul>
<p><strong>Limitations vs Enhanced Caching:</strong> No cache cleanup,
no deduplication of cached content, cached content is fixed unless build
files change.</p>
<h2>Revamped Licensing &amp; Distribution Documentation</h2>
<ul>
<li>New <strong>DISTRIBUTION.md</strong> documents the licensing of each
component (particularly Basic Caching vs Enhanced Caching)</li>
<li>Simplified licensing notices in README, docs, and runtime log
output</li>
<li>Clear usage tiers: Enhanced Caching is free for public repos and in
Free Preview for private repos</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Use a unique cache entry for wrapper-validation test by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/921">gradle/actions#921</a></li>
<li>Update Dependencies by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/922">gradle/actions#922</a></li>
<li>Update dependencies and resolve npm vulnerabilities by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/933">gradle/actions#933</a></li>
<li>Add open-source 'basic' cache provider and revamp licensing
documentation by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/930">gradle/actions#930</a></li>
<li>Restructure caching documentation for basic and enhanced providers
by <a href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/934">gradle/actions#934</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.0.1...v6.1.0">https://github.com/gradle/actions/compare/v6.0.1...v6.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/50e97c2cd7a37755bbfafc9c5b7cafaece252f6e"><code>50e97c2</code></a>
Link to docs for caching providers</li>
<li><a
href="https://github.com/gradle/actions/commit/f2e6298504c4b1f20294637059e1d0d89422409a"><code>f2e6298</code></a>
Restructure caching documentation for basic and enhanced providers (<a
href="https://redirect.github.com/gradle/actions/issues/934">#934</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/b294b1e2dbcf270bfe835590dedbbc7e2024618c"><code>b294b1e</code></a>
Really fix integ-test-full</li>
<li><a
href="https://github.com/gradle/actions/commit/83d3189aae3332f1b2235b42d8804258f2348213"><code>83d3189</code></a>
Revise license details for gradle-actions-caching</li>
<li><a
href="https://github.com/gradle/actions/commit/1d5db06d2662829845876553d61cf3df3cf997d1"><code>1d5db06</code></a>
Update license link for gradle-actions-caching component</li>
<li><a
href="https://github.com/gradle/actions/commit/1c809615505fae9768e2610dc6dbecdc3a796443"><code>1c80961</code></a>
Fix license link for Enhanced Caching component</li>
<li><a
href="https://github.com/gradle/actions/commit/9e99920b14b9dc5a9bf8c72e94ba47ebf5bbaee6"><code>9e99920</code></a>
Fix integ-test-full workflow</li>
<li><a
href="https://github.com/gradle/actions/commit/bb8aaaf9d56f25afd4a90925425facf294f31fcf"><code>bb8aaaf</code></a>
Fix workflow permissions</li>
<li><a
href="https://github.com/gradle/actions/commit/f5dfb43fc8c99c758ebf2324d102118e5faf6cb6"><code>f5dfb43</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/ff9ae24c39252301b448088d2c7d9f0a2d8066dd"><code>ff9ae24</code></a>
Add open-source 'basic' cache provider and revamp licensing
documentation (<a
href="https://redirect.github.com/gradle/actions/issues/930">#930</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f...50e97c2cd7a37755bbfafc9c5b7cafaece252f6e">compare
view</a></li>
</ul>
</details>
<br />

Updates `tj-actions/changed-files` from 47.0.5 to 47.0.6
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/releases">tj-actions/changed-files's
releases</a>.</em></p>
<blockquote>
<h2>v47.0.6</h2>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v47.0.5 by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2816">tj-actions/changed-files#2816</a></li>
<li>Updated README.md by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2817">tj-actions/changed-files#2817</a></li>
<li>chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2818">tj-actions/changed-files#2818</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.3.3 to
25.3.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2820">tj-actions/changed-files#2820</a></li>
<li>chore(deps): bump github/codeql-action from 4.32.5 to 4.32.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2819">tj-actions/changed-files#2819</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.3.5 to
25.5.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2825">tj-actions/changed-files#2825</a></li>
<li>chore(deps): bump actions/download-artifact from 8.0.0 to 8.0.1 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2824">tj-actions/changed-files#2824</a></li>
<li>chore(deps): bump github/codeql-action from 4.32.6 to 4.35.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2834">tj-actions/changed-files#2834</a></li>
<li>chore(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2831">tj-actions/changed-files#2831</a></li>
<li>chore(deps): bump yaml from 2.8.2 to 2.8.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2830">tj-actions/changed-files#2830</a></li>
<li>chore(deps): bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2829">tj-actions/changed-files#2829</a></li>
<li>chore(deps-dev): bump jest from 30.2.0 to 30.3.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2822">tj-actions/changed-files#2822</a></li>
<li>chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2849">tj-actions/changed-files#2849</a></li>
<li>chore(deps-dev): bump prettier from 3.8.1 to 3.8.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2848">tj-actions/changed-files#2848</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.5.0 to
25.6.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2846">tj-actions/changed-files#2846</a></li>
<li>chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2844">tj-actions/changed-files#2844</a></li>
<li>chore(deps): bump peter-evans/create-pull-request from 8.1.0 to
8.1.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2843">tj-actions/changed-files#2843</a></li>
<li>chore(deps): bump lodash from 4.17.23 to 4.18.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2837">tj-actions/changed-files#2837</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6">https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6">47.0.6</a>
- (2026-04-18)</h1>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2817">#2817</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/c23d52ba6ff8c67273c61e097615eafe88cb8650">c23d52b</a>)
- (github-actions[bot])</p>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Bump lodash from 4.17.23 to 4.18.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2837">#2837</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/9426d40962ed5378910ee2e21d5f8c6fcbf2dd96">9426d40</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump peter-evans/create-pull-request from
8.1.0 to 8.1.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2843">#2843</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/32de080616d8c84d89622770d26b0857f4ce8b49">32de080</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/upload-artifact from 7.0.0 to
7.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2844">#2844</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2487d125c6ecf3457228762d50599297a8c80310">2487d12</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.5.0 to 25.6.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2846">#2846</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/cef85a3eab76d9db9f294de4915d6a31b1dcbfda">cef85a3</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump prettier from 3.8.1 to 3.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2848">#2848</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/7b082dee30a6f42592f70940c0f0a26a72af452c">7b082de</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.35.1 to
4.35.2 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2849">#2849</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/07224cab5986b4ce28c5080f4a804e5573422714">07224ca</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump jest from 30.2.0 to 30.3.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2822">#2822</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2bb135777322059ee3a3c9239999b159ff49febc">2bb1357</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2829">#2829</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/cc98117d3993777f3babaccc496514b4a65652a9">cc98117</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump yaml from 2.8.2 to 2.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2830">#2830</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/786e4213eac60d6e2b4492135b46644269fac3db">786e421</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump eslint-plugin-jest from 29.15.0 to
29.15.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2831">#2831</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/726b41bbed783a50de97829de6d977cd665831f7">726b41b</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.32.6 to
4.35.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2834">#2834</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2c3585e584822ed39e27c6c471225dde37991778">2c3585e</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/download-artifact from 8.0.0 to
8.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2824">#2824</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/3d37a7ff08a7ce64b4cab9669eac39b0709cdac9">3d37a7f</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.3.5 to 25.5.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2825">#2825</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/445b0eb32849cdd5b22a390bf0568af00ed4ca34">445b0eb</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.32.5 to
4.32.6 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2819">#2819</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/4f892cd56345d721bac7139000c4b4a22c8f138f">4f892cd</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.3.3 to 25.3.5 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2820">#2820</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/611865116d9f223a0ca640071aec29292c81978f">6118651</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/setup-node from 6.2.0 to 6.3.0
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2818">#2818</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/e517d7a5ca34a5d08bbe5c949e59381bd6d7cce2">e517d7a</a>)
- (dependabot[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v47.0.5 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2816">#2816</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/4750530ff4e020eafc769c56c2fa8376ca8ad8e9">4750530</a>)
- (github-actions[bot])</p>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v47.0.4...v47.0.5">47.0.5</a>
- (2026-03-03)</h1>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2805">#2805</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
(<a
href="https://github.com/tj-actions/changed-files/commit/35dace0375d89e25e78db5f0a44127b61f4e5c20">35dace0</a>)
- (github-actions[bot])</p>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2803">#2803</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/9ee99eb5bda5d6a67fedcd50ecd24fb10add2f41">9ee99eb</a>)
- (github-actions[bot])</p>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/tj-actions/changed-files/commit/9426d40962ed5378910ee2e21d5f8c6fcbf2dd96"><code>9426d40</code></a>
chore(deps): bump lodash from 4.17.23 to 4.18.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2837">#2837</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/32de080616d8c84d89622770d26b0857f4ce8b49"><code>32de080</code></a>
chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2843">#2843</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/2487d125c6ecf3457228762d50599297a8c80310"><code>2487d12</code></a>
chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2844">#2844</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cef85a3eab76d9db9f294de4915d6a31b1dcbfda"><code>cef85a3</code></a>
chore(deps-dev): bump <code>@​types/node</code> from 25.5.0 to 25.6.0
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2846">#2846</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/7b082dee30a6f42592f70940c0f0a26a72af452c"><code>7b082de</code></a>
chore(deps-dev): bump prettier from 3.8.1 to 3.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2848">#2848</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/07224cab5986b4ce28c5080f4a804e5573422714"><code>07224ca</code></a>
chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2849">#2849</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/2bb135777322059ee3a3c9239999b159ff49febc"><code>2bb1357</code></a>
chore(deps-dev): bump jest from 30.2.0 to 30.3.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2822">#2822</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cc98117d3993777f3babaccc496514b4a65652a9"><code>cc98117</code></a>
chore(deps): bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2829">#2829</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/786e4213eac60d6e2b4492135b46644269fac3db"><code>786e421</code></a>
chore(deps): bump yaml from 2.8.2 to 2.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2830">#2830</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/726b41bbed783a50de97829de6d977cd665831f7"><code>726b41b</code></a>
chore(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2831">#2831</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/tj-actions/changed-files/compare/22103cc46bda19c2b464ffe86db46df6922fd323...9426d40962ed5378910ee2e21d5f8c6fcbf2dd96">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action` from 4.35.1 to 4.36.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.36.2</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>v4.36.1</h2>
<p>No user facing changes.</p>
<h2>v4.36.0</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.5">2.25.5</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3926">#3926</a></li>
</ul>
<h2>v4.35.5</h2>
<ul>
<li>We have improved how the JavaScript bundles for the CodeQL Action
are generated to avoid duplication across bundles and reduce the size of
the repository by around 70%. This should have no effect on the runtime
behaviour of the CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3899">#3899</a></li>
<li>For performance and accuracy reasons, <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> will now only be enabled on a pull request when
diff-informed analysis is also enabled for that run. If diff-informed
analysis is unavailable (for example, because the PR diff ranges could
not be computed), the action will fall back to a full analysis. <a
href="https://redirect.github.com/github/codeql-action/pull/3791">#3791</a></li>
<li>If multiple inputs are provided for the GitHub-internal
<code>analysis-kinds</code> input, only <code>code-scanning</code> will
be enabled. The <code>analysis-kinds</code> input is experimental, for
GitHub-internal use only, and may change without notice at any time. <a
href="https://redirect.github.com/github/codeql-action/pull/3892">#3892</a></li>
<li>Added an experimental change which, when running a Code Scanning
analysis for a PR with <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> enabled, prefers CodeQL CLI versions that have
a cached overlay-base database for the configured languages. This speeds
up analysis for a repository when there is not yet a cached overlay-base
database for the latest CLI version. We expect to roll this change out
to everyone in May. <a
href="https://redirect.github.com/github/codeql-action/pull/3880">#3880</a></li>
</ul>
<h2>v4.35.4</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.4">2.25.4</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3881">#3881</a></li>
</ul>
<h2>v4.35.3</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.19.3 and earlier. These versions of
CodeQL were discontinued on 9 April 2026 alongside GitHub Enterprise
Server 3.15, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3837">#3837</a></li>
<li>Configurations for private registries that use Cloudsmith or GCP
OIDC are now accepted. <a
href="https://redirect.github.com/github/codeql-action/pull/3850">#3850</a></li>
<li>Best-effort connection tests for private registries now use
<code>GET</code> requests instead of <code>HEAD</code> for better
compatibility with various registry implementations. For NuGet feeds,
the test is now always performed against the service index. <a
href="https://redirect.github.com/github/codeql-action/pull/3853">#3853</a></li>
<li>Fixed a bug where two diagnostics produced within the same
millisecond could overwrite each other on disk, causing one of them to
be lost. <a
href="https://redirect.github.com/github/codeql-action/pull/3852">#3852</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.3">2.25.3</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3865">#3865</a></li>
</ul>
<h2>v4.35.2</h2>
<ul>
<li>The undocumented TRAP cache cleanup feature that could be enabled
using the <code>CODEQL_ACTION_CLEANUP_TRAP_CACHES</code> environment
variable is deprecated and will be removed in May 2026. If you are
affected by this, we recommend disabling TRAP caching by passing the
<code>trap-caching: false</code> input to the <code>init</code> Action.
<a
href="https://redirect.github.com/github/codeql-action/pull/3795">#3795</a></li>
<li>The Git version 2.36.0 requirement for improved incremental analysis
now only applies to repositories that contain submodules. <a
href="https://redirect.github.com/github/codeql-action/pull/3789">#3789</a></li>
<li>Python analysis on GHES no longer extracts the standard library,
relying instead on models of the standard library. This should result in
significantly faster extraction and analysis times, while the effect on
alerts should be minimal. <a
href="https://redirect.github.com/github/codeql-action/pull/3794">#3794</a></li>
<li>Fixed a bug in the validation of OIDC configurations for private
registries that was added in CodeQL Action 4.33.0 / 3.33.0. <a
href="https://redirect.github.com/github/codeql-action/pull/3807">#3807</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.2">2.25.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3823">#3823</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.5">2.25.5</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3926">#3926</a></li>
</ul>
<h2>4.35.5 - 15 May 2026</h2>
<ul>
<li>We have improved how the JavaScript bundles for the CodeQL Action
are generated to avoid duplication across bundles and reduce the size of
the repository by around 70%. This should have no effect on the runtime
behaviour of the CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3899">#3899</a></li>
<li>For performance and accuracy reasons, <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> will now only be enabled on a pull request when
diff-informed analysis is also enabled for that run. If diff-informed
analysis is unavailable (for example, because the PR diff ranges could
not be computed), the action will fall back to a full analysis. <a
href="https://redirect.github.com/github/codeql-action/pull/3791">#3791</a></li>
<li>If multiple inputs are provided for the GitHub-internal
<code>analysis-kinds</code> input, only <code>code-scanning</code> will
be enabled. The <code>analysis-kinds</code> input is experimental, for
GitHub-internal use only, and may change without notice at any time. <a
href="https://redirect.github.com/github/codeql-action/pull/3892">#3892</a></li>
<li>Added an experimental change which, when running a Code Scanning
analysis for a PR with <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> enabled, prefers CodeQL CLI versions that have
a cached overlay-base database for the configured languages. This speeds
up analysis for a repository when there is not yet a cached overlay-base
database for the latest CLI version. We expect to roll this change out
to everyone in May. <a
href="https://redirect.github.com/github/codeql-action/pull/3880">#3880</a></li>
</ul>
<h2>4.35.4 - 07 May 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.4">2.25.4</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3881">#3881</a></li>
</ul>
<h2>4.35.3 - 01 May 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.19.3 and earlier. These versions of
CodeQL were discontinued on 9 April 2026 alongside GitHub Enterprise
Server 3.15, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3837">#3837</a></li>
<li>Configurations for private registries that use Cloudsmith or GCP
OIDC are now accepted. <a
href="https://redirect.github.com/github/codeql-action/pull/3850">#3850</a></li>
<li>Best-effort connection tests for private registries now use
<code>GET</code> requests instead of <code>HEAD</code> for better
compatibility with various registry implementations. For NuGet feeds,
the test is now always performed against the service index. <a
href="https://redirect.github.com/github/codeql-action/pull/3853">#3853</a></li>
<li>Fixed a bug where two diagnostics produced within the same
millisecond could overwrite each other on disk, causing one of them to
be lost. <a
href="https://redirect.github.com/github/codeql-action/pull/3852">#3852</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.3">2.25.3</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3865">#3865</a></li>
</ul>
<h2>4.35.2 - 15 Apr 2026</h2>
<ul>
<li>The undocumented TRAP cache cleanup feature that could be enabled
using the <code>CODEQL_ACTION_CLEANUP_TRAP_CACHES</code> environment
variable is deprecated and will be removed in May 2026. If you are
affected by this, we recommend disabling TRAP caching by passing the
<code>trap-caching: false</code> input to the <code>init</code> Action.
<a
href="https://redirect.github.com/github/codeql-action/pull/3795">#3795</a></li>
<li>The Git version 2.36.0 requirement for improved incremental analysis
now only applies to repositories that contain submodules. <a
href="https://redirect.github.com/github/codeql-action/pull/3789">#3789</a></li>
<li>Python analysis on GHES no longer extracts the standard library,
relying instead on models of the standard library. This should result in
significantly faster extraction and analysis times, while the effect on
alerts should be minimal. <a
href="https://redirect.github.com/github/codeql-action/pull/3794">#3794</a></li>
<li>Fixed a bug in the validation of OIDC configurations for private
registries that was added in CodeQL Action 4.33.0 / 3.33.0. <a
href="https://redirect.github.com/github/codeql-action/pull/3807">#3807</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.2">2.25.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3823">#3823</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/8aad20d150bbac5944a9f9d289da16a4b0d87c1e"><code>8aad20d</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3949">#3949</a>
from github/update-v4.36.2-dcb947ce1</li>
<li><a
href="https://github.com/github/codeql-action/commit/f521b08cd8f468ab193ea950a589cb2e9c869c6a"><code>f521b08</code></a>
Add additional changelog notes</li>
<li><a
href="https://github.com/github/codeql-action/commit/8aeff0ffb7b78582ee0d0e6eebb8140684400d08"><code>8aeff0f</code></a>
Update changelog for v4.36.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/dcb947ce15976d40ea82935510b2db4872ec124c"><code>dcb947c</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3948">#3948</a>
from github/update-bundle/codeql-bundle-v2.25.6</li>
<li><a
href="https://github.com/github/codeql-action/commit/c251bcefa178f7780f62f150002acffe3d07fde9"><code>c251bce</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/62953c18b35f59e28351d2f1e806925aef8b1e3c"><code>62953c1</code></a>
Update default bundle to codeql-bundle-v2.25.6</li>
<li><a
href="https://github.com/github/codeql-action/commit/423b570baf1976cd7a3daeba5d6e9f9b76432f37"><code>423b570</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3946">#3946</a>
from github/dependabot/npm_and_yarn/npm-minor-5d507a...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c35d1b164463ee62a100735382aaaa525c5d3496"><code>c35d1b1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3947">#3947</a>
from github/dependabot/github_actions/dot-github/wor...</li>
<li><a
href="https://github.com/github/codeql-action/commit/cb1a588b02755b176e7b9d033ed4b69312f0e1bd"><code>cb1a588</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3937">#3937</a>
from github/robertbrignull/waitForProcessing_backoff</li>
<li><a
href="https://github.com/github/codeql-action/commit/ba47406412c54532b5b4fcfbaf877c9e2382b206"><code>ba47406</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3943">#3943</a>
from github/henrymercer/cache-cli-version-info</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/c10b8064de6f491fea524254123dbe5e09572f13...8aad20d150bbac5944a9f9d289da16a4b0d87c1e">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Update the readme with direct upload details by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/795">actions/upload-artifact#795</a></li>
<li>Readme: bump all the example versions to v7 by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/796">actions/upload-artifact#796</a></li>
<li>Include changes in typespec/ts-http-runtime 0.3.5 by <a
href="https://github.com/yacaovsnc"><code>@​yacaovsnc</code></a> in <a
href="https://redirect.github.com/actions/upload-artifact/pull/797">actions/upload-artifact#797</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/upload-artifact/compare/v7...v7.0.1">https://github.com/actions/upload-artifact/compare/v7...v7.0.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/upload-artifact/commit/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"><code>043fb46</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/upload-artifact/issues/797">#797</a>
from actions/yacaovsnc/update-dependency</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/634250c1388765ea7ed0f053e636f1f399000b94"><code>634250c</code></a>
Include changes in typespec/ts-http-runtime 0.3.5</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/e454baaac2be505c9450e11b8f3215c6fc023ce8"><code>e454baa</code></a>
Readme: bump all the example versions to v7 (<a
href="https://redirect.github.com/actions/upload-artifact/issues/796">#796</a>)</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/74fad66b98a6d799dc004d3353ccd0e6f6b2530e"><code>74fad66</code></a>
Update the readme with direct upload details (<a
href="https://redirect.github.com/actions/upload-artifact/issues/795">#795</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/github-script` from 8.0.0 to 9.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/github-script/releases">actions/github-script's
releases</a>.</em></p>
<blockquote>
<h2>v9.0.0</h2>
<p><strong>New features:</strong></p>
<ul>
<li><strong><code>getOctokit</code> factory function</strong> —
Available directly in the script context. Create additional
authenticated Octokit clients with different tokens for multi-token
workflows, GitHub App tokens, and cross-org access. See <a
href="https://github.com/actions/github-script#creating-additional-clients-with-getoctokit">Creating
additional clients with <code>getOctokit</code></a> for details and
examples.</li>
<li><strong>Orchestration ID in user-agent</strong> — The
<code>ACTIONS_ORCHESTRATION_ID</code> environment variable is
automatically appended to the user-agent string for request
tracing.</li>
</ul>
<p><strong>Breaking changes:</strong></p>
<ul>
<li><strong><code>require('@actions/github')</code> no longer works in
scripts.</strong> The upgrade to <code>@actions/github</code> v9
(ESM-only) means <code>require('@actions/github')</code> will fail at
runtime. If you previously used patterns like <code>const { getOctokit }
= require('@actions/github')</code> to create secondary clients, use the
new injected <code>getOctokit</code> function instead — it's available
directly in the script context with no imports needed.</li>
<li><code>getOctokit</code> is now an injected function parameter.
Scripts that declare <code>const getOctokit = ...</code> or <code>let
getOctokit = ...</code> will get a <code>SyntaxError</code> because
JavaScript does not allow <code>const</code>/<code>let</code>
redeclaration of function parameters. Use the injected
<code>getOctokit</code> directly, or use <code>var getOctokit =
...</code> if you need to redeclare it.</li>
<li>If your script accesses other <code>@actions/github</code> internals
beyond the standard <code>github</code>/<code>octokit</code> client, you
may need to update those references for v9 compatibility.</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Add ACTIONS_ORCHESTRATION_ID to user-agent string by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/695">actions/github-script#695</a></li>
<li>ci: use deployment: false for integration test environments by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/712">actions/github-script#712</a></li>
<li>feat!: add getOctokit to script context, upgrade
<code>@​actions/github</code> v9, <code>@​octokit/core</code> v7, and
related packages by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/700">actions/github-script#700</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/github-script/pull/695">actions/github-script#695</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/github-script/compare/v8.0.0...v9.0.0">https://github.com/actions/github-script/compare/v8.0.0...v9.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/github-script/commit/3a2844b7e9c422d3c10d287c895573f7108da1b3"><code>3a2844b</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/github-script/issues/700">#700</a>
from actions/salmanmkc/expose-getoctokit + prepare re...</li>
<li><a
href="https://github.com/actions/github-script/commit/ca10bbdd1a7739de09e99a200c7a59f5d73a4079"><code>ca10bbd</code></a>
fix: use <code>@​octokit/core/</code>types import for v7
compatibility</li>
<li><a
href="https://github.com/actions/github-script/commit/86e48e20ac85c970ed1f96e718fd068173948b7b"><code>86e48e2</code></a>
merge: incorporate main branch changes</li>
<li><a
href="https://github.com/actions/github-script/commit/c1084728b5b935ec4ddc1e4cee877b01797b3ff9"><code>c108472</code></a>
chore: rebuild dist for v9 upgrade and getOctokit factory</li>
<li><a
href="https://github.com/actions/github-script/commit/afff112e4f8b57c718168af75b89ce00bc8d091d"><code>afff112</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/github-script/issues/712">#712</a>
from actions/salmanmkc/deployment-false + fix user-ag...</li>
<li><a
href="https://github.com/actions/github-script/commit/ff8117e5b78c415f814f39ad6998f424fee7b817"><code>ff8117e</code></a>
ci: fix user-agent test to handle orchestration ID</li>
<li><a
href="https://github.com/actions/github-script/commit/81c6b7876079abe10ff715951c9fc7b3e1ab389d"><code>81c6b78</code></a>
ci: use deployment: false to suppress deployment noise from integration
tests</li>
<li><a
href="https://github.com/actions/github-script/commit/3953caf8858d318f37b6cc53a9f5708859b5a7b7"><code>3953caf</code></a>
docs: update README examples from <a
href="https://github.com/v8"><code>@​v8</code></a> to <a
href="https://github.com/v9"><code>@​v9</code></a>, add getOctokit docs
and v9 brea...</li>
<li><a
href="https://github.com/actions/github-script/commit/c17d55b90dcdb3d554d0027a6c180a7adc2daf78"><code>c17d55b</code></a>
ci: add getOctokit integration test job</li>
<li><a
href="https://github.com/actions/github-script/commit/a047196d9a02fe92098771cafbb98c2f1814e408"><code>a047196</code></a>
test: add getOctokit integration tests via callAsyncFunction</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/github-script/compare/ed597411d8f924073f98dfc5c65a23a2325f34cd...3a2844b7e9c422d3c10d287c895573f7108da1b3">compare
view</a></li>
</ul>
</details>
<br />

Updates `peter-evans/create-pull-request` from 8.1.0 to 8.1.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/peter-evans/create-pull-request/releases">peter-evans/create-pull-request's
releases</a>.</em></p>
<blockquote>
<h2>Create Pull Request v8.1.1</h2>
<h2>What's Changed</h2>
<ul>
<li>build(deps-dev): bump the npm group with 2 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4305">peter-evans/create-pull-request#4305</a></li>
<li>build(deps): bump minimatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4311">peter-evans/create-pull-request#4311</a></li>
<li>build(deps): bump the github-actions group with 2 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4316">peter-evans/create-pull-request#4316</a></li>
<li>build(deps): bump <code>@​tootallnate/once</code> and
jest-environment-jsdom by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4323">peter-evans/create-pull-request#4323</a></li>
<li>build(deps-dev): bump undici from 6.23.0 to 6.24.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4328">peter-evans/create-pull-request#4328</a></li>
<li>build(deps-dev): bump flatted from 3.3.1 to 3.4.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4334">peter-evans/create-pull-request#4334</a></li>
<li>build(deps): bump picomatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4339">peter-evans/create-pull-request#4339</a></li>
<li>build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4344">peter-evans/create-pull-request#4344</a></li>
<li>build(deps-dev): bump the npm group with 3 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4349">peter-evans/create-pull-request#4349</a></li>
<li>fix: retry post-creation API calls on 422 eventual consistency
errors by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4356">peter-evans/create-pull-request#4356</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-pull-request/compare/v8.1.0...v8.1.1">https://github.com/peter-evans/create-pull-request/compare/v8.1.0...v8.1.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/5f6978faf089d4d20b00c7766989d076bb2fc7f1"><code>5f6978f</code></a>
fix: retry post-creation API calls on 422 eventual consistency errors
(<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4356">#4356</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/d32e88dac789dcc7906e7d26f69f24116fa9c97d"><code>d32e88d</code></a>
build(deps-dev): bump the npm group with 3 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4349">#4349</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/8170bccad11c0df62542c04dcaefe36d342dfd39"><code>8170bcc</code></a>
build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4344">#4344</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/00418193b417f888dbf1d993c5c0d31d27fdc7de"><code>0041819</code></a>
build(deps): bump picomatch (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4339">#4339</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/b993918c8536b6d44706130734d5456879762b27"><code>b993918</code></a>
build(deps-dev): bump flatted from 3.3.1 to 3.4.2 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4334">#4334</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/36d7c8468b48f9c2f8f29e260e82f10d4b90d2bd"><code>36d7c84</code></a>
build(deps-dev): bump undici from 6.23.0 to 6.24.0 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4328">#4328</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/a45d1fb447fcaf601166e405fd4f335cde1a8aa8"><code>a45d1fb</code></a>
build(deps): bump <code>@​tootallnate/once</code> and
jest-environment-jsdom (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4323">#4323</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/3499eb61835cc0015c0b786e203d74b1e8f55e43"><code>3499eb6</code></a>
build(deps): bump the github-actions group with 2 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4316">#4316</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/3f3b473b8c148f5a7520efb4d1f9a70eea3d9d1f"><code>3f3b473</code></a>
build(deps): bump minimatch (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4311">#4311</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/6699836a213cf8b28c4f0408a404a6ac79d4458a"><code>6699836</code></a>
build(deps-dev): bump the npm group with 2 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4305">#4305</a>)</li>
<li>See full diff in <a
href="https://github.com/peter-evans/create-pull-request/compare/c0f553fe549906ede9cf27b5156039d195d2ece0...5f6978faf089d4d20b00c7766989d076bb2fc7f1">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.3.0 to 6.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"><code>48b55a0</code></a>
Update Node.js versions in versions.yml and bump package to v6.4.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1533">#1533</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/ab72c7e7eba0eaa11f8cab0f5679243900c2cac9"><code>ab72c7e</code></a>
Upgrade <a href="https://github.com/actions"><code>@​actions</code></a>
dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1525">#1525</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Update the readme with direct upload details by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/795">actions/upload-artifact#795</a></li>
<li>Readme: bump all the example versions to v7 by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/796">actions/upload-artifact#796</a></...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-06-09 10:49:31 +02:00
bot-githubaction a16ad4ab25 [bot] Update dist directory 2026-06-09 08:41:22 +00:00
github-actions[bot]andbot-githubaction e9965bd762 Update known wrapper checksums (#937)
Automatically generated pull request to update the known wrapper
checksums.

In case of conflicts, manually run the workflow from the [Actions
tab](https://github.com/gradle/actions/actions/workflows/update-checksums-file.yml),
the changes will then be force-pushed onto this pull request branch.
Do not manually update the pull request branch; those changes might get
overwritten.

> [!IMPORTANT]  
> GitHub workflows have not been executed for this pull request yet.
Before merging, close and then directly reopen this pull request to
trigger the workflows.

Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:40:40 +02:00
Bot Githubaction 6959d5a1db Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/kotlin-dsl (#965)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:40:09 +02:00
Bot Githubaction 139f652ee4 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/java-toolchain (#964)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:54 +02:00
Bot Githubaction 77818a6789 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/groovy-dsl (#963)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:38 +02:00
Bot Githubaction d0dd67506b Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/gradle-plugin (#962)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:15 +02:00
Bot Githubaction 0f159117b5 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /sources/test/init-scripts (#961)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:38:19 +02:00
Daz DeBoer 11d4d83c63 Update docs for v6 2026-04-03 15:25:10 -06:00
104 changed files with 3024 additions and 3399 deletions

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ name: 'Build and upload distribution'
runs:
using: "composite"
steps:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: npm
@@ -23,7 +23,7 @@ runs:
cp -r sources/dist .
- name: Upload distribution
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist/
-6
View File
@@ -15,12 +15,6 @@ updates:
npm-dependencies:
patterns:
- "*"
ignore:
# Keep actions/cache and actions/artifact major aligned and force actions/cache version to match patch
- dependency-name: "*actions/cache*"
- dependency-name: "*actions/artifact*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.0"
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.4.0"
id("com.gradle.develocity") version "4.4.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.0"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.0"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.0"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
+3 -3
View File
@@ -18,15 +18,15 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f # v6.0.1
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
@@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
dist/**
+3 -3
View File
@@ -31,11 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
with:
languages: ${{ matrix.language }}
config: |
@@ -43,4 +43,4 @@ jobs:
- sources/src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
+20 -6
View File
@@ -8,10 +8,6 @@ on:
paths-ignore:
- 'dist/**'
pull_request:
paths:
- '.github/workflows/ci-init-script-check.yml'
- 'sources/src/resources/init-scripts/**'
- 'sources/test/init-scripts/**'
workflow_dispatch:
permissions:
@@ -22,17 +18,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
# Detect whether anything relevant to the init-script tests changed.
# The workflow always runs (so it always reports a status check, making it safe
# to mark as required), but the heavy steps below are skipped on pull requests
# that don't touch the init-scripts. Pushes and manual runs always execute fully.
- name: Check for relevant changes
id: changes
if: github.event_name == 'pull_request'
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
.github/workflows/ci-init-script-check.yml
sources/src/resources/init-scripts/**
sources/test/init-scripts/**
- name: Setup Java
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f # v6.0.1
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
- name: Run integration tests
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
working-directory: sources/test/init-scripts
run: ./gradlew check
+25 -4
View File
@@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
@@ -28,7 +28,7 @@ jobs:
needs: build-distribution
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-caching
group: CI-integ-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
@@ -40,7 +40,7 @@ jobs:
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
group: CI-integ-test-other
group: CI-integ-test-other-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
@@ -52,8 +52,29 @@ jobs:
needs: other-integ-tests
uses: ./.github/workflows/suite-integ-test-dependency-submission.yml
concurrency:
group: CI-integ-test-dependency-submission
group: CI-integ-test-dependency-submission-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
# Aggregate gate: a single check that succeeds only when all integ-test jobs succeed.
# Require this one check in branch protection instead of every fanned-out matrix job.
integ-test-success:
if: ${{ always() }}
needs:
- build-distribution
- caching-integ-tests
- other-integ-tests
- dependency-submission-integ-tests
runs-on: ubuntu-latest
steps:
- name: Fail if any integ-test job failed or was cancelled
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "One or more integ-test jobs did not succeed:"
echo " build-distribution: ${{ needs.build-distribution.result }}"
echo " caching-integ-tests: ${{ needs.caching-integ-tests.result }}"
echo " other-integ-tests: ${{ needs.other-integ-tests.result }}"
echo " dependency-submission-integ-tests: ${{ needs.dependency-submission-integ-tests.result }}"
exit 1
+2 -2
View File
@@ -21,7 +21,7 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
show-progress: false
@@ -44,7 +44,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: 'Upload artifact'
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF file
path: results.sarif
+2 -2
View File
@@ -23,12 +23,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
validate-typings:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: typesafegithub/github-actions-typing@9ddf35b71a482be7d8922b28e8d00df16b77e315 # v2.2.2
with:
ignored-action-files: |
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: gradle/actions/wrapper-validation@39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f # v6.0.1
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+9 -9
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -120,7 +120,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -137,7 +137,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -154,7 +154,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -53,7 +53,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -62,7 +62,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -91,7 +91,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -105,7 +105,7 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest # This test only runs on Ubuntu
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -129,7 +129,7 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -146,7 +146,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -170,7 +170,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -80,7 +80,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -123,7 +123,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -160,7 +160,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -86,7 +86,7 @@ jobs:
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -58,7 +58,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -104,7 +104,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -124,7 +124,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -255,7 +255,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -272,7 +272,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -309,7 +309,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -350,7 +350,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -382,7 +382,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -401,7 +401,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,7 +60,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.4.0']
plugin-version: ['3.16.2', '4.4.2']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -43,7 +43,7 @@ jobs:
java-version: 11
- plugin-version: '3.16.2'
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
- plugin-version: '4.4.0'
- plugin-version: '4.4.2'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
@@ -55,7 +55,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -72,7 +72,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -92,7 +92,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.4.0']
plugin-version: ['3.16.2', '4.4.2']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -106,7 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -129,7 +129,7 @@ jobs:
run: "[ ${#GRADLE_ENTERPRISE_ACCESS_KEY} -gt 500 ] || (echo 'GRADLE_ENTERPRISE_ACCESS_KEY does not look like a short lived token'; exit 1)"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -148,7 +148,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.4.0' ]
plugin-version: [ '3.16.2', '4.4.2' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -191,7 +191,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.4.0' ]
plugin-version: [ '3.16.2', '4.4.2' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -205,7 +205,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -225,7 +225,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -77,7 +77,7 @@ jobs:
run: gradle help
- name: Check current version output parameter
if: ${{ !startsWith(steps.gradle-current.outputs.gradle-version , '9.') }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.gradle-current.outputs.gradle-version }}"')
@@ -105,7 +105,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -122,7 +122,7 @@ jobs:
gradle-version: ${{ matrix.gradle }}
- name: Check output parameter
if: ${{ steps.setup-gradle.outputs.gradle-version != matrix.gradle }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.setup-gradle.outputs.gradle-version }}"')
@@ -132,7 +132,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -24,7 +24,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,7 +43,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -54,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -77,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +100,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +125,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -111,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
sparse-checkout: |
.github
@@ -145,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2 # Checkout the repository with no wrappers
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
+3 -3
View File
@@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
@@ -48,7 +48,7 @@ jobs:
# If there are no changes, this action will not create a pull request
- name: Create or update pull request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
branch: bot/wrapper-checksums-update
author: bot-githubaction <bot-githubaction@gradle.com>
+3 -3
View File
@@ -39,7 +39,7 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: ./gradlew build
```
@@ -77,7 +77,7 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
See the [full action documentation](docs/dependency-submission.md) for more advanced usage scenarios.
@@ -106,7 +106,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: gradle/actions/wrapper-validation@v5
- uses: gradle/actions/wrapper-validation@v6
```
See the [full action documentation](docs/wrapper-validation.md) for more advanced usage scenarios.
+4 -4
View File
@@ -11,16 +11,16 @@
- Note: The gradle actions follow the GitHub Actions convention of including a .0 patch number for the first release of a minor version, unlike the Gradle convention which omits the trailing .0.
## Release gradle/actions
- Create a tag for the release. The tag should have the format `v5.0.0`
- From CLI: `git tag -s -m "v5.0.0" v5.0.0 && git push --tags`
- Create a tag for the release. The tag should have the format `v6.2.0`
- From CLI: `git tag -s -m "v6.2.0" v6.2.0 && git push --tags`
- Note that we sign the tag and set the commit message for the tag to the newly released version.
- Go to https://github.com/gradle/actions/releases and "Draft new release"
- Use the newly created tag and copy the tag name exactly as the release title.
- Craft release notes content based on issues closed, PRs merged and commits
- Include a Full changelog link in the format https://github.com/gradle/actions/compare/v2.12.0...v3.0.0
- Publish the release.
- Force push the `v5` tag (or current major version) to point to the new release. It is conventional for users to bind to a major release version using this tag.
- From CLI: `git tag -f -s -a -m "v5.0.0" v5 && git push -f --tags`
- Force push the `v6` tag (or current major version) to point to the new release. It is conventional for users to bind to a major release version using this tag.
- From CLI: `git tag -f -s -a -m "v6.2.0" v6 && git push -f --tags`
- Note that we sign the tag and set the commit message for the tag to the newly released version.
- Your HEAD must point at the commit to be tagged.
+1 -1
View File
@@ -29,7 +29,7 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
See the [full action documentation](../docs/dependency-submission.md) for more advanced usage scenarios.
+9 -3
View File
@@ -8,10 +8,16 @@ inputs:
type: string
dependency-resolution-task:
type: string
type: list
separator: ' '
list-item:
type: string
additional-arguments:
type: string
type: list
separator: ' '
list-item:
type: string
# Cache configuration
cache-provider:
@@ -115,7 +121,7 @@ inputs:
build-scan-terms-of-use-agree:
type: enum
allowed-values:
- 'yes'
- yes
develocity-access-key:
type: string
+162 -158
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var C3e=Object.create;var eM=Object.defineProperty;var I3e=Object.getOwnPropertyDescriptor;var y3e=Object.getOwnPropertyNames;var B3e=Object.getPrototypeOf,b3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)eM(t,r,{get:e[r],enumerable:!0})},Q3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y3e(e))!b3e.call(t,s)&&s!==r&&eM(t,s,{get:()=>e[s],enumerable:!(n=I3e(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?C3e(B3e(t)):{},Q3e(e||!t||!t.__esModule?eM(r,"default",{value:t,enumerable:!0}):r,t));var YX=m(gp=>{"use strict";var Pqt=b("net"),R3e=b("tls"),sM=b("http"),HX=b("https"),D3e=b("events"),Oqt=b("assert"),k3e=b("util");gp.httpOverHttp=v3e;gp.httpsOverHttp=_3e;gp.httpOverHttps=F3e;gp.httpsOverHttps=M3e;function v3e(t){var e=new tu(t);return e.request=sM.request,e}function _3e(t){var e=new tu(t);return e.request=sM.request,e.createSocket=GX,e.defaultPort=443,e}function F3e(t){var e=new tu(t);return e.request=HX.request,e}function M3e(t){var e=new tu(t);return e.request=HX.request,e.createSocket=GX,e.defaultPort=443,e}function tu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||sM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=qX(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}k3e.inherits(tu,D3e.EventEmitter);tu.prototype.addRequest=function(e,r,n,s){var i=this,o=iM({request:e},i.options,qX(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};tu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=iM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Cl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Cl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Cl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Cl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Cl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};tu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function GX(t,e){var r=this;tu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=iM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=R3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function qX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function iM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Cl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Cl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Cl=function(){};gp.debug=Cl});var oM=m((Gqt,VX)=>{VX.exports=YX()});var Br=m((qqt,WX)=>{WX.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=m((Yqt,mZ)=>{"use strict";var JX=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[JX]===!0}[JX]=!0},zX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),aM=class extends br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[zX]===!0}[zX]=!0},jX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),AM=class extends br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jX]===!0}[jX]=!0},KX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),cM=class extends br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[KX]===!0}[KX]=!0},$X=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),uM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[$X]===!0}[$X]=!0},XX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),lM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function X4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(M4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function Z4e(){return"allowed"}function e6e(){return"success"}function t6e(){return"success"}function r6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n6e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&rL(t.origin)&&!rL(jC(t))&&(e=null);break;case"same-origin":T1(t,jC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function wp(t,e){return t}function s6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:wp(t.domainLookupStartTime,r),domainLookupEndTime:wp(t.domainLookupEndTime,r),connectionStartTime:wp(t.connectionStartTime,r),connectionEndTime:wp(t.connectionEndTime,r),secureConnectionStartTime:wp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function i6e(t){return wp(H4e.now(),t)}function o6e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Dee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function a6e(t){return{referrerPolicy:t.referrerPolicy}}function A6e(t){let e=t.referrerPolicy;wh(e);let r=null;if(t.referrer==="client"){let a=wee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=tL(r),s=tL(r,!0);n.toString().length>4096&&(n=s);let i=T1(t,n),o=zC(n)&&!zC(t.url);switch(e){case"origin":return s??tL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=jC(t);return T1(n,a)?n:zC(n)&&!zC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function tL(t,e){return wh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function zC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function c6e(t,e){if(N1===void 0)return!0;let r=kee(e);if(r==="no metadata"||r.length===0)return!0;let n=l6e(r),s=d6e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=N1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),h6e(A,a))return!0}return!1}var u6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=u6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Nee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function l6e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function d6e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function h6e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function f6e(t){}function T1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function g6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function p6e(t){return t.controller.state==="aborted"}function m6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function E6e(t){return Y4e[t.toLowerCase()]??t}function C6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wh(typeof e=="string"),e}var I6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function vee(t,e,r=0,n=1){class s{ Line truncated
`);function K6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function $6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function X6e(t,e){R1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&D1(t,z6e,i)||i.position===t.length-4&&D1(t,j6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Z6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",K6e(u)||(u=""),h=new W6e([d],c,{type:u})):h=H6e(Buffer.from(d)),R1(Vee(A)),R1(typeof h=="string"&&Vee(h)||q6e(h)),s.push(Y6e(A,h,c))}}function Z6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Np(a=>a!==10&&a!==13&&a!==58,t,e);if(o=cL(o,!0,!0,a=>a===9||a===32),!G6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Np(a=>a===32||a===9,t,e),O6e(o)){case"content-disposition":{if(r=n=null,!D1(t,J6e,e)||(e.position+=17,r=zee(t,e),r===null))return"failure";if(D1(t,Jee,e)){let a=e.position+Jee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=zee(t,e),n===null))return"failure"}break}case"content-type":{let a=Np(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),s=Wee(a);break}case"content-transfer-encoding":{let a=Np(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),i=Wee(a);break}default:Np(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function zee(t,e){R1(t[e.position-1]===34);let r=Np(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Np(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function cL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function D1(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}jee.exports={multipartFormDataParser:X6e,validateBoundary:$6e}});var Rp=m((gYt,ote)=>{"use strict";var XC=dt(),{ReadableStreamFrom:e5e,isBlobLike:$ee,isReadableStreamLike:t5e,readableStreamClose:r5e,createDeferredPromise:n5e,fullyReadBody:s5e,extractMimeType:i5e,utf8DecodeBytes:ete}=Ti(),{FormData:Xee}=$C(),{kState:xp}=Il(),{webidl:o5e}=jn(),{Blob:a5e}=b("node:buffer"),uL=b("node:assert"),{isErrored:tte,isDisturbed:A5e}=b("node:stream"),{isArrayBuffer:c5e}=b("node:util/types"),{serializeAMimeType:u5e}=Xs(),{multipartFormDataParser:l5e}=Kee(),lL;try{let t=b("node:crypto");lL=e=>t.randomInt(0,e)}catch{lL=t=>Math.floor(Math.random(t))}var k1=new TextEncoder;function d5e(){}var rte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nte;rte&&(nte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!A5e(e)&&!tte(e)&&e.cancel("Response object has been garbage collected").catch(d5e)}));function ste(t,e=!1){let r=null;t instanceof ReadableStream?r=t:$ee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?k1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>r5e(A))},start(){},type:"bytes"}),uL(t5e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(c5e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let A=`----formdata-undici-0${`${lL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var X8e=Object.create;var $M=Object.defineProperty;var Z8e=Object.getOwnPropertyDescriptor;var e4e=Object.getOwnPropertyNames;var t4e=Object.getPrototypeOf,r4e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},n4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of e4e(e))!r4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=Z8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?X8e(t4e(t)):{},n4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var HZ=E(Hp=>{"use strict";var D7t=b("net"),A4e=b("tls"),tL=b("http"),UZ=b("https"),u4e=b("events"),k7t=b("assert"),l4e=b("util");Hp.httpOverHttp=d4e;Hp.httpsOverHttp=h4e;Hp.httpOverHttps=f4e;Hp.httpsOverHttps=g4e;function d4e(t){var e=new uu(t);return e.request=tL.request,e}function h4e(t){var e=new uu(t);return e.request=tL.request,e.createSocket=PZ,e.defaultPort=443,e}function f4e(t){var e=new uu(t);return e.request=UZ.request,e}function g4e(t){var e=new uu(t);return e.request=UZ.request,e.createSocket=PZ,e.defaultPort=443,e}function uu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=OZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}l4e.inherits(uu,u4e.EventEmitter);uu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,OZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};uu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Rl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Rl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Rl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Rl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Rl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};uu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function PZ(t,e){var r=this;uu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=A4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function OZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Rl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Rl=function(){};Hp.debug=Rl});var nL=E((_7t,GZ)=>{GZ.exports=HZ()});var yr=E((F7t,qZ)=>{qZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((M7t,fee)=>{"use strict";var YZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[YZ]===!0}[YZ]=!0},VZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=class extends Br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[VZ]===!0}[VZ]=!0},WZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=class extends Br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[WZ]===!0}[WZ]=!0},JZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=class extends Br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[JZ]===!0}[JZ]=!0},zZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function D5e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(g5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function k5e(){return"allowed"}function v5e(){return"success"}function _5e(){return"success"}function F5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function M5e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function $p(t,e){return t}function L5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:$p(t.domainLookupStartTime,r),domainLookupEndTime:$p(t.domainLookupEndTime,r),connectionStartTime:$p(t.connectionStartTime,r),connectionEndTime:$p(t.connectionEndTime,r),secureConnectionStartTime:$p(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function U5e(t){return $p(I5e.now(),t)}function P5e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Tte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function O5e(t){return{referrerPolicy:t.referrerPolicy}}function H5e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=Bte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=pS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=NI(t);return pS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return Vh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function SI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function G5e(t,e){if(gS===void 0)return!0;let r=xte(e);if(r==="no metadata"||r.length===0)return!0;let n=Y5e(r),s=V5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=gS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),W5e(c,a))return!0}return!1}var q5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function xte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=q5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Qte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Y5e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function V5e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function W5e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function J5e(t){}function pS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function z5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function j5e(t){return t.controller.state==="aborted"}function K5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function $5e(t){return b5e[t.toLowerCase()]??t}function X5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Vh(typeof e=="string"),e}var Z5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Rte(t,e,r=0,n=1){class s{ Line truncated
`);function xHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function RHe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function DHe(t,e){ES(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&CS(t,NHe,i)||i.position===t.length-4&&CS(t,THe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=kHe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",xHe(u)||(u=""),h=new wHe([d],A,{type:u})):h=IHe(Buffer.from(d)),ES(Gte(c)),ES(typeof h=="string"&&Gte(h)||BHe(h)),s.push(bHe(c,h,A))}}function kHe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Zp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!yHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Zp(a=>a===32||a===9,t,e),CHe(o)){case"content-disposition":{if(r=n=null,!CS(t,SHe,e)||(e.position+=17,r=Vte(t,e),r===null))return"failure";if(CS(t,Yte,e)){let a=e.position+Yte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Vte(t,e),n===null))return"failure"}break}case"content-type":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=qte(a);break}case"content-transfer-encoding":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=qte(a);break}default:Zp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Vte(t,e){ES(t[e.position-1]===34);let r=Zp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Zp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function CS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Wte.exports={multipartFormDataParser:DHe,validateBoundary:RHe}});var rm=E((aWt,nre)=>{"use strict";var RI=dt(),{ReadableStreamFrom:vHe,isBlobLike:zte,isReadableStreamLike:_He,readableStreamClose:FHe,createDeferredPromise:MHe,fullyReadBody:LHe,extractMimeType:UHe,utf8DecodeBytes:$te}=xi(),{FormData:jte}=xI(),{kState:tm}=Dl(),{webidl:PHe}=Kn(),{Blob:OHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Xte,isDisturbed:HHe}=b("node:stream"),{isArrayBuffer:GHe}=b("node:util/types"),{serializeAMimeType:qHe}=Ks(),{multipartFormDataParser:YHe}=Jte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function VHe(){}var Zte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ere;Zte&&(ere=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!HHe(e)&&!Xte(e)&&e.cancel("Response object has been garbage collected").catch(VHe)}));function tre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:zte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?IS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>FHe(c))},start(){},type:"bytes"}),aU(_He(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(GHe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=k1.encode(c+`; name="${u(l(I))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=IS.encode(A+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=k1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=IS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=k1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if($ee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:e5e(t)}if((typeof s=="string"||XC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!tte(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function h5e(t,e=!1){return t instanceof ReadableStream&&(uL(!XC.isDisturbed(t),"The body has already been consumed."),uL(!t.locked,"The stream is locked.")),ste(t,e)}function f5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function g5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function p5e(t){return{blob(){return Tp(this,r=>{let n=Zee(this);return n===null?n="":n&&(n=u5e(n)),new a5e([r],{type:n})},t)},arrayBuffer(){return Tp(this,r=>new Uint8Array(r).buffer,t)},text(){return Tp(this,ete,t)},json(){return Tp(this,E5e,t)},formData(){return Tp(this,r=>{let n=Zee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=l5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Xee;return i[xp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Xee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Tp(this,r=>new Uint8Array(r),t)}}}function m5e(t){Object.assign(t.prototype,p5e(t))}async function Tp(t,e,r){if(o5e.brandCheck(t,r),ite(t))throw new TypeError("Body is unusable: Body has already been read");g5e(t[xp]);let n=n5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[xp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await s5e(t[xp].body,i,s),n.promise)}function ite(t){let e=t[xp].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}function E5e(t){return JSON.parse(ete(t))}function Zee(t){let e=t[xp].headersList,r=i5e(e);return r==="failure"?null:r}ote.exports={extractBody:ste,safelyExtractBody:h5e,cloneBody:f5e,mixinBody:m5e,streamRegistry:nte,hasFinalizationRegistry:rte,bodyUnusable:ite}});var mte=m((pYt,pte)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:ate}=mp(),dL=JM(),{RequestContentLengthMismatchError:Sh,ResponseContentLengthMismatchError:C5e,RequestAbortedError:hte,HeadersTimeoutError:I5e,HeadersOverflowError:y5e,SocketError:U1,InformationalError:Dp,BodyTimeoutError:B5e,HTTPParserError:b5e,ResponseExceededMaxSizeError:Q5e}=Lt(),{kUrl:fte,kReset:Zs,kClient:pL,kParser:Mr,kBlocking:tI,kRunning:is,kPending:w5e,kSize:Ate,kWriting:Bl,kQueue:ba,kNoRef:ZC,kKeepAliveDefaultTimeout:S5e,kHostHeader:N5e,kPendingIdx:T5e,kRunningIdx:yo,kError:Bo,kPipelining:M1,kSocket:kp,kKeepAliveTimeoutValue:P1,kMaxHeadersSize:hL,kKeepAliveMaxTimeout:x5e,kKeepAliveTimeoutThreshold:R5e,kHeadersTimeout:D5e,kBodyTimeout:k5e,kStrictContentLength:mL,kMaxRequests:cte,kCounter:v5e,kMaxResponseSize:_5e,kOnError:F5e,kResume:yl,kHTTPContext:gte}=Br(),EA=nee(),M5e=Buffer.alloc(0),v1=Buffer[Symbol.species],_1=Ze.addListener,L5e=Ze.removeAllListeners,fL;async function U5e(){let t=process.env.JEST_WORKER_ID?KM():void 0,e;try{e=await WebAssembly.compile(oee())}catch{e=await WebAssembly.compile(t||KM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onStatus(new v1(CA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onHeaderField(new v1(CA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onHeaderValue(new v1(CA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onBody(new v1(CA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var gL=null,EL=U5e();EL.catch();var fn=null,CA=null,F1=0,IA=null,P5e=0,eI=1,vp=2|eI,L1=4|eI,CL=8|P5e,IL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[hL])&&e[hL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(EA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=IS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(zte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vHe(t)}if((typeof s=="string"||RI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Xte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function WHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),tre(t,e)}function JHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function zHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function jHe(t){return{blob(){return em(this,r=>{let n=Kte(this);return n===null?n="":n&&(n=qHe(n)),new OHe([r],{type:n})},t)},arrayBuffer(){return em(this,r=>new Uint8Array(r).buffer,t)},text(){return em(this,$te,t)},json(){return em(this,$He,t)},formData(){return em(this,r=>{let n=Kte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=YHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new jte;return i[tm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new jte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return em(this,r=>new Uint8Array(r),t)}}}function KHe(t){Object.assign(t.prototype,jHe(t))}async function em(t,e,r){if(PHe.brandCheck(t,r),rre(t))throw new TypeError("Body is unusable: Body has already been read");zHe(t[tm]);let n=MHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[tm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await LHe(t[tm].body,i,s),n.promise)}function rre(t){let e=t[tm].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function $He(t){return JSON.parse($te(t))}function Kte(t){let e=t[tm].headersList,r=UHe(e);return r==="failure"?null:r}nre.exports={extractBody:tre,safelyExtractBody:WHe,cloneBody:JHe,mixinBody:KHe,streamRegistry:ere,hasFinalizationRegistry:Zte,bodyUnusable:rre}});var fre=E((cWt,hre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:sre}=qp(),AU=YL(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:XHe,RequestAbortedError:ure,HeadersTimeoutError:ZHe,HeadersOverflowError:e9e,SocketError:SS,InformationalError:nm,BodyTimeoutError:t9e,HTTPParserError:r9e,ResponseExceededMaxSizeError:n9e}=Lt(),{kUrl:lre,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:s9e,kSize:ire,kWriting:vl,kQueue:xa,kNoRef:DI,kKeepAliveDefaultTimeout:i9e,kHostHeader:o9e,kPendingIdx:a9e,kRunningIdx:Qo,kError:wo,kPipelining:QS,kSocket:sm,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:c9e,kKeepAliveTimeoutThreshold:A9e,kHeadersTimeout:u9e,kBodyTimeout:l9e,kStrictContentLength:fU,kMaxRequests:ore,kCounter:d9e,kMaxResponseSize:h9e,kOnError:f9e,kResume:kl,kHTTPContext:dre}=yr(),Nc=ete(),g9e=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Xe.addListener,p9e=Xe.removeAllListeners,lU;async function m9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(nte())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onStatus(new yS(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onHeaderField(new yS(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onHeaderValue(new yS(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onBody(new yS(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=m9e();gU.catch();var gn=null,Tc=null,bS=0,xc=null,E9e=0,kI=1,im=2|kI,wS=4|kI,pU=8|E9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Nc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[N5e],i?p+=`connection: upgrade\r
`:p+=t[o9e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[M1]&&!h[Zs]?p+=`connection: keep-alive\r
`:t[QS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return ate.sendHeaders.hasSubscribers&&ate.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?lte(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?lte(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?dte(f,A.stream(),t,e,h,u,p,l):V5e(f,A,t,e,h,u,p,l):Ze.isStream(A)?Y5e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?dte(f,A,t,e,h,u,p,l):Ge(!1),!0}function Y5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new O1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new hte;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[Bl]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ze.destroy(e,f):Ze.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function lte(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return sre.sendHeaders.hasSubscribers&&sre.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?cre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?cre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Are(f,c.stream(),t,e,h,u,p,l):Q9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?b9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?Are(f,c,t,e,h,u,p,l):Ge(!1),!0}function b9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ure;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[vl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function cre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Zs]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[yl]()}catch(A){t(A)}}async function V5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[kl]()}catch(c){t(c)}}async function Q9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Zs]=!0),r[yl]()}catch(A){t(A)}}async function dte(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Bo]?h(s[Bo]):A=d});s.on("close",c).on("drain",c);let l=new O1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Bo])throw s[Bo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var O1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Bl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bo])throw r[Bo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[mL])throw new Sh;process.emitWarning(new Sh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[kl]()}catch(c){t(c)}}async function Are(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var TS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[vl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===vp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Bl]=!1,e[Bo])throw e[Bo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===im&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vl]=!1,e[wo])throw e[wo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[mL])throw new Sh;process.emitWarning(new Sh)}e[Mr].timeout&&e[Mr].timeoutType===vp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[yl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Bl]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};pte.exports=O5e});var wte=m((mYt,Qte)=>{"use strict";var bo=b("node:assert"),{pipeline:W5e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:yL,RequestAbortedError:Ete,SocketError:rI,InformationalError:BL}=Lt(),{kUrl:H1,kReset:q1,kClient:_p,kRunning:Y1,kPending:J5e,kQueue:bl,kPendingIdx:bL,kRunningIdx:Qa,kError:Sa,kSocket:Rn,kStrictContentLength:z5e,kOnError:QL,kMaxConcurrentStreams:bte,kHTTP2Session:wa,kResume:Ql,kSize:j5e,kHTTPContext:K5e}=Br(),au=Symbol("open streams"),Cte,Ite=!1,G1;try{G1=b("node:http2")}catch{G1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$5e,HTTP2_HEADER_METHOD:X5e,HTTP2_HEADER_PATH:Z5e,HTTP2_HEADER_SCHEME:eHe,HTTP2_HEADER_CONTENT_LENGTH:tHe,HTTP2_HEADER_EXPECT:rHe,HTTP2_HEADER_STATUS:nHe}}=G1;function sHe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function iHe(t,e){t[Rn]=e,Ite||(Ite=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=G1.connect(t[H1],{createConnection:()=>e,peerMaxConcurrentStreams:t[bte]});r[au]=0,r[_p]=t,r[Rn]=e,Et.addListener(r,"error",aHe),Et.addListener(r,"frameError",AHe),Et.addListener(r,"end",cHe),Et.addListener(r,"goaway",uHe),Et.addListener(r,"close",function(){let{[_p]:s}=this,{[Rn]:i}=s,o=this[Rn][Sa]||this[Sa]||new rI("closed",Et.getSocketInfo(i));if(s[wa]=null,s.destroyed){bo(s[J5e]===0);let a=s[bl].splice(s[Qa]);for(let A=0;A<a.length;A++){let c=a[A];Et.errorRequest(s,c,o)}}}),r.unref(),t[wa]=r,e[wa]=r,Et.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[_p][QL](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new rI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Sa]||new rI("closed",Et.getSocketInfo(this));t[Rn]=null,this[wa]!=null&&this[wa].destroy(s),t[bL]=t[Qa],bo(t[Y1]===0),t.emit("disconnect",t[H1],[t],s),t[Ql]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return dHe(t,...s)},resume(){oHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function oHe(t){let e=t[Rn];e?.destroyed===!1&&(t[j5e]===0&&t[bte]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function aHe(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][Sa]=t,this[_p][QL](t)}function AHe(t,e,r){if(r===0){let n=new BL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][Sa]=n,this[_p][QL](n)}}function cHe(){let t=new rI("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function uHe(t){let e=this[Sa]||new rI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[_p];if(r[Rn]=null,r[K5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),Et.destroy(this[Rn],e),r[Qa]<r[bl].length){let n=r[bl][r[Qa]];r[bl][r[Qa]++]=null,Et.errorRequest(r,n,e),r[bL]=r[Qa]}bo(r[Y1]===0),r.emit("disconnect",r[H1],[r],e),r[Ql]()}function lHe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function dHe(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],Y=c[R+1];if(Array.isArray(Y))for(let v=0;v<Y.length;v++)l[M]?l[M]+=`,${Y[v]}`:l[M]=Y[v];else l[M]=Y}let d,{hostname:h,port:f}=t[H1];l[$5e]=i||`${h}${f?`:${f}`:""}`,l[X5e]=n;let p=R=>{e.aborted||e.completed||(R=R||new Ete,Et.errorRequest(t,e,R),d!=null&&Et.destroy(d,R),Et.destroy(u,R),t[bl][t[Qa]++]=null,t[Ql]())};try{e.onConnect(p)}catch(R){Et.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[au],t[bl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[au],t[bl][t[Qa]++]=null}),d.once("close",()=>{r[au]-=1,r[au]===0&&r.unref()}),!0;l[Z5e]=s,l[eHe]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Et.bodyLength(u);if(Et.isFormDataLike(u)){Cte??=Rp().extractBody;let[R,M]=Cte(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),lHe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[z5e])return Et.errorRequest(t,e,new yL),!1;process.emitWarning(new yL)}E!=null&&(bo(u,"no body must not have content length"),l[tHe]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[rHe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[UHe]=A??3e5,this[LHe]=s??3e5,this[PHe]=C??!0,this[OHe]=R,this[TL]=Y,this[Sl]=null,this[VHe]=P>-1?P:-1,this[JHe]=ee??100,this[Kr]=null,this[Na]=[],this[cu]=0,this[Ta]=0,this[oI]=Ae=>RL(this,Ae),this[WHe]=Ae=>Lte(this,Ae)}get pipelining(){return this[z1]}set pipelining(e){this[z1]=e,this[oI](!0)}get[cI](){return this[Na].length-this[Ta]}get[AI](){return this[Ta]-this[cu]}get[aI](){return this[Na].length-this[cu]}get[RHe](){return!!this[Kr]&&!this[Mp]&&!this[Kr].destroyed}get[NL](){return!!(this[Kr]?.busy(null)||this[aI]>=(Mte(this)||1)||this[cI]>0)}[xHe](e){Ute(this),this.once("connect",e)}[YHe](e,r){let n=e.origin||this[BA].origin,s=new bHe(n,e,r);return this[Na].push(s),this[Th]||(Nh.bodyLength(s.body)==null&&Nh.isIterable(s.body)?(this[Th]=1,queueMicrotask(()=>RL(this))):this[oI](!0)),this[Th]&&this[Nl]!==2&&this[NL]&&(this[Nl]=2),this[Nl]<2}async[GHe](){return new Promise(e=>{this[aI]?this[Sl]=e:e(null)})}async[qHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Nh.errorRequest(this,o,e)}let s=()=>{this[Sl]&&(this[Sl](),this[Sl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[oI]()})}},KHe=J1();function Lte(t,e){if(t[AI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Au(t[Ta]===t[cu]);let r=t[Na].splice(t[cu]);for(let n=0;n<r.length;n++){let s=r[n];Nh.errorRequest(t,s,e)}Au(t[aI]===0)}}async function Ute(t){Au(!t[Mp]),Au(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[BA];if(r[0]==="["){let i=r.indexOf("]");Au(i!==-1);let o=r.substring(1,i);Au(Fte.isIP(o)),r=o}t[Mp]=!0,Fp.beforeConnect.hasSubscribers&&Fp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[wl],localAddress:t[iI]},connector:t[sI]});try{let i=await new Promise((o,a)=>{t[sI]({host:e,hostname:r,protocol:n,port:s,servername:t[wl],localAddress:t[iI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Nh.destroy(i.on("error",vte),new SHe);return}Au(i);try{t[Kr]=i.alpnProtocol==="h2"?await jHe(t,i):await zHe(t,i)}catch(o){throw i.destroy().on("error",vte),o}t[Mp]=!1,i[HHe]=0,i[TL]=t[TL],i[THe]=t,i[kHe]=null,Fp.connected.hasSubscribers&&Fp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[wl],localAddress:t[iI]},connector:t[sI],socket:i}),t.emit("connect",t[BA],[t])}catch(i){if(t.destroyed)return;if(t[Mp]=!1,Fp.connectError.hasSubscribers&&Fp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[wl],localAddress:t[iI]},connector:t[sI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Au(t[AI]===0);t[cI]>0&&t[Na][t[Ta]].servername===t[wl];){let o=t[Na][t[Ta]++];Nh.errorRequest(t,o,i)}else Lte(t,i);t.emit("connectionError",t[BA],[t],i)}t[oI]()}function _te(t){t[Nl]=0,t.emit("drain",t[BA],[t])}function RL(t,e){t[Th]!==2&&(t[Th]=2,$He(t,e),t[Th]=0,t[cu]>256&&(t[Na].splice(0,t[cu]),t[Ta]-=t[cu],t[cu]=0))}function $He(t,e){for(;;){if(t.destroyed){Au(t[cI]===0);return}if(t[Sl]&&!t[aI]){t[Sl](),t[Sl]=null;return}if(t[Kr]&&t[Kr].resume(),t[NL])t[Nl]=2;else if(t[Nl]===2){e?(t[Nl]=1,queueMicrotask(()=>_te(t))):_te(t);continue}if(t[cI]===0||t[AI]>=(Mte(t)||1))return;let r=t[Na][t[Ta]];if(t[BA].protocol==="https:"&&t[wl]!==r.servername){if(t[AI]>0)return;t[wl]=r.servername,t[Kr]?.destroy(new wHe("servername changed"),()=>{t[Kr]=null,RL(t)})}if(t[Mp])return;if(!t[Kr]){Ute(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}Pte.exports=xL});var DL=m((BYt,Ote)=>{"use strict";var j1=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Ote.exports=class{constructor(){this.head=this.tail=new j1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new j1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Gte=m((bYt,Hte)=>{var{kFree:XHe,kConnected:ZHe,kPending:e9e,kQueued:t9e,kRunning:r9e,kSize:n9e}=Br(),xh=Symbol("pool"),kL=class{constructor(e){this[xh]=e}get connected(){return this[xh][ZHe]}get free(){return this[xh][XHe]}get pending(){return this[xh][e9e]}get queued(){return this[xh][t9e]}get running(){return this[xh][r9e]}get size(){return this[xh][n9e]}};Hte.exports=kL});var UL=m((QYt,Xte)=>{"use strict";var s9e=yp(),i9e=DL(),{kConnected:vL,kSize:qte,kRunning:Yte,kPending:Vte,kQueued:uI,kBusy:o9e,kFree:a9e,kUrl:A9e,kClose:c9e,kDestroy:u9e,kDispatch:l9e}=Br(),d9e=Gte(),ei=Symbol("clients"),Ts=Symbol("needDrain"),lI=Symbol("queue"),_L=Symbol("closed resolve"),FL=Symbol("onDrain"),Wte=Symbol("onConnect"),Jte=Symbol("onDisconnect"),zte=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Wh;process.emitWarning(new Wh)}e[Mr].timeout&&e[Mr].timeoutType===im&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[kl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[vl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};hre.exports=C9e});var Bre=E((AWt,yre)=>{"use strict";var So=b("node:assert"),{pipeline:w9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:gre,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:xS,kReset:DS,kClient:om,kRunning:kS,kPending:S9e,kQueue:_l,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Dn,kStrictContentLength:N9e,kOnError:yU,kMaxConcurrentStreams:Ire,kHTTP2Session:Da,kResume:Fl,kSize:T9e,kHTTPContext:x9e}=yr(),pu=Symbol("open streams"),pre,mre=!1,RS;try{RS=b("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:R9e,HTTP2_HEADER_METHOD:D9e,HTTP2_HEADER_PATH:k9e,HTTP2_HEADER_SCHEME:v9e,HTTP2_HEADER_CONTENT_LENGTH:_9e,HTTP2_HEADER_EXPECT:F9e,HTTP2_HEADER_STATUS:M9e}}=RS;function L9e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function U9e(t,e){t[Dn]=e,mre||(mre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=RS.connect(t[xS],{createConnection:()=>e,peerMaxConcurrentStreams:t[Ire]});r[pu]=0,r[om]=t,r[Dn]=e,Et.addListener(r,"error",O9e),Et.addListener(r,"frameError",H9e),Et.addListener(r,"end",G9e),Et.addListener(r,"goaway",q9e),Et.addListener(r,"close",function(){let{[om]:s}=this,{[Dn]:i}=s,o=this[Dn][ka]||this[ka]||new _I("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[S9e]===0);let a=s[_l].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[om][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new _I("closed",Et.getSocketInfo(this));t[Dn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Fl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return V9e(t,...s)},resume(){P9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function P9e(t){let e=t[Dn];e?.destroyed===!1&&(t[T9e]===0&&t[Ire]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function O9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][ka]=t,this[om][yU](t)}function H9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][ka]=n,this[om][yU](n)}}function G9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function q9e(t){let e=this[ka]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[om];if(r[Dn]=null,r[x9e]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Dn],e),r[Ra]<r[_l].length){let n=r[_l][r[Ra]];r[_l][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Fl]()}function Y9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function V9e(t,e){let r=t[Da],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[xS];l[R9e]=i||`${h}${f?`:${f}`:""}`,l[D9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new gre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[_l][t[Ra]++]=null,t[Fl]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[_l][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[_l][t[Ra]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[k9e]=s,l[v9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){pre??=rm().extractBody;let[N,M]=pre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),Y9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[N9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[_9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[F9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[mGe]=c??3e5,this[pGe]=s??3e5,this[EGe]=C??!0,this[CGe]=N,this[wU]=O,this[Ll]=null,this[QGe]=P>-1?P:-1,this[SGe]=ee??100,this[Kr]=null,this[va]=[],this[Eu]=0,this[_a]=0,this[UI]=ce=>NU(this,ce),this[wGe]=ce=>_re(this,ce)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[va].length-this[_a]}get[OI](){return this[_a]-this[Eu]}get[PI](){return this[va].length-this[Eu]}get[AGe](){return!!this[Kr]&&!this[cm]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(vre(this)||1)||this[HI]>0)}[cGe](e){Fre(this),this.once("connect",e)}[bGe](e,r){let n=e.origin||this[Dc].origin,s=new rGe(n,e,r);return this[va].push(s),this[zh]||(Jh.bodyLength(s.body)==null&&Jh.isIterable(s.body)?(this[zh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[zh]&&this[Ul]!==2&&this[QU]&&(this[Ul]=2),this[Ul]<2}async[yGe](){return new Promise(e=>{this[PI]?this[Ll]=e:e(null)})}async[BGe](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Jh.errorRequest(this,o,e)}let s=()=>{this[Ll]&&(this[Ll](),this[Ll]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},xGe=FS();function _re(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[_a]===t[Eu]);let r=t[va].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Jh.errorRequest(t,s,e)}mu(t[PI]===0)}}async function Fre(t){mu(!t[cm]),mu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Dc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(kre.isIP(o)),r=o}t[cm]=!0,am.beforeConnect.hasSubscribers&&am.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ml],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Jh.destroy(i.on("error",Rre),new iGe);return}mu(i);try{t[Kr]=i.alpnProtocol==="h2"?await TGe(t,i):await NGe(t,i)}catch(o){throw i.destroy().on("error",Rre),o}t[cm]=!1,i[IGe]=0,i[wU]=t[wU],i[aGe]=t,i[lGe]=null,am.connected.hasSubscribers&&am.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[cm]=!1,am.connectError.hasSubscribers&&am.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[OI]===0);t[HI]>0&&t[va][t[_a]].servername===t[Ml];){let o=t[va][t[_a]++];Jh.errorRequest(t,o,i)}else _re(t,i);t.emit("connectionError",t[Dc],[t],i)}t[UI]()}function Dre(t){t[Ul]=0,t.emit("drain",t[Dc],[t])}function NU(t,e){t[zh]!==2&&(t[zh]=2,RGe(t,e),t[zh]=0,t[Eu]>256&&(t[va].splice(0,t[Eu]),t[_a]-=t[Eu],t[Eu]=0))}function RGe(t,e){for(;;){if(t.destroyed){mu(t[HI]===0);return}if(t[Ll]&&!t[PI]){t[Ll](),t[Ll]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ul]=2;else if(t[Ul]===2){e?(t[Ul]=1,queueMicrotask(()=>Dre(t))):Dre(t);continue}if(t[HI]===0||t[OI]>=(vre(t)||1))return;let r=t[va][t[_a]];if(t[Dc].protocol==="https:"&&t[Ml]!==r.servername){if(t[OI]>0)return;t[Ml]=r.servername,t[Kr]?.destroy(new sGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[cm])return;if(!t[Kr]){Fre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}Mre.exports=SU});var TU=E((fWt,Lre)=>{"use strict";var LS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Lre.exports=class{constructor(){this.head=this.tail=new LS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Pre=E((gWt,Ure)=>{var{kFree:DGe,kConnected:kGe,kPending:vGe,kQueued:_Ge,kRunning:FGe,kSize:MGe}=yr(),jh=Symbol("pool"),xU=class{constructor(e){this[jh]=e}get connected(){return this[jh][kGe]}get free(){return this[jh][DGe]}get pending(){return this[jh][vGe]}get queued(){return this[jh][_Ge]}get running(){return this[jh][FGe]}get size(){return this[jh][MGe]}};Ure.exports=xU});var FU=E((pWt,jre)=>{"use strict";var LGe=Jp(),UGe=TU(),{kConnected:RU,kSize:Ore,kRunning:Hre,kPending:Gre,kQueued:GI,kBusy:PGe,kFree:OGe,kUrl:HGe,kClose:GGe,kDestroy:qGe,kDispatch:YGe}=yr(),VGe=Pre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),qre=Symbol("onConnect"),Yre=Symbol("onDisconnect"),Vre=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};sse.exports=UU});var hS=m((XYt,cse)=>{"use strict";var ose=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Uqe}=Lt(),Pqe=Pp();Ase()===void 0&&ase(new Pqe);function ase(t){if(!t||typeof t.dispatch!="function")throw new Uqe("Argument agent must implement Agent");Object.defineProperty(globalThis,ose,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ase(){return globalThis[ose]}cse.exports={setGlobalDispatcher:ase,getGlobalDispatcher:Ase}});var fS=m((eVt,use)=>{"use strict";use.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var dse=m((tVt,lse)=>{"use strict";var Oqe=W1();lse.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Oqe(r,o,s,i);return r(a,A)}}});var fse=m((rVt,hse)=>{"use strict";var Hqe=nS();hse.exports=t=>e=>function(n,s){return e(n,new Hqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var pse=m((nVt,gse)=>{"use strict";var Gqe=dt(),{InvalidArgumentError:qqe,RequestAbortedError:Yqe}=Lt(),Vqe=fS(),PU=class extends Vqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new qqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Gqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Yqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Wqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new PU({maxSize:i},s);return e(n,o)}}gse.exports=Wqe});var Cse=m((sVt,Ese)=>{"use strict";var{isIP:Jqe}=b("node:net"),{lookup:zqe}=b("node:dns"),jqe=fS(),{InvalidArgumentError:jp,InformationalError:Kqe}=Lt(),mse=Math.pow(2,31)-1,OU=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Kqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){zqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===mse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===mse?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new HU(this,e,r)}},HU=class extends jqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Xoe(i)&&(r[s]=i);break;case"id":Zoe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xoe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Zoe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};eae.exports={EventSourceStream:SP}});var cae=m((FVt,Aae)=>{"use strict";var{pipeline:oJe}=b("node:stream"),{fetching:aJe}=QI(),{makeRequest:AJe}=Xp(),{webidl:fu}=jn(),{EventSourceStream:cJe}=tae(),{parseMIMEType:uJe}=Xs(),{createFastMessageEvent:lJe}=sm(),{isNetworkError:rae}=BI(),{delay:dJe}=QP(),{kEnumerableProperty:Yh}=dt(),{environmentSettingsObject:nae}=Ti(),sae=!1,iae=3e3,LI=0,oae=1,UI=2,hJe="anonymous",fJe="use-credentials",cm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=LI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let n="EventSource constructor";fu.argumentLengthCheck(arguments,1,n),sae||(sae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,n,"url"),r=fu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:iae};let s=nae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=hJe;r.withCredentials&&(o=fJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=AJe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===UI)return;this.#r=LI;let e={request:this.#s,dispatcher:this.#a},r=n=>{rae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?uJe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=oae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new cJe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(lJe(A.type,A.options))}});oJe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=aJe(e)}async#c(){this.#r!==UI&&(this.#r=LI,this.dispatchEvent(new Event("error")),await dJe(this.#o.reconnectionTime),this.#r===LI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){fu.brandCheck(this,t),this.#r!==UI&&(this.#r=UI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},aae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:LI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:UI,writable:!1}};Object.defineProperties(cm,aae);Object.defineProperties(cm.prototype,aae);Object.defineProperties(cm.prototype,{close:Yh,onerror:Yh,onmessage:Yh,onopen:Yh,readyState:Yh,url:Yh,withCredentials:Yh});fu.converters.EventSourceInitDict=fu.dictionaryConverter([{key:"withCredentials",converter:fu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fu.converters.any}]);Aae.exports={EventSource:cm,defaultReconnectionTime:iae}});var rN=m((MVt,Ye)=>{"use strict";var gJe=Lp(),uae=GC(),pJe=Up(),mJe=are(),EJe=Pp(),CJe=$L(),IJe=Dre(),yJe=Lre(),lae=Lt(),tN=dt(),{InvalidArgumentError:eN}=lae,um=bne(),BJe=YC(),bJe=kU(),QJe=ise(),wJe=FU(),SJe=CU(),NJe=nS(),{getGlobalDispatcher:dae,setGlobalDispatcher:TJe}=hS(),xJe=fS(),RJe=W1(),DJe=J1();Object.assign(uae.prototype,um);Ye.exports.Dispatcher=uae;Ye.exports.Client=gJe;Ye.exports.Pool=pJe;Ye.exports.BalancedPool=mJe;Ye.exports.Agent=EJe;Ye.exports.ProxyAgent=CJe;Ye.exports.EnvHttpProxyAgent=IJe;Ye.exports Line truncated
%s`,M,M,C,n);var Y=C.type==="*"?mO:C.type==="?"?pO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),ne=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);ne+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var $e="";Ae===""&&e!==SN&&($e="$");var it=z+ee+Ae+$e+ne;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===SN)return[n,s];if(!s)return SKe(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Ui.makeRe=function(t,e){return new An(t,e||{}).makeRe()};An.prototype.makeRe=wKe;function wKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?mO:e.dot?mKe:EKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===jh?r:typeof o=="string"?NKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Ui.match=function(t,e,r){r=r||{};var n=new An(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};An.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;KI.sep!=="/"&&(e=e.split(KI.sep).join("/")),e=e.split(sce),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};An.prototype.matchOne=function(t,e,r){return e.indexOf(jh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};An.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===jh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===jh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===jh?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var Y=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[Y--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};An.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};An.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===jh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function SKe(t){return t.replace(/\\(.)/g,"$1")}function NKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ty=m((RWt,pce)=>{"use strict";var FKe="2.0.0",MKe=Number.MAX_SAFE_INTEGER||9007199254740991,LKe=16,UKe=250,PKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];pce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:LKe,MAX_SAFE_BUILD_LENGTH:UKe,MAX_SAFE_INTEGER:MKe,RELEASE_TYPES:PKe,SEMVER_SPEC_VERSION:FKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ry=m((DWt,mce)=>{"use strict";var OKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};mce.exports=OKe});var Cm=m((xA,Ece)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:yO,MAX_SAFE_BUILD_LENGTH:HKe,MAX_LENGTH:GKe}=ty(),qKe=ry();xA=Ece.exports={};var YKe=xA.re=[],VKe=xA.safeRe=[],me=xA.src=[],WKe=xA.safeSrc=[],Ee=xA.t={},JKe=0,BO="[a-zA-Z0-9-]",zKe=[["\\s",1],["\\d",GKe],[BO,HKe]],jKe=t=>{for(let[e,r]of zKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};tie.exports=FP});var tN=E((YWt,oie)=>{"use strict";var nie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mVe}=Lt(),EVe=lm();iie()===void 0&&sie(new EVe);function sie(t){if(!t||typeof t.dispatch!="function")throw new mVe("Argument agent must implement Agent");Object.defineProperty(globalThis,nie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function iie(){return globalThis[nie]}oie.exports={setGlobalDispatcher:sie,getGlobalDispatcher:iie}});var rN=E((WWt,aie)=>{"use strict";aie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Aie=E((JWt,cie)=>{"use strict";var CVe=_S();cie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new CVe(r,o,s,i);return r(a,c)}}});var lie=E((zWt,uie)=>{"use strict";var IVe=VS();uie.exports=t=>e=>function(n,s){return e(n,new IVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var hie=E((jWt,die)=>{"use strict";var yVe=dt(),{InvalidArgumentError:BVe,RequestAbortedError:bVe}=Lt(),QVe=rN(),MP=class extends QVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new BVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=yVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new bVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function wVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}die.exports=wVe});var pie=E((KWt,gie)=>{"use strict";var{isIP:SVe}=b("node:net"),{lookup:NVe}=b("node:dns"),TVe=rN(),{InvalidArgumentError:ym,InformationalError:xVe}=Lt(),fie=Math.pow(2,31)-1,LP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new xVe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){NVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===fie?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===fie?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new UP(this,e,r)}},UP=class extends TVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":jae(i)&&(r[s]=i);break;case"id":Kae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&jae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Kae(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};$ae.exports={EventSourceStream:bO}});var oce=E((NJt,ice)=>{"use strict";var{pipeline:Pze}=b("node:stream"),{fetching:Oze}=ry(),{makeRequest:Hze}=Qm(),{webidl:bu}=Kn(),{EventSourceStream:Gze}=Xae(),{parseMIMEType:qze}=Ks(),{createFastMessageEvent:Yze}=Rm(),{isNetworkError:Zae}=ey(),{delay:Vze}=yO(),{kEnumerableProperty:lf}=dt(),{environmentSettingsObject:ece}=xi(),tce=!1,rce=3e3,gy=0,nce=1,py=2,Wze="anonymous",Jze="use-credentials",Fm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),tce||(tce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:rce};let s=ece,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Wze;r.withCredentials&&(o=Jze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ece.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Hze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{Zae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Zae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?qze(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=nce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Gze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Yze(c.type,c.options))}});Pze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Oze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Vze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},sce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:nce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(Fm,sce);Object.defineProperties(Fm.prototype,sce);Object.defineProperties(Fm.prototype,{close:lf,onerror:lf,onmessage:lf,onopen:lf,readyState:lf,url:lf,withCredentials:lf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);ice.exports={EventSource:Fm,defaultReconnectionTime:rce}});var YN=E((TJt,Ye)=>{"use strict";var zze=Am(),ace=II(),jze=um(),Kze=sne(),$ze=lm(),Xze=zU(),Zze=Tne(),eje=_ne(),cce=Lt(),qN=dt(),{InvalidArgumentError:GN}=cce,Mm=Ise(),tje=BI(),rje=xP(),nje=rie(),sje=kP(),ije=pP(),oje=VS(),{getGlobalDispatcher:Ace,setGlobalDispatcher:aje}=tN(),cje=rN(),Aje=_S(),uje=FS();Object.assign(ace.prototype,Mm);Ye.exports.Dispatcher=ace;Ye.exports.Client=zze;Ye.exports.Pool=jze;Ye.exports.BalancedPool=Kze;Ye.exports.Agent=$ze;Ye.exports.ProxyAgent=Xze;Ye.exports.EnvHttpProxyAgent=Zze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?A3:C.type==="?"?c3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==hT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===hT)return[n,s];if(!s)return P$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=U$e;function U$e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?A3:e.dot?R$e:D$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?O$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(jAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};cn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===mf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function P$e(t){return t.replace(/\\(.)/g,"$1")}function O$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ym=E((_jt,rue)=>{"use strict";var z$e="2.0.0",j$e=Number.MAX_SAFE_INTEGER||9007199254740991,K$e=16,$$e=250,X$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:K$e,MAX_SAFE_BUILD_LENGTH:$$e,MAX_SAFE_INTEGER:j$e,RELEASE_TYPES:X$e,SEMVER_SPEC_VERSION:z$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((Fjt,nue)=>{"use strict";var Z$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};nue.exports=Z$e});var Vm=E((Uc,sue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l3,MAX_SAFE_BUILD_LENGTH:eXe,MAX_LENGTH:tXe}=Ym(),rXe=vy();Uc=sue.exports={};var nXe=Uc.re=[],sXe=Uc.safeRe=[],me=Uc.src=[],iXe=Uc.safeSrc=[],Ee=Uc.t={},oXe=0,d3="[a-zA-Z0-9-]",aXe=[["\\s",1],["\\d",tXe],[d3,eXe]],cXe=t=>{for(let[e,r]of aXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`).join(`
`+i),t.push(s+"m+"+dT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Net()+e+" "+t[0]}function Net(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Tet(...t){return process.stderr.write(lT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function xet(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ret(){return process.env.DEBUG}function Det(t){t.inspectOpts={};let e=Object.keys(kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kn.inspectOpts[e[r]]}dT.exports=A3()(kn);var{formatters:zle}=dT.exports;zle.o=function(t){return this.inspectOpts.colors=this.useColors,lT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};zle.O=function(t){return this.inspectOpts.colors=this.useColors,lT.inspect(t,this.inspectOpts)}});var hT=m((tjt,l3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?l3.exports=Gle():l3.exports=jle()});var Xle=m(ai=>{"use strict";var ket=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vet=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kle=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ket(e,t,r);return vet(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var _et=Kle(b("http")),Fet=Kle(b("https"));async function $le(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=$le;async function Met(t){let r=(await $le(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=Met;function Let(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Fet:_et).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=Let});var h3=m(Hi=>{"use strict";var ede=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Uet=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tde=Hi&&Hi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ede(e,t,r);return Uet(e,t),e},Pet=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ede(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Agent=void 0;var Oet=tde(b("net")),Zle=tde(b("http")),Het=b("https");Pet(Xle(),Hi);var kA=Symbol("AgentBaseInternalState"),d3=class extends Zle.Agent{constructor(e){super(e),this[kA]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Oet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Het.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Zle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[kA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kA].currentSocket;if(this[kA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kA]&&(this[kA].defaultPort=e)}get protocol(){return this[kA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kA]&&(this[kA].protocol=e)}};Hi.Agent=d3});var rde=m(Tm=>{"use strict";var Get=Tm&&Tm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tm,"__esModule",{value:!0});Tm.parseProxyResponse=void 0;var qet=Get(hT()),fT=(0,qet.default)("https-proxy-agent:parse-proxy-response");function Yet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),fT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),fT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ktt()+e+" "+t[0]}function Ktt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function $tt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Xtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ztt(){return process.env.DEBUG}function ert(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}XT.exports=t8()(vn);var{formatters:kde}=XT.exports;kde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};kde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=E((lXt,s8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?s8.exports=Sde():s8.exports=vde()});var Mde=E(oi=>{"use strict";var trt=oi&&oi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rrt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_de=oi&&oi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&trt(e,t,r);return rrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var nrt=_de(b("http")),srt=_de(b("https"));async function Fde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Fde;async function irt(t){let r=(await Fde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=irt;function ort(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?srt:nrt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=ort});var o8=E(qi=>{"use strict";var Ude=qi&&qi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),art=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pde=qi&&qi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ude(e,t,r);return art(e,t),e},crt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ude(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var Art=Pde(b("net")),Lde=Pde(b("http")),urt=b("https");crt(Mde(),qi);var Hc=Symbol("AgentBaseInternalState"),i8=class extends Lde.Agent{constructor(e){super(e),this[Hc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Art.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?urt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Lde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Hc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Hc].currentSocket;if(this[Hc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Hc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Hc]&&(this[Hc].defaultPort=e)}get protocol(){return this[Hc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Hc]&&(this[Hc].protocol=e)}};qi.Agent=i8});var Ode=E(e0=>{"use strict";var lrt=e0&&e0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e0,"__esModule",{value:!0});e0.parseProxyResponse=void 0;var drt=lrt(ZT()),ex=(0,drt.default)("https-proxy-agent:parse-proxy-response");function hrt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){fT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),Y=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,Y]:Array.isArray(v)?v.push(Y):C[M]=Y}fT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Tm.parseProxyResponse=Yet});var Ade=m(ko=>{"use strict";var Vet=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wet=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ode=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Vet(e,t,r);return Wet(e,t),e},ade=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var gT=ode(b("net")),nde=ode(b("tls")),Jet=ade(b("assert")),zet=ade(hT()),jet=h3(),Ket=b("url"),$et=rde(),my=(0,zet.default)("https-proxy-agent"),sde=t=>t.servername===void 0&&t.host&&!gT.isIP(t.host)?{...t,servername:t.host}:t,pT=class extends jet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Ket.URL(e):e,this.proxyHeaders=r?.headers??{},my("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ide(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(my("Creating `tls.Socket`: %o",this.connectOpts),s=nde.connect(sde(this.connectOpts))):(my("Creating `net.Socket`: %o",this.connectOpts),s=gT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=gT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){ex("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}ex("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}e0.parseProxyResponse=hrt});var Wde=E(Fo=>{"use strict";var frt=Fo&&Fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),grt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yde=Fo&&Fo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&frt(e,t,r);return grt(e,t),e},Vde=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpsProxyAgent=void 0;var tx=Yde(b("net")),Hde=Yde(b("tls")),prt=Vde(b("assert")),mrt=Vde(ZT()),Ert=o8(),Crt=b("url"),Irt=Ode(),zy=(0,mrt.default)("https-proxy-agent"),Gde=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends Ert.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Crt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?qde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=Hde.connect(Gde(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=tx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,$et.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Xet),r.secureEndpoint?(my("Upgrading socket connection to TLS"),nde.connect({...ide(sde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new gT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{my("Replaying proxy buffer for failed request"),(0,Jet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};pT.protocols=["http","https"];ko.HttpsProxyAgent=pT;function Xet(t){t.resume()}function ide(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var lde=m(vo=>{"use strict";var Zet=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ett=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ude=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Zet(e,t,r);return ett(e,t),e},ttt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var rtt=ude(b("net")),ntt=ude(b("tls")),stt=ttt(hT()),itt=b("events"),ott=h3(),cde=b("url"),xm=(0,stt.default)("http-proxy-agent"),mT=class extends ott.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new cde.URL(e):e,this.proxyHeaders=r?.headers??{},xm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?att(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new cde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;xm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Irt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",yrt),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),Hde.connect({...qde(Gde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,prt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];Fo.HttpsProxyAgent=rx;function yrt(t){t.resume()}function qde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var jde=E(Mo=>{"use strict";var Brt=Mo&&Mo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),brt=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zde=Mo&&Mo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Brt(e,t,r);return brt(e,t),e},Qrt=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpProxyAgent=void 0;var wrt=zde(b("net")),Srt=zde(b("tls")),Nrt=Qrt(ZT()),Trt=b("events"),xrt=o8(),Jde=b("url"),t0=(0,Nrt.default)("http-proxy-agent"),nx=class extends xrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Jde.URL(e):e,this.proxyHeaders=r?.headers??{},t0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Rrt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Jde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;t0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(t0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),xm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(xm("Creating `tls.Socket`: %o",this.connectOpts),i=ntt.connect(this.connectOpts)):(xm("Creating `net.Socket`: %o",this.connectOpts),i=rtt.connect(this.connectOpts)),await(0,itt.once)(i,"connect"),i}};mT.protocols=["http","https"];vo.HttpProxyAgent=mT;function att(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var qde=m(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.state=void 0;DT.state={instrumenterImplementation:void 0}});var ohe=m(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.state=void 0;MT.state={operationRequestMap:new WeakMap}});var Cge=m((xlr,rat)=>{rat.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var yge=m((Rlr,Ige)=>{var nat=Cge();Ige.exports={version:nat.version}});var oR=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.isJsonObject=$m.typeofJsonValue=void 0;function dat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}$m.typeofJsonValue=dat;function hat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}$m.isJsonObject=hat});var AR=m(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.base64encode=Xm.base64decode=void 0;var _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),aR=[];for(let t=0;t<_u.length;t++)aR[_u[t].charCodeAt(0)]=t;aR[45]=_u.indexOf("+");aR[95]=_u.indexOf("/");function fat(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=aR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Xm.base64decode=fat;function gat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=_u[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=_u[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=_u[s|n>>6],e+=_u[n&63],r=0;break}return r&&(e+=_u[s],e+="=",r==1&&(e+="=")),e}Xm.base64encode=gat});var Sge=m(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});cR.utf8read=void 0;var oH=t=>String.fromCharCode.apply(String,t);function pat(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(oH(n)),s=0);return r.length?(s&&r.push(oH(n.slice(0,s))),r.join("")):oH(n.slice(0,s))}cR.utf8read=pat});var lB=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var mat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(mat=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function Eat(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=Eat;var Cat;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Cat=nc.WireType||(nc.WireType={}))});var lR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Iat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=Iat;function yat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}hi.varint64write=yat;var uR=65536*65536;function Bat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=uR&&(s=s+(n/uR|0),n=n%uR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=Bat;function bat(t,e){if(e>>>0<=2097151)return""+(uR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}hi.int64toString=bat;function Qat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=Qat;function wat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=wat});var sd=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.PbLong=nd.PbULong=nd.detectBi=void 0;var dB=lR(),or;function Nge(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}nd.detectBi=Nge;Nge();function Tge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var xge=/^-?[0-9]+$/,hR=4294967296,dR=2147483648,fR=c Line truncated
`)}};UR.RpcError=vH});var FH=m(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.mergeRpcOptions=void 0;var ipe=ct();function JAt(t,e){if(!e)return t;let r={};PR(t,r),PR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=ipe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ipe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},PR(t.meta,r.meta),PR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}OR.mergeRpcOptions=JAt;function PR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var LH=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.Deferred=xf.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=xf.DeferredState||(xf.DeferredState={}));var MH=class{constructor(e=!0){this._state=oc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};xf.Deferred=MH});var PH=m(HR=>{"use strict";Object.defineProperty(HR,"__esModule",{value:!0});HR.RpcOutputStreamController=void 0;var ope=LH(),Rf=ct(),UH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Rf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Rf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Rf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Rf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Rf.assert(e,"bad state"),Rf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new ope.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Rf.assert(n.state==ope.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};HR.RpcOutputStreamController=UH});var HH=m(i0=>{"use strict";var zAt=i0&&i0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(i0,"__esModule",{value:!0});i0.UnaryCall=void 0;var OH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return zAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};i0.UnaryCall=OH});var qH=m(o0=>{"use strict";var jAt=o0&&o0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(o0,"__esModule",{value:!0});o0.ServerStreamingCall=void 0;var GH=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),t0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(t0("Creating `tls.Socket`: %o",this.connectOpts),i=Srt.connect(this.connectOpts)):(t0("Creating `net.Socket`: %o",this.connectOpts),i=wrt.connect(this.connectOpts)),await(0,Trt.once)(i,"connect"),i}};nx.protocols=["http","https"];Mo.HttpProxyAgent=nx;function Rrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Che=E(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var Mhe=E(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var ppe=E((dgr,Uct)=>{Uct.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Epe=E((hgr,mpe)=>{var Pct=ppe();mpe.exports={version:Pct.version}});var XR=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.isJsonObject=w0.typeofJsonValue=void 0;function zct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}w0.typeofJsonValue=zct;function jct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}w0.isJsonObject=jct});var eD=E(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.base64encode=S0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<Gu.length;t++)ZR[Gu[t].charCodeAt(0)]=t;ZR[45]=Gu.indexOf("+");ZR[95]=Gu.indexOf("/");function Kct(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=ZR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}S0.base64decode=Kct;function $ct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}S0.base64encode=$ct});var bpe=E(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function Xct(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}tD.utf8read=Xct});var YB=E(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.WireType=dA.mergeBinaryOptions=dA.UnknownFieldHandler=void 0;var Zct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Zct=dA.UnknownFieldHandler||(dA.UnknownFieldHandler={}));function eAt(t,e){return Object.assign(Object.assign({},t),e)}dA.mergeBinaryOptions=eAt;var tAt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(tAt=dA.WireType||(dA.WireType={}))});var nD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function rAt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=rAt;function nAt(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}hi.varint64write=nAt;var rD=65536*65536;function sAt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=rD&&(s=s+(n/rD|0),n=n%rD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=sAt;function iAt(t,e){if(e>>>0<=2097151)return""+(rD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}hi.int64toString=iAt;function oAt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=oAt;function aAt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=aAt});var Id=E(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var VB=nD(),ir;function Qpe(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Cd.detectBi=Qpe;Qpe();function wpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Spe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=Q9});var S9=E(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var rme=At();function xut(t,e){if(!e)return t;let r={};DD(t,r),DD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=rme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=rme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DD(t.meta,r.meta),DD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}kD.mergeRpcOptions=xut;function DD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var T9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var gA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(gA=jf.DeferredState||(jf.DeferredState={}));var N9=class{constructor(e=!0){this._state=gA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==gA.PENDING)throw new Error(`cannot resolve ${gA[this.state].toLowerCase()}`);this._resolve(e),this._state=gA.RESOLVED}reject(e){if(this.state!==gA.PENDING)throw new Error(`cannot reject ${gA[this.state].toLowerCase()}`);this._reject(e),this._state=gA.REJECTED}resolvePending(e){this._state===gA.PENDING&&this.resolve(e)}rejectPending(e){this._state===gA.PENDING&&this.reject(e)}};jf.Deferred=N9});var R9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var nme=T9(),Kf=At(),x9=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Kf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Kf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Kf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Kf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Kf.assert(e,"bad state"),Kf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new nme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==nme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=x9});var k9=E(v0=>{"use strict";var Rut=v0&&v0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(v0,"__esModule",{value:!0});v0.UnaryCall=void 0;var D9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Rut(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};v0.UnaryCall=D9});var _9=E(_0=>{"use strict";var Dut=_0&&_0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(_0,"__esModule",{value:!0});_0.ServerStreamingCall=void 0;var v9=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var UEe=m(LEe=>{"use strict";var Nq=qu().Buffer;LEe._dbcs=Yu;var Kn=-1,MEe=-2,ta=-10,Os=-1e3,F0=new Array(256),rb=-1;for(C2=0;C2<256;C2++)F0[C2]=Kn;var C2;function Yu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=F0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(F0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(F0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=MEe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function F0t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(I0t.has(s)){r=s;break}}return r}function M0t(t,e){let r=F0t(e);r!==""&&(t.referrerPolicy=r)}function L0t(){return"allowed"}function U0t(){return"success"}function P0t(){return"success"}function O0t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function H0t(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&VY(t.origin)&&!VY(eg(t))&&(e=null);break;case"same-origin":lb(t,eg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function O0(t,e){return t}function G0t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:O0(t.domainLookupStartTime,r),domainLookupEndTime:O0(t.domainLookupEndTime,r),connectionStartTime:O0(t.connectionStartTime,r),connectionEndTime:O0(t.connectionEndTime,r),secureConnectionStartTime:O0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function q0t(t){return O0(Q0t.now(),t)}function Y0t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function fye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V0t(t){return{referrerPolicy:t.referrerPolicy}}function W0t(t){let e=t.referrerPolicy;db(e);let r=null;if(t.referrer==="client"){let i=cye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Qd.is.URL(t.referrer)&&(r=t.referrer);let n=YY(r),s=YY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??YY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=eg(t);return lb(n,i)?n:Zf(n)&&!Zf(i)?"no-referrer":s}case"same-origin":return lb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return lb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":n}}}function YY(t,e=!1){return db(Qd.is.URL(t)),t=new URL(t),Eye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var J0t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),z0t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function gye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),z0t(t)):J0t(t)}function j0t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||gye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Zf(t){return Qd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:j0t(t.origin):!1}function K0t(t){}function lb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function $0t(t){return t.controller.state==="aborted"}function X0t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Z0t(t){return S0t[t.toLowerCase()]??t}var eEt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function pye(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,eEt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function tEt(t,e,r,n=0,s=1){let i=pye(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Qd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Qd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=sa(a=>eV(a)&&a!==59,t,e);i=XY.decode(o)}return{name:n,value:i}}function wEt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=sa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=ZY(o,!0,!0,a=>a===9||a===32),!mEt.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,sa(a=>a===32||a===9,t,e),pEt(o)){case"content-disposition":{if(r=n=null,sa(A=>eV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=QEt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=sa(A=>A!==10&&A!==13,t,e);a=ZY(a,!1,!0,A=>A===9||A===32),s=Qye(a);break}case"content-transfer-encoding":{let a=sa(A=>A!==10&&A!==13,t,e);a=ZY(a,!1,!0,A=>A===9||A===32),i=Qye(a);break}default:sa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function sa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function ZY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function SEt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function NEt(t){return t<=31||t===127}function TEt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function eV(t){return t<=127&&t!==32&&t!==9&&!NEt(t)&&!TEt(t)}wye.exports={multipartFormDataParser:bEt,validateBoundary:BEt}});var hb=m((j0r,Nye)=>{"use strict";function xEt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Nye.exports={createDeferredPromise:xEt}});var q0=m((K0r,kye)=>{"use strict";var nV=et(),{ReadableStreamFrom:REt,readableStreamClose:DEt,fullyReadBody:kEt,extractMimeType:vEt}=eo(),{FormData:Tye,setFormDataState:_Et}=Y2(),{webidl:eA}=$n(),tV=b("node:assert"),{isErrored:rV,isDisturbed:FEt}=b("node:stream"),{isUint8Array:MEt}=b("node:util/types"),{serializeAMimeType:LEt}=na(),{multipartFormDataParser:UEt}=Sye(),{createDeferredPromise:PEt}=hb(),{parseJSONFromBytes:OEt}=Ju(),{utf8DecodeBytes:HEt}=U2(),{runtimeFeatures:GEt}=zu(),qEt=GEt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),V2=new TextEncoder;function YEt(){}var VEt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!FEt(e)&&!rV(e)&&e.cancel("Response object has been garbage collected").catch(YEt)});function Rye(t,e=!1){let r=null,n=null;eA.is.ReadableStream(t)?r=t:eA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),tV(eA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(eA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(eA.is.BufferSource(t))i=eA.util.getCopyOfBytesHeldByBufferSource(t);else if(eA.is.FormData(t)){let c=`----formdata-undici-0${`${qEt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=V2.encode(u+`; name="${l(d(E))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var hIe=E(dIe=>{"use strict";var xY=el().Buffer;dIe._dbcs=tl;var Zn=-1,lIe=-2,sa=-10,Us=-1e3,dE=new Array(256),Yb=-1;for(gk=0;gk<256;gk++)dE[gk]=Zn;var gk;function tl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=dE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(dE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(dE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=lIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function NIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(dIt.has(s)){r=s;break}}return r}function TIt(t,e){let r=NIt(e);r!==""&&(t.referrerPolicy=r)}function xIt(){return"allowed"}function RIt(){return"success"}function DIt(){return"success"}function kIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function vIt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&JV(t.origin)&&!JV(wg(t))&&(e=null);break;case"same-origin":Zb(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function mE(t,e){return t}function _It(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mE(t.domainLookupStartTime,r),domainLookupEndTime:mE(t.domainLookupEndTime,r),connectionStartTime:mE(t.connectionStartTime,r),connectionEndTime:mE(t.connectionEndTime,r),secureConnectionStartTime:mE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FIt(t){return mE(pIt.now(),t)}function MIt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function qBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function LIt(t){return{referrerPolicy:t.referrerPolicy}}function UIt(t){let e=t.referrerPolicy;eQ(e);let r=null;if(t.referrer==="client"){let i=UBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=WV(r),s=WV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??WV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return Zb(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return Zb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Zb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function WV(t,e=!1){return eQ(Yd.is.URL(t)),t=new URL(t),JBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var PIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),OIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function YBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),OIt(t)):PIt(t)}function HIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||YBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Qg(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:HIt(t.origin):!1}function GIt(t){}function Zb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function qIt(t){return t.controller.state==="aborted"}function YIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function VIt(t){return EIt[t.toLowerCase()]??t}var WIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function VBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,WIt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function JIt(t,e,r,n=0,s=1){let i=VBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>r7(a)&&a!==59,t,e);i=e7.decode(o)}return{name:n,value:i}}function myt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=t7(o,!0,!0,a=>a===9||a===32),!Ayt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,aa(a=>a===32||a===9,t,e),cyt(o)){case"content-disposition":{if(r=n=null,aa(c=>r7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=pyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=aa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),s=ZBe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),i=ZBe(a);break}default:aa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function t7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function Eyt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Cyt(t){return t<=31||t===127}function Iyt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function r7(t){return t<=127&&t!==32&&t!==9&&!Cyt(t)&&!Iyt(t)}ebe.exports={multipartFormDataParser:gyt,validateBoundary:fyt}});var tQ=E((CBr,rbe)=>{"use strict";function yyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}rbe.exports={createDeferredPromise:yyt}});var IE=E((IBr,abe)=>{"use strict";var i7=Ze(),{ReadableStreamFrom:Byt,readableStreamClose:byt,fullyReadBody:Qyt,extractMimeType:wyt}=ro(),{FormData:nbe,setFormDataState:Syt}=Ok(),{webidl:Ac}=es(),n7=b("node:assert"),{isErrored:s7,isDisturbed:Nyt}=b("node:stream"),{isUint8Array:Tyt}=b("node:util/types"),{serializeAMimeType:xyt}=oa(),{multipartFormDataParser:Ryt}=tbe(),{createDeferredPromise:Dyt}=tQ(),{parseJSONFromBytes:kyt}=sl(),{utf8DecodeBytes:vyt}=_k(),{runtimeFeatures:_yt}=il(),Fyt=_yt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Hk=new TextEncoder;function Myt(){}var Lyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Nyt(e)&&!s7(e)&&e.cancel("Response object has been garbage collected").catch(Myt)});function ibe(t,e=!1){let r=null,n=null;Ac.is.ReadableStream(t)?r=t:Ac.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),n7(Ac.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Ac.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ac.is.BufferSource(t))i=Ac.util.getCopyOfBytesHeldByBufferSource(t);else if(Ac.is.FormData(t)){let A=`----formdata-undici-0${`${Fyt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Hk.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=V2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=Hk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=V2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(eA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(nV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=eA.is.ReadableStream(t)?t:REt(t)}return(typeof i=="string"||MEt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(rV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!rV(r)&&n.enqueue(typeof c=="string"?V2.encode(c):new Uint8Array(c));queueMicrotask(()=>DEt(n))})(),[{stream:r,source:i,length:o},a]}function WEt(t,e=!1){return eA.is.ReadableStream(t)&&(tV(!nV.isDisturbed(t),"The body has already been consumed."),tV(!t.locked,"The stream is locked.")),Rye(t,e)}function JEt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function zEt(t,e){return{blob(){return G0(this,n=>{let s=xye(e(this));return s===null?s="":s&&(s=LEt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return G0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return G0(this,HEt,t,e)},json(){return G0(this,OEt,t,e)},formData(){return G0(this,n=>{let s=xye(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=UEt(n,s),o=new Tye;return _Et(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Tye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return G0(this,n=>new Uint8Array(n),t,e)}}}function jEt(t,e){Object.assign(t.prototype,zEt(t,e))}function G0(t,e,r,n){try{eA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Dye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=PEt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(kEt(t.body,o,i),s.promise)}function Dye(t){let e=t.body;return e!=null&&(e.stream.locked||nV.isDisturbed(e.stream))}function xye(t){let e=t.headersList,r=vEt(e);return r==="failure"?null:r}kye.exports={extractBody:Rye,safelyExtractBody:WEt,cloneBody:JEt,mixinBody:jEt,streamRegistry:VEt,bodyUnusable:Dye}});var qye=m(($0r,Gye)=>{"use strict";var We=b("node:assert"),Je=et(),{channels:vye}=Bd(),sV=Pq(),{RequestContentLengthMismatchError:tg,ResponseContentLengthMismatchError:KEt,RequestAbortedError:Pye,HeadersTimeoutError:$Et,HeadersOverflowError:XEt,SocketError:pb,InformationalError:Y0,BodyTimeoutError:ZEt,HTTPParserError:eCt,ResponseExceededMaxSizeError:tCt}=Ke(),{kUrl:Oye,kReset:yi,kClient:lV,kParser:Wr,kBlocking:mb,kRunning:gs,kPending:rCt,kSize:_ye,kWriting:Sd,kQueue:tA,kNoRef:fb,kKeepAliveDefaultTimeout:nCt,kHostHeader:sCt,kPendingIdx:iCt,kRunningIdx:ia,kError:oa,kPipelining:z2,kSocket:V0,kKeepAliveTimeoutValue:K2,kMaxHeadersSize:oCt,kKeepAliveMaxTimeout:aCt,kKeepAliveTimeoutThreshold:ACt,kHeadersTimeout:cCt,kBodyTimeout:uCt,kStrictContentLength:aV,kMaxRequests:Fye,kCounter:lCt,kMaxResponseSize:dCt,kOnError:hCt,kResume:wd,kHTTPContext:Hye,kClosed:AV}=$t(),mc=kIe(),fCt=Buffer.alloc(0),W2=Buffer[Symbol.species],gCt=Je.removeAllListeners,iV;function pCt(){let t=process.env.JEST_WORKER_ID?DY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(FIe())}catch{}return e||(e=new WebAssembly.Module(t||DY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onStatus(new W2(Ec.buffer,o,i))},wasm_on_message_begin:n=>(We(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onHeaderField(new W2(Ec.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onHeaderValue(new W2(Ec.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onBody(new W2(Ec.buffer,o,i))},wasm_on_message_complete:n=>(We(Bn.ptr===n),Bn.onMessageComplete())}})}var oV=null,Bn=null,Ec=null,J2=0,Cc=null,mCt=0,gb=1,W0=2|gb,j2=4|gb,cV=8|mCt,uV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[oCt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[dCt]}setTi Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Hk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(Ac.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(i7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ac.is.ReadableStream(t)?t:Byt(t)}return(typeof i=="string"||Tyt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(s7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!s7(r)&&n.enqueue(typeof A=="string"?Hk.encode(A):new Uint8Array(A));queueMicrotask(()=>byt(n))})(),[{stream:r,source:i,length:o},a]}function Uyt(t,e=!1){return Ac.is.ReadableStream(t)&&(n7(!i7.isDisturbed(t),"The body has already been consumed."),n7(!t.locked,"The stream is locked.")),ibe(t,e)}function Pyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Oyt(t,e){return{blob(){return CE(this,n=>{let s=sbe(e(this));return s===null?s="":s&&(s=xyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return CE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return CE(this,vyt,t,e)},json(){return CE(this,kyt,t,e)},formData(){return CE(this,n=>{let s=sbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=Ryt(n,s),o=new nbe;return Syt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new nbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return CE(this,n=>new Uint8Array(n),t,e)}}}function Hyt(t,e){Object.assign(t.prototype,Oyt(t,e))}function CE(t,e,r,n){try{Ac.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),obe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Dyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Qyt(t.body,o,i),s.promise)}function obe(t){let e=t.body;return e!=null&&(e.stream.locked||i7.isDisturbed(e.stream))}function sbe(t){let e=t.headersList,r=wyt(e);return r==="failure"?null:r}abe.exports={extractBody:ibe,safelyExtractBody:Uyt,cloneBody:Pyt,mixinBody:Hyt,streamRegistry:Lyt,bodyUnusable:obe}});var Ebe=E((yBr,mbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:cbe}=Gd(),o7=HY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Gyt,RequestAbortedError:fbe,HeadersTimeoutError:qyt,HeadersOverflowError:Yyt,SocketError:sQ,InformationalError:yE,BodyTimeoutError:Vyt,HTTPParserError:Wyt,ResponseExceededMaxSizeError:Jyt}=Ke(),{kUrl:gbe,kReset:Bi,kClient:h7,kParser:Wr,kBlocking:iQ,kRunning:ms,kPending:zyt,kSize:Abe,kWriting:Wd,kQueue:uc,kNoRef:rQ,kKeepAliveDefaultTimeout:jyt,kHostHeader:Kyt,kPendingIdx:$yt,kRunningIdx:ca,kError:Aa,kPipelining:Yk,kSocket:BE,kKeepAliveTimeoutValue:Wk,kMaxHeadersSize:Xyt,kKeepAliveMaxTimeout:Zyt,kKeepAliveTimeoutThreshold:eBt,kHeadersTimeout:tBt,kBodyTimeout:rBt,kStrictContentLength:A7,kMaxRequests:ube,kCounter:nBt,kMaxResponseSize:sBt,kOnError:iBt,kResume:Vd,kHTTPContext:pbe,kClosed:u7}=Kt(),SA=aBe(),oBt=Buffer.alloc(0),Gk=Buffer[Symbol.species],aBt=Je.removeAllListeners,a7;function cBt(){let t=process.env.JEST_WORKER_ID?vV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(uBe())}catch{}return e||(e=new WebAssembly.Module(t||vV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onStatus(new Gk(NA.buffer,o,i))},wasm_on_message_begin:n=>(We(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onHeaderField(new Gk(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onHeaderValue(new Gk(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onBody(new Gk(NA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var c7=null,bn=null,NA=null,qk=0,TA=null,ABt=0,nQ=1,bE=2|nQ,Vk=4|nQ,l7=8|ABt,d7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(SA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Xyt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[sBt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[sCt],i?p+=`connection: upgrade\r
`:p+=t[Kyt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[z2]&&!h[yi]?p+=`connection: keep-alive\r
`:t[Yk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return vye.sendHeaders.hasSubscribers&&vye.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Lye(f,null,t,e,h,u,p,l):Je.isBuffer(A)?Lye(f,A,t,e,h,u,p,l):Je.isBlobLike(A)?typeof A.stream=="function"?Uye(f,A.stream(),t,e,h,u,p,l):TCt(f,A,t,e,h,u,p,l):Je.isStream(A)?NCt(f,A,t,e,h,u,p,l):Je.isIterable(A)?Uye(f,A,t,e,h,u,p,l):We(!1),!0}function NCt(t,e,r,n,s,i,o,a){We(i!==0||r[gs]===0,"stream body cannot be pipelined");let A=!1,c=new $2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Pye;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,We(s.destroyed||s[Sd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Lye(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return cbe.sendHeaders.hasSubscribers&&cbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?dbe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?dbe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?hbe(f,c.stream(),t,e,h,u,p,l):IBt(f,c,t,e,h,u,p,l):Je.isStream(c)?CBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?hbe(f,c,t,e,h,u,p,l):We(!1),!0}function CBt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new Jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new fbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Wd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function dbe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[yi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Bi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[wd]()}catch(A){t(A)}}async function TCt(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Vd]()}catch(c){t(c)}}async function IBt(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[yi]=!0),r[wd]()}catch(A){t(A)}}async function Uye(t,e,r,n,s,i,o,a){We(i!==0||r[gs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{We(A===null),s[oa]?h(s[oa]):A=d});s.on("close",c).on("drain",c);let l=new $2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[oa])throw s[oa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var $2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Sd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[oa])throw r[oa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[aV])throw new tg;process.emitWarning(new tg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Bi]=!0),r[Vd]()}catch(c){t(c)}}async function hbe(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{We(c===null),s[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new Jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Jk=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[A7])throw new Sg;process.emitWarning(new Sg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===W0&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Sd]=!1,e[oa])throw e[oa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===bE&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wd]=!1,e[Aa])throw e[Aa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[aV])throw new tg;process.emitWarning(new tg)}e[Wr].timeout&&e[Wr].timeoutType===W0&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[wd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Sd]=!1,e&&(We(n[gs]<=1,"pipeline should only contain this request"),s(e))}};Gye.exports=ECt});var Xye=m((X0r,$ye)=>{"use strict";var Aa=b("node:assert"),{pipeline:xCt}=b("node:stream"),ut=et(),{RequestContentLengthMismatchError:gV,RequestAbortedError:RCt,SocketError:yb,InformationalError:Nd,InvalidArgumentError:DCt}=Ke(),{kUrl:Ib,kReset:tk,kClient:to,kRunning:Bb,kPending:kCt,kQueue:Td,kPendingIdx:mV,kRunningIdx:rA,kError:ro,kSocket:kr,kStrictContentLength:vCt,kOnError:J0,kMaxConcurrentStreams:Z2,kPingInterval:Yye,kHTTP2Session:Ku,kHTTP2InitialWindowSize:_Ct,kHTTP2ConnectionWindowSize:FCt,kResume:Ic,kSize:MCt,kHTTPContext:EV,kClosed:pV,kBodyTimeout:LCt,kEnableConnectProtocol:Eb,kRemoteSettings:Cb,kHTTP2Stream:X2,kHTTP2SessionState:CV}=$t(),{channels:Vye}=Bd(),aa=Symbol("open streams"),Wye,ek;try{ek=b("node:http2")}catch{ek={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:UCt,HTTP2_HEADER_METHOD:Jye,HTTP2_HEADER_PATH:zye,HTTP2_HEADER_SCHEME:dV,HTTP2_HEADER_CONTENT_LENGTH:PCt,HTTP2_HEADER_EXPECT:OCt,HTTP2_HEADER_STATUS:hV,HTTP2_HEADER_PROTOCOL:HCt,NGHTTP2_REFUSED_STREAM:GCt,NGHTTP2_CANCEL:qCt}}=ek;function fV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function YCt(t,e){t[kr]=e;let r=t[_Ct],n=t[FCt],s=ek.connect(t[Ib],{createConnection:()=>e,peerMaxConcurrentStreams:t[Z2],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[to]=t,s[kr]=e,s[CV]={ping:{interval:t[Yye]===0?null:setInterval(zCt,t[Yye],s).unref()}},s[Eb]=!1,s[Cb]=!1,n&&ut.addListener(s,"connect",WCt.bind(s,n)),ut.addListener(s,"error",jCt),ut.addListener(s,"frameError",KCt),ut.addListener(s,"end",$Ct),ut.addListener(s,"goaway",XCt),ut.addListener(s,"close",ZCt),ut.addListener(s,"remoteSettings",JCt),s.unref(),t[Ku]=s,e[Ku]=s,ut.addListener(e,"error",tIt),ut.addListener(e,"end",rIt),ut.addListener(e,"close",eIt),e[pV]=!1,e.on("close",nIt),{version:"h2",defaultPipelining:1/0,write(i){return iIt(t,i)},resume(){VCt(t)},destroy(i,o){e[pV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Bb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Cb]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Cb]===!1;return!1}}}function VCt(t){let e=t[kr];e?.destroyed===!1&&(t[MCt]===0||t[Z2]===0?(e.unref(),t[Ku].unref()):(e.ref(),t[Ku].ref()))}function WCt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function JCt(t){if(this[to][Z2]=t.maxConcurrentStreams??this[to][Z2],this[Cb]===!0&&this[Eb]===!0&&t.enableConnectProtocol===!1){let e=new Nd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][ro]=e,this[to][J0](e);return}this[Eb]=t.enableConnectProtocol??this[Eb],this[Cb]=!0,this[to][Ic]()}function zCt(t){let e=t[CV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[to],o=this[to];if(n!=null){let a=new Nd(`HTTP/2: "PING" errored - type ${n.message}`);o[ro]=a,i[J0](a)}else i.emit("ping",s)}}function jCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][ro]=t,this[to][J0](t)}function KCt(t,e,r){if(r===0){let n=new Nd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][ro]=n,this[to][J0](n)}}function $Ct(){let t=new yb("other side closed",ut.getSocketInfo(this[kr]));this.destroy(t),ut.destroy(this[kr],t)}function XCt(t){let e=this[ro]||new yb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[kr])),r=this[to];if(r[kr]=null,r[EV]=null,this.close(),this[Ku]=null,ut.destroy(this[kr],e),r[rA]<r[Td].length){let n=r[Td][r[rA]];r[Td][r[rA]++]=null,ut.errorRequest(r,n,e),r[mV]=r[rA]}Aa(r[Bb]===0),r.emit("disconnect",r[Ib],[r],e),r.emit("connectionError",r[Ib],[r],e),r[Ic]()}function ZCt(){let{[to]:t,[CV]:e}=this,{[kr]:r}=t,n=this[kr][ro]||this[ro]||new yb("closed",ut.getSocketInfo(r));if(t[kr]=null,t[EV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Aa(t[kCt]===0);let s=t[Td].splice(t[rA]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function eIt(){let t=this[ro]||new yb("closed",ut.getSocketInfo(this)),e=this[Ku][to];e[kr]=null,e[EV]=null,this[Ku]!==null&&this[Ku].destroy(t),e[mV]=e[rA],Aa(e[Bb]===0),e.emit("disconnect",e[Ib],[e],t),e[Ic]()}function tIt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ro]=t,this[to][J0](t)}function rIt(){ut.destroy(this,new yb("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Vye.sendHeaders.publish({request:e,headers:v,socket:n[kr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[OCt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[X2]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:R,signal:c}),f[X2]=!0,Y()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[hV]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),fV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Td][t[rA]++]=null,t[Ic]()):(E(new Nd("HTTP/2: stream half-closed (remote)")),t[Td][t[rA]++]=null,t[mV]=t[rA],t[Ic]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new Nd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new Nd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function Y(){!d||y===0?jye(E,f,null,t,e,t[kr],y,C):ut.isBuffer(d)?jye(E,f,d,t,e,t[kr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Kye(E,f,d.stream(),t,e,t[kr],y,C):aIt(E,f,d,t,e,t[kr],y,C):ut.isStream(d)?oIt(E,t[kr],C,f,d,t,e,y):ut.isIterable(d)?Kye(E,f,d,t,e,t[kr],y,C):Aa(!1)}}function jye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(Aa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[tk]=!0),s.onRequestSent(),n[Ic]()}catch(A){t(A)}}function oIt(t,e,r,n,s,i,o,a){Aa(a!==0||i[Bb]===0,"stream body cannot be pipelined");let A=xCt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[tk]=!0),i[Ic]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function aIt(t,e,r,n,s,i,o,a){Aa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new gV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[tk]=!0),n[Ic]()}catch(A){t(A)}}async function Kye(t,e,r,n,s,i,o,a){Aa(o!==0||n[Bb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Aa(A===null),i[ro]?d(i[ro]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ro])throw i[ro];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[tk]=!0),n[Ic]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}$ye.exports=YCt});var vd=m((Z0r,aBe)=>{"use strict";var $u=b("node:assert"),nBe=b("node:net"),bb=b("node:http"),rg=et(),{ClientStats:AIt}=fY(),{channels:z0}=Bd(),cIt=IIe(),uIt=Kf(),{InvalidArgumentError:pr,InformationalError:lIt,ClientDestroyedError:dIt}=Ke(),hIt=$f(),{kUrl:yc,kServerName:kd,kClient:fIt,kBusy:IV,kConnect:gIt,kResuming:ng,kRunning:Nb,kPending:Tb,kSize:Qb,kQueue:nA,kConnected:pIt,kConnecting:j0,kNeedDrain:Rd,kKeepAliveDefaultTimeout:Zye,kHostHeader:mIt,kPendingIdx:sA,kRunningIdx:Xu,kError:EIt,kPipelining:rk,kKeepAliveTimeoutValue:CIt,kMaxHeadersSize:IIt,kKeepAliveMaxTimeout:yIt,kKeepAliveTimeoutThreshold:BIt,kHeadersTimeout:bIt,kBodyTimeout:QIt,kStrictContentLength:wIt,kConnector:wb,kMaxRequests:yV,kCounter:SIt,kClose:NIt,kDestroy:TIt,kDispatch:xIt,kLocalAddress:Sb,kMaxResponseSize:RIt,kOnError:DIt,kHTTPContext:nn,kMaxConcurrentStreams:kIt,kHTTP2InitialWindowSize:vIt,kHTTP2ConnectionWindowSize:_It,kResume:Dd,kPingInterval:FIt}=$t(),MIt=qye(),LIt=Xye(),xd=Symbol("kClosedResolve"),UIt=bb&&bb.maxHeaderSize&&Number.isInteger(bb.maxHeaderSize)&&bb.maxHeaderSize>0?()=>bb.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},eBe=()=>{};function sBe(t){return t[rk]??t[nn]?.defaultPipelining??1}var BV=class extends uIt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:Y,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:ne,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new pr("uns Line truncated
`,this[QIt]=a??3e5,this[bIt]=n??3e5,this[wIt]=E??!0,this[yV]=R,this[xd]=null,this[RIt]=Y>-1?Y:-1,this[nn]=null,this[kIt]=D??100,this[vIt]=ne??262144,this[_It]=Ae??524288,this[FIt]=ge??6e4,this[nA]=[],this[Xu]=0,this[sA]=0,this[Dd]=De=>bV(this,De),this[DIt]=De=>iBe(this,De)}get pipelining(){return this[rk]}set pipelining(e){this[rk]=e,this[Dd](!0)}get stats(){return new AIt(this)}get[Tb](){return this[nA].length-this[sA]}get[Nb](){return this[sA]-this[Xu]}get[Qb](){return this[nA].length-this[Xu]}get[pIt](){return!!this[nn]&&!this[j0]&&!this[nn].destroyed}get[IV](){return!!(this[nn]?.busy(null)||this[Qb]>=(sBe(this)||1)||this[Tb]>0)}[gIt](e){oBe(this),this.once("connect",e)}[xIt](e,r){let n=new cIt(this[yc].origin,e,r);return this[nA].push(n),this[ng]||(rg.bodyLength(n.body)==null&&rg.isIterable(n.body)?(this[ng]=1,queueMicrotask(()=>bV(this))):this[Dd](!0)),this[ng]&&this[Rd]!==2&&this[IV]&&(this[Rd]=2),this[Rd]<2}[NIt](){return new Promise(e=>{this[Qb]?this[xd]=e:e(null)})}[TIt](e){return new Promise(r=>{let n=this[nA].splice(this[sA]);for(let i=0;i<n.length;i++){let o=n[i];rg.errorRequest(this,o,e)}let s=()=>{this[xd]&&(this[xd](),this[xd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Dd]()})}};function iBe(t,e){if(t[Nb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$u(t[sA]===t[Xu]);let r=t[nA].splice(t[Xu]);for(let n=0;n<r.length;n++){let s=r[n];rg.errorRequest(t,s,e)}$u(t[Qb]===0)}}function oBe(t){$u(!t[j0]),$u(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");$u(i!==-1);let o=r.substring(1,i);$u(nBe.isIPv6(o)),r=o}t[j0]=!0,z0.beforeConnect.hasSubscribers&&z0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[kd],localAddress:t[Sb]},connector:t[wb]}),t[wb]({host:e,hostname:r,protocol:n,port:s,servername:t[kd],localAddress:t[Sb]},(i,o)=>{if(i){tBe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Dd]();return}if(t.destroyed){rg.destroy(o.on("error",eBe),new dIt),t[Dd]();return}$u(o);try{t[nn]=o.alpnProtocol==="h2"?LIt(t,o):MIt(t,o)}catch(a){o.destroy().on("error",eBe),tBe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Dd]();return}t[j0]=!1,o[SIt]=0,o[yV]=t[yV],o[fIt]=t,o[EIt]=null,z0.connected.hasSubscribers&&z0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[kd],localAddress:t[Sb]},connector:t[wb],socket:o}),t.emit("connect",t[yc],[t]),t[Dd]()})}function tBe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[j0]=!1,z0.connectError.hasSubscribers&&z0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[kd],localAddress:t[Sb]},connector:t[wb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($u(t[Nb]===0);t[Tb]>0&&t[nA][t[sA]].servername===t[kd];){let o=t[nA][t[sA]++];rg.errorRequest(t,o,e)}else iBe(t,e);t.emit("connectionError",t[yc],[t],e)}}function rBe(t){t[Rd]=0,t.emit("drain",t[yc],[t])}function bV(t,e){t[ng]!==2&&(t[ng]=2,PIt(t,e),t[ng]=0,t[Xu]>256&&(t[nA].splice(0,t[Xu]),t[sA]-=t[Xu],t[Xu]=0))}function PIt(t,e){for(;;){if(t.destroyed){$u(t[Tb]===0);return}if(t[xd]&&!t[Qb]){t[xd](),t[xd]=null;return}if(t[nn]&&t[nn].resume(),t[IV])t[Rd]=2;else if(t[Rd]===2){e?(t[Rd]=1,queueMicrotask(()=>rBe(t))):rBe(t);continue}if(t[Tb]===0||t[Nb]>=(sBe(t)||1))return;let r=t[nA][t[sA]];if(r===null)return;if(t[yc].protocol==="https:"&&t[kd]!==r.servername){if(t[Nb]>0)return;t[kd]=r.servername,t[nn]?.destroy(new lIt("servername changed"),()=>{t[nn]=null,bV(t)})}if(t[j0])return;if(!t[nn]){oBe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[sA]++:t[nA].splice(t[sA],1)}}aBe.exports=BV});var QV=m((tEr,ABe)=>{"use strict";var nk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};ABe.exports=class{constructor(){this.head=this.tail=new nk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var sk=m((rEr,mBe)=>{"use strict";var{PoolStats:OIt}=fY(),HIt=Kf(),GIt=QV(),{kConnected:wV,kSize:cBe,kRunning:uBe,kPending:lBe,kQueued:xb,kBusy:qIt,kFree:YIt,kUrl:VIt,kClose:WIt,kDestroy:JIt,kDispatch:zIt}=$t(),Yn=Symbol("clients"),Hs=Symbol("needDrain"),Rb=Symbol("queue"),SV=Symbol("closed resolve"),NV=Symbol("onDrain"),dBe=Symbol("onConnect"),hBe=Symbol("onDisconnect"),fBe=Symbol("onConnectionError"),TV=Symbol("get dispatcher"),gBe=Symbol("add client"),pBe=Symbol("remove client"),xV=class extends HIt{[Rb]=new GIt;[xb]=0;[Yn]=[];[Hs]=!1;[NV](e,r,n){let s=this[Rb],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[A7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===bE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Vd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};mbe.exports=uBt});var Nbe=E((BBr,Sbe)=>{"use strict";var la=b("node:assert"),{pipeline:yBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:m7,RequestAbortedError:BBt,SocketError:AQ,InformationalError:Jd,InvalidArgumentError:bBt}=Ke(),{kUrl:cQ,kReset:$k,kClient:no,kRunning:uQ,kPending:QBt,kQueue:zd,kPendingIdx:C7,kRunningIdx:lc,kError:so,kSocket:Dr,kStrictContentLength:wBt,kOnError:QE,kMaxConcurrentStreams:jk,kPingInterval:Cbe,kHTTP2Session:al,kHTTP2InitialWindowSize:SBt,kHTTP2ConnectionWindowSize:NBt,kResume:xA,kSize:TBt,kHTTPContext:I7,kClosed:E7,kBodyTimeout:xBt,kEnableConnectProtocol:oQ,kRemoteSettings:aQ,kHTTP2Stream:zk,kHTTP2SessionState:y7}=Kt(),{channels:Ibe}=Gd(),ua=Symbol("open streams"),ybe,Kk;try{Kk=b("node:http2")}catch{Kk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RBt,HTTP2_HEADER_METHOD:Bbe,HTTP2_HEADER_PATH:bbe,HTTP2_HEADER_SCHEME:f7,HTTP2_HEADER_CONTENT_LENGTH:DBt,HTTP2_HEADER_EXPECT:kBt,HTTP2_HEADER_STATUS:g7,HTTP2_HEADER_PROTOCOL:vBt,NGHTTP2_REFUSED_STREAM:_Bt,NGHTTP2_CANCEL:FBt}}=Kk;function p7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function MBt(t,e){t[Dr]=e;let r=t[SBt],n=t[NBt],s=Kk.connect(t[cQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[jk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[y7]={ping:{interval:t[Cbe]===0?null:setInterval(OBt,t[Cbe],s).unref()}},s[oQ]=!1,s[aQ]=!1,n&&ut.addListener(s,"connect",UBt.bind(s,n)),ut.addListener(s,"error",HBt),ut.addListener(s,"frameError",GBt),ut.addListener(s,"end",qBt),ut.addListener(s,"goaway",YBt),ut.addListener(s,"close",VBt),ut.addListener(s,"remoteSettings",PBt),s.unref(),t[al]=s,e[al]=s,ut.addListener(e,"error",JBt),ut.addListener(e,"end",zBt),ut.addListener(e,"close",WBt),e[E7]=!1,e.on("close",jBt),{version:"h2",defaultPipelining:1/0,write(i){return $Bt(t,i)},resume(){LBt(t)},destroy(i,o){e[E7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[uQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!1;return!1}}}function LBt(t){let e=t[Dr];e?.destroyed===!1&&(t[TBt]===0||t[jk]===0?(e.unref(),t[al].unref()):(e.ref(),t[al].ref()))}function UBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function PBt(t){if(this[no][jk]=t.maxConcurrentStreams??this[no][jk],this[aQ]===!0&&this[oQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][QE](e);return}this[oQ]=t.enableConnectProtocol??this[oQ],this[aQ]=!0,this[no][xA]()}function OBt(t){let e=t[y7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[no],o=this[no];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[QE](a)}else i.emit("ping",s)}}function HBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][QE](t)}function GBt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][QE](n)}}function qBt(){let t=new AQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function YBt(t){let e=this[so]||new AQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[I7]=null,this.close(),this[al]=null,ut.destroy(this[Dr],e),r[lc]<r[zd].length){let n=r[zd][r[lc]];r[zd][r[lc]++]=null,ut.errorRequest(r,n,e),r[C7]=r[lc]}la(r[uQ]===0),r.emit("disconnect",r[cQ],[r],e),r.emit("connectionError",r[cQ],[r],e),r[xA]()}function VBt(){let{[no]:t,[y7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new AQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[I7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[QBt]===0);let s=t[zd].splice(t[lc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function WBt(){let t=this[so]||new AQ("closed",ut.getSocketInfo(this)),e=this[al][no];e[Dr]=null,e[I7]=null,this[al]!==null&&this[al].destroy(t),e[C7]=e[lc],la(e[uQ]===0),e.emit("disconnect",e[cQ],[e],t),e[xA]()}function JBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][QE](t)}function zBt(){ut.destroy(this,new AQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Ibe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[kBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[g7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),p7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[zd][t[lc]++]=null,t[xA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[lc]++]=null,t[C7]=t[lc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Jd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Jd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?Qbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Qbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?wbe(m,f,d.stream(),t,e,t[Dr],y,C):ZBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?XBt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?wbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Qbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[$k]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function XBt(t,e,r,n,s,i,o,a){la(a!==0||i[uQ]===0,"stream body cannot be pipelined");let c=yBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[$k]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function ZBt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new m7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[$k]=!0),n[xA]()}catch(c){t(c)}}async function wbe(t,e,r,n,s,i,o,a){la(o!==0||n[uQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{la(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[$k]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Sbe.exports=MBt});var Zd=E((bBr,Mbe)=>{"use strict";var cl=b("node:assert"),kbe=b("node:net"),lQ=b("node:http"),Ng=Ze(),{ClientStats:ebt}=pV(),{channels:wE}=Gd(),tbt=jye(),rbt=yg(),{InvalidArgumentError:gr,InformationalError:nbt,ClientDestroyedError:sbt}=Ke(),ibt=Bg(),{kUrl:RA,kServerName:Xd,kClient:obt,kBusy:B7,kConnect:abt,kResuming:Tg,kRunning:gQ,kPending:pQ,kSize:dQ,kQueue:dc,kConnected:cbt,kConnecting:SE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:Tbe,kHostHeader:Abt,kPendingIdx:hc,kRunningIdx:Al,kError:ubt,kPipelining:Xk,kKeepAliveTimeoutValue:lbt,kMaxHeadersSize:dbt,kKeepAliveMaxTimeout:hbt,kKeepAliveTimeoutThreshold:fbt,kHeadersTimeout:gbt,kBodyTimeout:pbt,kStrictContentLength:mbt,kConnector:hQ,kMaxRequests:b7,kCounter:Ebt,kClose:Cbt,kDestroy:Ibt,kDispatch:ybt,kLocalAddress:fQ,kMaxResponseSize:Bbt,kOnError:bbt,kHTTPContext:nn,kMaxConcurrentStreams:Qbt,kHTTP2InitialWindowSize:wbt,kHTTP2ConnectionWindowSize:Sbt,kResume:$d,kPingInterval:Nbt}=Kt(),Tbt=Ebe(),xbt=Nbe(),jd=Symbol("kClosedResolve"),Rbt=lQ&&lQ.maxHeaderSize&&Number.isInteger(lQ.maxHeaderSize)&&lQ.maxHeaderSize>0?()=>lQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},xbe=()=>{};function vbe(t){return t[Xk]??t[nn]?.defaultPipelining??1}var Q7=class extends rbt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[pbt]=a??3e5,this[gbt]=n??3e5,this[mbt]=m??!0,this[b7]=N,this[jd]=null,this[Bbt]=O>-1?O:-1,this[nn]=null,this[Qbt]=D??100,this[wbt]=te??262144,this[Sbt]=ce??524288,this[Nbt]=ge??6e4,this[dc]=[],this[Al]=0,this[hc]=0,this[$d]=De=>w7(this,De),this[bbt]=De=>_be(this,De)}get pipelining(){return this[Xk]}set pipelining(e){this[Xk]=e,this[$d](!0)}get stats(){return new ebt(this)}get[pQ](){return this[dc].length-this[hc]}get[gQ](){return this[hc]-this[Al]}get[dQ](){return this[dc].length-this[Al]}get[cbt](){return!!this[nn]&&!this[SE]&&!this[nn].destroyed}get[B7](){return!!(this[nn]?.busy(null)||this[dQ]>=(vbe(this)||1)||this[pQ]>0)}[abt](e){Fbe(this),this.once("connect",e)}[ybt](e,r){let n=new tbt(this[RA].origin,e,r);return this[dc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>w7(this))):this[$d](!0)),this[Tg]&&this[Kd]!==2&&this[B7]&&(this[Kd]=2),this[Kd]<2}[Cbt](){return new Promise(e=>{this[dQ]?this[jd]=e:e(null)})}[Ibt](e){return new Promise(r=>{let n=this[dc].splice(this[hc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[$d]()})}};function _be(t,e){if(t[gQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[hc]===t[Al]);let r=t[dc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}cl(t[dQ]===0)}}function Fbe(t){cl(!t[SE]),cl(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(kbe.isIPv6(o)),r=o}t[SE]=!0,wE.beforeConnect.hasSubscribers&&wE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ]}),t[hQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Xd],localAddress:t[fQ]},(i,o)=>{if(i){Rbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}if(t.destroyed){Ng.destroy(o.on("error",xbe),new sbt),t[$d]();return}cl(o);try{t[nn]=o.alpnProtocol==="h2"?xbt(t,o):Tbt(t,o)}catch(a){o.destroy().on("error",xbe),Rbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}t[SE]=!1,o[Ebt]=0,o[b7]=t[b7],o[obt]=t,o[ubt]=null,wE.connected.hasSubscribers&&wE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],socket:o}),t.emit("connect",t[RA],[t]),t[$d]()})}function Rbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[SE]=!1,wE.connectError.hasSubscribers&&wE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gQ]===0);t[pQ]>0&&t[dc][t[hc]].servername===t[Xd];){let o=t[dc][t[hc]++];Ng.errorRequest(t,o,e)}else _be(t,e);t.emit("connectionError",t[RA],[t],e)}}function Dbe(t){t[Kd]=0,t.emit("drain",t[RA],[t])}function w7(t,e){t[Tg]!==2&&(t[Tg]=2,Dbt(t,e),t[Tg]=0,t[Al]>256&&(t[dc].splice(0,t[Al]),t[hc]-=t[Al],t[Al]=0))}function Dbt(t,e){for(;;){if(t.destroyed){cl(t[pQ]===0);return}if(t[jd]&&!t[dQ]){t[jd](),t[jd]=null;return}if(t[nn]&&t[nn].resume(),t[B7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>Dbe(t))):Dbe(t);continue}if(t[pQ]===0||t[gQ]>=(vbe(t)||1))return;let r=t[dc][t[hc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Xd]!==r.servername){if(t[gQ]>0)return;t[Xd]=r.servername,t[nn]?.destroy(new nbt("servername changed"),()=>{t[nn]=null,w7(t)})}if(t[SE])return;if(!t[nn]){Fbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[hc]++:t[dc].splice(t[hc],1)}}Mbe.exports=Q7});var S7=E((wBr,Lbe)=>{"use strict";var Zk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Lbe.exports=class{constructor(){this.head=this.tail=new Zk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Zk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ev=E((SBr,Wbe)=>{"use strict";var{PoolStats:kbt}=pV(),vbt=yg(),_bt=S7(),{kConnected:N7,kSize:Ube,kRunning:Pbe,kPending:Obe,kQueued:mQ,kBusy:Fbt,kFree:Mbt,kUrl:Lbt,kClose:Ubt,kDestroy:Pbt,kDispatch:Obt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),EQ=Symbol("queue"),T7=Symbol("closed resolve"),x7=Symbol("onDrain"),Hbe=Symbol("onConnect"),Gbe=Symbol("onDisconnect"),qbe=Symbol("onConnectionError"),R7=Symbol("get dispatcher"),Ybe=Symbol("add client"),Vbe=Symbol("remove client"),D7=class extends vbt{[EQ]=new _bt;[mQ]=0;[Vn]=[];[Ps]=!1;[x7](e,r,n){let s=this[EQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};PQe.exports=Y7});var W7=m((vEr,qQe)=>{"use strict";var{InvalidArgumentError:Vbt}=Ke(),{runtimeFeatures:Wbt}=zu();function Jbt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var OQe=Wbt.has("crypto")?b("node:crypto"):null,zbt=OQe?.hash?t=>OQe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function GQe(t){return Array.isArray(t)&&(t.length&1)===0}function jbt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Kbt(t){let e={};if(!t)return e;if(GQe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var HQe=["record","playback","update"];function $bt(t){if(!HQe.includes(t))throw new Vbt(`Invalid snapshot mode: ${t}. Must be one of: ${HQe.join(", ")}`)}qQe.exports={createHeaderFilters:Jbt,hashId:zbt,isUndiciHeaders:GQe,normalizeHeaders:Kbt,isUrlExcludedFactory:jbt,validateSnapshotMode:$bt}});var XQe=m((_Er,$Qe)=>{"use strict";var{writeFile:Xbt,readFile:Zbt,mkdir:eQt}=b("node:fs/promises"),{dirname:tQt,resolve:YQe}=b("node:path"),{setTimeout:rQt,clearTimeout:VQe}=b("node:timers"),{InvalidArgumentError:WQe,UndiciError:nQt}=Ke(),{hashId:sQt,isUrlExcludedFactory:iQt,normalizeHeaders:JQe,createHeaderFilters:zQe}=W7();function Yb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||JQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:jQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function jQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function KQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Vb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return sQt(r)}var J7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=zQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=iQt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Yb(e,this.#a,this.matchOptions),s=Vb(n),i=JQe(r.headers),o={statusCode:r.statusCode,headers:KQe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Yb(e,this.#a,this.matchOptions),n=Vb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new WQe("Snapshot path is required");try{let n=await Zbt(YQe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new nQt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new WQe("Snapshot path is required");let n=YQe(r);await eQt(tQt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Xbt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};f1e.exports=WW});var zW=E((nbr,E1e)=>{"use strict";var{InvalidArgumentError:L1t}=Ke(),{runtimeFeatures:U1t}=il();function P1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var g1e=U1t.has("crypto")?b("node:crypto"):null,O1t=g1e?.hash?t=>g1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function m1e(t){return Array.isArray(t)&&(t.length&1)===0}function H1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function G1t(t){let e={};if(!t)return e;if(m1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var p1e=["record","playback","update"];function q1t(t){if(!p1e.includes(t))throw new L1t(`Invalid snapshot mode: ${t}. Must be one of: ${p1e.join(", ")}`)}E1e.exports={createHeaderFilters:P1t,hashId:O1t,isUndiciHeaders:m1e,normalizeHeaders:G1t,isUrlExcludedFactory:H1t,validateSnapshotMode:q1t}});var N1e=E((sbr,S1e)=>{"use strict";var{writeFile:Y1t,readFile:V1t,mkdir:W1t}=b("node:fs/promises"),{dirname:J1t,resolve:C1e}=b("node:path"),{setTimeout:z1t,clearTimeout:I1e}=b("node:timers"),{InvalidArgumentError:y1e,UndiciError:j1t}=Ke(),{hashId:K1t,isUrlExcludedFactory:$1t,normalizeHeaders:B1e,createHeaderFilters:b1e}=zW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||B1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Q1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Q1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function w1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function vQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return K1t(r)}var jW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=b1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=$1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#a,this.matchOptions),s=vQ(n),i=B1e(r.headers),o={statusCode:r.statusCode,headers:w1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=kQ(e,this.#a,this.matchOptions),n=vQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new y1e("Snapshot path is required");try{let n=await V1t(C1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new j1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new y1e("Snapshot path is required");let n=C1e(r);await W1t(J1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Y1t(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${io} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};PQe.exports=Y7});var W7=m((vEr,qQe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${io}_getValuesQuery ON cacheInterceptorV${io}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${io}_deleteByUrlQuery ON cacheInterceptorV${io}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};PQe.exports=Y7});var W7=m((vEr,qQe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${io}
FROM cacheInterceptorV${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${io} SET
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +168,7 @@ ${e.format(r)}`.trim())}};PQe.exports=Y7});var W7=m((vEr,qQe)=>{"use strict";var
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${io} (
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -182,102 +182,91 @@ ${e.format(r)}`.trim())}};PQe.exports=Y7});var W7=m((vEr,qQe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${io} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${io}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${io} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${io}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${io}
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){gW(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){gW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){gW(e),Vwt(r);let n=0,s=[],i=this;return new Ywt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Wwt(s[l],u[l])){c=!1;break}}if(c)return A}}};function Wwt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var mg=m((rCr,i1e)=>{"use strict";var{kConstruct:Jwt}=$t(),{kEnumerableProperty:uE}=et(),{iteratorMixin:zwt,isValidHeaderName:jb,isValidHeaderValue:e1e}=eo(),{webidl:wt}=$n(),mW=b("node:assert"),Fk=b("node:util");function Zwe(t){return t===10||t===13||t===9||t===32}function t1e(t){let e=0,r=t.length;for(;r>e&&Zwe(t.charCodeAt(r-1));)--r;for(;r>e&&Zwe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function r1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});EW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)EW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function EW(t,e,r){if(r=t1e(r),jb(e)){if(!e1e(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(s1e(t)==="immutable")throw new TypeError("immutable");return Lk(t).append(e,r,!1)}function jwt(t){let e=Lk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function n1e(t,e){return t[0]<e[0]?-1:1}var Mk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":dNe(i)&&(r[s]=i);break;case"id":hNe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&dNe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&hNe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};fNe.exports={EventSourceStream:tJ}});var bNe=m((NCr,BNe)=>{"use strict";var{pipeline:dxt}=b("node:stream"),{fetching:hxt}=eQ(),{makeRequest:fxt}=dE(),{webidl:qs}=$n(),{EventSourceStream:gxt}=gNe(),{parseMIMEType:pxt}=na(),{createFastMessageEvent:mxt}=Av(),{isNetworkError:pNe}=$b(),{kEnumerableProperty:wg}=et(),{environmentSettingsObject:mNe}=eo(),ENe=!1,CNe=3e3,aQ=0,INe=1,AQ=2,Ext="anonymous",Cxt="use-credentials",BE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=aQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),ENe||(ENe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=mNe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Ext;r.withCredentials===!0&&(o=Cxt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=fxt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===AQ)return;this.#r=aQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!pNe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(pNe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?pxt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=INe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new gxt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(mxt(A.type,A.options))}});dxt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=hxt(e)}#c(){this.#r!==AQ&&(this.#r=aQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===aQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==AQ&&(this.#r=AQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},yNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:INe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:AQ,writable:!1}};Object.defineProperties(BE,yNe);Object.defineProperties(BE.prototype,yNe);Object.defineProperties(BE.prototype,{close:wg,onerror:wg,onmessage:wg,onopen:wg,readyState:wg,url:wg,withCredentials:wg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>CNe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);BNe.exports={EventSource:BE,defaultReconnectionTime:CNe}});var xNe=m((TCr,pe)=>{"use strict";var Ixt=vd(),wNe=ob(),yxt=sg(),Bxt=wBe(),bxt=xBe(),Qxt=ag(),wxt=jV(),Sxt=VV(),Nxt=dbe(),Txt=Ebe(),xxt=ybe(),SNe=Ke(),yv=et(),{InvalidArgumentError:Iv}=SNe,bE=rQe(),Rxt=$f(),Dxt=v7(),{MockCallHistory:kx Line truncated
`)}close(){this.#n.close()}get(e){mJ(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){mJ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){mJ(e),LNt(r);let n=0,s=[],i=this;return new MNt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!UNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function UNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Gg=E((Sbr,_Se)=>{"use strict";var{kConstruct:PNt}=Kt(),{kEnumerableProperty:HE}=Ze(),{iteratorMixin:ONt,isValidHeaderName:LQ,isValidHeaderValue:xSe}=ro(),{webidl:wt}=es(),CJ=b("node:assert"),Dv=b("node:util");function TSe(t){return t===10||t===13||t===9||t===32}function RSe(t){let e=0,r=t.length;for(;r>e&&TSe(t.charCodeAt(r-1));)--r;for(;r>e&&TSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function DSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});IJ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)IJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function IJ(t,e,r){if(r=RSe(r),LQ(e)){if(!xSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(vSe(t)==="immutable")throw new TypeError("immutable");return vv(t).append(e,r,!1)}function HNt(t){let e=vv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function kSe(t,e){return t[0]<e[0]?-1:1}var kv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":HTe(i)&&(r[s]=i);break;case"id":GTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&HTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&GTe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};qTe.exports={EventSourceStream:nz}});var XTe=E(($br,$Te)=>{"use strict";var{pipeline:s2t}=b("node:stream"),{fetching:i2t}=GQ(),{makeRequest:o2t}=qE(),{webidl:Hs}=es(),{EventSourceStream:a2t}=YTe(),{parseMIMEType:c2t}=oa(),{createFastMessageEvent:A2t}=s_(),{isNetworkError:VTe}=PQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:WTe}=ro(),JTe=!1,zTe=3e3,jQ=0,jTe=1,KQ=2,u2t="anonymous",l2t="use-credentials",ZE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=jQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),JTe||(JTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=WTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=u2t;r.withCredentials===!0&&(o=l2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=WTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=o2t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===KQ)return;this.#r=jQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!VTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(VTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?c2t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=jTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new a2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(A2t(c.type,c.options))}});s2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=i2t(e)}#A(){this.#r!==KQ&&(this.#r=jQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===jQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==KQ&&(this.#r=KQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},KTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:jTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1}};Object.defineProperties(ZE,KTe);Object.defineProperties(ZE.prototype,KTe);Object.defineProperties(ZE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>zTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);$Te.exports={EventSource:ZE,defaultReconnectionTime:zTe}});var sxe=E((Xbr,pe)=>{"use strict";var d2t=Zd(),exe=zb(),h2t=xg(),f2t=eQe(),g2t=sQe(),p2t=kg(),m2t=$7(),E2t=J7(),C2t=HQe(),I2t=JQe(),y2t=KQe(),txe=Ke(),m_=Ze(),{InvalidArgumentError:p_}=txe,eC=Dwe(),B2t=Bg(),b2t=FW(),{MockCallHistory:Q2 Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return qxt(e,r).catch(n=>{throw QNe?TNe(n,QNe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=mg().Headers;pe.exports.Response=$b().Response;pe.exports.Request=dE().Request;pe.exports.FormData=Y2().FormData;var{setGlobalOrigin:Yxt,getGlobalOrigin:Vxt}=_Y();pe.exports.setGlobalOrigin=Yxt;pe.exports.getGlobalOrigin=Vxt;var{CacheStorage:Wxt}=ASe(),{kConstruct:Jxt}=$t();pe.exports.caches=new Wxt(Jxt);var{deleteCookie:zxt,getCookies:jxt,getSetCookies:Kxt,setCookie:$xt,parseCookie:Xxt}=ySe();pe.exports.deleteCookie=zxt;pe.exports.getCookies=jxt;pe.exports.getSetCookies=Kxt;pe.exports.setCookie=$xt;pe.exports.parseCookie=Xxt;var{parseMIMEType:Zxt,serializeAMimeType:eRt}=na();pe.exports.parseMIMEType=Zxt;pe.exports.serializeAMimeType=eRt;var{CloseEvent:tRt,ErrorEvent:rRt,MessageEvent:nRt}=Av(),{WebSocket:sRt,ping:iRt}=tNe();pe.exports.WebSocket=sRt;pe.exports.CloseEvent=tRt;pe.exports.ErrorEvent=rRt;pe.exports.MessageEvent=nRt;pe.exports.ping=iRt;pe.exports.WebSocketStream=cNe().WebSocketStream;pe.exports.WebSocketError=KW().WebSocketError;pe.exports.request=cQ(bE.request);pe.exports.stream=cQ(bE.stream);pe.exports.pipeline=cQ(bE.pipeline);pe.exports.connect=cQ(bE.connect);pe.exports.upgrade=cQ(bE.upgrade);pe.exports.MockClient=Dxt;pe.exports.MockCallHistory=kxt;pe.exports.MockCallHistoryLog=vxt;pe.exports.MockPool=Fxt;pe.exports.MockAgent=_xt;pe.exports.SnapshotAgent=Mxt;pe.exports.mockErrors=Lxt;var{EventSource:oRt}=bNe();pe.exports.EventSource=oRt;function aRt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=aRt});var uQ=m(Wd=>{"use strict";Wd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Wd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Wd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Wd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Wd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Wd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Wd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var DNe=m((DCr,RNe)=>{"use strict";var{asciiLowercase:Bv,solelyContainsHTTPTokenCodePoints:ARt,soleyContainsHTTPQuotedStringTokenCodePoints:cRt}=uQ();RNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Bv(String(e)),this._map.get(e)}has(e){return e=Bv(String(e)),this._map.has(e)}set(e,r){if(e=Bv(String(e)),r=String(r),!ARt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!cRt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Bv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var _Ne=m((kCr,vNe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:uRt,removeTrailingHTTPWhitespace:kNe,isHTTPWhitespaceChar:lRt,solelyContainsHTTPTokenCodePoints:rJ,soleyContainsHTTPQuotedStringTokenCodePoints:dRt,asciiLowercase:nJ,collectAnHTTPQuotedString:hRt}=uQ();vNe.exports=t=>{t=uRt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!rJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=kNe(n),n.length===0||!rJ(n))return null;let s={type:nJ(r),subtype:nJ(n),parameters:new Map};for(;e<t.length;){for(++e;lRt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=nJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=hRt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=kNe(o),o==="")continue}i.length>0&&rJ(i)&&dRt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var MNe=m((vCr,FNe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:fRt}=uQ();FNe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!fRt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var ONe=m((FCr,PNe)=>{"use strict";var gRt=DNe(),pRt=_Ne(),mRt=MNe(),{asciiLowercase:LNe,solelyContainsHTTPTokenCodePoints:UNe}=uQ();PNe.exports=class{constructor(e){e=String(e);let r=pRt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new gRt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=LNe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!UNe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=LNe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!UNe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return mRt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var sTe=m(bn=>{"use strict";var uJ=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ORt=uJ(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i(await(0,r.stat)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i((0,e.statSync)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getgroups?.()Line truncated
%s`,v,v,f,s);let P=f.type==="*"?iz:f.type==="?"?Az:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=JDt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+ee,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=ee;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==oz?"(?:$|\\/)":"";s=D+z+ee+$e+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===oz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return jDt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?iz:r.dot?VDt:WDt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?$Dt(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;az.sep!=="/"&&(e=e.split(az.sep).join("/")),e=e.split(Nxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return lo.defaults(e).Minimatch}};lo.Minimatch=xE});var Fxe=m((vyr,_xe)=>{_xe.exports=vxe;var lz=b("fs"),{EventEmitter:ZDt}=b("events"),{Minimatch:uz}=Rxe(),{resolve:e2t}=b("path");function t2t(t,e){return new Promise((r,n)=>{lz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Dxe(t,e){return new Promise((r,n)=>{(e?lz.stat:lz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Dxe(t,!1):null):r(null):r(o)})})}async function*kxe(t,e,r,n,s,i){let o=await t2t(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Dxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*kxe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*r2t(t,e,r,n){yield*kxe("",t,e,r,n,!0)}function n2t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Lv=class extends ZDt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=n2t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new uz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new uz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new uz(i,{dot:!0}))}this.iterator=r2t(e2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function xC(Q){let B=TC(Q.toString()),w=B.match(VF);if(w||(w=B.match(WF)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return F2t(e,r).catch(n=>{throw ZTe?nxe(n,ZTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=PQ().Response;pe.exports.Request=qE().Request;pe.exports.FormData=Ok().FormData;var{setGlobalOrigin:M2t,getGlobalOrigin:L2t}=MV();pe.exports.setGlobalOrigin=M2t;pe.exports.getGlobalOrigin=L2t;var{CacheStorage:U2t}=LNe(),{kConstruct:P2t}=Kt();pe.exports.caches=new U2t(P2t);var{deleteCookie:O2t,getCookies:H2t,getSetCookies:G2t,setCookie:q2t,parseCookie:Y2t}=KNe();pe.exports.deleteCookie=O2t;pe.exports.getCookies=H2t;pe.exports.getSetCookies=G2t;pe.exports.setCookie=q2t;pe.exports.parseCookie=Y2t;var{parseMIMEType:V2t,serializeAMimeType:W2t}=oa();pe.exports.parseMIMEType=V2t;pe.exports.serializeAMimeType=W2t;var{CloseEvent:J2t,ErrorEvent:z2t,MessageEvent:j2t}=s_(),{WebSocket:K2t,ping:$2t}=RTe();pe.exports.WebSocket=K2t;pe.exports.CloseEvent=J2t;pe.exports.ErrorEvent=z2t;pe.exports.MessageEvent=j2t;pe.exports.ping=$2t;pe.exports.WebSocketStream=UTe().WebSocketStream;pe.exports.WebSocketError=XJ().WebSocketError;pe.exports.request=$Q(eC.request);pe.exports.stream=$Q(eC.stream);pe.exports.pipeline=$Q(eC.pipeline);pe.exports.connect=$Q(eC.connect);pe.exports.upgrade=$Q(eC.upgrade);pe.exports.MockClient=b2t;pe.exports.MockCallHistory=Q2t;pe.exports.MockCallHistoryLog=w2t;pe.exports.MockPool=N2t;pe.exports.MockAgent=S2t;pe.exports.SnapshotAgent=T2t;pe.exports.mockErrors=x2t;var{EventSource:X2t}=XTe();pe.exports.EventSource=X2t;function Z2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Z2t});var XQ=E(dh=>{"use strict";dh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");dh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");dh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";dh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);dh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);dh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());dh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var oxe=E((tQr,ixe)=>{"use strict";var{asciiLowercase:E_,solelyContainsHTTPTokenCodePoints:ekt,soleyContainsHTTPQuotedStringTokenCodePoints:tkt}=XQ();ixe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=E_(String(e)),this._map.get(e)}has(e){return e=E_(String(e)),this._map.has(e)}set(e,r){if(e=E_(String(e)),r=String(r),!ekt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!tkt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=E_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Axe=E((rQr,cxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:rkt,removeTrailingHTTPWhitespace:axe,isHTTPWhitespaceChar:nkt,solelyContainsHTTPTokenCodePoints:sz,soleyContainsHTTPQuotedStringTokenCodePoints:skt,asciiLowercase:iz,collectAnHTTPQuotedString:ikt}=XQ();cxe.exports=t=>{t=rkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!sz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=axe(n),n.length===0||!sz(n))return null;let s={type:iz(r),subtype:iz(n),parameters:new Map};for(;e<t.length;){for(++e;nkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=iz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=ikt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=axe(o),o==="")continue}i.length>0&&sz(i)&&skt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var lxe=E((nQr,uxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:okt}=XQ();uxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!okt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var gxe=E((iQr,fxe)=>{"use strict";var akt=oxe(),ckt=Axe(),Akt=lxe(),{asciiLowercase:dxe,solelyContainsHTTPTokenCodePoints:hxe}=XQ();fxe.exports=class{constructor(e){e=String(e);let r=ckt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new akt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=dxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!hxe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=dxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!hxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Akt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var vxe=E(Qn=>{"use strict";var dz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vkt=dz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?nj:f.type==="?"?oj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=Mvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==sj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Uvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?nj:r.dot?_vt:Fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Ovt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Gs))}),o.filter(a=>a!==Gs).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;ij.sep!=="/"&&(e=e.split(ij.sep).join("/")),e=e.split(rDe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return go.defaults(e).Minimatch}};go.Minimatch=aC});var uDe=E((i1r,ADe)=>{ADe.exports=cDe;var Aj=b("fs"),{EventEmitter:Gvt}=b("events"),{Minimatch:cj}=iDe(),{resolve:qvt}=b("path");function Yvt(t,e){return new Promise((r,n)=>{Aj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function oDe(t,e){return new Promise((r,n)=>{(e?Aj.stat:Aj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?oDe(t,!1):null):r(null):r(o)})})}async function*aDe(t,e,r,n,s,i){let o=await Yvt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await oDe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*aDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Vvt(t,e,r,n){yield*aDe("",t,e,r,n,!0)}function Wvt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var k_=class extends Gvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Wvt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new cj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new cj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new cj(i,{dot:!0}))}this.iterator=Vvt(qvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Fw).map(H=>H.replace(Mw,"").trim())}function RC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],V,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),w[F]=V.concat(V.length>0?te:H);else if(j)w[F]=H;else{if(V=xC(H),H.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(te)}function te(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(H)(...Ft)}}),NC(w,B)}class DC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):kC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):kC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function kC(Q,B){Q.length=1,Q.head=Q.tail=B}function up(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var yr,Tn;function Co(yh,...PC){if(yh)return Pe?Tn(yh):yr();if(PC.length<=1)return yr(PC[0]);yr(PC)}var fp=Mt._createTaskItem(Ue,Pe?Co:Nt||Co);if(be?Mt._tasks.unshift(fp):Mt._tasks.push(fp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((yh,PC)=>{yr=yh,Tn=PC})}function Eo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,yr=Ue.length;Nt<yr;Nt++){var Tn=Ue[Nt],Co=V.indexOf(Tn);Co===0?V.shift():Co>0&&V.splice(Co,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}H<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function hp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>Bt("drain")),!0):!1}let Ih=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(yr,Tn)=>{if(yr)return Nt(yr);Pe(Tn)})});Se(Ue),j(Ue,be)};var UC=!1,Mt={_tasks:new DC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!UC){for(UC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var yr=Mt._tasks.shift();Ue.push(yr),V.push(yr),be.push(yr.data)}H+=1,Mt._tasks.length===0&&Bt("empty"),H===Mt.concurrency&&Bt("saturated");var Tn=ne(Eo(Ue));F(be,Tn)}UC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return V},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ih("saturated")},unsaturated:{writable:!1,value:Ih("unsaturated")},empty:{writable:!1,value:Ih("empty")},drain:{writable:!1,value:Ih("drain")},error:{writable:!1,value:Ih("error")}}),Mt}function vC(Q,B){return up(Q,1,B)}function lp(Q,B,w){return up(Q,B,w)}function mo(Q,B,w,F){F=Y(F);var H=I(w);return $s(Q,(V,J,j)=>{H(B,V,(te,Se)=>{B=Se,j(te)})},V=>F(V,B))}var Ia=E(mo,4);function dp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=eu(),Ia(B,w,(V,J,j)=>{J.apply(F,V.concat((te,...Se)=>{j(te,Se)}))},(V,J)=>H(V,...J)),H[Zc]}}function Lw(...Q){return dp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(V,J)=>{H(V,(j,...te)=>j?J(j):J(j,te))},(V,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(V,j)})}var q=E(N,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[Zn]||(Vxe=global[Zn]||[],Jxe(vr,Vxe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||Wxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Gv,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),Wxe()}return Object.defineProperty(e,Gv,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kg(vr[Zn]),b("assert").equal(vr[Zn].length,0)}));var Vxe;global[Zn]||Jxe(global,vr[Zn]);gz.exports=hz(d2t(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(gz.exports=hz(vr),vr.__patched=!0);function hz(t){u2t(t),t.gracefulify=hz,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),ne(D,z,ee);function ne(Ae,ge,De,$e){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?RE([ne,[Ae,ge,De],it,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=0),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var ne=u.test(process.version)?function(De,$e,it,Wt){return c(De,Ae(De,$e,it,Wt))}:function(De,$e,it,Wt){return c(De,$e,Ae(De,$e,it,Wt))};return ne(D,z,ee);function Ae(ge,De,$e,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?RE([ne,[ge,De,$e],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=l2t(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return v(ge,De,$e,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function RE(t){kg("ENQUEUE",t[0].name,t[1]),vr[Zn].push(t),fz()}var Hv;function Wxe(){for(var t=Date.now(),e=0;e<vr[Zn].length;++e)vr[Zn][e].length>2&&(vr[Zn][e][3]=t,vr[Zn][e][4]=t);fz()}function fz(){if(clearTimeout(Hv),Hv=void 0,vr[Zn].length!==0){var t=vr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)kg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){kg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(kg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[Zn].push(t)}Hv===void 0&&(Hv=setTimeout(fz,0))}}});var qv=m((Uyr,zxe)=>{"use strict";var Pc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pc.writable=t=>Pc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pc.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};S2e.exports={AggregateError:$z,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Xz=m((zBr,N2e)=>{"use strict";N2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=m((jBr,R2e)=>{"use strict";var{format:FFt,inspect:A_}=Xz(),{AggregateError:MFt}=xr(),LFt=globalThis.AggregateError||MFt,UFt=Symbol("kIsNodeError"),PFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],OFt=/^([A-Z][a-z0-9]*)+$/,HFt="__node_internal_",c_={};function Fg(t,e){if(!t)throw new c_.ERR_INTERNAL_ASSERTION(e)}function T2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function GFt(t,e,r){if(typeof e=="function")return Fg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Fg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:FFt(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(GFt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[UFt]=!0,c_[t]=n}function x2e(t){let e=HFt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function qFt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new LFt([e,t],e.message);return r.code=e.code,r}return t||e}var Zz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new c_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Fg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)Fg(typeof A=="string","All expected entries have to be of type string"),PFt.includes(A)?s.push(A.toLowerCase()):OFt.test(A)?i.push(A):(Fg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=D$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=D$(" "+s+"="+n[s]+`
`);return kt.from(r)};mC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};mC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,dh(e.mode&eGt,6),100),kt.write(r,dh(e.uid,6),108),kt.write(r,dh(e.gid,6),116),aGt(e.size,r,124),kt.write(r,dh(e.mtime.getTime()/1e3|0,11),136),r[156]=LF+iGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(XUe,r,Nw),kt.copy($9t,r,k$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,dh(e.devmajor||0,6),329),kt.write(r,dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,dh(ePe(r),6),148),r)};mC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-LF,i=pC(e,0,100,r),o=lh(e,100,8),a=lh(e,108,8),A=lh(e,116,8),c=lh(e,124,12),u=lh(e,136,12),l=sGt(s),d=e[157]===0?null:pC(e,157,100,r),h=pC(e,265,32),f=pC(e,297,32),p=lh(e,329,8),I=lh(e,337,8),E=ePe(e);if(E===256)return null;if(E!==lh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(tGt(e))e[345]&&(i=pC(e,345,155,r)+"/"+i);else if(!rGt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function tGt(t){return kt.equals(XUe,t.subarray(Nw,Nw+6))}function rGt(t){return kt.equals(X9t,t.subarray(Nw,Nw+6))&&kt.equals(Z9t,t.subarray(k$,k$+2))}function nGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function sGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function iGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function ZUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function ePe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function dh(t,e){return t=t.toString(8),t.length>e?K9t.slice(0,e)+" ":j9t.slice(0,e-t.length)+t+" "}function oGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function aGt(t,e,r){t.toString(8).length>11?oGt(t,e,r):kt.write(e,dh(t,11),r)}function AGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function lh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return AGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=nGt(ZUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function pC(t,e,r,n){return kt.toString(t.subarray(e,ZUe(t,0,e,e+r)),n)}function D$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var iPe=m((ywr,sPe)=>{var{Writable:cGt,Readable:uGt,getStreamError:tPe}=R$(),lGt=g$(),rPe=lC(),EC=v$(),dGt=rPe.alloc(0),F$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new lGt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return dGt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return rPe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},M$=class extends uGt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(tPe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=nPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},L$=class extends cGt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function kae(t,e){if(process.env.GITHUB_OUTPUT||"")return OC("OUTPUT",o1(t,e));process.stdout.write(MP.EOL),Ba("set-output",{name:t},fA(e))}function Hl(t){process.exitCode=FP.Failure,TA(t)}function Fa(){return process.env.RUNNER_DEBUG==="1"}function G(t){Ba("debug",{},t)}function TA(t,e={}){Ba("error",n1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Ba("warning",n1(e),t instanceof Error?t.toString():t)}function vae(t,e={}){Ba("notice",n1(e),t instanceof Error?t.toString():t)}function X(t){process.stdout.write(t+MP.EOL)}function Eze(t){rM("group",t)}function Cze(){rM("endgroup")}function lN(t,e){return mze(this,void 0,void 0,function*(){Eze(t);let r;try{r=yield e()}finally{Cze()}return r})}function mu(t,e){if(process.env.GITHUB_STATE||"")return OC("STATE",o1(t,e));Ba("save-state",{name:t},fA(e))}function lm(t){return process.env[`STATE_${t}`]||""}import*as AJ from"fs";import*as cJ from"path";import*as wv from"os";import{readFileSync as Ize,existsSync as yze}from"fs";import{EOL as Bze}from"os";var dm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(yze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Ize(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Bze}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var HP=ce(Uae(),1),Pae=ce(rN(),1),Fze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Oae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Hae(t){return new HP.HttpClient().getAgent(t)}function Mze(t){return new HP.HttpClient().getAgentDispatcher(t)}function Gae(t){let e=Mze(t);return(n,s)=>Fze(this,void 0,void 0,function*(){return(0,Pae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function qae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function EN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function CN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>CN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Yae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Vae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Wae=Function.bind,Jae=Wae.bind(Wae);function zae(t,e,r){let n=Jae(Vae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Jae(Yae,null).apply(null,i)})}function Uze(){let t=Symbol("Singular"),e={registry:{}},r=CN.bind(null,e,t);return zae(r,e,t),r}function Pze(){let t={registry:{}},e=CN.bind(null,t);return zae(e,t),e}var jae={Singular:Uze,Collection:Pze};var sO=ce(e Line truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(b1).map(q=>q.replace(Q1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,B)}class AI{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):uI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):uI(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Mp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,xn;function Bo(Hh,...mI){if(Hh)return Pe?xn(Hh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Op=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Op):Mt._tasks.push(Op),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Hh,mI)=>{Ir=Hh,xn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var xn=Ue[Nt],Bo=V.indexOf(xn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),xn.callback(be,...Pe),be!=null&&Bt("error",be,xn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Pp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,xn)=>{if(Ir)return Nt(Ir);Pe(xn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var xn=te(yo(Ue));F(be,xn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Oh("saturated")},unsaturated:{writable:!1,value:Oh("unsaturated")},empty:{writable:!1,value:Oh("empty")},drain:{writable:!1,value:Oh("drain")},error:{writable:!1,value:Oh("error")}}),Mt}function lI(Q,B){return Mp(Q,1,B)}function Lp(Q,B,w){return Mp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var Sa=m(Io,4);function Up(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=Au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[cu]}}function w1(...Q){return Up(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var X=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(IDe=global[rs]||[],BDe(vr,IDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||yDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,L_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),yDe()}return Object.defineProperty(e,L_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var IDe;global[rs]||BDe(global,vr[rs]);hj.exports=lj(t_t(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(hj.exports=lj(vr),vr.__patched=!0);function lj(t){Zvt(t),t.gracefulify=lj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?cC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?cC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=e_t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function cC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),dj()}var M_;function yDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);dj()}function dj(){if(clearTimeout(M_),M_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}M_===void 0&&(M_=setTimeout(dj,0))}}});var U_=E((u1r,bDe)=>{"use strict";var zA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";zA.writable=t=>zA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";zA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};tve.exports={AggregateError:jj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Kj=E((ISr,rve)=>{"use strict";rve.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Is=E((ySr,ive)=>{"use strict";var{format:QUt,inspect:nF}=Kj(),{AggregateError:wUt}=Tr(),SUt=globalThis.AggregateError||wUt,NUt=Symbol("kIsNodeError"),TUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xUt=/^([A-Z][a-z0-9]*)+$/,RUt="__node_internal_",sF={};function ap(t,e){if(!t)throw new sF.ERR_INTERNAL_ASSERTION(e)}function nve(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function DUt(t,e,r){if(typeof e=="function")return ap(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:QUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(DUt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[NUt]=!0,sF[t]=n}function sve(t){let e=RUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function kUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new SUt([e,t],e.message);return r.code=e.code,r}return t||e}var $j=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new sF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)ap(typeof c=="string","All expected entries have to be of type string"),TUt.includes(c)?s.push(c.toLowerCase()):xUt.test(c)?i.push(c):(ap(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=xX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=xX(" "+s+"="+n[s]+`
`);return kt.from(r)};jC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};jC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&qYt,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),KYt(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=kM+zYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(NOe,r,f1),kt.copy(OYt,r,RX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(xOe(r),6),148),r)};jC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-kM,i=zC(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=JYt(s),d=e[157]===0?null:zC(e,157,100,r),h=zC(e,265,32),f=zC(e,297,32),p=Dh(e,329,8),I=Dh(e,337,8),m=xOe(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(YYt(e))e[345]&&(i=zC(e,345,155,r)+"/"+i);else if(!VYt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function YYt(t){return kt.equals(NOe,t.subarray(f1,f1+6))}function VYt(t){return kt.equals(HYt,t.subarray(f1,f1+6))&&kt.equals(GYt,t.subarray(RX,RX+2))}function WYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function JYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function zYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function TOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function xOe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kh(t,e){return t=t.toString(8),t.length>e?PYt.slice(0,e)+" ":UYt.slice(0,e-t.length)+t+" "}function jYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function KYt(t,e,r){t.toString(8).length>11?jYt(t,e,r):kt.write(e,kh(t,11),r)}function $Yt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return $Yt(t);{for(;e<t.length&&t[e]===32;)e++;let n=WYt(TOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function zC(t,e,r,n){return kt.toString(t.subarray(e,TOe(t,0,e,e+r)),n)}function xX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var _Oe=E((JTr,vOe)=>{var{Writable:XYt,Readable:ZYt,getStreamError:ROe}=TX(),eVt=hX(),DOe=qC(),KC=DX(),tVt=DOe.alloc(0),vX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new eVt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return tVt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return DOe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},_X=class extends ZYt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(ROe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=kOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},FX=class extends XYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function xce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",z1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},bc(e))}function Xl(t){process.exitCode=kO.Failure,Pi(t)}function Oa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",V1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Ta("warning",V1(e),t instanceof Error?t.toString():t)}function Rce(t,e={}){Ta("notice",V1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+vO.EOL)}function Dce(t){ZM("group",t)}function kce(){ZM("endgroup")}function ZN(t,e){return Kje(this,void 0,void 0,function*(){Dce(t);let r;try{r=yield e()}finally{kce()}return r})}function Lc(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",z1(t,e));Ta("save-state",{name:t},bc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as uz from"fs";import*as lz from"path";import*as y_ from"os";import{readFileSync as $je,existsSync as Xje}from"fs";import{EOL as Zje}from"os";var Lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Xje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse($je(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Zje}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var UO=fe(Lce(),1),Uce=fe(YN(),1),dKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Pce(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Oce(t){return new UO.HttpClient().getAgent(t)}function hKe(t){return new UO.HttpClient().getAgentDispatcher(t)}function Hce(t){let e=hKe(t);return(n,s)=>dKe(this,void 0,void 0,function*(){return(0,Uce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Gce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function oT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>oT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function qce(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Yce(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Vce=Function.bind,Wce=Vce.bind(Vce);function Jce(t,e,r){let n=Wce(Yce,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Wce(qce,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var _je=class extends Error{constructor(t,e,r){super(vje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Fje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Mje=["query","method","url"],IAe=/\/api\/v3\/?$/;function Lje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Mje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Fje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return IAe.test(i)&&(s.url=i.replace(IAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new _je(s,a,o.data)}return o.data.data})}function tO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Lje(r,s,i),{defaults:tO.bind(null,r),endpoint:r.endpoint})}var L7t=tO(yAe.request,{headers:{"user-agent":`octokit-graphql.js/${kje} ${EN()}`},method:"POST",url:"/graphql"});function BAe(t){return tO(t,{method:"POST",url:"/graphql"})}var rO="(?:[a-zA-Z0-9_-]+)",bAe="\\.",QAe=new RegExp(`^${rO}${bAe}${rO}${bAe}${rO}$`),Uje=QAe.test.bind(QAe);async function Pje(t){let e=Uje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function Oje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Hje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Oje(t),e(s)}var wAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Pje.bind(null,e),{hook:Hje.bind(null,e)})};var nO="7.0.6";var SAe=()=>{},Gje=console.warn.bind(console),qje=console.error.bind(console);function Yje(t={}){return typeof t.debug!="function"&&(t.debug=SAe),typeof t.info!="function"&&(t.info=SAe),typeof t.warn!="function"&&(t.warn=Gje),typeof t.error!="function"&&(t.error=qje),t}var NAe=`octokit-core.js/${nO} ${EN()}`,BN=class{static VERSION=nO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new jae.Collection,n={baseUrl:sO.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${NAe}`:NAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=sO.request.defaults(n),this.graphql=BAe(this.request).defaults(n),this.log=Yje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=wAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var iO="17.0.0";var Vje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`)}var t$e=class extends Error{constructor(t,e,r){super(e$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},r$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],n$e=["query","method","url"],EAe=/\/api\/v3\/?$/;function s$e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(n$e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>r$e.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return EAe.test(i)&&(s.url=i.replace(EAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new t$e(s,a,o.data)}return o.data.data})}function zO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>s$e(r,s,i),{defaults:zO.bind(null,r),endpoint:r.endpoint})}var kzt=zO(Sy,{headers:{"user-agent":`octokit-graphql.js/${ZKe} ${Zl()}`},method:"POST",url:"/graphql"});function CAe(t){return zO(t,{method:"POST",url:"/graphql"})}var jO="(?:[a-zA-Z0-9_-]+)",IAe="\\.",yAe=new RegExp(`^${jO}${IAe}${jO}${IAe}${jO}$`),i$e=yAe.test.bind(yAe);async function o$e(t){let e=i$e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function a$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function c$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=a$e(t),e(s)}var BAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(o$e.bind(null,e),{hook:c$e.bind(null,e)})};var KO="7.0.6";var bAe=()=>{},A$e=console.warn.bind(console),u$e=console.error.bind(console);function l$e(t={}){return typeof t.debug!="function"&&(t.debug=bAe),typeof t.info!="function"&&(t.info=bAe),typeof t.warn!="function"&&(t.warn=A$e),typeof t.error!="function"&&(t.error=u$e),t}var QAe=`octokit-core.js/${KO} ${Zl()}`,AT=class{static VERSION=KO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new zce.Collection,n={baseUrl:Sy.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${QAe}`:QAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=CAe(this.request).defaults(n),this.log=l$e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=BAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var $O="17.0.0";var d$e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XI(i));return n.searchPaths.push(...hO(n.patterns)),n})}static stat(e,r,n){return EO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Em.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Em.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Em.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as CO from"crypto";import*as RN from"fs";import*as uce from"stream";import*as lce from"util";import*as dce from"path";var vKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},_Ke=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function hce(t,e){return vKe(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?X:G,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=CO.createHash("sha256"),f=0;try{for(var p=!0,I=_Ke(r.globGenerator()),E;E=yield I.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${dce.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(RN.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=CO.createHash("sha256");yield lce.promisify(uce.pipeline)(RN.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var fce=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function ey(t,e){return fce(this,void 0,void 0,function*(){return yield TN.create(t,e)})}function gce(t){return fce(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield ey(e,{followSymbolicLinks:i});return hce(o,r,s)})}var ile=ce(Ay(),1);import*as VN from"crypto";import*as ym from"fs";import*as ef from"path";import*as ole from"util";var cy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(cy||(cy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Pi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Pi||(Pi={}));var qN=2,YN=5e3,OO=5e3,HO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,uy="cache.tar",GO="manifest.txt",IJt=10*Math.pow(1024,3);var Im=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},RZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},DZe="1.0";function ly(){return Im(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=ef.join(n,"actions","temp")}let r=ef.join(e,VN.randomUUID());return yield Vh(r),r})}function RA(t){return ym.statSync(t).size}function qO(t){return Im(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield ey(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=RZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=ef.relative(a,s).replace(new RegExp(`\\${ef.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function dy(t){return Im(this,void 0,void 0,function*(){return ole.promisify(ym.unlink)(t)})}function ale(t){return Im(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield _a(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function hy(){return Im(this,void 0,void 0,function*(){let t=yield ale("zstd",["--quiet"]),e=ile.clean(t);return G(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function Vl(t){return t===vs.Gzip?cy.Gzip:cy.Zstd}function Ale(){return Im(this,void 0,void 0,function*(){return ym.existsSync(HO)?HO:(yield ale("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function YO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Bm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(DZe),VN.createHash("sha256").update(n.join("|")).digest("hex")}function cle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Km from"fs";import{URL as sat}from"url";var DA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as kZe}from"node:os";import vZe from"node:util";import _Ze from"node:process";function ule(t,...e){_Ze.stderr.write(`${vZe.format(t,...e)}${kZe}`)}var lle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,hle,VO=[],WO=[],JN=[];lle&&JO(lle);var fle=Object.assign(t=>gle(t),{enable:JO,enabled:zO,disable:FZe,log:ule});function JO(t){hle=t,VO=[],WO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?WO.push(r.substring(1)):VO.push(r);for(let r of JN)r.enabled=zO(r.namespace)}function zO(t){if(t.endsWith("*"))return!0;for(let e of WO)if(dle(t,e))return!1;for(let e of VO)if(dle(t,e))return!0;return!1}function dle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function FZe(){let t=hle||"";return JO(""),t}function gle(t){let e=Object.assign(r,{enabled:zO(t),destroy:MZe,log:fle.log,namespace:t,extend:LZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return JN.push(e),e}function MZe(){let t=JN.indexOf(this);return t>=0?(JN.splice(t,1),!0):!1}function LZe(t){let e=gle(`${this.namespace}:${t}`);return e.log=this.log,e}var bm=fle;var jO=["verbose","info","warning","error"],ple={verbose:400,info:300,warning:200,error:100};function mle(t,e){e.log=(...r)=>{t.log(...r)}}function Ele(t){return jO.includes(t)}function UZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=bm(t.namespace);s.log=(...u)=>{bm.log(...u)};function i(u){if(u&&!Ele(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${jO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);bm.enable(l.join(","))}r&&(Ele(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${jO.join(", ")}.`));function o(u){return!!(n&&ple[u.level]<=ple[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(mle(u,d),o(d)){let h=bm.disable();bm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return mle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var Cle=UZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),PZe=Cle.logger;function fy(t){return Cle.createClientLogger(t)}function zN(t){return t.toLowerCase()}function*OZe(t){for(let e of t.values())yield[e.name,e.value]}var KO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(zN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(zN(e))?.value}has(e){return this._headersMap.has(zN(e))}delete(e){this._headersMap.delete(zN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${YZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function $N(t){return t instanceof _s?!0:rf(t)&&t.name==="RestError"}function ii(t,e){return Buffer.from(t,e)}import e3 from"node:http";import t3 from"node:https";import Ble from"node:zlib";import{Transform as VZe}from"node:stream";var Ro=fy("ts-http-runtime");var WZe={};function gy(t){return t&&typeof t.pipe=="function"}function ble(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Qle(t){return t&&typeof t.byteLength=="number"}var XN=class extends VZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},r3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new DA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Pa;Ro.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=KZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new XN(f);p.on("error",I=>{Ro.error("Error in upload progress",I)}),gy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=JZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?zZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new XN(h);f.on("error",p=>{Ro.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await jZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();gy(a)&&(c=ble(a));let u=Promise.resolve();gy(A)&&(u=ble(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ro.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?e3.request(a,A):t3.request(a,A);u.once("error",l=>{c(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new DA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&gy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Qle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ro.error("Unrecognized body type",n),c(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?e3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new e3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return t3.globalAgent;let s=e.tlsSettings??WZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ro.info("No cached TLS Agent exist, creating a new Agent"),i=new t3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function JZe(t){let e=Oi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function zZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Ble.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Ble.createInflate();return t.pipe(n),n}return t}function jZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function KZe(t){return t?Buffer.isBuffer(t)?t.length:gy(t)?null:Qle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function wle(){return new r3}function ZN(){return wle()}var n3="logPolicy";function eT(t={}){let e=t.logger??Ro.info,r=new Pa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:n3,async sendRequest(n,s){if(!e. Line truncated
`;return e}function Itt(t){return t instanceof Uint8Array?t.byteLength:BT(t)?t.size===-1?void 0:t.size:void 0}function ytt(t){let e=0;for(let r of t){let n=Itt(r);if(n===void 0)return;e+=n}return e}async function Btt(t,e,r){let n=[ii(`--${r}`,"utf-8"),...e.flatMap(i=>[ii(`\r
`,"utf-8"),ii(Ctt(i.headers),"utf-8"),ii(`\r
`,"utf-8"),i.body,ii(`\r
--${r}`,"utf-8")]),ii(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Dy(i));return n.searchPaths.push(...i3(n.patterns)),n})}static stat(e,r,n){return u3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield qm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield qm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield qm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var W$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function tue(t,e){return W$e(this,void 0,void 0,function*(){return yield gT.create(t,e)})}var Jle=fe(Uy(),1);import*as DT from"crypto";import*as Jm from"fs";import*as yf from"path";import*as zle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var xT=2,RT=5e3,D3=5e3,k3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Wle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",v3="manifest.txt",wKt=10*Math.pow(1024,3);var Wm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},rtt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},ntt="1.0";function Hy(){return Wm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=yf.join(n,"actions","temp")}let r=yf.join(e,DT.randomUUID());return yield df(r),r})}function Pc(t){return Jm.statSync(t).size}function _3(t){return Wm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield tue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=rtt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Gy(t){return Wm(this,void 0,void 0,function*(){return zle.promisify(Jm.unlink)(t)})}function jle(t){return Wm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Pa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Wm(this,void 0,void 0,function*(){let t=yield jle("zstd",["--quiet"]),e=Jle.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function sd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function Kle(){return Wm(this,void 0,void 0,function*(){return Jm.existsSync(k3)?k3:(yield jle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function F3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(ntt),DT.createHash("sha256").update(n.join("|")).digest("hex")}function $le(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Q0 from"fs";import{URL as Oct}from"url";var Oc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as stt}from"node:os";import itt from"node:util";import ott from"node:process";function Xle(t,...e){ott.stderr.write(`${itt.format(t,...e)}${stt}`)}import Yy from"node:process";function vT(t){return Yy.env[t]}var Zle=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,ede=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,_T=!0;var tde=vT("DEBUG"),nde,M3=[],L3=[],FT=[];tde&&U3(tde);var sde=Object.assign(t=>ide(t),{enable:U3,enabled:P3,disable:att,log:Xle});function U3(t){nde=t,M3=[],L3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L3.push(r.substring(1)):M3.push(r);for(let r of FT)r.enabled=P3(r.namespace)}function P3(t){if(t.endsWith("*"))return!0;for(let e of L3)if(rde(t,e))return!1;for(let e of M3)if(rde(t,e))return!0;return!1}function rde(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function att(){let t=nde||"";return U3(""),t}function ide(t){let e=Object.assign(r,{enabled:P3(t),destroy:ctt,log:sde.log,namespace:t,extend:Att});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ctt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function Att(t){let e=ide(`${this.namespace}:${t}`);return e.log=this.log,e}var jm=sde;var O3=["verbose","info","warning","error"],ode={verbose:400,info:300,warning:200,error:100};function ade(t,e){e.log=(...r)=>{t.log(...r)}}function cde(t){return O3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=jm(t.namespace);s.log=(...u)=>{jm.log(...u)};function i(u){if(u&&!cde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${O3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);jm.enable(l.join(","))}r&&(cde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function o(u){return!!(n&&ode[u.level]<=ode[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(ade(u,d),o(d)){let h=jm.disable();jm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return ade(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Ade=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),utt=Ade.logger;function Vy(t){return Ade.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ltt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*dtt(t){for(let e of t.values())yield[e.name,e.value]}var H3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(LT(e),{name:e,value:ltt(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ptt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Km(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import V3 from"node:http";import W3 from"node:https";import dde from"node:zlib";import{Transform as mtt}from"node:stream";var si=Vy("ts-http-runtime");var Ett={};function Wy(t){return t&&typeof t.pipe=="function"}function hde(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function fde(t){return t&&typeof t.byteLength=="number"}var OT=class extends mtt{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},J3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Oc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Va;si.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Btt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new OT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Ctt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ytt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=hde(a));let u=Promise.resolve();Wy(c)&&(u=hde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?V3.request(a,c):W3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Oc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):fde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W3.globalAgent;let s=e.tlsSettings??Ett,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new W3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Ctt(t){let e=Gi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function Itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=dde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=dde.createInflate();return t.pipe(n),n}return t}function ytt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Btt(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:fde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function gde(){return new J3}function HT(){return gde()}var z3="logPolicy";function GT(t={}){let e=t.logger??si.info,r=new Va({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:z3,asy Line truncated
`;return e}function qrt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function Yrt(t){let e=0;for(let r of t){let n=qrt(r);if(n===void 0)return;e+=n}return e}async function Vrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Grt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=ytt(n);s&&t.headers.set("Content-Length",s),t.body=await yde(n)}var Ey="multipartPolicy",btt=70,Qtt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function wtt(t){if(t.length>btt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qtt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function bT(){return{name:Ey,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?wtt(r):r=Ett(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Btt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function QT(){return KN()}import{EOL as Ntt}from"node:os";import Ttt from"node:util";import*as Bde from"node:process";function bde(t,...e){Bde.stderr.write(`${Ttt.format(t,...e)}${Ntt}`)}var Qde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,wde,y3=[],B3=[],wT=[];Qde&&b3(Qde);var Sde=Object.assign(t=>Nde(t),{enable:b3,enabled:Q3,disable:xtt,log:bde});function b3(t){wde=t,y3=[],B3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?B3.push(new RegExp(`^${n.substr(1)}$`)):y3.push(new RegExp(`^${n}$`));for(let n of wT)n.enabled=Q3(n.namespace)}function Q3(t){if(t.endsWith("*"))return!0;for(let e of B3)if(e.test(t))return!1;for(let e of y3)if(e.test(t))return!0;return!1}function xtt(){let t=wde||"";return b3(""),t}function Nde(t){let e=Object.assign(r,{enabled:Q3(t),destroy:Rtt,log:Sde.log,namespace:t,extend:Dtt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return wT.push(e),e}function Rtt(){let t=wT.indexOf(this);return t>=0?(wT.splice(t,1),!0):!1}function Dtt(t){let e=Nde(`${this.namespace}:${t}`);return e.log=this.log,e}var Rm=Sde;var xde=new Set,ST=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,w3,S3=Rm("azure");S3.log=(...t)=>{Rm.log(...t)};var N3=["verbose","info","warning","error"];ST&&(kde(ST)?ktt(ST):console.error(`AZURE_LOG_LEVEL set to unknown log level '${ST}'; logging is not enabled. Acceptable values: ${N3.join(", ")}.`));function ktt(t){if(t&&!kde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${N3.join(",")}`);w3=t;let e=[];for(let r of xde)Dde(r)&&e.push(r.namespace);Rm.enable(e.join(","))}var Tde={verbose:400,info:300,warning:200,error:100};function _o(t){let e=S3.extend(t);return Rde(S3,e),{error:NT(e,"error"),warning:NT(e,"warning"),info:NT(e,"info"),verbose:NT(e,"verbose")}}function Rde(t,e){e.log=(...r)=>{t.log(...r)}}function NT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Rde(t,r),Dde(r)){let n=Rm.disable();Rm.enable(n+","+r.namespace)}return xde.add(r),r}function Dde(t){return!!(w3&&Tde[t.level]<=Tde[w3])}function kde(t){return N3.includes(t)}var vA=_o("core-rest-pipeline");function T3(t={}){return eT({logger:vA.info,...t})}var x3=tT;function R3(t={}){return rT(t)}import D3 from"node:os";import k3 from"node:process";function vde(){return"User-Agent"}async function _de(t){if(k3&&k3.versions){let e=`${D3.type()} ${D3.release()}; ${D3.arch()}`,r=k3.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var TT="1.22.2";function Ptt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Fde(){return vde()}async function xT(t){let e=new Map;e.set("core-rest-pipeline",TT),await _de(e);let r=Ptt(e);return t?`${t} ${r}`:r}var Mde=Fde(),Lde="userAgentPolicy";function v3(t={}){let e=xT(t.userAgentPrefix);return{name:Lde,async sendRequest(r,n){return r.headers.has(Mde)||r.headers.set(Mde,await e),n(r)}}}var Cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function _3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Cy(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var Ytt="The delay was aborted.";function Dm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return _3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Ytt})}function Jl(t){if(rf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Ude(t){return rf(t)}function km(){return tf()}var Ot=of;var Pde=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!fnt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,Fs(t,i))}let c=cnt(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",Fs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=whe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",Fs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Fs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Fs(t,i));else{let l=whe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Qhe(t,i);continue}else if(t[i+1]==="?"){if(i=bhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=dnt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Bhe(t[i]))return Zr("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Bhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Bhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function bhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Qhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var ant='"',Ant="'";function cnt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===ant||t[e]===Ant)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var unt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function whe(t,e){let r=HT(t,unt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dy(r[s]));let i=r[s][2];if(!hnt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",Dy(r[s]))}return!0}function lnt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function dnt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lnt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function hnt(t){return Mm(t)}function fnt(t){return Mm(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Dy(t){return t.startIndex+t[1].length}var She=t=>Ry.includes(t)?"__"+t:t,gnt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:She};function pnt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ry.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(GT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Nhe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Nhe(!0)}var The=function(t){let e=Object.assign({},gnt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&pnt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=She),e.processEntities=Nhe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var YT;typeof Symbol!="function"?YT="@@xmlMetadata":YT=Symbol("XML Node Metadata");var Ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new vy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=lf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=d8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=h8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Ai(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=lf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=lf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=h8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=Nnt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=Snt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new Ai(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options));let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new Ai(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function _nt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Fnt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function E8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=Ynt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Yi(o)):o instanceof Yi&&n.push(o)}let s=new MA;return vhe(t,e,r,s,n)}function vhe(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=m8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Fhe(A);if(c===void 0)continue;let u=Vnt(A[":@"],e);n.push(c,u);let l=Jnt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=m8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=khe(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=khe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=_he(A[c],e):p=vhe(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function Vnt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function _he(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Fhe(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Wnt(s[":@"],e),a=_he(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Wnt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Fhe(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function khe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=m8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function Jnt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function m8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function C8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var znt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ui(t){if(this.options=Object.assign({},znt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Yi(r)):r instanceof Yi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=C8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=$nt),this.processTextOrObjNode=jnt,this.options.format?(this.indentate=Knt,this.tagEndChar=`>
`,"utf-8")],s=Yrt(n);s&&t.headers.set("Content-Length",s),t.body=await ahe(n)}var Ky="multipartPolicy",Wrt=70,Jrt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zrt(t){if(t.length>Wrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Jrt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:Ky,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?zrt(r):r=Hrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Vrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var che=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ner=che.logger;function Lo(t){return che.createClientLogger(t)}var Gc=Lo("core-rest-pipeline");function d8(t={}){return GT({logger:Gc.info,...t})}var h8=cx;function f8(t={}){return Ax(t)}import g8 from"node:os";import ad from"node:process";function Ahe(){return"User-Agent"}async function uhe(t){if(ad&&ad.versions){let e=`${g8.type()} ${g8.release()}; ${g8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var dx="1.24.0";function rnt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function lhe(){return Ahe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await uhe(e);let r=rnt(e);return t?`${t} ${r}`:r}var dhe=lhe(),hhe="userAgentPolicy";function p8(t={}){let e=hx(t.userAgentPrefix);return{name:hhe,async sendRequest(r,n){return r.headers.has(dhe)||r.headers.set(dhe,await e),n(r)}}}var fhe=Symbol("rawContent");function m8(t){return typeof t[fhe]=="function"}function ghe(t){return m8(t)?t[fhe]():t}var fx=Ky;function E8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)m8(n.body)&&(n.body=ghe(n.body));return t.sendRequest(e,r)}}}var C8=ox;function I8(){return ax()}function y8(t={}){return VT(t)}function B8(){return WT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function b8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var lnt="The delay was aborted.";function r0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return b8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??lnt})}function cd(t){if(bf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function phe(t){return bf(t)}function n0(){return Bf()}var Wt=_T;function Ad(t){return c8(t)}function w8(t,e){return ix(t,e)}var mhe="setClientRequestIdPolicy";function S8(t="x-ms-client-request-id"){return{name:mhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function N8(t){return JT(t)}function T8(t){return zT(t)}var s0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Ehe(t={}){let e=new x8(t.parentContext);return t.span&&(e=e.setValue(s0.span,t.span)),t.namespace&&(e=e.setValue(s0.namespace,t.namespace)),e}var x8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Ihe=fe(Che(),1),px=Ihe.state;function dnt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function hnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:dnt(),tracingContext:Ehe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return px.instrumenterImplementation||(px.instrumenterImplementation=hnt()),px.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Fst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=Rst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=tfe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=tfe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=efe(t,i);continue}else if(t[i+1]==="?"){if(i=Zhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=vst(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Xhe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Xhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Xhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Zhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function efe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Tst='"',xst="'";function Rst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Tst||t[e]===xst)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Dst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function tfe(t,e){let r=wx(t,Dst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",AB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!_st(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function kst(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function vst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,kst(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function _st(t){return J8(t)}function Fst(t){return J8(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function AB(t){return t.startIndex+t[1].length}var rfe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},nfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},sfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=u0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=t4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=r4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ci(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=u0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=u0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=r4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=ait(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=oit(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function hit(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function fit(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function git(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function pit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function mit(t,e,r=">"){Line truncated
`;function wit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Rfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function a4(t,e){let r="";e.format&&(r=Qit);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Wi(a)):a instanceof Wi&&n.push(a)}let s=wit(t,e),i=new Vc;return Dfe(t,e,r,i,n,s)}function Dfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=o4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=c4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Rfe(u,!1,e,n,i),h=Sit(A[":@"],e);n.push(d,h);let f=Tit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=o4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=Mx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Fx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=xfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=xfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=kfe(A[u],e):C=Dfe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Sit(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=dd(t[s]),n=!0}return n?r:null}function kfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=c4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Nit(s[":@"],e),a=kfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Nit(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${dd(s)}"`}return r}function c4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function xfe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Rfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=o4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function Tit(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function o4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function A4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var xit={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ui(t){if(this.options=Object.assign({},xit,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ui.prototype.build=function(t){if(this.options.preserveOrder)return E8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new MA;return this.j2x(t,0,e).val}};ui.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function jnt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};ui.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Rit(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function u4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return a4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vc,r=Rit(t,this.options);return this.j2x(t,0,e,r).val}};ui.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:u4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=u4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=u4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+dd(e)+'"'};function Dit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=dd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=dd(t[n]),r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>tx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=XT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=ZT(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends hf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Uy(e,r,this)}computeHMACSHA256(e){return ast("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ff=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ast=new ff("The operation was aborted."),Py=class extends LA{retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=$T(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=$l(s.url,wu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(mn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return mn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return mn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),ex(s,n,Ast)}};var Oy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Py(e,r,this.retryOptions)}};var cst="storageBrowserPolicy";function Ohe(){return{name:cst,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=$l(t.url,wu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var ust="StorageCorrectContentLengthPolicy";function Hhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ust,async sendRequest(e,r){return t(e),r(e)}}}var lst="storageRetryPolicy",Um={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},dst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],hst=new ff("The operation was aborted.");function Ghe(t={}){let e=t.retryPolicyType??Um.retryPolicyType,r=t.maxTries??Um.maxTries,n=t.retryDelayInMs??Um.retryDelayInMs,s=t.maxRetryDelayInMs??Um.maxRetryDelayInMs,i=t.secondaryHost??Um.secondaryHost,o=t.tryTimeoutInMs??Um.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of dst)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Yx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Vx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return qit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var En=Lo("storage-common");var Uo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Uo||(Uo={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Yit=new _f("The operation was aborted."),EB=class extends Wc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(En.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(En.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return En.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return En.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return En.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(En.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Uo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Uo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Yit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Vit="storageBrowserPolicy";function Lfe(){return{name:Vit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Wit="StorageCorrectContentLengthPolicy";function Ufe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Wit,async sendRequest(e,r){return t(e),r(e)}}}var Jit="storageRetryPolicy",d0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jit=new _f("The operation was aborted.");function Pfe(t={}){let e=t.retryPolicyType??d0.retryPolicyType,r=t.maxTries??d0.maxTries,n=t.retryDelayInMs??d0.retryDelayInMs,s=t.maxRetryDelayInMs??d0.maxRetryDelayInMs,i=t.secondaryHost??d0.secondaryHost,o=t.tryTimeoutInMs??d0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of zit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=fst("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>tx(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=XT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ZT(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:gst,async sendRequest(i,o){return e(i),o(i)}}}var pst="storageRequestFailureDetailsParserPolicy";function qhe(){return{name:pst,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as mst}from"node:crypto";var rx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return mst("sha256",this.key).update(e,"utf8").digest("base64")}};var nx="12.31.0",sx="2026-02-06";var ix="https://storage.azure.com/.default",Su={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Oa="",w8="*",Est=1*1024*1024;var Cst=4*Est;var Yhe="AES256",Vhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Whe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Jhe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],zhe="BlobUsesCustomerSpecifiedEncryption",jhe="BlobDoesNotUseCustomerSpecifiedEncryption",Khe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Nu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Hy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new Sr);let r=new Hy([],e);return r._credential=t,r}function Ist(t){let e=[yst,$he,Bst,bst,Qst,wst,Nst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Sst(s));return{wrappedPolicies:A8(r),afterRetry:n}}}}function S8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?c8(e):b8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${nx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Qy({...r,loggingOptions:{additionalAllowedHeaderNames:Whe,additionalAllowedQueryParameters:Jhe,logger:WT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:VT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:y8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:U3}),s.addPolicy(Hhe()),s.addPolicy(Ghe(r.retryOptions),{phase:"Retry"}),s.addPolicy(qhe()),s.addPolicy(Ohe());let a=Ist(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=N8(t);Gi(A)?s.addPolicy(_m({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Va(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function yot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Bot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function bot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Qot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function wot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Sot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Bf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function bf(t){let e=t.version?t.version:sx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Zy=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=km()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};zm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};Sf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var aB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var jot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},eH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);X(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function uge(t,e,r){return jot(this,void 0,void 0,function*(){var n;let s=new Wa(t),i=s.getBlockBlobClient(),o=new eH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Zx(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as dge from"buffer";import*as rc from"fs";import*as hge from"stream";import*as fge from"util";var eR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function tR(t){return t?t>=200&&t<300:!1}function Kot(t){return t?t>=500:!0}function $ot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Xot(t){return eR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function lge(t,e,r){return eR(this,arguments,void 0,function*(n,s,i,o=qN,a=YN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Kot(d)))return l;if(d&&(h=$ot(d),c=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){G(`${n} - Error is not retryable`);break}yield Xot(a),u++}throw Error(`${n} failed: ${c}`)})}function AB(t,e){return eR(this,arguments,void 0,function*(r,n,s=qN,i=YN){return yield lge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof SA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function jm(t,e){return eR(this,arguments,void 0,function*(r,n,s=qN,i=YN){return yield lge(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Zot(t,e){return Oo(this,void 0,void 0,function*(){yield fge.promisify(hge.pipeline)(t.message,e)})}var rR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);X(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sH(t,e,r){return di(this,void 0,void 0,function*(){let n=new sat(t),s=Ege(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield pge(t,e,s):s.concurrentBlobDownloads?yield gge(t,e,s):yield nR(t,e):yield nR(t,e)})}function wge(t,e,r){return di(this,void 0,void 0,function*(){let n=nH(),s=Bm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield AB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(uB("caches"),i)}))})}function bge(t,e){return`bytes ${t}-${e}/*`}function Aat(t,e,r,n,s){return di(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${bge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":bge(n,s)},o=yield jm(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!tR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function cat(t,e,r,n){return di(this,void 0,void 0,function*(){let s=RA(r),i=uB(`caches/${e.toString()}`),o=Km.openSync(r,"r"),a=tH(n),A=YO("uploadConcurrency",a.uploadConcurrency),c=YO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Aat(t,i,()=>Km.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{Km.closeSync(o)}})}function uat(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield AB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(uB(`caches/${e.toString()}`),n)}))})}function iH(t,e,r,n){return di(this,void 0,void 0,function*(){if(tH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield uge(r,e,n)}else{let i=nH();G("Upload cache"),yield cat(i,t,e,n),G("Commiting cache");let o=RA(e);X(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield uat(i,t,o);if(!tR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);X("Cache saved successfully")}})}var Epe=ce(KH(),1),rn=ce(ct(),1),Ji=ce(ct(),1),Df=ce(ct(),1),kf=ce(ct(),1),vf=ce(ct(),1);var e9=ce(ct(),1),t9=ce(ct(),1),gpe=ce(ct(),1),ppe=ce(ct(),1),mpe=ce(ct(),1);var $H=ce(ct(),1),XH=ce(ct(),1),dpe=ce(ct(),1),hpe=ce(ct(),1),fpe=ce(ct(),1),ZH=class extends fpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,hpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?XH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,$H.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,$H.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},YR=new ZH;var r9=class extends mpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>YR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,ppe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,gpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(YR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?t9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,e9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)YR.internalBinaryWrite(e.scope[i],r.tag(2,e9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?t9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield m9(r,"create");yield E9(n,t)})}var d0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},ji=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ad=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},JR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Bpe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}function y9(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}function bpe(){return cB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function zR(t,e,r,n){return d0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=cB();return G(`Cache service version: ${c}`),Bpe(s),c==="v2"?yield Nct(s,i,o,a,A):yield Sct(s,i,o,a,A)})}function Sct(t,e,r,n){return d0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)y9(d);let u=yield hy(),l="";try{let d=yield Qge(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return X("Lookup only - skipping download"),d.cacheKey;l=SB.join(yield ly(),Vl(u)),G(`Archive Path: ${l}`),yield sH(d.archiveLocation,l,a),Fa()&&(yield wB(l,u));let h=RA(l);return X(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield C9(l,u),X("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ji.name)throw d;h instanceof SA&&typeof h.statusCode=="number"&&h.statusCode>=500?TA(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield dy(l)}catch(d){G(`Failed to delete archive: ${d}`)}}})}function Nct(t,e,r,n){return d0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)y9(l);let u="";try{let l=p9(),d=yield hy(),h={key:i,restoreKeys:o,version:Bm(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){G(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?X(`Cache hit for restore-key: ${f.matchedKey}`):X(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return X("Lookup only - skipping download"),f.matchedKey;u=SB.join(yield ly(),Vl(d)),G(`Archive path: ${u}`),G(`Starting download of archive to: ${u}`),yield sH(f.signedDownloadUrl,u,a);let I=RA(u);return X(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Fa()&&(yield wB(u,d)),yield C9(u,d),X("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===ji.name)throw l;d instanceof SA&&typeof d.statusCode=="number"&&d.statusCode>=500?TA(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield dy(u))}catch(l){G(`Failed to delete archive: ${l}`)}}})}function jR(t,e,r){return d0(this,arguments,void 0,function*(n,s,i,o=!1){let a=cB();return G(`Cache service version: ${a}`),Bpe(n),y9(s),a==="v2"?yield xct(n,s,i,o):yield Tct(n,s,i,o)})}function Tct(t,e,r){return d0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield hy(),h=-1,f=yield qO(n);if(G("Cache Paths:"),G(`${JSON.stringify(f)}`),f.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.");let p=yield ly(),I=SB.join(p,Vl(d));G(`Archive Path: ${I}`);try{yield I9(p,f,d),Fa()&&(yield wB(I,d));let E=10*1024*1024*1024,C=RA(I);if(G(`File Size: ${C}`),C>E&&!rH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);G("Reserving Cache");let y=yield wge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new ad(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);G(`Saving Cache (ID: ${h})`),yield iH(h,I,"",i)}catch(E){let C=E;if(C.name===ji.name)throw E;C.name===ad.name Line truncated
See ${r.getDocumentationLink()}`;Qpe.push(n),Hl(n)}function Spe(){mu("deprecation-collector_deprecations",JSON.stringify(b9)),mu("deprecation-collector_errors",JSON.stringify(Qpe))}import*as XR from"path";var Npe="GRADLE_ACTION_ID";var nD=".setup-gradle",ZR=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Ac("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return vct("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(si.workflow,si.job,kct())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return XR.resolve(Mu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return _f("dependency-graph-exclude-projects")}getIncludeProjects(){return _f("dependency-graph-include-projects")}getExcludeConfigurations(){return _f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return _f("dependency-graph-include-configurations")}getPluginRepository(){return new eD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var h0=class{isCacheDisabled(){return bpe()?Ac("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Ac("cache-read-only")}isCacheWriteOnly(){return Ac("cache-write-only")}isCacheOverwriteExisting(){return Ac("cache-overwrite-existing")}isCacheStrictMatch(){return Ac("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=NB("gradle-home-cache-cleanup");if(e!==void 0)return $R("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return LP("gradle-home-cache-includes")}getCacheExcludes(){return LP("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Yo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Yo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ac("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return NB("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return NB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return NB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return NB("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new eD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},eD=class{getUrl(){return _f("gradle-plugin-repository-url")}getUsername(){return _f("gradle-plugin-repository Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${vpe}], make sure you have checked out the target repository`);return`${Uct}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Hct=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,Gct="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",qct=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,Yct="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Vct=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,x9=class{async restore(e,r){}async save(e,r,n){return Hct}},aD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function Lpe(t){if(t.isCacheDisabled())return T9("Cache is disabled: will not restore state from previous builds."),new x9;if(t.getCacheProvider()==="basic")return T9(Yct),new aD(new oD,Vct);T9(Gct);let e=await Wct();return t.isCacheLicenseAccepted()?e:new aD(e,qct)}async function Wct(){let t=Jct();return await import(Oct(t).href)}function Jct(){let t=import.meta.dirname,e=Mpe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fpe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function T9(t){console.info(t)}import AD from"fs";import Upe from"path";var cD=class{constructor(e){this.cacheFile=Upe.resolve(e,nD,"valid-wrappers.json")}load(){if(AD.existsSync(this.cacheFile))try{return JSON.parse(AD.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];AD.mkdirSync(Upe.dirname(this.cacheFile),{recursive:!0}),AD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Ype=ce(Gpe(),1);import*as qpe from"util";import*as uD from"path";import*as lD from"fs";var Zct=qpe.promisify(lD.readdir);async function Vpe(t){return(await Wpe(t)).filter(r=>(0,Ype.default)(r).endsWith("gradle-wrapper.jar")).map(r=>uD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Wpe(t){let e=await Zct(t),r=await Promise.all(e.map(async n=>{let s=uD.resolve(t,n),i=lD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Wpe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var tut={_useHtmlParser2:!1};function f0(t,e){if(!t)return e??tut;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Z9={};ya(Z9,{contains:()=>SD,extract:()=>jut,html:()=>Vut,merge:()=>gme,parseHTML:()=>Jut,root:()=>zut,text:()=>Of,xml:()=>Wut});var dd={};ya(dd,{DocumentPosition:()=>Jo,append:()=>Nut,appendChild:()=>Sut,compareDocumentPosition:()=>lme,existsOne:()=>cme,filter:()=>C0,find:()=>BD,findAll:()=>Dut,findOne:()=>bD,findOneChild:()=>Rut,getAttributeValue:()=>But,getChildren:()=>E0,getElementById:()=>Fut,getElements:()=>_ut,getElementsByClassName:()=>Mut,getElementsByTagName:()=>Pf,getElementsByTagType:()=>Lut,getFeed:()=>X9,getInnerHTML:()=>yut,getName:()=>Qut,getOuterHTML:()=>ame,getParent:()=>Ame,getSiblings:()=>K9,getText:()=>CD,hasAttrib:()=>but,hasChildren:()=>rr,innerText:()=>kB,isCDATA:()=>g0,isComment:()=>Uf,isDocument:()=>Wo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>ID,prepend:()=>xut,prependChild:()=>Tut,prevElementSibling:()=>yD,removeElement:()=>Pu,removeSubsets:()=>Uut,replaceElement:()=>wut,testElement:()=>vut,textContent:()=>Uu,uniqueSort:()=>ud});var Vo={};ya(Vo,{CDATA:()=>U9,Comment:()=>_9,Directive:()=>v9,Doctype:()=>P9,ElementType:()=>bt,Root:()=>D9,Script:()=>F9,Style:()=>M9,Tag:()=>L9,Text:()=>k9,isTag:()=>R9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function R9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var D9=bt.Root,k9=bt.Text,v9=bt.Directive,_9=bt.Comment,F9=bt.Script,M9=bt.Style,L9=bt.Tag,U9=bt.CDATA,P9=bt.Doctype;var dD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return p0(this,e)}},TB=class extends dD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uc=class extends TB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ff=class extends TB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Mf=class extends TB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},xB=class extends dD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},RB=class extends xB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ki=class extends xB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Lf=class extends xB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void Line truncated
`:CD(t.children):g0(t)?CD(t.children):gi(t)?t.data:""}function Uu(t){return Array.isArray(t)?t.map(Uu).join(""):rr(t)&&!Uf(t)?Uu(t.children):gi(t)?t.data:""}function kB(t){return Array.isArray(t)?t.map(kB).join(""):rr(t)&&(t.type===bt.Tag||g0(t))?kB(t.children):gi(t)?t.data:""}function E0(t){return rr(t)?t.children:[]}function Ame(t){return t.parent||null}function K9(t){let e=Ame(t);if(e!=null)return E0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function But(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function but(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Qut(t){return t.name}function ID(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function yD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Pu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function wut(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Sut(t,e){if(Pu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Nut(t,e){Pu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Tut(t,e){if(Pu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function xut(t,e){Pu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function C0(t,e,r=!0,n=1/0){return BD(t,Array.isArray(e)?e:[e],r,n)}function BD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Rut(t,e){return e.find(t)}function bD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=bD(t,i.children,!0);if(o)return o}}return null}function cme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&cme(t,r.children))}function Dut(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var QD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function $9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function kut(t,e){return r=>t(r)||e(r)}function ume(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(QD,r)?QD[r](n):$9(r,n)});return e.length===0?null:e.reduce(kut)}function vut(t,e){let r=ume(t);return r?r(e):!0}function _ut(t,e,r,n=1/0){let s=ume(t);return s?C0(s,e,r,n):[]}function Fut(t,e,r=!0){return Array.isArray(e)||(e=[e]),bD($9("id",t),e,r)}function Pf(t,e,r=!0,n=1/0){return C0(QD.tag_name(t),e,r,n)}function Mut(t,e,r=!0,n=1/0){return C0($9("class",t),e,r,n)}function Lut(t,e,r=!0,n=1/0){return C0(QD.tag_type(t),e,r,n)}function Uut(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Jo||(Jo={}));function lme(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Jo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Jo.FOLLOWING|Jo.CONTAINED_BY:Jo.FOLLOWING:a===t?Jo.PRECEDING|Jo.CONTAINS:Jo.PRECEDING}function ud(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=lme(e,r);return n&Jo.PRECEDING?-1:n&Jo.FOLLOWING?1:0}),t}function X9(t){let e=wD(qut,t);return e?e.name==="feed"?Put(e):Out(e):null}function Put(t){var e;let r=t.children,n={type:"atom",items:Pf("entry",r).map(o=>{var a;let{children:A}=o,c={media:dme(A)};pi(c,"id","id",A),pi(c,"title","title",A);let u=(a=wD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ld("summary",A)||ld("conten Line truncated
`+n(i)+s(i),a=Kit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Jx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Yx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Vx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:$it,async sendRequest(i,o){return e(i),o(i)}}}var Xit="storageRequestFailureDetailsParserPolicy";function Ofe(){return{name:Xit,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as Zit}from"node:crypto";var zx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Zit("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Wa="",p4="*",eot=1*1024*1024;var tot=4*eot;var Hfe="AES256",Gfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",qfe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Yfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Vfe="BlobUsesCustomerSpecifiedEncryption",Wfe="BlobDoesNotUseCustomerSpecifiedEncryption",Jfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function rot(t){let e=[not,zfe,sot,iot,oot,aot,Aot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>cot(s));return{wrappedPolicies:V8(r),afterRetry:n}}}}function m4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?W8(e):f4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:qfe,additionalAllowedQueryParameters:Yfe,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C8}),s.addPolicy(Ufe()),s.addPolicy(Pfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Ofe()),s.addPolicy(Lfe());let a=rot(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E4(t);Yi(c)?s.addPolicy(i0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new $a(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function nct(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function sct(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function ict(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ka(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function oct(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ka(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function act(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ka(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function cct(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ka(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:Kx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var kB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=n0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};B0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More 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`),this.name="UsageError"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Dct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},VH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ape(t,e,r){return Dct(this,void 0,void 0,function*(){var n;let s=new Xa(t),i=s.getBlockBlobClient(),o=new VH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new VR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Ape from"buffer";import*as lA from"fs";import*as upe from"stream";import*as lpe from"util";var WR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function JR(t){return t?t>=200&&t<300:!1}function kct(t){return t?t>=500:!0}function vct(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function _ct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function cpe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=xT,a=RT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!kct(d)))return l;if(d&&(h=vct(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield _ct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield cpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function b0(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield cpe(r,n,o=>o.message.statusCode,s,i)})}var qo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Fct(t,e){return qo(this,void 0,void 0,function*(){yield lpe.promisify(upe.pipeline)(t.message,e)})}var zR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return di(this,void 0,void 0,function*(){let n=new Oct(t),s=gpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield hpe(t,e,s):s.concurrentBlobDownloads?yield dpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Bpe(t,e,r){return di(this,void 0,void 0,function*(){let n=zH(),s=zm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function Ipe(t,e){return`bytes ${t}-${e}/*`}function Yct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ipe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ipe(n,s)},o=yield b0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!JR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Vct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Pc(r),i=qB(`caches/${e.toString()}`),o=Q0.openSync(r,"r"),a=WH(n),c=F3("uploadConcurrency",a.uploadConcurrency),A=F3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Yct(t,i,()=>Q0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{Q0.closeSync(o)}})}function Wct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return di(this,void 0,void 0,function*(){if(WH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ape(r,e,n)}else{let i=zH();H("Upload cache"),yield Vct(i,t,e,n),H("Commiting cache");let o=Pc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Wct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var gme=fe(H9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var V9=fe(At(),1),W9=fe(At(),1),dme=fe(At(),1),hme=fe(At(),1),fme=fe(At(),1);var G9=fe(At(),1),q9=fe(At(),1),Ame=fe(At(),1),ume=fe(At(),1),lme=fe(At(),1),Y9=class extends lme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,ume.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ame.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new Y9;var J9=class extends fme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>MD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,hme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(MD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var O0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Cme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function dG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function Ime(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OD(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),Cme(s),A==="v2"?yield Alt(s,i,o,a,c):yield clt(s,i,o,a,c)})}function clt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)dG(d);let u=yield qy(),l="";try{let d=yield ype(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),sd(u)),H(`Archive Path: ${l}`),yield jH(d.archiveLocation,l,a),Oa()&&(yield sb(l,u));let h=Pc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield uG(l,u),$("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function Alt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)dG(l);let u="";try{let l=aG(),d=yield qy(),h={key:i,restoreKeys:o,version:zm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?$(`Cache hit for restore-key: ${f.matchedKey}`):$(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),sd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield jH(f.signedDownloadUrl,u,a);let I=Pc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Oa()&&(yield sb(u,d)),yield uG(u,d),$("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof Fc&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function HD(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),Cme(n),dG(s),a==="v2"?yield llt(n,s,i,o):yield ult(n,s,i,o)})}function ult(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield _3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.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.");let p=yield Hy(),I=ib.join(p,sd(d));H(`Archive Path: ${I}`);try{yield lG(p,f,d),Oa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Pc(I);if(H(`File Size: ${C}`),C>m&&!JH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield Bpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new bd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield KH(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===bd.name Line truncated
See ${r.getDocumentationLink()}`;yme.push(n),Xl(n)}function bme(){Lc("deprecation-collector_deprecations",JSON.stringify(fG)),Lc("deprecation-collector_errors",JSON.stringify(yme))}import*as YD from"path";var Qme="GRADLE_ACTION_ID";var zD=".setup-gradle",ab=class t{getDependencyGraphOption(){let e=dr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return mA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return flt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,wme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return YD.resolve(Yu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new VD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var H0=class{isCacheDisabled(){return Ime()?mA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&mA("cache-read-only")}isCacheWriteOnly(){return mA("cache-write-only")}isCacheOverwriteExisting(){return mA("cache-overwrite-existing")}isCacheStrictMatch(){return mA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ob("gradle-home-cache-cleanup");if(e!==void 0)return qD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var tc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return mA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return ob("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ob("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ob("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ob("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new VD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},VD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},WD=class{getGradleVersion(){re Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new fb(i));return n.searchPaths.push(...CG(n.patterns)),n})}static stat(e,r,n){return SG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Y0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Y0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Y0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as NG from"crypto";import*as t2 from"fs";import*as Zme from"stream";import*as e0e from"util";import*as t0e from"path";var Rdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ddt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function r0e(t,e){return Rdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=NG.createHash("sha256"),f=0;try{for(var p=!0,I=Ddt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${t0e.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(t2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=NG.createHash("sha256");yield e0e.promisify(Zme.pipeline)(t2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var n0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function TG(t,e){return n0e(this,void 0,void 0,function*(){return yield ZD.create(t,e)})}function s0e(t){return n0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield TG(e,{followSymbolicLinks:i});return r0e(o,r,s)})}import*as xG from"path";var kdt="Gradle User Home",o0e="BASIC_CACHE_PRIMARY_KEY",a0e="BASIC_CACHE_RESTORED_KEY",vdt="setup-java",c0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],n2=class{async restore(e,r){let n=A0e(e),s=await _dt();Lc(o0e,s);try{let i=await OD(n,s);i?(Lc(a0e,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(o0e),i=by(a0e);if(n.readOnly)return{status:"read-only",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=A0e(e);try{return await HD(o,s),$(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function r2(t){return{entryName:kdt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${c0e}], make sure you have checked out the target repository`);return`${vdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Mdt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Ldt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",DG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function d0e(t){return t.isCacheDisabled()?(RG("Cache is disabled: will not restore state from previous builds."),new DG):t.getCacheProvider()==="basic"?(RG(Ldt),new n2):(RG(Mdt),Udt())}async function Udt(){let t=Pdt();return await import(Fdt(t).href)}function Pdt(){let t=import.meta.dirname,e=l0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(u0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function RG(t){console.info(t)}import s2 from"fs";import h0e from"path";var i2=class{constructor(e){this.cacheFile=h0e.resolve(e,zD,"valid-wrappers.json")}load(){if(s2.existsSync(this.cacheFile))try{return JSON.parse(s2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];s2.mkdirSync(h0e.dirname(this.cacheFile),{recursive:!0}),s2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var C0e=fe(m0e(),1);import*as E0e from"util";import*as o2 from"path";import*as a2 from"fs";var Vdt=E0e.promisify(a2.readdir);async function I0e(t){return(await y0e(t)).filter(r=>(0,C0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>o2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function y0e(t){let e=await Vdt(t),r=await Promise.all(e.map(async n=>{let s=o2.resolve(t,n),i=a2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?y0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Jdt={_useHtmlParser2:!1};function V0(t,e){if(!t)return e??Jdt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var tq={};Na(tq,{contains:()=>B2,extract:()=>Hht,html:()=>Lht,merge:()=>Y0e,parseHTML:()=>Pht,root:()=>Oht,text:()=>lg,xml:()=>Uht});var kd={};Na(kd,{DocumentPosition:()=>Ko,append:()=>Cht,appendChild:()=>Eht,compareDocumentPosition:()=>O0e,existsOne:()=>U0e,filter:()=>K0,find:()=>E2,findAll:()=>bht,findOne:()=>C2,findOneChild:()=>Bht,getAttributeValue:()=>fht,getChildren:()=>j0,getElementById:()=>Nht,getElements:()=>Sht,getElementsByClassName:()=>Tht,getElementsByTagName:()=>ug,getElementsByTagType:()=>xht,getFeed:()=>eq,getInnerHTML:()=>hht,getName:()=>pht,getOuterHTML:()=>M0e,getParent:()=>L0e,getSiblings:()=>XG,getText:()=>g2,hasAttrib:()=>ght,hasChildren:()=>tr,innerText:()=>Ib,isCDATA:()=>W0,isComment:()=>Ag,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>p2,prepend:()=>yht,prependChild:()=>Iht,prevElementSibling:()=>m2,removeElement:()=>Ku,removeSubsets:()=>Rht,replaceElement:()=>mht,testElement:()=>wht,textContent:()=>ju,uniqueSort:()=>Rd});var zo={};Na(zo,{CDATA:()=>OG,Comment:()=>MG,Directive:()=>FG,Doctype:()=>HG,ElementType:()=>bt,Root:()=>vG,Script:()=>LG,Style:()=>UG,Tag:()=>PG,Text:()=>_G,isTag:()=>kG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function kG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var vG=bt.Root,_G=bt.Text,FG=bt.Directive,MG=bt.Comment,LG=bt.Script,UG=bt.Style,PG=bt.Tag,OG=bt.CDATA,HG=bt.Doctype;var c2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return J0(this,e)}},pb=class extends c2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},CA=class extends pb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends pb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends pb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},mb=class extends c2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:g2(t.children):W0(t)?g2(t.children):pi(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):tr(t)&&!Ag(t)?ju(t.children):pi(t)?t.data:""}function Ib(t){return Array.isArray(t)?t.map(Ib).join(""):tr(t)&&(t.type===bt.Tag||W0(t))?Ib(t.children):pi(t)?t.data:""}function j0(t){return tr(t)?t.children:[]}function L0e(t){return t.parent||null}function XG(t){let e=L0e(t);if(e!=null)return j0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function fht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function ght(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function pht(t){return t.name}function p2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function m2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function mht(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Eht(t,e){if(Ku(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Cht(t,e){Ku(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Iht(t,e){if(Ku(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function yht(t,e){Ku(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function K0(t,e,r=!0,n=1/0){return E2(t,Array.isArray(e)?e:[e],r,n)}function E2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Bht(t,e){return e.find(t)}function C2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=C2(t,i.children,!0);if(o)return o}}return null}function U0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&U0e(t,r.children))}function bht(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var I2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function ZG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Qht(t,e){return r=>t(r)||e(r)}function P0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(I2,r)?I2[r](n):ZG(r,n)});return e.length===0?null:e.reduce(Qht)}function wht(t,e){let r=P0e(t);return r?r(e):!0}function Sht(t,e,r,n=1/0){let s=P0e(t);return s?K0(s,e,r,n):[]}function Nht(t,e,r=!0){return Array.isArray(e)||(e=[e]),C2(ZG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return K0(I2.tag_name(t),e,r,n)}function Tht(t,e,r=!0,n=1/0){return K0(ZG("class",t),e,r,n)}function xht(t,e,r=!0,n=1/0){return K0(I2.tag_type(t),e,r,n)}function Rht(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ko;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ko||(Ko={}));function O0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=O0e(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function eq(t){let e=y2(Fht,t);return e?e.name==="feed"?Dht(e):kht(e):null}function Dht(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:H0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=y2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ko=ce(hd(),1);var gG={};function pG(t,e){return t===Ko.default.falseFunc?Ko.default.falseFunc:r=>e.isTag(r)&&t(r)}function mG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function fG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var hG=(t,e,r,n,s)=>{let i=s(e,fG(r),n);return i===Ko.default.trueFunc?t:i===Ko.default.falseFunc?Ko.default.falseFunc:o=>i(o)&&t(o)},UD={is:hG,matches:hG,where:hG,not(t,e,r,n,s){let i=s(e,fG(r),n);return i===Ko.default.falseFunc?t:i===Ko.default.trueFunc?Ko.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=fG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(PB))?[gG]:void 0,A=s(e,o,a);if(A===Ko.default.falseFunc)return Ko.default.falseFunc;let c=pG(A,i);if(a&&A!==Ko.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...mG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function e0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in UD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return UD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:LD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Zme.parse)(c);return UD.is(t,u,r,n,s)}if(typeof A=="function")return dG(A,o,a,1),u=>A(u,a)&&t(u);if(o in T0)return T0[o](t,a,r,n);if(o in HB){let u=HB[o];return dG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var $o=ce(S0(),1);function EG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function t0e(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case $o.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case $o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case $o.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),jme[e.action](t,e,r)}case $o.SelectorType.Pseudo:return e0e(t,e,r,n,s);case $o.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case $o.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=EG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=EG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=EG(c,i));return!1};case $o.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case $o.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case $o.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case $o.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case $o.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function r0e(t,e,r){let n=PD(t,e,r);return pG(n,e.adapter)}function PD(t,e,r){let n=typeof t=="string"?(0,Ka.parse)(t):t;return OD(n,e,r)}function n0e(t){return t.type===Ka.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(n0e)))}var _lt={type:Ka.SelectorType.Descendant},Flt={type:"_flexibleDescendant"},Mlt={type:Ka.SelectorType.Pseudo,name:"scope",data:null};function Llt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===gG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(C0e,`\r
`)}}).toArray()}var _G={};ya(_G,{extract:()=>Xdt});function $dt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Xdt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=$dt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var pd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};pd.prototype.cheerio="[cheerio object]";pd.prototype.splice=Array.prototype.splice;pd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(pd.prototype,aG,RG,DG,kG,vG,_G);function I0e(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=f0(s),a=t(n,o,i,null);class A extends pd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&zo(u))return u;let f=f0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=zo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&vB(u)?t(u,f,!1,null).children:Zdt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?vB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):zo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,Z9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function Zdt(t){return!!t.name||t.type===Vo.Root||t.type===Vo.Text||t.type===Vo.Comment}var eht=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function WD(t){return t>=55296&&t<=57343}function y0e(t){return t>=56320&&t<=57343}function B0e(t,e){return(t-55296)*1024+9216+e}function JD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function zD(t){return t>=64976&&t<=65007||eht.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Zo=fe(vd(),1);var mq={};function Eq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Cq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function pq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var gq=(t,e,r,n,s)=>{let i=s(e,pq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},_2={is:gq,matches:gq,where:gq,not(t,e,r,n,s){let i=s(e,pq(r),n);return i===Zo.default.falseFunc?t:i===Zo.default.trueFunc?Zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=pq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Nb))?[mq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=Eq(c,i);if(a&&c!==Zo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Cq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function xEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:v2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,TEe.parse)(A);return _2.is(t,u,r,n,s)}if(typeof c=="function")return fq(c,o,a,1),u=>c(u,a)&&t(u);if(o in iE)return iE[o](t,a,r,n);if(o in xb){let u=xb[o];return fq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=fe(nE(),1);function Iq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function REe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),QEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return xEe(t,e,r,n,s);case ea.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Iq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Iq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Iq(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case ea.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function DEe(t,e,r){let n=F2(t,e,r);return Eq(n,e.adapter)}function F2(t,e,r){let n=typeof t=="string"?(0,ic.parse)(t):t;return M2(n,e,r)}function kEe(t){return t.type===ic.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(kEe)))}var Sft={type:ic.SelectorType.Descendant},Nft={type:"_flexibleDescendant"},Tft={type:ic.SelectorType.Pseudo,name:"scope",data:null};function xft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===mq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(zEe,`\r
`)}}).toArray()}var Mq={};Na(Mq,{extract:()=>Ygt});function qgt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Ygt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=qgt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Md=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,Aq,kq,vq,_q,Fq,Mq);function jEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=V0(s),a=t(n,o,i,null);class c extends Md{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&$o(u))return u;let f=V0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&yb(u)?t(u,f,!1,null).children:Vgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?yb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Vgt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Wgt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function G2(t){return t>=55296&&t<=57343}function KEe(t){return t>=56320&&t<=57343}function $Ee(t,e){return(t-55296)*1024+9216+e}function q2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Y2(t){return t>=64976&&t<=65007||Wgt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},Qv=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var Sg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function zNe(t){if(t instanceof AggregateError){Hl("Multiple errors returned");for(let e of t.errors)TA(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&X(e.stack)}else t instanceof Sg?(Hl(String(t)),t.stack&&X(t.stack)):(Hl(String(t)),t instanceof Error&&t.stack&&X(t.stack))}async function jNe(t,e,r){if(!t.doValidateWrappers())return;let n=new cD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await JNe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await lN("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),X(o.toDisplayString())});else throw X(o.toDisplayString()),new Sg(`At least one Gradle Wrapper Jar failed validation!
`)}`}},I_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function bxe(t){if(t instanceof AggregateError){Xl("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof $g?(Xl(String(t)),t.stack&&$(t.stack)):(Xl(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function Qxe(t,e,r){if(!t.doValidateWrappers())return;let n=new i2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Bxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await ZN("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new $g(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import uo from"fs";import Ng from"path";function KNe(t,e,r){let n=Ng.resolve(e,nD);uo.mkdirSync(n,{recursive:!0}),RRt(e),DRt(t),Fa()&&kRt(e),r&&gn("GRADLE_ENCRYPTION_KEY",r)}function RRt(t){let e=Ng.resolve(t,"init.d");uo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=vRt("init-scripts",n),i=Ng.resolve(e,n);uo.writeFileSync(i,s)}}function DRt(t){let e=_Rt();if(e==null)return;let r=Ng.resolve(t,".m2"),n=Ng.resolve(r,"toolchains.xml");if(!uo.existsSync(n))uo.mkdirSync(r,{recursive:!0}),uo.writeFileSync(n,e),X(`Wrote default JDK locations to ${n}`);else{let s=uo.readFileSync(n,"utf8"),i=FRt(s,e);uo.writeFileSync(n,i),X(`Merged default JDK locations into ${n}`)}}function kRt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ho from"fs";import Xg from"path";function wxe(t,e,r){let n=Xg.resolve(e,zD);ho.mkdirSync(n,{recursive:!0}),Bkt(e),bkt(t),Oa()&&Qkt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function Bkt(t){let e=Xg.resolve(t,"init.d");ho.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=wkt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function bkt(t){let e=Skt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=Nkt(s,e);ho.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function Qkt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Ng.resolve(t,"gradle.properties");if(uo.existsSync(r)){X(`Merged --info and --stacktrace into existing ${r} file`);let n=uo.readFileSync(r,"utf-8");uo.writeFileSync(r,`${e}
${n}`)}else X(`Created a new ${r} with --info and --stacktrace`),uo.writeFileSync(r,e)}function vRt(...t){let e=import.meta.dirname,r=Ng.resolve(e,"..","..","..","sources","src","resources",...t);return uo.readFileSync(r,"utf8")}function _Rt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function wkt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function Skt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -291,55 +280,55 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function FRt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var aJ="GRADLE_BUILD_ACTION_SETUP_COMPLETED",MRt="GRADLE_USER_HOME";async function $Ne(t,e,r){let n=await XNe(),s=await URt();return process.env[aJ]?(X("Gradle setup only performed on first gradle/actions step in workflow."),!1):(gn(aJ,!0),mu(aJ,!0),mu(MRt,s),KNe(n,s,t.getCacheEncryptionKey()),await(await Lpe(t)).restore(s,LRt(t)),await jNe(r,Mu(),s),await Dpe(e),!0)}function LRt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function URt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Mu();return cJ.resolve(r,t)}let e=cJ.resolve(await XNe(),".gradle");if(AJ.existsSync(e))return X(`Gradle User Home already exists at ${e}`),gn("GRADLE_USER_HOME",e),e;if(wv.platform()==="win32"&&e.startsWith("C:\\")&&AJ.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return X(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),gn("GRADLE_USER_HOME",r),r}return gn("GRADLE_USER_HOME",e),e}async function XNe(){let t=await YI("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return X("Could not determine user.home from java -version output. Using os.homedir()."),wv.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var PTe=ce(fTe(),1),fJ=ce(Ay(),1);import*as QE from"fs";import*as DTe from"os";import*as Jd from"path";import*as dJ from"crypto";import*as xg from"fs";var XRt=ce(Ay(),1);import*as lQ from"path";var Tv=ce(Ay(),1);import*as pTe from"stream";import*as mTe from"util";import{ok as eDt}from"assert";var gTe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Sv=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return gTe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;X(i.message)}let s=this.getSleepAmount();X(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return gTe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Tg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Nv=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},tDt=process.platform==="win32",wIr=process.platform==="darwin",rDt="actions/tool-cache";function ETe(t,e,r,n){return Tg(this,void 0,void 0,function*(){e=e||lQ.join(ITe(),dJ.randomUUID()),yield Vh(lQ.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=lJ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=lJ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Sv(s,i,o).execute(()=>Tg(this,void 0,void 0,function*(){return yield nDt(t,e||"",r,n)}),A=>!(A instanceof Nv&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function nDt(t,e,r,n){return Tg(this,void 0,void 0,function*(){if(xg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(rDt,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Nv(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=mTe.promisify(pTe.pipeline),A=lJ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,xg.createWriteStream(e)),G("download complete"),c=!0,e}finally{if(!c){G("download failed");try{yield Bae(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function CTe(t,e){return Tg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield oDt(e),tDt?yield sDt(t,e):yield iDt(t,e),e})}function sDt(t,e){return Tg(this,void 0,void 0,function*(){let r= Line truncated
`," Line feed \\n"]]),XTe=new Map([...ez,["\\"," Backslash \\"],["/"," Forward slash /"]]);function ZTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of XTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function Nkt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Az="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Tkt="GRADLE_USER_HOME",xkt="DEVELOCITY_CACHE_TOKEN";async function Sxe(t,e,r){let n=await Nxe(),s=await Dkt();if(process.env[Az])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;pn(Az,!0),Lc(Az,!0),Lc(Tkt,s),wxe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await xme(e);return Lc(xkt,o??""),await(await d0e(t)).restore(s,Rkt(t,i,o)),await Qxe(r,Yu(),s),Nme(e),!0}function Rkt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function Dkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yu();return lz.resolve(r,t)}let e=lz.resolve(await Nxe(),".gradle");if(uz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(y_.platform()==="win32"&&e.startsWith("C:\\")&&uz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),pn("GRADLE_USER_HOME",r),r}return pn("GRADLE_USER_HOME",e),e}async function Nxe(){let t=await By("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),y_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}var fRe=fe(qxe(),1),pz=fe(Uy(),1);import*as tC from"fs";import*as oRe from"os";import*as hh from"path";import*as fz from"crypto";import*as ep from"fs";var Vkt=fe(Uy(),1);import*as ZQ from"path";var Q_=fe(Uy(),1);import*as Vxe from"stream";import*as Wxe from"util";import{ok as Jkt}from"assert";var Yxe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},B_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Yxe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Yxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},b_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},zkt=process.platform==="win32",$Qr=process.platform==="darwin",jkt="actions/tool-cache";function Jxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ZQ.join(jxe(),fz.randomUUID()),yield df(ZQ.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=hz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=hz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new B_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield Kkt(t,e||"",r,n)}),c=>!(c instanceof b_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Kkt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(jkt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new b_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Wxe.promisify(Vxe.pipeline),c=hz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield Cce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function zxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter Line truncated
`," Line feed \\n"]]),NRe=new Map([...Xz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function TRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of NRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(XTe.values()).toString()}
Invalid characters include: ${Array.from(NRe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);X("Artifact name is valid!")}function tz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of ez)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);$("Artifact name is valid!")}function Zz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Xz)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(ez.values()).toString()}
Invalid characters include: ${Array.from(Xz.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var nxe=ce(rxe(),1);function Mc(){return`@actions/artifact-${nxe.version}`}var vv=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},il=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ol=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},zd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},al=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If 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(r),this.code=e,this.name="NetworkError"}};al.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};Rg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Dg=class extends Error{};Dg.prototype.name="InvalidTokenError";function _Dt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function FDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return _Dt(e)}catch{return atob(e)}}function sxe(t,e){if(typeof t!="string")throw new Dg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Dg(`Invalid token specified: missing part #${r+1}`);let s;try{s=FDt(n)}catch(i){throw new Dg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Dg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var _v=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Lc(){let t=Dv(),e=sxe(t);if(!e.scp)throw _v;let r=e.scp.split(" ");if(r.length===0)throw _v;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw _v;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw _v}function ixe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(va(r),va(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function oxe(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ixe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ixe(t.signed_url)}var Fv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},rz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Dv();this.baseUrl=HTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new pu(i)])}request(e,r,n,s){return Fv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Fv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return Fv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(oxe(c),G(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Rg.isUsageErrorMessage(c.msg))throw new Rg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Rg)throw a;if(al.isNetworkErrorCode(a?.code))throw new al(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);X(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return Fv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Uc(t){let e=new rz(Mc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new kv(e)}import*as TE from"fs";import{normalize as axe,resolve as Axe}from"path";function cxe(t){if(!TE.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Ve("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);X(`Redirecting to blob download url: ${gOe(u)}`);try{X(`Starting download of artifact to: ${r}`);let l=yield pOe(u,r,e?.skipDecompress);X("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function COe(){return BC(this,arguments,void 0,function*(t=GTe()){return(yield cqt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield uOe.mkdir(t,{recursive:!0})),t})}var lqt=5,dqt=[400,401,403,404,422];function bC(t,e=lqt,r=dqt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var IOe="6.0.0";function op(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}op.VERSION=IOe;var bOe=ce(yOe(),1),QOe=ce(KP(),1),hqt="0.0.0-development";async function BOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function fqt(t,e,r,n){let s=new bOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(gqt.bind(null,t,e,r),n)}async function gqt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new QOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return BOe(t,e,i,n)}return s}function ap(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",BOe.bind(null,r,t)),t.hook.wrap("request",fqt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}ap.VERSION=hqt;var wOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function HF(t,e,r,n,s){return wOe(this,void 0,void 0,function*(){var i;let[o,a]=bC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},u=yield Ma(s,A,ap,op).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new il(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new ol(`Artifact not found for name: ${t}
`)}var kRe=fe(DRe(),1);function VA(){return`@actions/artifact-${kRe.version}`}var iC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},pl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ml=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},fh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},El=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If 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(r),this.code=e,this.name="NetworkError"}};El.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More 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`),this.name="UsageError"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function bvt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Qvt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return bvt(e)}catch{return atob(e)}}function vRe(t,e){if(typeof t!="string")throw new np("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new np(`Invalid token specified: missing part #${r+1}`);let s;try{s=Qvt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var x_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function WA(){let t=N_(),e=vRe(t);if(!e.scp)throw x_;let r=e.scp.split(" ");if(r.length===0)throw x_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw x_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw x_}function _Re(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ro(r),Ro(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function FRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&_Re(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&_Re(t.signed_url)}var R_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ej=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=N_();this.baseUrl=pRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new wu(i)])}request(e,r,n,s){return R_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>R_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return R_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(FRe(A),H(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(El.isNetworkErrorCode(a?.code))throw new El(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);$(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return R_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function JA(t){let e=new ej(VA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new T_(e)}import*as oC from"fs";import{normalize as MRe,resolve as LRe}from"path";function URe(t){if(!oC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ve("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);$(`Redirecting to blob download url: ${j3e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield K3e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function Z3e(){return eI(this,arguments,void 0,function*(t=mRe()){return(yield t7t(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield Y3e.mkdir(t,{recursive:!0})),t})}var n7t=5,s7t=[400,401,403,404,422];function tI(t,e=n7t,r=s7t){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return H(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var e8e="6.0.0";function kp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}kp.VERSION=e8e;var n8e=fe(t8e(),1);var LM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var i7t="0.0.0-development";async function r8e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function o7t(t,e,r,n){let s=new n8e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(a7t.bind(null,t,e,r),n)}async function a7t(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new LM(s.data.errors[0].message,500,{request:n,response:s});return r8e(t,e,i,n)}return s}function vp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",r8e.bind(null,r,t)),t.hook.wrap("request",o7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=i7t;var s8e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function UM(t,e,r,n,s){return s8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},u=yield Ha(s,c,vp,kp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new pl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new ml(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function SOe(t){return wOe(this,void 0,void 0,function*(){var e;let r=Uc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Lc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Es.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ol(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],H(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function i8e(t){return s8e(this,void 0,void 0,function*(){var e;let r=JA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=WA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ml(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var NOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function TOe(t,e,r,n,s){return NOe(this,void 0,void 0,function*(){var i;let[o,a]=bC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},c=Ma(s,A,ap,op),u=yield HF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new il(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function xOe(t){return NOe(this,void 0,void 0,function*(){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Es.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ol(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return X(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var ROe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},GF=VTe(),qF=100,pqt=Math.ceil(GF/qF);function DOe(t,e,r,n){return ROe(this,arguments,void 0,function*(s,i,o,a,A=!1){X(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=bC(Jh),d={log:void 0,userAgent:Mc(),previews:void 0,retry:u,request:l},h=Ma(a,d,ap,op),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qF,page:f}),I=Math.ceil(p.total_count/qF),E=p.total_count;E>GF&&(Ve(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${GF}. Results will be incomplete as only the first ${GF} artifacts will be returned`),I=pqt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){G(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=vOe(c)),X(`Found ${c.length} artifact(s)`),{artifacts:c}})}function kOe(){return ROe(this,arguments,void 0,function*(t=!1){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=vOe(o)),X(`Found ${o.length} artifact(s)`),{artifacts:o}})}function vOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var vw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},mqt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Ap=class{uploadArtifact(e,r,n,s){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;return xPe(e,r,n,s)}catch(i){throw Ve(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var o8e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function a8e(t,e,r,n,s){return o8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},A=Ha(s,c,vp,kp),u=yield UM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new pl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function c8e(t){return o8e(this,void 0,void 0,function*(){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ml(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var A8e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},PM=IRe(),OM=100,c7t=Math.ceil(PM/OM);function u8e(t,e,r,n){return A8e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=tI(gf),d={log:void 0,userAgent:VA(),previews:void 0,retry:u,request:l},h=Ha(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f}),I=Math.ceil(p.total_count/OM),m=p.total_count;m>PM&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${PM}. Results will be incomplete as only the first ${PM} artifacts will be returned`),I=c7t);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=d8e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function l8e(){return A8e(this,arguments,void 0,function*(t=!1){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=d8e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function d8e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var y1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},A7t=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},_p=class{uploadArtifact(e,r,n,s){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;return A3e(e,r,n,s)}catch(i){throw Ve(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=mqt(r,["findBy"]);return mOe(e,n,s,i,o)}return EOe(e,r)}catch(n){throw Ve(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=A7t(r,["findBy"]);return $3e(e,n,s,i,o)}return X3e(e,r)}catch(n){throw Ve(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return DOe(r,n,s,i,e?.latest)}return kOe(e?.latest)}catch(r){throw Ve(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return u8e(r,n,s,i,e?.latest)}return l8e(e?.latest)}catch(r){throw Ve(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return HF(e,n,s,i,o)}return SOe(e)}catch(n){throw Ve(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UM(e,n,s,i,o)}return i8e(e)}catch(n){throw Ve(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return TOe(e,i,n,s,o)}return xOe(e)}catch(n){throw Ve(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return a8e(e,i,n,s,o)}return c8e(e)}catch(n){throw Ve(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var dSr=new Ap;import*as YF from"path";import Z$ from"fs";var FOe="dependency-graph_";async function MOe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){gn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await Cqt(t);return}X("Enabling dependency graph generation"),gn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ks("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_ID",si.runId.toString()),Ks("GITHUB_DEPENDENCY_GRAPH_REF",si.ref),Ks("GITHUB_DEPENDENCY_GRAPH_SHA",Tqt()),Ks("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Mu()),Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ks("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ks("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ks("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ks("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ks("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ks("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ks("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ks(t,e){process.env[t]||e!==void 0&&gn(t,e)}async function LOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await _Oe(t,!1);return;case"generate-submit-and-upload":await _Oe(t,!0);return;case"generate-and-upload":await Iqt(t)}}catch(r){POe(t,e,r)}}async function Cqt(t){if(rX()){X("Dependency graph not supported in the ACT environment.");return}try{await UOe(await yqt(t))}catch(e){POe(t,"download-and-submit",e)}}async function _Oe(t,e){if(rX()){X("Dependency graph not supported in the ACT environment.");return}let r=await eX();try{await UOe(r)}catch(n){try{await X$(r,t)}catch(s){X(String(s))}throw n}e&&await X$(r,t)}async function Iqt(t){if(rX()){X("Dependency graph not supported in the ACT environment.");return}await X$(await eX(),t)}async function yqt(t){let e=si.payload.workflow_run?{token:sD(),workflowRunId:si.payload.workflow_run.id,repositoryName:si.repo.repo,repositoryOwner:si.repo.owner}:void 0,r=new Ap,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(FOe)),s=t.getDownloadArtifactName();s&&(X(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});X(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return eX()}async function eX(){let r=(await(await ey(`${Qqt()}/**/*.json`)).glob()).filter(n=>!wqt(n));return r.forEach(Sqt),X(`Found dependency graph files: ${r.join(", ")}`),r}async function X$(t,e){if(t.length===0){X("No dependency graph files found to upload.");return}let r=Mu(),n=new Ap;for(let s of t){let i=tX(s);X(`Uploading dependency graph file: ${i}`);let o=`${FOe}${YF.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function UOe(t){if(t.length===0){X("No dependency graph files found to submit.");return}for(let e of t)try{await bqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Bqt(e,r)),r}}function Bqt(t,e){let n=`Dependency submission failed for ${tX(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var JRr=new _p;import*as HM from"path";import KX from"fs";var f8e="dependency-graph_";async function g8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await l7t(t);return}$("Enabling dependency graph generation"),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",I7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yu()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&pn(t,e)}async function p8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await h8e(t,!1);return;case"generate-submit-and-upload":await h8e(t,!0);return;case"generate-and-upload":await d7t(t)}}catch(r){E8e(t,e,r)}}async function l7t(t){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}try{await m8e(await h7t(t))}catch(e){E8e(t,"download-and-submit",e)}}async function h8e(t,e){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}let r=await $X();try{await m8e(r)}catch(n){try{await jX(r,t)}catch(s){$(String(s))}throw n}e&&await jX(r,t)}async function d7t(t){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}await jX(await $X(),t)}async function h7t(t){let e=ri.payload.workflow_run?{token:jD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new _p,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(f8e)),s=t.getDownloadArtifactName();s&&($(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return $X()}async function $X(){let r=(await(await TG(`${p7t()}/**/*.json`)).glob()).filter(n=>!m7t(n));return r.forEach(E7t),$(`Found dependency graph files: ${r.join(", ")}`),r}async function jX(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Yu(),n=new _p;for(let s of t){let i=XX(s);$(`Uploading dependency graph file: ${i}`);let o=`${f8e}${HM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function m8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await g7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=f7t(e,r)),r}}function f7t(t,e){let n=`Dependency submission failed for ${XX(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function bqt(t){let e=Nqt(),r=Z$.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=si.repo.owner,n.repo=si.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=tX(t);vae(`Submitted ${i}: ${s.data.message}`)}function Qqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function wqt(t){let e=`${t}.processed`;return Z$.existsSync(e)}function Sqt(t){let e=`${t}.processed`;Z$.writeFileSync(e,"")}function POe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new Sg(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Nqt(){return Ma(sD())}function tX(t){let e=Mu();return YF.relative(e,t)}function Tqt(){let t=si;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function rX(){return process.env.ACT!==void 0}function nX(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(Rqt(o[1],o[6],o[0]));while(o!==null);return i}function Rqt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function Dqt(t=process.platform){return t==="win32"?50:0}async function OOe(t=process.platform){let e=Dqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function kqt(){try{Tpe("gradle/actions/dependency-submission"),await $Ne(new h0,new Yo,new rD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new ZR;if(await MOe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new tD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function g7t(t){let e=C7t(),r=KX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=XX(t);Rce(`Submitted ${i}: ${s.data.message}`)}function p7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function m7t(t){let e=`${t}.processed`;return KX.existsSync(e)}function E7t(t){let e=`${t}.processed`;KX.writeFileSync(e,"")}function E8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function C7t(){return Ha(jD())}function XX(t){let e=Yu();return HM.relative(e,t)}function I7t(){let t=ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function ZX(){return process.env.ACT!==void 0}function eZ(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(B7t(o[1],o[6],o[0]));while(o!==null);return i}function B7t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function b7t(t=process.platform){return t==="win32"?50:0}async function C8e(t=process.platform){let e=b7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function Q7t(){try{Sme("gradle/actions/dependency-submission"),await Sxe(new H0,new tc,new JD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new ab;if(await g8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new WD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
${n}
${s}
`,o=nX(i);await OTe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await LOe(e),gn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Spe()}catch(t){zNe(t)}await OOe()}kqt();export{kqt as run};
`,o=eZ(i);await gRe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await p8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),bme()}catch(t){bxe(t)}await C8e()}Q7t();export{Q7t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -350,6 +339,13 @@ undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -418,5 +414,13 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+197 -141
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var Zhe=Object.create;var TN=Object.defineProperty;var $he=Object.getOwnPropertyDescriptor;var ege=Object.getOwnPropertyNames;var tge=Object.getPrototypeOf,rge=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),li=(t,e)=>{for(var r in e)TN(t,r,{get:e[r],enumerable:!0})},sge=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ege(e))!rge.call(t,n)&&n!==r&&TN(t,n,{get:()=>e[n],enumerable:!(s=$he(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?Zhe(tge(t)):{},sge(e||!t||!t.__esModule?TN(r,"default",{value:t,enumerable:!0}):r,t));var X6=m(Wl=>{"use strict";var krt=b("net"),cge=b("tls"),kN=b("http"),W6=b("https"),uge=b("events"),Frt=b("assert"),lge=b("util");Wl.httpOverHttp=dge;Wl.httpsOverHttp=hge;Wl.httpOverHttps=gge;Wl.httpsOverHttps=fge;function dge(t){var e=new aa(t);return e.request=kN.request,e}function hge(t){var e=new aa(t);return e.request=kN.request,e.createSocket=z6,e.defaultPort=443,e}function gge(t){var e=new aa(t);return e.request=W6.request,e}function fge(t){var e=new aa(t);return e.request=W6.request,e.createSocket=z6,e.defaultPort=443,e}function aa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||kN.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=K6(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}lge.inherits(aa,uge.EventEmitter);aa.prototype.addRequest=function(e,r,s,n){var i=this,o=FN({request:e},i.options,K6(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};aa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=FN({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),dA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,g){process.nextTick(function(){c(l,d,g)})}function c(l,d,g){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){dA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(g.length>0){dA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return dA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),dA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};aa.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function z6(t,e){var r=this;aa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=FN({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=cge.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function K6(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function FN(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var dA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?dA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:dA=function(){};Wl.debug=dA});var MN=m((Urt,j6)=>{j6.exports=X6()});var pt=m((Lrt,Z6)=>{Z6.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var qe=m((Prt,y_)=>{"use strict";var $6=Symbol.for("undici.error.UND_ERR"),mt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[$6]===!0}[$6]=!0},e_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),UN=class extends mt{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[e_]===!0}[e_]=!0},t_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),LN=class extends mt{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[t_]===!0}[t_]=!0},r_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),PN=class extends mt{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[r_]===!0}[r_]=!0},s_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),vN=class extends mt{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[s_]===!0}[s_]=!0},n_=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),ON=class extends mt{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Rpe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(fpe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function kpe(){return"allowed"}function Fpe(){return"success"}function Mpe(){return"success"}function Upe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lpe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&DS(t.origin)&&!DS(uf(t))&&(e=null);break;case"same-origin":J0(t,uf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function sd(t,e){return t}function Ppe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sd(t.domainLookupStartTime,r),domainLookupEndTime:sd(t.domainLookupEndTime,r),connectionStartTime:sd(t.connectionStartTime,r),connectionEndTime:sd(t.connectionEndTime,r),secureConnectionStartTime:sd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function vpe(t){return sd(Ipe.now(),t)}function Ope(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function P5(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function _pe(t){return{referrerPolicy:t.referrerPolicy}}function Hpe(t){let e=t.referrerPolicy;Yc(e);let r=null;if(t.referrer==="client"){let a=R5();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=xS(r),n=xS(r,!0);s.toString().length>4096&&(s=n);let i=J0(t,s),o=cf(s)&&!cf(t.url);switch(e){case"origin":return n??xS(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=uf(t);return J0(s,a)?s:cf(s)&&!cf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function xS(t,e){return Yc(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function cf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function Gpe(t,e){if(V0===void 0)return!0;let r=v5(e);if(r==="no metadata"||r.length===0)return!0;let s=qpe(r),n=Vpe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=V0.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),Jpe(A,a))return!0}return!1}var Ype=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function v5(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Ype.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();F5.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function qpe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function Vpe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function Jpe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Wpe(t){}function J0(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function zpe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Kpe(t){return t.controller.state==="aborted"}function Xpe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jpe(t){return ype[t.toLowerCase()]??t}function Zpe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yc(typeof e=="string"),e}var $pe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function O5(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function xme(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Dme(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Rme(t,e){z0(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&K0(t,Sme,i)||i.position===t.length-4&&K0(t,Tme,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=kme(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let g;c!==null?(u??="text/plain",xme(u)||(u=""),g=new wme([d],c,{type:u})):g=Ime(Buffer.from(d)),z0(j5(A)),z0(typeof g=="string"&&j5(g)||Qme(g)),n.push(yme(A,g,c))}}function kme(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=id(a=>a!==10&&a!==13&&a!==58,t,e);if(o=PS(o,!0,!0,a=>a===9||a===32),!Bme.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,id(a=>a===32||a===9,t,e),Cme(o)){case"content-disposition":{if(r=s=null,!K0(t,Nme,e)||(e.position+=17,r=eH(t,e),r===null))return"failure";if(K0(t,$5,e)){let a=e.position+$5.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=eH(t,e),s===null))return"failure"}break}case"content-type":{let a=id(A=>A!==10&&A!==13,t,e);a=PS(a,!1,!0,A=>A===9||A===32),n=Z5(a);break}case"content-transfer-encoding":{let a=id(A=>A!==10&&A!==13,t,e);a=PS(a,!1,!0,A=>A===9||A===32),i=Z5(a);break}default:id(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function eH(t,e){z0(t[e.position-1]===34);let r=id(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function id(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function PS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function K0(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}tH.exports={multipartFormDataParser:Rme,validateBoundary:Dme}});var Ad=m((Ast,dH)=>{"use strict";var hf=De(),{ReadableStreamFrom:Fme,isBlobLike:sH,isReadableStreamLike:Mme,readableStreamClose:Ume,createDeferredPromise:Lme,fullyReadBody:Pme,extractMimeType:vme,utf8DecodeBytes:oH}=Us(),{FormData:nH}=df(),{kState:ad}=hA(),{webidl:Ome}=Sr(),{Blob:_me}=b("node:buffer"),vS=b("node:assert"),{isErrored:aH,isDisturbed:Hme}=b("node:stream"),{isArrayBuffer:Gme}=b("node:util/types"),{serializeAMimeType:Yme}=as(),{multipartFormDataParser:qme}=rH(),OS;try{let t=b("node:crypto");OS=e=>t.randomInt(0,e)}catch{OS=t=>Math.floor(Math.random(t))}var X0=new TextEncoder;function Vme(){}var AH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,cH;AH&&(cH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Hme(e)&&!aH(e)&&e.cancel("Response object has been garbage collected").catch(Vme)}));function uH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:sH(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?X0.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>Ume(A))},start(){},type:"bytes"}),vS(Mme(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Gme(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(hf.isFormDataLike(t)){let A=`----formdata-undici-0${`${OS(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=B=>B.replace(/\r?\n|\r/g,`\r
`),d=[],g=new Uint8Array([13,10]);i=0;let f=!1;for(let[B,E]of t)if(typeof E=="string"){let C=X0.encode(c+`; name="${u(l(B))}"\r
var Yfe=Object.create;var TS=Object.defineProperty;var qfe=Object.getOwnPropertyDescriptor;var Vfe=Object.getOwnPropertyNames;var Jfe=Object.getPrototypeOf,Wfe=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mi=(t,e)=>{for(var r in e)TS(t,r,{get:e[r],enumerable:!0})},zfe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Vfe(e))!Wfe.call(t,n)&&n!==r&&TS(t,n,{get:()=>e[n],enumerable:!(s=qfe(e,n))||s.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?Yfe(Jfe(t)):{},zfe(e||!t||!t.__esModule?TS(r,"default",{value:t,enumerable:!0}):r,t));var s5=E(Cd=>{"use strict";var Zit=w("net"),epe=w("tls"),FS=w("http"),e5=w("https"),tpe=w("events"),$it=w("assert"),rpe=w("util");Cd.httpOverHttp=spe;Cd.httpsOverHttp=npe;Cd.httpOverHttps=ipe;Cd.httpsOverHttps=ope;function spe(t){var e=new fa(t);return e.request=FS.request,e}function npe(t){var e=new fa(t);return e.request=FS.request,e.createSocket=t5,e.defaultPort=443,e}function ipe(t){var e=new fa(t);return e.request=e5.request,e}function ope(t){var e=new fa(t);return e.request=e5.request,e.createSocket=t5,e.defaultPort=443,e}function fa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||FS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=r5(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}rpe.inherits(fa,tpe.EventEmitter);fa.prototype.addRequest=function(e,r,s,n){var i=this,o=MS({request:e},i.options,r5(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};fa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=MS({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),QA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){QA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){QA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return QA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),QA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};fa.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function t5(t,e){var r=this;fa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=MS({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=epe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function r5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function MS(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var QA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?QA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:QA=function(){};Cd.debug=QA});var US=E((tot,n5)=>{n5.exports=s5()});var Et=E((rot,i5)=>{i5.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var qe=E((sot,D5)=>{"use strict";var o5=Symbol.for("undici.error.UND_ERR"),Ct=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[o5]===!0}[o5]=!0},a5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),LS=class extends Ct{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[a5]===!0}[a5]=!0},A5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),vS=class extends Ct{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[A5]===!0}[A5]=!0},c5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),PS=class extends Ct{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[c5]===!0}[c5]=!0},u5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),OS=class extends Ct{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[u5]===!0}[u5]=!0},l5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),_S=class extends Ct{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function y0e(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(o0e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Q0e(){return"allowed"}function b0e(){return"success"}function w0e(){return"success"}function N0e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function S0e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&RT(t.origin)&&!RT(Yf(t))&&(e=null);break;case"same-origin":UC(t,Yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function xd(t,e){return t}function T0e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:xd(t.domainLookupStartTime,r),domainLookupEndTime:xd(t.domainLookupEndTime,r),connectionStartTime:xd(t.connectionStartTime,r),connectionEndTime:xd(t.connectionEndTime,r),secureConnectionStartTime:xd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function x0e(t){return xd(l0e.now(),t)}function D0e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function qH(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R0e(t){return{referrerPolicy:t.referrerPolicy}}function k0e(t){let e=t.referrerPolicy;lu(e);let r=null;if(t.referrer==="client"){let a=PH();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=DT(r),n=DT(r,!0);s.toString().length>4096&&(s=n);let i=UC(t,s),o=Gf(s)&&!Gf(t.url);switch(e){case"origin":return n??DT(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Yf(t);return UC(s,a)?s:Gf(s)&&!Gf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function DT(t,e){return lu(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Gf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function F0e(t,e){if(MC===void 0)return!0;let r=VH(e);if(r==="no metadata"||r.length===0)return!0;let s=U0e(r),n=L0e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=MC.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),v0e(A,a))return!0}return!1}var M0e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function VH(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=M0e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();_H.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function U0e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function L0e(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function v0e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function P0e(t){}function UC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function O0e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function _0e(t){return t.controller.state==="aborted"}function H0e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function G0e(t){return g0e[t.toLowerCase()]??t}function Y0e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return lu(typeof e=="string"),e}var q0e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function JH(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function IEe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function BEe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function yEe(t,e){vC(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&PC(t,EEe,i)||i.position===t.length-4&&PC(t,CEe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=QEe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",IEe(u)||(u=""),h=new pEe([d],c,{type:u})):h=lEe(Buffer.from(d)),vC(n9(A)),vC(typeof h=="string"&&n9(h)||hEe(h)),n.push(gEe(A,h,c))}}function QEe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Rd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=PT(o,!0,!0,a=>a===9||a===32),!dEe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Rd(a=>a===32||a===9,t,e),uEe(o)){case"content-disposition":{if(r=s=null,!PC(t,mEe,e)||(e.position+=17,r=a9(t,e),r===null))return"failure";if(PC(t,o9,e)){let a=e.position+o9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=a9(t,e),s===null))return"failure"}break}case"content-type":{let a=Rd(A=>A!==10&&A!==13,t,e);a=PT(a,!1,!0,A=>A===9||A===32),n=i9(a);break}case"content-transfer-encoding":{let a=Rd(A=>A!==10&&A!==13,t,e);a=PT(a,!1,!0,A=>A===9||A===32),i=i9(a);break}default:Rd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function a9(t,e){vC(t[e.position-1]===34);let r=Rd(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Rd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function PT(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function PC(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}A9.exports={multipartFormDataParser:yEe,validateBoundary:BEe}});var Md=E((Tot,C9)=>{"use strict";var Jf=De(),{ReadableStreamFrom:bEe,isBlobLike:u9,isReadableStreamLike:wEe,readableStreamClose:NEe,createDeferredPromise:SEe,fullyReadBody:TEe,extractMimeType:xEe,utf8DecodeBytes:h9}=Hs(),{FormData:l9}=Vf(),{kState:Fd}=bA(),{webidl:DEe}=Tr(),{Blob:REe}=w("node:buffer"),OT=w("node:assert"),{isErrored:g9,isDisturbed:kEe}=w("node:stream"),{isArrayBuffer:FEe}=w("node:util/types"),{serializeAMimeType:MEe}=cs(),{multipartFormDataParser:UEe}=c9(),_T;try{let t=w("node:crypto");_T=e=>t.randomInt(0,e)}catch{_T=t=>Math.floor(Math.random(t))}var OC=new TextEncoder;function LEe(){}var f9=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,p9;f9&&(p9=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!kEe(e)&&!g9(e)&&e.cancel("Response object has been garbage collected").catch(LEe)}));function m9(t,e=!1){let r=null;t instanceof ReadableStream?r=t:u9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?OC.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>NEe(A))},start(){},type:"bytes"}),OT(wEe(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(FEe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Jf.isFormDataLike(t)){let A=`----formdata-undici-0${`${_T(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=OC.encode(c+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=X0.encode(`${c}; name="${u(l(B))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=OC.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,E,g),typeof E.size=="number"?i+=C.byteLength+E.size+g.byteLength:f=!0}let p=X0.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let B of d)B.stream?yield*B.stream():yield B},o=`multipart/form-data; boundary=${A}`}else if(sH(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(hf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Fme(t)}if((typeof n=="string"||hf.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!aH(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function Jme(t,e=!1){return t instanceof ReadableStream&&(vS(!hf.isDisturbed(t),"The body has already been consumed."),vS(!t.locked,"The stream is locked.")),uH(t,e)}function Wme(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function zme(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Kme(t){return{blob(){return od(this,r=>{let s=iH(this);return s===null?s="":s&&(s=Yme(s)),new _me([r],{type:s})},t)},arrayBuffer(){return od(this,r=>new Uint8Array(r).buffer,t)},text(){return od(this,oH,t)},json(){return od(this,jme,t)},formData(){return od(this,r=>{let s=iH(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=qme(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new nH;return i[ad]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new nH;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return od(this,r=>new Uint8Array(r),t)}}}function Xme(t){Object.assign(t.prototype,Kme(t))}async function od(t,e,r){if(Ome.brandCheck(t,r),lH(t))throw new TypeError("Body is unusable: Body has already been read");zme(t[ad]);let s=Lme(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[ad].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Pme(t[ad].body,i,n),s.promise)}function lH(t){let e=t[ad].body;return e!=null&&(e.stream.locked||hf.isDisturbed(e.stream))}function jme(t){return JSON.parse(oH(t))}function iH(t){let e=t[ad].headersList,r=vme(e);return r==="failure"?null:r}dH.exports={extractBody:uH,safelyExtractBody:Jme,cloneBody:Wme,mixinBody:Xme,streamRegistry:cH,hasFinalizationRegistry:AH,bodyUnusable:lH}});var yH=m((cst,QH)=>{"use strict";var ce=b("node:assert"),Ce=De(),{channels:hH}=Kl(),_S=BS(),{RequestContentLengthMismatchError:qc,ResponseContentLengthMismatchError:Zme,RequestAbortedError:CH,HeadersTimeoutError:$me,HeadersOverflowError:eEe,SocketError:rC,InformationalError:cd,BodyTimeoutError:tEe,HTTPParserError:rEe,ResponseExceededMaxSizeError:sEe}=qe(),{kUrl:IH,kReset:As,kClient:qS,kParser:St,kBlocking:pf,kRunning:kr,kPending:nEe,kSize:gH,kWriting:fA,kQueue:di,kNoRef:gf,kKeepAliveDefaultTimeout:iEe,kHostHeader:oEe,kPendingIdx:aEe,kRunningIdx:Cn,kError:In,kPipelining:eC,kSocket:ud,kKeepAliveTimeoutValue:sC,kMaxHeadersSize:HS,kKeepAliveMaxTimeout:AEe,kKeepAliveTimeoutThreshold:cEe,kHeadersTimeout:uEe,kBodyTimeout:lEe,kStrictContentLength:VS,kMaxRequests:fH,kCounter:dEe,kMaxResponseSize:hEe,kOnError:gEe,kResume:gA,kHTTPContext:BH}=pt(),Ki=c5(),fEe=Buffer.alloc(0),j0=Buffer[Symbol.species],Z0=Ce.addListener,pEe=Ce.removeAllListeners,GS;async function mEe(){let t=process.env.JEST_WORKER_ID?bS():void 0,e;try{e=await WebAssembly.compile(d5())}catch{e=await WebAssembly.compile(t||bS())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onStatus(new j0(Xi.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(sr.ptr===r),sr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onHeaderField(new j0(Xi.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onHeaderValue(new j0(Xi.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(sr.ptr===r),sr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onBody(new j0(Xi.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(sr.ptr===r),sr.onMessageComplete()||0)}})}var YS=null,JS=mEe();JS.catch();var sr=null,Xi=null,$0=0,ji=null,EEe=0,ff=1,ld=2|ff,tC=4|ff,WS=8|EEe,zS=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[HS])&&e[HS]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ki.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=OC.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(u9(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:bEe(t)}if((typeof n=="string"||Jf.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!g9(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function vEe(t,e=!1){return t instanceof ReadableStream&&(OT(!Jf.isDisturbed(t),"The body has already been consumed."),OT(!t.locked,"The stream is locked.")),m9(t,e)}function PEe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function OEe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _Ee(t){return{blob(){return kd(this,r=>{let s=d9(this);return s===null?s="":s&&(s=MEe(s)),new REe([r],{type:s})},t)},arrayBuffer(){return kd(this,r=>new Uint8Array(r).buffer,t)},text(){return kd(this,h9,t)},json(){return kd(this,GEe,t)},formData(){return kd(this,r=>{let s=d9(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=UEe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new l9;return i[Fd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new l9;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return kd(this,r=>new Uint8Array(r),t)}}}function HEe(t){Object.assign(t.prototype,_Ee(t))}async function kd(t,e,r){if(DEe.brandCheck(t,r),E9(t))throw new TypeError("Body is unusable: Body has already been read");OEe(t[Fd]);let s=SEe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Fd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await TEe(t[Fd].body,i,n),s.promise)}function E9(t){let e=t[Fd].body;return e!=null&&(e.stream.locked||Jf.isDisturbed(e.stream))}function GEe(t){return JSON.parse(h9(t))}function d9(t){let e=t[Fd].headersList,r=xEe(e);return r==="failure"?null:r}C9.exports={extractBody:m9,safelyExtractBody:vEe,cloneBody:PEe,mixinBody:HEe,streamRegistry:p9,hasFinalizationRegistry:f9,bodyUnusable:E9}});var D9=E((xot,x9)=>{"use strict";var ce=w("node:assert"),Ce=De(),{channels:I9}=Bd(),HT=yT(),{RequestContentLengthMismatchError:du,ResponseContentLengthMismatchError:YEe,RequestAbortedError:N9,HeadersTimeoutError:qEe,HeadersOverflowError:VEe,SocketError:VC,InformationalError:Ud,BodyTimeoutError:JEe,HTTPParserError:WEe,ResponseExceededMaxSizeError:zEe}=qe(),{kUrl:S9,kReset:us,kClient:VT,kParser:Tt,kBlocking:Kf,kRunning:Mr,kPending:KEe,kSize:B9,kWriting:NA,kQueue:Ei,kNoRef:Wf,kKeepAliveDefaultTimeout:XEe,kHostHeader:jEe,kPendingIdx:ZEe,kRunningIdx:wn,kError:Nn,kPipelining:YC,kSocket:Ld,kKeepAliveTimeoutValue:JC,kMaxHeadersSize:GT,kKeepAliveMaxTimeout:$Ee,kKeepAliveTimeoutThreshold:eCe,kHeadersTimeout:tCe,kBodyTimeout:rCe,kStrictContentLength:JT,kMaxRequests:y9,kCounter:sCe,kMaxResponseSize:nCe,kOnError:iCe,kResume:wA,kHTTPContext:T9}=Et(),so=pH(),oCe=Buffer.alloc(0),_C=Buffer[Symbol.species],HC=Ce.addListener,aCe=Ce.removeAllListeners,YT;async function ACe(){let t=process.env.JEST_WORKER_ID?wT():void 0,e;try{e=await WebAssembly.compile(CH())}catch{e=await WebAssembly.compile(t||wT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onStatus(new _C(no.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(nr.ptr===r),nr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderField(new _C(no.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderValue(new _C(no.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(nr.ptr===r),nr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onBody(new _C(no.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(nr.ptr===r),nr.onMessageComplete()||0)}})}var qT=null,WT=ACe();WT.catch();var nr=null,no=null,GC=0,io=null,cCe=0,zf=1,vd=2|zf,qC=4|zf,zT=8|cCe,KT=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[GT])&&e[GT]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(so.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[oEe],i?p+=`connection: upgrade\r
`:p+=t[jEe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[eC]&&!g[As]?p+=`connection: keep-alive\r
`:t[YC]&&!h[us]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],C=c[B+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${E}: ${C[w]}\r
`;else p+=`${E}: ${C}\r
`}return hH.sendHeaders.hasSubscribers&&hH.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?mH(f,null,t,e,g,u,p,l):Ce.isBuffer(A)?mH(f,A,t,e,g,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?EH(f,A.stream(),t,e,g,u,p,l):bEe(f,A,t,e,g,u,p,l):Ce.isStream(A)?yEe(f,A,t,e,g,u,p,l):Ce.isIterable(A)?EH(f,A,t,e,g,u,p,l):ce(!1),!0}function yEe(t,e,r,s,n,i,o,a){ce(i!==0||r[kr]===0,"stream body cannot be pipelined");let A=!1,c=new nC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new CH;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,ce(n.destroyed||n[fA]&&r[kr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ce.destroy(e,f):Ce.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(()=>g(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>g(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function mH(t,e,r,s,n,i,o,a){try{e?Ce.isBuffer(e)&&(ce(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return I9.sendHeaders.hasSubscribers&&I9.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?b9(f,null,t,e,h,u,p,l):Ce.isBuffer(A)?b9(f,A,t,e,h,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?w9(f,A.stream(),t,e,h,u,p,l):fCe(f,A,t,e,h,u,p,l):Ce.isStream(A)?gCe(f,A,t,e,h,u,p,l):Ce.isIterable(A)?w9(f,A,t,e,h,u,p,l):ce(!1),!0}function gCe(t,e,r,s,n,i,o,a){ce(i!==0||r[Mr]===0,"stream body cannot be pipelined");let A=!1,c=new WC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new N9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ce(n.destroyed||n[NA]&&r[Mr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ce.destroy(e,f):Ce.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function b9(t,e,r,s,n,i,o,a){try{e?Ce.isBuffer(e)&&(ce(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[As]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[us]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(ce(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[gA]()}catch(A){t(A)}}async function bEe(t,e,r,s,n,i,o,a){ce(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new qc;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[wA]()}catch(A){t(A)}}async function fCe(t,e,r,s,n,i,o,a){ce(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new du;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[As]=!0),r[gA]()}catch(A){t(A)}}async function EH(t,e,r,s,n,i,o,a){ce(i!==0||r[kr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{ce(A===null),n[In]?g(n[In]):A=d});n.on("close",c).on("drain",c);let l=new nC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[In])throw n[In];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var nC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[fA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[In])throw r[In];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[VS])throw new qc;process.emitWarning(new qc)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[As]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[us]=!0),r[wA]()}catch(A){t(A)}}async function w9(t,e,r,s,n,i,o,a){ce(i!==0||r[Mr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{ce(A===null),n[Nn]?h(n[Nn]):A=d});n.on("close",c).on("drain",c);let l=new WC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Nn])throw n[Nn];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var WC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[NA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Nn])throw r[Nn];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[JT])throw new du;process.emitWarning(new du)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[us]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[St].timeout&&r[St].timeoutType===ld&&r[St].timeout.refresh&&r[St].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[fA]=!1,e[In])throw e[In];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Tt].timeout&&r[Tt].timeoutType===vd&&r[Tt].timeout.refresh&&r[Tt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[NA]=!1,e[Nn])throw e[Nn];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[VS])throw new qc;process.emitWarning(new qc)}e[St].timeout&&e[St].timeoutType===ld&&e[St].timeout.refresh&&e[St].timeout.refresh(),s[gA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[fA]=!1,e&&(ce(s[kr]<=1,"pipeline should only contain this request"),n(e))}};QH.exports=CEe});var RH=m((ust,DH)=>{"use strict";var Bn=b("node:assert"),{pipeline:wEe}=b("node:stream"),Fe=De(),{RequestContentLengthMismatchError:KS,RequestAbortedError:bH,SocketError:mf,InformationalError:XS}=qe(),{kUrl:iC,kReset:aC,kClient:dd,kRunning:AC,kPending:NEe,kQueue:pA,kPendingIdx:jS,kRunningIdx:hi,kError:fi,kSocket:dr,kStrictContentLength:SEe,kOnError:ZS,kMaxConcurrentStreams:xH,kHTTP2Session:gi,kResume:mA,kSize:TEe,kHTTPContext:xEe}=pt(),ha=Symbol("open streams"),wH,NH=!1,oC;try{oC=b("node:http2")}catch{oC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DEe,HTTP2_HEADER_METHOD:REe,HTTP2_HEADER_PATH:kEe,HTTP2_HEADER_SCHEME:FEe,HTTP2_HEADER_CONTENT_LENGTH:MEe,HTTP2_HEADER_EXPECT:UEe,HTTP2_HEADER_STATUS:LEe}}=oC;function PEe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function vEe(t,e){t[dr]=e,NH||(NH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=oC.connect(t[iC],{createConnection:()=>e,peerMaxConcurrentStreams:t[xH]});r[ha]=0,r[dd]=t,r[dr]=e,Fe.addListener(r,"error",_Ee),Fe.addListener(r,"frameError",HEe),Fe.addListener(r,"end",GEe),Fe.addListener(r,"goaway",YEe),Fe.addListener(r,"close",function(){let{[dd]:n}=this,{[dr]:i}=n,o=this[dr][fi]||this[fi]||new mf("closed",Fe.getSocketInfo(i));if(n[gi]=null,n.destroyed){Bn(n[NEe]===0);let a=n[pA].splice(n[hi]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[gi]=r,e[gi]=r,Fe.addListener(e,"error",function(n){Bn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fi]=n,this[dd][ZS](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new mf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[fi]||new mf("closed",Fe.getSocketInfo(this));t[dr]=null,this[gi]!=null&&this[gi].destroy(n),t[jS]=t[hi],Bn(t[AC]===0),t.emit("disconnect",t[iC],[t],n),t[mA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return VEe(t,...n)},resume(){OEe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function OEe(t){let e=t[dr];e?.destroyed===!1&&(t[TEe]===0&&t[xH]===0?(e.unref(),t[gi].unref()):(e.ref(),t[gi].ref()))}function _Ee(t){Bn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][fi]=t,this[dd][ZS](t)}function HEe(t,e,r){if(r===0){let s=new XS(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][fi]=s,this[dd][ZS](s)}}function GEe(){let t=new mf("other side closed",Fe.getSocketInfo(this[dr]));this.destroy(t),Fe.destroy(this[dr],t)}function YEe(t){let e=this[fi]||new mf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[dd];if(r[dr]=null,r[xEe]=null,this[gi]!=null&&(this[gi].destroy(e),this[gi]=null),Fe.destroy(this[dr],e),r[hi]<r[pA].length){let s=r[pA][r[hi]];r[pA][r[hi]++]=null,Fe.errorRequest(r,s,e),r[jS]=r[hi]}Bn(r[AC]===0),r.emit("disconnect",r[iC],[r],e),r[mA]()}function qEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VEe(t,e){let r=t[gi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let x=0;x<c.length;x+=2){let k=c[x+0],O=c[x+1];if(Array.isArray(O))for(let F=0;F<O.length;F++)l[k]?l[k]+=`,${O[F]}`:l[k]=O[F];else l[k]=O}let d,{hostname:g,port:f}=t[iC];l[DEe]=i||`${g}${f?`:${f}`:""}`,l[REe]=s;let p=x=>{e.aborted||e.completed||(x=x||new bH,Fe.errorRequest(t,e,x),d!=null&&Fe.destroy(d,x),Fe.destroy(u,x),t[pA][t[hi]++]=null,t[mA]())};try{e.onConnect(p)}catch(x){Fe.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ha],t[pA][t[hi]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ha],t[pA][t[hi]++]=null}),d.once("close",()=>{r[ha]-=1,r[ha]===0&&r.unref()}),!0;l[kEe]=n,l[FEe]="https";let B=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Fe.bodyLength(u);if(Fe.isFormDataLike(u)){wH??=Ad().extractBody;let[x,k]=wH(u);l["content-type"]=k,u=x.stream,E=x.length}if(E==null&&(E=e.contentLength),(E===0||!B)&&(E=null),qEe(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[SEe])return Fe.errorRequest(t,e,new KS),!1;process.emitWarning(new KS)}E!=null&&(Bn(u,"no body must not have content length"),l[MEe]=`${E}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[UEe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",w)):(d=r Line truncated
`,this[m0e]=A??3e5,this[p0e]=n??3e5,this[E0e]=C??!0,this[C0e]=x,this[rT]=O,this[CA]=null,this[b0e]=_>-1?_:-1,this[N0e]=at??100,this[Gt]=null,this[pi]=[],this[fa]=0,this[mi]=0,this[Bf]=xe=>nT(this,xe),this[w0e]=xe=>YH(this,xe)}get pipelining(){return this[dC]}set pipelining(e){this[dC]=e,this[Bf](!0)}get[bf](){return this[pi].length-this[mi]}get[yf](){return this[mi]-this[fa]}get[Qf](){return this[pi].length-this[fa]}get[c0e](){return!!this[Gt]&&!this[gd]&&!this[Gt].destroyed}get[tT](){return!!(this[Gt]?.busy(null)||this[Qf]>=(GH(this)||1)||this[bf]>0)}[A0e](e){qH(this),this.once("connect",e)}[y0e](e,r){let s=e.origin||this[$i].origin,n=new r0e(s,e,r);return this[pi].push(n),this[Jc]||(Vc.bodyLength(n.body)==null&&Vc.isIterable(n.body)?(this[Jc]=1,queueMicrotask(()=>nT(this))):this[Bf](!0)),this[Jc]&&this[IA]!==2&&this[tT]&&(this[IA]=2),this[IA]<2}async[B0e](){return new Promise(e=>{this[Qf]?this[CA]=e:e(null)})}async[Q0e](e){return new Promise(r=>{let s=this[pi].splice(this[mi]);for(let i=0;i<s.length;i++){let o=s[i];Vc.errorRequest(this,o,e)}let n=()=>{this[CA]&&(this[CA](),this[CA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[Bf]()})}},x0e=lC();function YH(t,e){if(t[yf]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ga(t[mi]===t[fa]);let r=t[pi].splice(t[fa]);for(let s=0;s<r.length;s++){let n=r[s];Vc.errorRequest(t,n,e)}ga(t[Qf]===0)}}async function qH(t){ga(!t[gd]),ga(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[$i];if(r[0]==="["){let i=r.indexOf("]");ga(i!==-1);let o=r.substring(1,i);ga(HH.isIP(o)),r=o}t[gd]=!0,hd.beforeConnect.hasSubscribers&&hd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[EA],localAddress:t[If]},connector:t[Cf]});try{let i=await new Promise((o,a)=>{t[Cf]({host:e,hostname:r,protocol:s,port:n,servername:t[EA],localAddress:t[If]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Vc.destroy(i.on("error",OH),new i0e);return}ga(i);try{t[Gt]=i.alpnProtocol==="h2"?await T0e(t,i):await S0e(t,i)}catch(o){throw i.destroy().on("error",OH),o}t[gd]=!1,i[I0e]=0,i[rT]=t[rT],i[a0e]=t,i[l0e]=null,hd.connected.hasSubscribers&&hd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[EA],localAddress:t[If]},connector:t[Cf],socket:i}),t.emit("connect",t[$i],[t])}catch(i){if(t.destroyed)return;if(t[gd]=!1,hd.connectError.hasSubscribers&&hd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[EA],localAddress:t[If]},connector:t[Cf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ga(t[yf]===0);t[bf]>0&&t[pi][t[mi]].servername===t[EA];){let o=t[pi][t[mi]++];Vc.errorRequest(t,o,i)}else YH(t,i);t.emit("connectionError",t[$i],[t],i)}t[Bf]()}function _H(t){t[IA]=0,t.emit("drain",t[$i],[t])}function nT(t,e){t[Jc]!==2&&(t[Jc]=2,D0e(t,e),t[Jc]=0,t[fa]>256&&(t[pi].splice(0,t[fa]),t[mi]-=t[fa],t[fa]=0))}function D0e(t,e){for(;;){if(t.destroyed){ga(t[bf]===0);return}if(t[CA]&&!t[Qf]){t[CA](),t[CA]=null;return}if(t[Gt]&&t[Gt].resume(),t[tT])t[IA]=2;else if(t[IA]===2){e?(t[IA]=1,queueMicrotask(()=>_H(t))):_H(t);continue}if(t[bf]===0||t[yf]>=(GH(t)||1))return;let r=t[pi][t[mi]];if(t[$i].protocol==="https:"&&t[EA]!==r.servername){if(t[yf]>0)return;t[EA]=r.servername,t[Gt]?.destroy(new n0e("servername changed"),()=>{t[Gt]=null,nT(t)})}if(t[gd])return;if(!t[Gt]){qH(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[mi]++:t[pi].splice(t[mi],1)}}VH.exports=sT});var iT=m((fst,JH)=>{"use strict";var hC=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};JH.exports=class{constructor(){this.head=this.tail=new hC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new hC),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zH=m((pst,WH)=>{var{kFree:R0e,kConnected:k0e,kPending:F0e,kQueued:M0e,kRunning:U0e,kSize:L0e}=pt(),Wc=Symbol("pool"),oT=class{constructor(e){this[Wc]=e}get connected(){return this[Wc][k0e]}get free(){return this[Wc][R0e]}get pending(){return this[Wc][F0e]}get queued(){return this[Wc][M0e]}get running(){return this[Wc][U0e]}get size(){return this[Wc][L0e]}};WH.exports=oT});var dT=m((mst,n9)=>{"use strict";var P0e=$l(),v0e=iT(),{kConnected:aT,kSize:KH,kRunning:XH,kPending:jH,kQueued:wf,kBusy:O0e,kFree:_0e,kUrl:H0e,kClose:G0e,kDestroy:Y0e,kDispatch:q0e}=pt(),V0e=zH(),cs=Symbol("clients"),Vr=Symbol("needDrain"),Nf=Symbol("queue"),AT=Symbol("closed resolve"),cT=Symbol("onDrain"),ZH=Symbol("onConnect"),$H=Symbol("onDisconnect"),e9=Symbol("onConnectionError"),uT=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[JT])throw new du;process.emitWarning(new du)}e[Tt].timeout&&e[Tt].timeoutType===vd&&e[Tt].timeout.refresh&&e[Tt].timeout.refresh(),s[wA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[NA]=!1,e&&(ce(s[Mr]<=1,"pipeline should only contain this request"),n(e))}};x9.exports=uCe});var P9=E((Dot,v9)=>{"use strict";var Sn=w("node:assert"),{pipeline:pCe}=w("node:stream"),Fe=De(),{RequestContentLengthMismatchError:XT,RequestAbortedError:R9,SocketError:Xf,InformationalError:jT}=qe(),{kUrl:zC,kReset:XC,kClient:Pd,kRunning:jC,kPending:mCe,kQueue:SA,kPendingIdx:ZT,kRunningIdx:Ci,kError:Bi,kSocket:hr,kStrictContentLength:ECe,kOnError:$T,kMaxConcurrentStreams:L9,kHTTP2Session:Ii,kResume:TA,kSize:CCe,kHTTPContext:ICe}=Et(),Ba=Symbol("open streams"),k9,F9=!1,KC;try{KC=w("node:http2")}catch{KC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:BCe,HTTP2_HEADER_METHOD:yCe,HTTP2_HEADER_PATH:QCe,HTTP2_HEADER_SCHEME:bCe,HTTP2_HEADER_CONTENT_LENGTH:wCe,HTTP2_HEADER_EXPECT:NCe,HTTP2_HEADER_STATUS:SCe}}=KC;function TCe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function xCe(t,e){t[hr]=e,F9||(F9=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=KC.connect(t[zC],{createConnection:()=>e,peerMaxConcurrentStreams:t[L9]});r[Ba]=0,r[Pd]=t,r[hr]=e,Fe.addListener(r,"error",RCe),Fe.addListener(r,"frameError",kCe),Fe.addListener(r,"end",FCe),Fe.addListener(r,"goaway",MCe),Fe.addListener(r,"close",function(){let{[Pd]:n}=this,{[hr]:i}=n,o=this[hr][Bi]||this[Bi]||new Xf("closed",Fe.getSocketInfo(i));if(n[Ii]=null,n.destroyed){Sn(n[mCe]===0);let a=n[SA].splice(n[Ci]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[Ii]=r,e[Ii]=r,Fe.addListener(e,"error",function(n){Sn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bi]=n,this[Pd][$T](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new Xf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[Bi]||new Xf("closed",Fe.getSocketInfo(this));t[hr]=null,this[Ii]!=null&&this[Ii].destroy(n),t[ZT]=t[Ci],Sn(t[jC]===0),t.emit("disconnect",t[zC],[t],n),t[TA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return LCe(t,...n)},resume(){DCe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function DCe(t){let e=t[hr];e?.destroyed===!1&&(t[CCe]===0&&t[L9]===0?(e.unref(),t[Ii].unref()):(e.ref(),t[Ii].ref()))}function RCe(t){Sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hr][Bi]=t,this[Pd][$T](t)}function kCe(t,e,r){if(r===0){let s=new jT(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hr][Bi]=s,this[Pd][$T](s)}}function FCe(){let t=new Xf("other side closed",Fe.getSocketInfo(this[hr]));this.destroy(t),Fe.destroy(this[hr],t)}function MCe(t){let e=this[Bi]||new Xf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[Pd];if(r[hr]=null,r[ICe]=null,this[Ii]!=null&&(this[Ii].destroy(e),this[Ii]=null),Fe.destroy(this[hr],e),r[Ci]<r[SA].length){let s=r[SA][r[Ci]];r[SA][r[Ci]++]=null,Fe.errorRequest(r,s,e),r[ZT]=r[Ci]}Sn(r[jC]===0),r.emit("disconnect",r[zC],[r],e),r[TA]()}function UCe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function LCe(t,e){let r=t[Ii],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let R=c[T+0],M=c[T+1];if(Array.isArray(M))for(let F=0;F<M.length;F++)l[R]?l[R]+=`,${M[F]}`:l[R]=M[F];else l[R]=M}let d,{hostname:h,port:f}=t[zC];l[BCe]=i||`${h}${f?`:${f}`:""}`,l[yCe]=s;let p=T=>{e.aborted||e.completed||(T=T||new R9,Fe.errorRequest(t,e,T),d!=null&&Fe.destroy(d,T),Fe.destroy(u,T),t[SA][t[Ci]++]=null,t[TA]())};try{e.onConnect(p)}catch(T){Fe.errorRequest(t,e,T)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Ba],t[SA][t[Ci]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ba],t[SA][t[Ci]++]=null}),d.once("close",()=>{r[Ba]-=1,r[Ba]===0&&r.unref()}),!0;l[QCe]=n,l[bCe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Fe.bodyLength(u);if(Fe.isFormDataLike(u)){k9??=Md().extractBody;let[T,R]=k9(u);l["content-type"]=R,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),UCe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[ECe])return Fe.errorRequest(t,e,new XT),!1;process.emitWarning(new XT)}m!=null&&(Sn(u,"no body must not have content length"),l[wCe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[NCe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[AIe]=A??3e5,this[aIe]=n??3e5,this[cIe]=C??!0,this[uIe]=T,this[sx]=M,this[DA]=null,this[fIe]=_>-1?_:-1,this[mIe]=at??100,this[Gt]=null,this[yi]=[],this[Qa]=0,this[Qi]=0,this[ep]=xe=>ix(this,xe),this[pIe]=xe=>X9(this,xe)}get pipelining(){return this[tI]}set pipelining(e){this[tI]=e,this[ep](!0)}get[sp](){return this[yi].length-this[Qi]}get[rp](){return this[Qi]-this[Qa]}get[tp](){return this[yi].length-this[Qa]}get[eIe](){return!!this[Gt]&&!this[_d]&&!this[Gt].destroyed}get[rx](){return!!(this[Gt]?.busy(null)||this[tp]>=(K9(this)||1)||this[sp]>0)}[$Ce](e){j9(this),this.once("connect",e)}[gIe](e,r){let s=e.origin||this[ao].origin,n=new WCe(s,e,r);return this[yi].push(n),this[gu]||(hu.bodyLength(n.body)==null&&hu.isIterable(n.body)?(this[gu]=1,queueMicrotask(()=>ix(this))):this[ep](!0)),this[gu]&&this[RA]!==2&&this[rx]&&(this[RA]=2),this[RA]<2}async[dIe](){return new Promise(e=>{this[tp]?this[DA]=e:e(null)})}async[hIe](e){return new Promise(r=>{let s=this[yi].splice(this[Qi]);for(let i=0;i<s.length;i++){let o=s[i];hu.errorRequest(this,o,e)}let n=()=>{this[DA]&&(this[DA](),this[DA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[ep]()})}},IIe=eI();function X9(t,e){if(t[rp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ya(t[Qi]===t[Qa]);let r=t[yi].splice(t[Qa]);for(let s=0;s<r.length;s++){let n=r[s];hu.errorRequest(t,n,e)}ya(t[tp]===0)}}async function j9(t){ya(!t[_d]),ya(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[ao];if(r[0]==="["){let i=r.indexOf("]");ya(i!==-1);let o=r.substring(1,i);ya(z9.isIP(o)),r=o}t[_d]=!0,Od.beforeConnect.hasSubscribers&&Od.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf]});try{let i=await new Promise((o,a)=>{t[Zf]({host:e,hostname:r,protocol:s,port:n,servername:t[xA],localAddress:t[$f]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){hu.destroy(i.on("error",J9),new XCe);return}ya(i);try{t[Gt]=i.alpnProtocol==="h2"?await CIe(t,i):await EIe(t,i)}catch(o){throw i.destroy().on("error",J9),o}t[_d]=!1,i[lIe]=0,i[sx]=t[sx],i[ZCe]=t,i[rIe]=null,Od.connected.hasSubscribers&&Od.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf],socket:i}),t.emit("connect",t[ao],[t])}catch(i){if(t.destroyed)return;if(t[_d]=!1,Od.connectError.hasSubscribers&&Od.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ya(t[rp]===0);t[sp]>0&&t[yi][t[Qi]].servername===t[xA];){let o=t[yi][t[Qi]++];hu.errorRequest(t,o,i)}else X9(t,i);t.emit("connectionError",t[ao],[t],i)}t[ep]()}function W9(t){t[RA]=0,t.emit("drain",t[ao],[t])}function ix(t,e){t[gu]!==2&&(t[gu]=2,BIe(t,e),t[gu]=0,t[Qa]>256&&(t[yi].splice(0,t[Qa]),t[Qi]-=t[Qa],t[Qa]=0))}function BIe(t,e){for(;;){if(t.destroyed){ya(t[sp]===0);return}if(t[DA]&&!t[tp]){t[DA](),t[DA]=null;return}if(t[Gt]&&t[Gt].resume(),t[rx])t[RA]=2;else if(t[RA]===2){e?(t[RA]=1,queueMicrotask(()=>W9(t))):W9(t);continue}if(t[sp]===0||t[rp]>=(K9(t)||1))return;let r=t[yi][t[Qi]];if(t[ao].protocol==="https:"&&t[xA]!==r.servername){if(t[rp]>0)return;t[xA]=r.servername,t[Gt]?.destroy(new KCe("servername changed"),()=>{t[Gt]=null,ix(t)})}if(t[_d])return;if(!t[Gt]){j9(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[Qi]++:t[yi].splice(t[Qi],1)}}Z9.exports=nx});var ox=E((Uot,$9)=>{"use strict";var rI=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};$9.exports=class{constructor(){this.head=this.tail=new rI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new rI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var tG=E((Lot,eG)=>{var{kFree:yIe,kConnected:QIe,kPending:bIe,kQueued:wIe,kRunning:NIe,kSize:SIe}=Et(),fu=Symbol("pool"),ax=class{constructor(e){this[fu]=e}get connected(){return this[fu][QIe]}get free(){return this[fu][yIe]}get pending(){return this[fu][bIe]}get queued(){return this[fu][wIe]}get running(){return this[fu][NIe]}get size(){return this[fu][SIe]}};eG.exports=ax});var hx=E((vot,lG)=>{"use strict";var TIe=wd(),xIe=ox(),{kConnected:Ax,kSize:rG,kRunning:sG,kPending:nG,kQueued:np,kBusy:DIe,kFree:RIe,kUrl:kIe,kClose:FIe,kDestroy:MIe,kDispatch:UIe}=Et(),LIe=tG(),ls=Symbol("clients"),Jr=Symbol("needDrain"),ip=Symbol("queue"),cx=Symbol("closed resolve"),ux=Symbol("onDrain"),iG=Symbol("onConnect"),oG=Symbol("onDisconnect"),aG=Symbol("onConnectionError"),lx=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};uY.exports=dx});var RC=m((Vst,fY)=>{"use strict";var dY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mBe}=qe(),EBe=md();gY()===void 0&&hY(new EBe);function hY(t){if(!t||typeof t.dispatch!="function")throw new mBe("Argument agent must implement Agent");Object.defineProperty(globalThis,dY,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gY(){return globalThis[dY]}fY.exports={setGlobalDispatcher:hY,getGlobalDispatcher:gY}});var kC=m((Wst,pY)=>{"use strict";pY.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var EY=m((zst,mY)=>{"use strict";var CBe=uC();mY.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new CBe(r,o,n,i);return r(a,A)}}});var IY=m((Kst,CY)=>{"use strict";var IBe=BC();CY.exports=t=>e=>function(s,n){return e(s,new IBe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var QY=m((Xst,BY)=>{"use strict";var BBe=De(),{InvalidArgumentError:QBe,RequestAbortedError:yBe}=qe(),bBe=kC(),hx=class extends bBe{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new QBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=BBe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new yBe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function wBe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new hx({maxSize:i},n);return e(s,o)}}BY.exports=wBe});var wY=m((jst,bY)=>{"use strict";var{isIP:NBe}=b("node:net"),{lookup:SBe}=b("node:dns"),TBe=kC(),{InvalidArgumentError:Sd,InformationalError:xBe}=qe(),yY=Math.pow(2,31)-1,gx=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new xBe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#s(e,r,s){SBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===yY?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===yY?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new fx(this,e,r)}},fx=class extends TBe{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#s.onError(r);le Line truncated
${i}`;break;case"retry":nJ(i)&&(r[n]=i);break;case"id":iJ(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&nJ(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iJ(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oJ.exports={EventSourceStream:e2}});var fJ=m((Tnt,gJ)=>{"use strict";var{pipeline:O1e}=b("node:stream"),{fetching:_1e}=Of(),{makeRequest:H1e}=Dd(),{webidl:Ia}=Sr(),{EventSourceStream:G1e}=aJ(),{parseMIMEType:Y1e}=as(),{createFastMessageEvent:q1e}=Ld(),{isNetworkError:AJ}=Pf(),{delay:V1e}=Zx(),{kEnumerableProperty:Au}=De(),{environmentSettingsObject:cJ}=Us(),uJ=!1,lJ=3e3,Zf=0,dJ=1,$f=2,J1e="anonymous",W1e="use-credentials",Hd=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=Zf;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ia.util.markAsUncloneable(this);let s="EventSource constructor";Ia.argumentLengthCheck(arguments,1,s),uJ||(uJ=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ia.converters.USVString(e,s,"url"),r=Ia.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lJ};let n=cJ,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=J1e;r.withCredentials&&(o=W1e,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=cJ.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=H1e(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===$f)return;this.#s=Zf;let e={request:this.#i,dispatcher:this.#a},r=s=>{AJ(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(AJ(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Y1e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=dJ,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new G1e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(q1e(A.type,A.options))}});O1e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=_1e(e)}async#c(){this.#s!==$f&&(this.#s=Zf,this.dispatchEvent(new Event("error")),await V1e(this.#o.reconnectionTime),this.#s===Zf&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ia.brandCheck(this,t),this.#s!==$f&&(this.#s=$f,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},hJ={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Zf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dJ,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$f,writable:!1}};Object.defineProperties(Hd,hJ);Object.defineProperties(Hd.prototype,hJ);Object.defineProperties(Hd.prototype,{close:Au,onerror:Au,onmessage:Au,onopen:Au,readyState:Au,url:Au,withCredentials:Au});Ia.converters.EventSourceInitDict=Ia.dictionaryConverter([{key:"withCredentials",converter:Ia.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ia.converters.any}]);gJ.exports={EventSource:Hd,defaultReconnectionTime:lJ}});var II=m((xnt,le)=>{"use strict";var z1e=fd(),pJ=rf(),K1e=pd(),X1e=h9(),j1e=md(),Z1e=wT(),$1e=P9(),ewe=Y9(),mJ=qe(),CI=De(),{InvalidArgumentError:EI}=mJ,Gd=xG(),twe=nf(),rwe=ox(),swe=lY(),nwe=cx(),iwe=WT(),owe=BC(),{getGlobalDispatcher:EJ,setGlobalDispatcher:awe}=RC(),Awe=kC(),cwe=uC(),uwe=lC();Object.assign(pJ.prototype,Gd);le.exports.Dispatcher=pJ;le.exports.Client=z1e;le.exports.Pool=K1e;le.exports.BalancedPool=X1e;le.exports.Agent=j1e;le.exports.ProxyAgent=Z1e;le.exports.EnvHttpProxyAgent=$1e;le.exports.RetryAgent=ewe;le.exports.RetryHandle Line truncated
%s`,k,k,C,s);var O=C.type==="*"?z2:C.type==="?"?W2:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+O+"\\("+k}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var _=a.length-1;_>-1;_--){var H=a[_],Ye=s.slice(0,H.reStart),at=s.slice(H.reStart,H.reEnd-8),Be=s.slice(H.reEnd-8,H.reEnd),xe=s.slice(H.reEnd);Be+=xe;var Ue=Ye.split("(").length-1,_t=xe;for(p=0;p<Ue;p++)_t=_t.replace(/\)[+*?]?/,"");xe=_t;var mn="";xe===""&&e!==_I&&(mn="$");var vc=Ye+at+xe+mn+Be;s=vc}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===_I)return[s,n];if(!n)return oTe(t);var Oc=r.nocase?"i":"";try{var NN=new RegExp("^"+s+"$",Oc)}catch{return new RegExp("$.")}return NN._glob=t,NN._src=s,NN}Vs.makeRe=function(t,e){return new $t(t,e||{}).makeRe()};$t.prototype.makeRe=iTe;function iTe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?z2:e.dot?jSe:ZSe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===pu?r:typeof o=="string"?aTe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}Vs.match=function(t,e,r){r=r||{};var s=new $t(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};$t.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;up.sep!=="/"&&(e=e.split(up.sep).join("/")),e=e.split(AW),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};$t.prototype.matchOne=function(t,e,r){return e.indexOf(pu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};$t.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===pu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===pu){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var g=t.length-u.length;if(this._matchOne(t,u,r,g,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(g--,!this._matchOne(t,u,r,g,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var B=[[[],0]],E=B[0],C=0,w=[0],x=0;x<c.length;x++){var k=c[x];k===pu?(w.push(C),E=[[],0],B.push(E)):(E[0].push(k),C++)}for(var O=B.length-1,F=t.length-d,_=0;_<B.length;_++)B[_][1]=F-(w[O--]+B[_][0].length);return!!this._matchGlobStarBodySections(t,B,s,0,r,0,!!d)};$t.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var g=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(g!==!1)return g}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};$t.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===pu)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function oTe(t){return t.replace(/\\(.)/g,"$1")}function aTe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var gp=m((Qot,BW)=>{"use strict";var fTe="2.0.0",pTe=Number.MAX_SAFE_INTEGER||9007199254740991,mTe=16,ETe=250,CTe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];BW.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:mTe,MAX_SAFE_BUILD_LENGTH:ETe,MAX_SAFE_INTEGER:pTe,RELEASE_TYPES:CTe,SEMVER_SPEC_VERSION:fTe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var fp=m((yot,QW)=>{"use strict";var ITe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};QW.exports=ITe});var Xd=m((io,yW)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Z2,MAX_SAFE_BUILD_LENGTH:BTe,MAX_LENGTH:QTe}=gp(),yTe=fp();io=yW.exports={};var bTe=io.re=[],wTe=io.safeRe=[],z=io.src=[],NTe=io.safeSrc=[],K=io.t={},STe=0,$2="[a-zA-Z0-9-]",TTe=[["\\s",1],["\\d",QTe],[$2,BTe]],xTe=t=>{for(let[e,r]of TTe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`.trim())}};mq.exports=h2});var II=E((lat,yq)=>{"use strict";var Cq=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:AQe}=qe(),cQe=Yd();Bq()===void 0&&Iq(new cQe);function Iq(t){if(!t||typeof t.dispatch!="function")throw new AQe("Argument agent must implement Agent");Object.defineProperty(globalThis,Cq,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Bq(){return globalThis[Cq]}yq.exports={setGlobalDispatcher:Iq,getGlobalDispatcher:Bq}});var BI=E((hat,Qq)=>{"use strict";Qq.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var wq=E((gat,bq)=>{"use strict";var uQe=$C();bq.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new uQe(r,o,n,i);return r(a,A)}}});var Sq=E((fat,Nq)=>{"use strict";var lQe=uI();Nq.exports=t=>e=>function(s,n){return e(s,new lQe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var xq=E((pat,Tq)=>{"use strict";var dQe=De(),{InvalidArgumentError:hQe,RequestAbortedError:gQe}=qe(),fQe=BI(),g2=class extends fQe{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new hQe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=dQe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new gQe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function pQe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new g2({maxSize:i},n);return e(s,o)}}Tq.exports=pQe});var kq=E((mat,Rq)=>{"use strict";var{isIP:mQe}=w("node:net"),{lookup:EQe}=w("node:dns"),CQe=BI(),{InvalidArgumentError:$d,InformationalError:IQe}=qe(),Dq=Math.pow(2,31)-1,f2=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new IQe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){EQe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===Dq?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===Dq?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new p2(this,e,r)}},p2=class extends CQe{#e=null;#t=null;#s=null;#r=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":l7(i)&&(r[n]=i);break;case"id":d7(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&l7(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&d7(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};h7.exports={EventSourceStream:tD}});var y7=E((zat,B7)=>{"use strict";var{pipeline:DNe}=w("node:stream"),{fetching:RNe}=Ep(),{makeRequest:kNe}=rh(),{webidl:Ta}=Tr(),{EventSourceStream:FNe}=g7(),{parseMIMEType:MNe}=cs(),{createFastMessageEvent:UNe}=Ah(),{isNetworkError:f7}=pp(),{delay:LNe}=$2(),{kEnumerableProperty:Du}=De(),{environmentSettingsObject:p7}=Hs(),m7=!1,E7=3e3,Rp=0,C7=1,kp=2,vNe="anonymous",PNe="use-credentials",hh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Rp;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Ta.util.markAsUncloneable(this);let s="EventSource constructor";Ta.argumentLengthCheck(arguments,1,s),m7||(m7=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ta.converters.USVString(e,s,"url"),r=Ta.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:E7};let n=p7,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=vNe;r.withCredentials&&(o=PNe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=p7.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=kNe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===kp)return;this.#r=Rp;let e={request:this.#n,dispatcher:this.#a},r=s=>{f7(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(f7(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?MNe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=C7,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new FNe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(UNe(A.type,A.options))}});DNe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=RNe(e)}async#c(){this.#r!==kp&&(this.#r=Rp,this.dispatchEvent(new Event("error")),await LNe(this.#o.reconnectionTime),this.#r===Rp&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ta.brandCheck(this,t),this.#r!==kp&&(this.#r=kp,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},I7={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Rp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:C7,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:kp,writable:!1}};Object.defineProperties(hh,I7);Object.defineProperties(hh.prototype,I7);Object.defineProperties(hh.prototype,{close:Du,onerror:Du,onmessage:Du,onopen:Du,readyState:Du,url:Du,withCredentials:Du});Ta.converters.EventSourceInitDict=Ta.dictionaryConverter([{key:"withCredentials",converter:Ta.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ta.converters.any}]);B7.exports={EventSource:hh,defaultReconnectionTime:E7}});var cB=E((Kat,le)=>{"use strict";var ONe=Hd(),Q7=Lf(),_Ne=Gd(),HNe=IG(),GNe=Yd(),YNe=Nx(),qNe=qG(),VNe=XG(),b7=qe(),AB=De(),{InvalidArgumentError:aB}=b7,gh=LY(),JNe=Pf(),WNe=a2(),zNe=Eq(),KNe=u2(),XNe=zx(),jNe=uI(),{getGlobalDispatcher:w7,setGlobalDispatcher:ZNe}=II(),$Ne=BI(),eSe=$C(),tSe=eI();Object.assign(Q7.prototype,gh);le.exports.Dispatcher=Q7;le.exports.Client=ONe;le.exports.Pool=_Ne;le.exports.BalancedPool=HNe;le.exports.Agent=GNe;le.exports.ProxyAgent=YNe;le.exports.EnvHttpProxyAgent=qNe;le.exports.RetryAgent=VNe;le.exports.RetryHandle Line truncated
%s`,R,R,C,s);var M=C.type==="*"?JD:C.type==="?"?VD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+M+"\\("+R}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var _=a.length-1;_>-1;_--){var H=a[_],Ye=s.slice(0,H.reStart),at=s.slice(H.reStart,H.reEnd-8),Be=s.slice(H.reEnd-8,H.reEnd),xe=s.slice(H.reEnd);Be+=xe;var Ue=Ye.split("(").length-1,_t=xe;for(p=0;p<Ue;p++)_t=_t.replace(/\)[+*?]?/,"");xe=_t;var Qn="";xe===""&&e!==xB&&(Qn="$");var iu=Ye+at+xe+Qn+Be;s=iu}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===xB)return[s,n];if(!n)return Gxe(t);var ou=r.nocase?"i":"";try{var NS=new RegExp("^"+s+"$",ou)}catch{return new RegExp("$.")}return NS._glob=t,NS._src=s,NS}js.makeRe=function(t,e){return new er(t,e||{}).makeRe()};er.prototype.makeRe=Hxe;function Hxe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?JD:e.dot?Fxe:Mxe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Ou?r:typeof o=="string"?Yxe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}js.match=function(t,e,r){r=r||{};var s=new er(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};er.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Yp.sep!=="/"&&(e=e.split(Yp.sep).join("/")),e=e.split(fz),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};er.prototype.matchOne=function(t,e,r){return e.indexOf(Ou)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};er.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Ou){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Ou){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,b=[0],T=0;T<c.length;T++){var R=c[T];R===Ou?(b.push(C),m=[[],0],I.push(m)):(m[0].push(R),C++)}for(var M=I.length-1,F=t.length-d,_=0;_<I.length;_++)I[_][1]=F-(b[M--]+I[_][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};er.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};er.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Ou)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function Gxe(t){return t.replace(/\\(.)/g,"$1")}function Yxe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Qh=E((Xct,yz)=>{"use strict";var jxe="2.0.0",Zxe=Number.MAX_SAFE_INTEGER||9007199254740991,$xe=16,e2e=250,t2e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];yz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:$xe,MAX_SAFE_BUILD_LENGTH:e2e,MAX_SAFE_INTEGER:Zxe,RELEASE_TYPES:t2e,SEMVER_SPEC_VERSION:jxe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wp=E((jct,Qz)=>{"use strict";var r2e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Qz.exports=r2e});var bh=E((go,bz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:zD,MAX_SAFE_BUILD_LENGTH:s2e,MAX_LENGTH:n2e}=Qh(),i2e=Wp();go=bz.exports={};var o2e=go.re=[],a2e=go.safeRe=[],z=go.src=[],A2e=go.safeSrc=[],K=go.t={},c2e=0,KD="[a-zA-Z0-9-]",u2e=[["\\s",1],["\\d",n2e],[KD,s2e]],l2e=t=>{for(let[e,r]of u2e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+NB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=iRe()+e+" "+t[0]}function iRe(){return gr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function oRe(...t){return process.stderr.write(wB.formatWithOptions(gr.inspectOpts,...t)+`
`)}function aRe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ARe(){return process.env.DEBUG}function cRe(t){t.inspectOpts={};let e=Object.keys(gr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=gr.inspectOpts[e[r]]}NB.exports=OD()(gr);var{formatters:eX}=NB.exports;eX.o=function(t){return this.inspectOpts.colors=this.useColors,wB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};eX.O=function(t){return this.inspectOpts.colors=this.useColors,wB.inspect(t,this.inspectOpts)}});var SB=m((WAt,GD)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?GD.exports=zK():GD.exports=tX()});var nX=m(fs=>{"use strict";var uRe=fs&&fs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),lRe=fs&&fs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rX=fs&&fs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uRe(e,t,r);return lRe(e,t),e};Object.defineProperty(fs,"__esModule",{value:!0});fs.req=fs.json=fs.toBuffer=void 0;var dRe=rX(b("http")),hRe=rX(b("https"));async function sX(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}fs.toBuffer=sX;async function gRe(t){let r=(await sX(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}fs.json=gRe;function fRe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?hRe:dRe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}fs.req=fRe});var qD=m(zs=>{"use strict";var oX=zs&&zs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pRe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aX=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&oX(e,t,r);return pRe(e,t),e},mRe=zs&&zs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&oX(e,t,r)};Object.defineProperty(zs,"__esModule",{value:!0});zs.Agent=void 0;var ERe=aX(b("net")),iX=aX(b("http")),CRe=b("https");mRe(nX(),zs);var Ao=Symbol("AgentBaseInternalState"),YD=class extends iX.Agent{constructor(e){super(e),this[Ao]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new ERe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?CRe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof iX.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Ao].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Ao].currentSocket;if(this[Ao].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ao].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ao]&&(this[Ao].defaultPort=e)}get protocol(){return this[Ao].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ao]&&(this[Ao].protocol=e)}};zs.Agent=YD});var AX=m(ih=>{"use strict";var IRe=ih&&ih.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ih,"__esModule",{value:!0});ih.parseProxyResponse=void 0;var BRe=IRe(SB()),TB=(0,BRe.default)("https-proxy-agent:parse-proxy-response");function QRe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),TB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),TB("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
`+i),t.push(n+"m+"+gy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=jke()+e+" "+t[0]}function jke(){return fr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Zke(...t){return process.stderr.write(hy.formatWithOptions(fr.inspectOpts,...t)+`
`)}function $ke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function eFe(){return process.env.DEBUG}function tFe(t){t.inspectOpts={};let e=Object.keys(fr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fr.inspectOpts[e[r]]}gy.exports=PR()(fr);var{formatters:$X}=gy.exports;$X.o=function(t){return this.inspectOpts.colors=this.useColors,hy.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};$X.O=function(t){return this.inspectOpts.colors=this.useColors,hy.inspect(t,this.inspectOpts)}});var fy=E((Sdt,HR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?HR.exports=WX():HR.exports=ej()});var sj=E(Cs=>{"use strict";var rFe=Cs&&Cs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),sFe=Cs&&Cs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tj=Cs&&Cs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rFe(e,t,r);return sFe(e,t),e};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.req=Cs.json=Cs.toBuffer=void 0;var nFe=tj(w("http")),iFe=tj(w("https"));async function rj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Cs.toBuffer=rj;async function oFe(t){let r=(await rj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Cs.json=oFe;function aFe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?iFe:nFe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Cs.req=aFe});var YR=E(en=>{"use strict";var ij=en&&en.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),AFe=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oj=en&&en.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ij(e,t,r);return AFe(e,t),e},cFe=en&&en.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ij(e,t,r)};Object.defineProperty(en,"__esModule",{value:!0});en.Agent=void 0;var uFe=oj(w("net")),nj=oj(w("http")),lFe=w("https");cFe(sj(),en);var mo=Symbol("AgentBaseInternalState"),GR=class extends nj.Agent{constructor(e){super(e),this[mo]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new uFe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?lFe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof nj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[mo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[mo].currentSocket;if(this[mo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[mo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[mo]&&(this[mo].defaultPort=e)}get protocol(){return this[mo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[mo]&&(this[mo].protocol=e)}};en.Agent=GR});var aj=E(Fh=>{"use strict";var dFe=Fh&&Fh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fh,"__esModule",{value:!0});Fh.parseProxyResponse=void 0;var hFe=dFe(fy()),py=(0,hFe.default)("https-proxy-agent:parse-proxy-response");function gFe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),py("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),py("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
\r
`);if(d===-1){TB("have not received end of HTTP headers yet..."),i();return}let g=l.slice(0,d).toString("ascii").split(`\r
`),f=g.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),B=+p[1],E=p.slice(2).join(" "),C={};for(let w of g){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let k=w.slice(0,x).toLowerCase(),O=w.slice(x+1).trimStart(),F=C[k];typeof F=="string"?C[k]=[F,O]:Array.isArray(F)?F.push(O):C[k]=O}TB("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:B,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}ih.parseProxyResponse=QRe});var gX=m(Dn=>{"use strict";var yRe=Dn&&Dn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bRe=Dn&&Dn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dX=Dn&&Dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yRe(e,t,r);return bRe(e,t),e},hX=Dn&&Dn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.HttpsProxyAgent=void 0;var xB=dX(b("net")),cX=dX(b("tls")),wRe=hX(b("assert")),NRe=hX(SB()),SRe=qD(),TRe=b("url"),xRe=AX(),xp=(0,NRe.default)("https-proxy-agent"),uX=t=>t.servername===void 0&&t.host&&!xB.isIP(t.host)?{...t,servername:t.host}:t,DB=class extends SRe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new TRe.URL(e):e,this.proxyHeaders=r?.headers??{},xp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?lX(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(xp("Creating `tls.Socket`: %o",this.connectOpts),n=cX.connect(uX(this.connectOpts))):(xp("Creating `net.Socket`: %o",this.connectOpts),n=xB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xB.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){py("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let b of h){if(!b)continue;let T=b.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let R=b.slice(0,T).toLowerCase(),M=b.slice(T+1).trimStart(),F=C[R];typeof F=="string"?C[R]=[F,M]:Array.isArray(F)?F.push(M):C[R]=M}py("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Fh.parseProxyResponse=gFe});var hj=E(Un=>{"use strict";var fFe=Un&&Un.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pFe=Un&&Un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lj=Un&&Un.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&fFe(e,t,r);return pFe(e,t),e},dj=Un&&Un.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Un,"__esModule",{value:!0});Un.HttpsProxyAgent=void 0;var my=lj(w("net")),Aj=lj(w("tls")),mFe=dj(w("assert")),EFe=dj(fy()),CFe=YR(),IFe=w("url"),BFe=aj(),am=(0,EFe.default)("https-proxy-agent"),cj=t=>t.servername===void 0&&t.host&&!my.isIP(t.host)?{...t,servername:t.host}:t,Ey=class extends CFe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new IFe.URL(e):e,this.proxyHeaders=r?.headers??{},am("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?uj(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(am("Creating `tls.Socket`: %o",this.connectOpts),n=Aj.connect(cj(this.connectOpts))):(am("Creating `net.Socket`: %o",this.connectOpts),n=my.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=my.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,xRe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",DRe),r.secureEndpoint?(xp("Upgrading socket connection to TLS"),cX.connect({...lX(uX(r),"host","path","port"),socket:n})):n;n.destroy();let l=new xB.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{xp("Replaying proxy buffer for failed request"),(0,wRe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};DB.protocols=["http","https"];Dn.HttpsProxyAgent=DB;function DRe(t){t.resume()}function lX(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var mX=m(Rn=>{"use strict";var RRe=Rn&&Rn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),kRe=Rn&&Rn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pX=Rn&&Rn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&RRe(e,t,r);return kRe(e,t),e},FRe=Rn&&Rn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.HttpProxyAgent=void 0;var MRe=pX(b("net")),URe=pX(b("tls")),LRe=FRe(SB()),PRe=b("events"),vRe=qD(),fX=b("url"),oh=(0,LRe.default)("http-proxy-agent"),RB=class extends vRe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new fX.URL(e):e,this.proxyHeaders=r?.headers??{},oh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ORe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new fX.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;oh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(oh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,BFe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",yFe),r.secureEndpoint?(am("Upgrading socket connection to TLS"),Aj.connect({...uj(cj(r),"host","path","port"),socket:n})):n;n.destroy();let l=new my.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{am("Replaying proxy buffer for failed request"),(0,mFe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Ey.protocols=["http","https"];Un.HttpsProxyAgent=Ey;function yFe(t){t.resume()}function uj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var pj=E(Ln=>{"use strict";var QFe=Ln&&Ln.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bFe=Ln&&Ln.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fj=Ln&&Ln.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&QFe(e,t,r);return bFe(e,t),e},wFe=Ln&&Ln.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.HttpProxyAgent=void 0;var NFe=fj(w("net")),SFe=fj(w("tls")),TFe=wFe(fy()),xFe=w("events"),DFe=YR(),gj=w("url"),Mh=(0,TFe.default)("http-proxy-agent"),Cy=class extends DFe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new gj.URL(e):e,this.proxyHeaders=r?.headers??{},Mh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?RFe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new gj.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Mh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Mh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),oh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(oh("Creating `tls.Socket`: %o",this.connectOpts),i=URe.connect(this.connectOpts)):(oh("Creating `net.Socket`: %o",this.connectOpts),i=MRe.connect(this.connectOpts)),await(0,PRe.once)(i,"connect"),i}};RB.protocols=["http","https"];Rn.HttpProxyAgent=RB;function ORe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var KX=m(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});VB.state=void 0;VB.state={instrumenterImplementation:void 0}});var dj=m(XB=>{"use strict";Object.defineProperty(XB,"__esModule",{value:!0});XB.state=void 0;XB.state={operationRequestMap:new WeakMap}});var w$=m((Cbt,MPe)=>{MPe.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var S$=m((Ibt,N$)=>{var UPe=w$();N$.exports={version:UPe.version}});var Iy=m(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.isJsonObject=Th.typeofJsonValue=void 0;function qPe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Th.typeofJsonValue=qPe;function VPe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Th.isJsonObject=VPe});var Qy=m(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.base64encode=xh.base64decode=void 0;var _a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),By=[];for(let t=0;t<_a.length;t++)By[_a[t].charCodeAt(0)]=t;By[45]=_a.indexOf("+");By[95]=_a.indexOf("/");function JPe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=By[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}xh.base64decode=JPe;function WPe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=_a[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=_a[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=_a[n|s>>6],e+=_a[s&63],r=0;break}return r&&(e+=_a[n],e+="=",r==1&&(e+="=")),e}xh.base64encode=WPe});var k$=m(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.utf8read=void 0;var PU=t=>String.fromCharCode.apply(String,t);function zPe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(PU(s)),n=0);return r.length?(n&&r.push(PU(s.slice(0,n))),r.join("")):PU(s.slice(0,n))}yy.utf8read=zPe});var ym=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.WireType=Mo.mergeBinaryOptions=Mo.UnknownFieldHandler=void 0;var KPe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(KPe=Mo.UnknownFieldHandler||(Mo.UnknownFieldHandler={}));function XPe(t,e){return Object.assign(Object.assign({},t),e)}Mo.mergeBinaryOptions=XPe;var jPe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(jPe=Mo.WireType||(Mo.WireType={}))});var wy=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.varint32read=Bs.varint32write=Bs.int64toString=Bs.int64fromString=Bs.varint64write=Bs.varint64read=void 0;function ZPe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Bs.varint64read=ZPe;function $Pe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Bs.varint64write=$Pe;var by=65536*65536;function eve(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=by&&(n=n+(s/by|0),s=s%by)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Bs.int64fromString=eve;function tve(t,e){if(e>>>0<=2097151)return""+(by*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Bs.int64toString=tve;function rve(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Bs.varint32write=rve;function sve(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Bs.varint32read=sve});var jA=m(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.PbLong=XA.PbULong=XA.detectBi=void 0;var bm=wy(),it;function F$(){let t=new DataView(new ArrayBuffer(8));it=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}XA.detectBi=F$;F$();function M$(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var U$=/^-?[0-9]+$/,Sy=4294967296,Ny=2147483648,Ty=class{c Line truncated
`)}};Zy.RpcError=uL});var dL=m(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0});eb.mergeRpcOptions=void 0;var lee=zt();function w3e(t,e){if(!e)return t;let r={};$y(t,r),$y(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=lee.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=lee.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$y(t.meta,r.meta),$y(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}eb.mergeRpcOptions=w3e;function $y(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var gL=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Deferred=Ku.DeferredState=void 0;var Po;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Po=Ku.DeferredState||(Ku.DeferredState={}));var hL=class{constructor(e=!0){this._state=Po.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Po.PENDING)throw new Error(`cannot resolve ${Po[this.state].toLowerCase()}`);this._resolve(e),this._state=Po.RESOLVED}reject(e){if(this.state!==Po.PENDING)throw new Error(`cannot reject ${Po[this.state].toLowerCase()}`);this._reject(e),this._state=Po.REJECTED}resolvePending(e){this._state===Po.PENDING&&this.resolve(e)}rejectPending(e){this._state===Po.PENDING&&this.reject(e)}};Ku.Deferred=hL});var pL=m(tb=>{"use strict";Object.defineProperty(tb,"__esModule",{value:!0});tb.RpcOutputStreamController=void 0;var dee=gL(),Xu=zt(),fL=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Xu.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Xu.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Xu.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Xu.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Xu.assert(e,"bad state"),Xu.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new dee.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Xu.assert(s.state==dee.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};tb.RpcOutputStreamController=fL});var EL=m(Lh=>{"use strict";var N3e=Lh&&Lh.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Lh,"__esModule",{value:!0});Lh.UnaryCall=void 0;var mL=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return N3e(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Lh.UnaryCall=mL});var IL=m(Ph=>{"use strict";var S3e=Ph&&Ph.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.ServerStreamingCall=void 0;var CL=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Mh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Mh("Creating `tls.Socket`: %o",this.connectOpts),i=SFe.connect(this.connectOpts)):(Mh("Creating `net.Socket`: %o",this.connectOpts),i=NFe.connect(this.connectOpts)),await(0,xFe.once)(i,"connect"),i}};Cy.protocols=["http","https"];Ln.HttpProxyAgent=Cy;function RFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var _j=E(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.state=void 0;Ry.state={instrumenterImplementation:void 0}});var sZ=E(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.state=void 0;Ly.state={operationRequestMap:new WeakMap}});var vee=E((NSt,O3e)=>{O3e.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Oee=E((SSt,Pee)=>{var _3e=vee();Pee.exports={version:_3e.version}});var gb=E(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.isJsonObject=ng.typeofJsonValue=void 0;function K3e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}ng.typeofJsonValue=K3e;function X3e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ng.isJsonObject=X3e});var pb=E(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.base64encode=ig.base64decode=void 0;var za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),fb=[];for(let t=0;t<za.length;t++)fb[za[t].charCodeAt(0)]=t;fb[45]=za.indexOf("+");fb[95]=za.indexOf("/");function j3e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=fb[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}ig.base64decode=j3e;function Z3e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=za[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=za[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=za[n|s>>6],e+=za[s&63],r=0;break}return r&&(e+=za[n],e+="=",r==1&&(e+="=")),e}ig.base64encode=Z3e});var qee=E(mb=>{"use strict";Object.defineProperty(mb,"__esModule",{value:!0});mb.utf8read=void 0;var ML=t=>String.fromCharCode.apply(String,t);function $3e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(ML(s)),n=0);return r.length?(n&&r.push(ML(s.slice(0,n))),r.join("")):ML(s.slice(0,n))}mb.utf8read=$3e});var s0=E(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.WireType=Go.mergeBinaryOptions=Go.UnknownFieldHandler=void 0;var e8e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(e8e=Go.UnknownFieldHandler||(Go.UnknownFieldHandler={}));function t8e(t,e){return Object.assign(Object.assign({},t),e)}Go.mergeBinaryOptions=t8e;var r8e;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(r8e=Go.WireType||(Go.WireType={}))});var Cb=E(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.varint32read=Ns.varint32write=Ns.int64toString=Ns.int64fromString=Ns.varint64write=Ns.varint64read=void 0;function s8e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ns.varint64read=s8e;function n8e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ns.varint64write=n8e;var Eb=65536*65536;function i8e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=Eb&&(n=n+(s/Eb|0),s=s%Eb)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ns.int64fromString=i8e;function o8e(t,e){if(e>>>0<=2097151)return""+(Eb*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ns.int64toString=o8e;function a8e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Ns.varint32write=a8e;function A8e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Ns.varint32read=A8e});var hc=E(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.PbLong=dc.PbULong=dc.detectBi=void 0;var n0=Cb(),it;function Vee(){let t=new DataView(new ArrayBuffer(8));it=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}dc.detectBi=Vee;Vee();function Jee(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Wee=/^-?[0-9]+$/,Bb=4294967296,Ib=2147483648,yb=c Line truncated
`)}};Jb.RpcError=av});var cv=E(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.mergeRpcOptions=void 0;var Qte=Kt();function D4e(t,e){if(!e)return t;let r={};Wb(t,r),Wb(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Qte.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Qte.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Wb(t.meta,r.meta),Wb(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}zb.mergeRpcOptions=D4e;function Wb(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var lv=E(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.Deferred=ml.DeferredState=void 0;var Vo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vo=ml.DeferredState||(ml.DeferredState={}));var uv=class{constructor(e=!0){this._state=Vo.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Vo.PENDING)throw new Error(`cannot resolve ${Vo[this.state].toLowerCase()}`);this._resolve(e),this._state=Vo.RESOLVED}reject(e){if(this.state!==Vo.PENDING)throw new Error(`cannot reject ${Vo[this.state].toLowerCase()}`);this._reject(e),this._state=Vo.REJECTED}resolvePending(e){this._state===Vo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vo.PENDING&&this.reject(e)}};ml.Deferred=uv});var hv=E(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});Kb.RpcOutputStreamController=void 0;var bte=lv(),El=Kt(),dv=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){El.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){El.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){El.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){El.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;El.assert(e,"bad state"),El.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new bte.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;El.assert(s.state==bte.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};Kb.RpcOutputStreamController=dv});var fv=E(dg=>{"use strict";var R4e=dg&&dg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(dg,"__esModule",{value:!0});dg.UnaryCall=void 0;var gv=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return R4e(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};dg.UnaryCall=gv});var mv=E(hg=>{"use strict";var k4e=hg&&hg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(hg,"__esModule",{value:!0});hg.ServerStreamingCall=void 0;var pv=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Jse=m(Vse=>{"use strict";var o3=Ka().Buffer;Vse._dbcs=Xa;var xr=-1,qse=-2,$n=-10,ss=-1e3,dg=new Array(256),gE=-1;for(B1=0;B1<256;B1++)dg[B1]=xr;var B1;function Xa(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=dg.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(dg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(dg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[ss-o[s]],A=48;A<=57;A++){if(a[A]===xr)a[A]=ss-n;else if(a[A]>ss)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[ss-a[A]],u=129;u<=254;u++){if(c[u]===xr)c[u]=ss-i;else{if(c[u]===ss-i)continue;if(c[u]>ss)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ss-c[u]],d=48;d<=57;d++)l[d]===xr&&(l[d]=qse)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var g={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function SYe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(dYe.has(n)){r=n;break}}return r}function TYe(t,e){let r=SYe(e);r!==""&&(t.referrerPolicy=r)}function xYe(){return"allowed"}function DYe(){return"success"}function RYe(){return"success"}function kYe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function FYe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&b8(t.origin)&&!b8(Il(t))&&(e=null);break;case"same-origin":yE(t,Il(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function mg(t,e){return t}function MYe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mg(t.domainLookupStartTime,r),domainLookupEndTime:mg(t.domainLookupEndTime,r),connectionStartTime:mg(t.connectionStartTime,r),connectionEndTime:mg(t.connectionEndTime,r),secureConnectionStartTime:mg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function UYe(t){return mg(pYe.now(),t)}function LYe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Qoe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function PYe(t){return{referrerPolicy:t.referrerPolicy}}function vYe(t){let e=t.referrerPolicy;bE(e);let r=null;if(t.referrer==="client"){let i=moe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else fc.is.URL(t.referrer)&&(r=t.referrer);let s=y8(r),n=y8(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??y8(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Il(t);return Cl(s)&&!Cl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Il(t);return yE(s,i)?s:Cl(s)&&!Cl(i)?"no-referrer":n}case"same-origin":return yE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return yE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Il(t);return Cl(s)&&!Cl(i)?"no-referrer":s}}}function y8(t,e=!1){return bE(fc.is.URL(t)),t=new URL(t),Noe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var OYe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),_Ye=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function yoe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),_Ye(t)):OYe(t)}function HYe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||yoe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Cl(t){return fc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:HYe(t.origin):!1}function GYe(t){}function yE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function YYe(t){return t.controller.state==="aborted"}function qYe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function VYe(t){return EYe[t.toLowerCase()]??t}var JYe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function boe(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,JYe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function WYe(t,e,r,s=0,n=1){let i=boe(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return fc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return fc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ri(a=>F8(a)&&a!==59,t,e);i=R8.decode(o)}return{name:s,value:i}}function mqe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ts("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=ri(a=>a!==10&&a!==13&&a!==58,t,e);if(o=k8(o,!0,!0,a=>a===9||a===32),!cqe.test(o.toString()))throw Ts("header name does not match the field-name token production");if(t[e.position]!==58)throw Ts("expected :");switch(e.position++,ri(a=>a===32||a===9,t,e),Aqe(o)){case"content-disposition":{if(r=s=null,ri(A=>F8(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ts("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=pqe(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Ts("name attribute is required in content-disposition header");break}case"content-type":{let a=ri(A=>A!==10&&A!==13,t,e);a=k8(a,!1,!0,A=>A===9||A===32),n=koe(a);break}case"content-transfer-encoding":{let a=ri(A=>A!==10&&A!==13,t,e);a=k8(a,!1,!0,A=>A===9||A===32),i=koe(a);break}default:ri(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ts("expected CRLF");e.position+=2}}function ri(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function k8(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Eqe(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Ts(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Cqe(t){return t<=31||t===127}function Iqe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function F8(t){return t<=127&&t!==32&&t!==9&&!Cqe(t)&&!Iqe(t)}Foe.exports={multipartFormDataParser:fqe,validateBoundary:gqe}});var wE=m((v2t,Uoe)=>{"use strict";function Bqe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}Uoe.exports={createDeferredPromise:Bqe}});var Ig=m((O2t,_oe)=>{"use strict";var L8=Ie(),{ReadableStreamFrom:Qqe,readableStreamClose:yqe,fullyReadBody:bqe,extractMimeType:wqe}=an(),{FormData:Loe,setFormDataState:Nqe}=J1(),{webidl:Oi}=Dr(),M8=b("node:assert"),{isErrored:U8,isDisturbed:Sqe}=b("node:stream"),{isUint8Array:Tqe}=b("node:util/types"),{serializeAMimeType:xqe}=ti(),{multipartFormDataParser:Dqe}=Moe(),{createDeferredPromise:Rqe}=wE(),{parseJSONFromBytes:kqe}=$a(),{utf8DecodeBytes:Fqe}=_1(),{runtimeFeatures:Mqe}=eA(),Uqe=Mqe.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),W1=new TextEncoder;function Lqe(){}var Pqe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Sqe(e)&&!U8(e)&&e.cancel("Response object has been garbage collected").catch(Lqe)});function voe(t,e=!1){let r=null,s=null;Oi.is.ReadableStream(t)?r=t:Oi.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),M8(Oi.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Oi.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Oi.is.BufferSource(t))i=Oi.util.getCopyOfBytesHeldByBufferSource(t);else if(Oi.is.FormData(t)){let c=`----formdata-undici-0${`${Uqe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),g=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let w=W1.encode(u+`; name="${l(d(E))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var vie=E(Lie=>{"use strict";var h8=oA().Buffer;Lie._dbcs=aA;var Rr=-1,Uie=-2,ii=-10,is=-1e3,Vg=new Array(256),sE=-1;for(Bw=0;Bw<256;Bw++)Vg[Bw]=Rr;var Bw;function aA(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Vg.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(Vg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Vg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[is-o[s]],A=48;A<=57;A++){if(a[A]===Rr)a[A]=is-n;else if(a[A]>is)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[is-a[A]],u=129;u<=254;u++){if(c[u]===Rr)c[u]=is-i;else{if(c[u]===is-i)continue;if(c[u]>is)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[is-c[u]],d=48;d<=57;d++)l[d]===Rr&&(l[d]=Uie)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function JJe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(RJe.has(n)){r=n;break}}return r}function WJe(t,e){let r=JJe(e);r!==""&&(t.referrerPolicy=r)}function zJe(){return"allowed"}function KJe(){return"success"}function XJe(){return"success"}function jJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ZJe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&R4(t.origin)&&!R4(Wl(t))&&(e=null);break;case"same-origin":dE(t,Wl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Xg(t,e){return t}function $Je(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Xg(t.domainLookupStartTime,r),domainLookupEndTime:Xg(t.domainLookupEndTime,r),connectionStartTime:Xg(t.connectionStartTime,r),connectionEndTime:Xg(t.connectionEndTime,r),secureConnectionStartTime:Xg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function e7e(t){return Xg(UJe.now(),t)}function t7e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function hAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function r7e(t){return{referrerPolicy:t.referrerPolicy}}function s7e(t){let e=t.referrerPolicy;hE(e);let r=null;if(t.referrer==="client"){let i=AAe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Lc.is.URL(t.referrer)&&(r=t.referrer);let s=D4(r),n=D4(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??D4(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Wl(t);return Jl(s)&&!Jl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Wl(t);return dE(s,i)?s:Jl(s)&&!Jl(i)?"no-referrer":n}case"same-origin":return dE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return dE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Wl(t);return Jl(s)&&!Jl(i)?"no-referrer":s}}}function D4(t,e=!1){return hE(Lc.is.URL(t)),t=new URL(t),mAe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var n7e=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),i7e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function gAe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),i7e(t)):n7e(t)}function o7e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||gAe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jl(t){return Lc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:o7e(t.origin):!1}function a7e(t){}function dE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function A7e(t){return t.controller.state==="aborted"}function c7e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function u7e(t){return vJe[t.toLowerCase()]??t}var l7e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function fAe(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,l7e),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function d7e(t,e,r,s=0,n=1){let i=fAe(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Lc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Lc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ai(a=>_4(a)&&a!==59,t,e);i=P4.decode(o)}return{name:s,value:i}}function L7e(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ms("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Ai(a=>a!==10&&a!==13&&a!==58,t,e);if(o=O4(o,!0,!0,a=>a===9||a===32),!T7e.test(o.toString()))throw Ms("header name does not match the field-name token production");if(t[e.position]!==58)throw Ms("expected :");switch(e.position++,Ai(a=>a===32||a===9,t,e),S7e(o)){case"content-disposition":{if(r=s=null,Ai(A=>_4(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ms("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=U7e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Ms("name attribute is required in content-disposition header");break}case"content-type":{let a=Ai(A=>A!==10&&A!==13,t,e);a=O4(a,!1,!0,A=>A===9||A===32),n=QAe(a);break}case"content-transfer-encoding":{let a=Ai(A=>A!==10&&A!==13,t,e);a=O4(a,!1,!0,A=>A===9||A===32),i=QAe(a);break}default:Ai(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ms("expected CRLF");e.position+=2}}function Ai(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function O4(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function v7e(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Ms(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function P7e(t){return t<=31||t===127}function O7e(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function _4(t){return t<=127&&t!==32&&t!==9&&!P7e(t)&&!O7e(t)}bAe.exports={multipartFormDataParser:M7e,validateBoundary:F7e}});var gE=E((DMt,NAe)=>{"use strict";function _7e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}NAe.exports={createDeferredPromise:_7e}});var $g=E((RMt,RAe)=>{"use strict";var Y4=Ie(),{ReadableStreamFrom:H7e,readableStreamClose:G7e,fullyReadBody:Y7e,extractMimeType:q7e}=hn(),{FormData:SAe,setFormDataState:V7e}=Jw(),{webidl:Wi}=kr(),H4=w("node:assert"),{isErrored:G4,isDisturbed:J7e}=w("node:stream"),{isUint8Array:W7e}=w("node:util/types"),{serializeAMimeType:z7e}=ai(),{multipartFormDataParser:K7e}=wAe(),{createDeferredPromise:X7e}=gE(),{parseJSONFromBytes:j7e}=uA(),{utf8DecodeBytes:Z7e}=_w(),{runtimeFeatures:$7e}=lA(),eWe=$7e.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Ww=new TextEncoder;function tWe(){}var rWe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!J7e(e)&&!G4(e)&&e.cancel("Response object has been garbage collected").catch(tWe)});function xAe(t,e=!1){let r=null,s=null;Wi.is.ReadableStream(t)?r=t:Wi.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),H4(Wi.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Wi.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Wi.is.BufferSource(t))i=Wi.util.getCopyOfBytesHeldByBufferSource(t);else if(Wi.is.FormData(t)){let c=`----formdata-undici-0${`${eWe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let b=Ww.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);g.push(w),o+=w.byteLength}else{let w=W1.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(b),o+=b.byteLength}else{let b=Ww.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);g.push(w,C,f),typeof C.size=="number"?o+=w.byteLength+C.size+f.byteLength:p=!0}let B=W1.encode(`--${c}--\r
`);g.push(B),o+=B.byteLength,p&&(o=null),i=t,n=async function*(){for(let E of g)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Oi.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(L8.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Oi.is.ReadableStream(t)?t:Qqe(t)}return(typeof i=="string"||Tqe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(U8(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!U8(r)&&s.enqueue(typeof c=="string"?W1.encode(c):new Uint8Array(c));queueMicrotask(()=>yqe(s))})(),[{stream:r,source:i,length:o},a]}function vqe(t,e=!1){return Oi.is.ReadableStream(t)&&(M8(!L8.isDisturbed(t),"The body has already been consumed."),M8(!t.locked,"The stream is locked.")),voe(t,e)}function Oqe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function _qe(t,e){return{blob(){return Cg(this,s=>{let n=Poe(e(this));return n===null?n="":n&&(n=xqe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Cg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Cg(this,Fqe,t,e)},json(){return Cg(this,kqe,t,e)},formData(){return Cg(this,s=>{let n=Poe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Dqe(s,n),o=new Loe;return Nqe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Loe;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Cg(this,s=>new Uint8Array(s),t,e)}}}function Hqe(t,e){Object.assign(t.prototype,_qe(t,e))}function Cg(t,e,r,s){try{Oi.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Ooe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=Rqe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(bqe(t.body,o,i),n.promise)}function Ooe(t){let e=t.body;return e!=null&&(e.stream.locked||L8.isDisturbed(e.stream))}function Poe(t){let e=t.headersList,r=wqe(e);return r==="failure"?null:r}_oe.exports={extractBody:voe,safelyExtractBody:vqe,cloneBody:Oqe,mixinBody:Hqe,streamRegistry:Pqe,bodyUnusable:Ooe}});var joe=m((_2t,Xoe)=>{"use strict";var de=b("node:assert"),ge=Ie(),{channels:Hoe}=hc(),P8=E3(),{RequestContentLengthMismatchError:Bl,ResponseContentLengthMismatchError:Gqe,RequestAbortedError:Woe,HeadersTimeoutError:Yqe,HeadersOverflowError:qqe,SocketError:TE,InformationalError:Bg,BodyTimeoutError:Vqe,HTTPParserError:Jqe,ResponseExceededMaxSizeError:Wqe}=Ee(),{kUrl:zoe,kReset:xs,kClient:q8,kParser:vt,kBlocking:xE,kRunning:Gr,kPending:zqe,kSize:Goe,kWriting:mc,kQueue:_i,kNoRef:NE,kKeepAliveDefaultTimeout:Kqe,kHostHeader:Xqe,kPendingIdx:jqe,kRunningIdx:si,kError:ni,kPipelining:X1,kSocket:Qg,kKeepAliveTimeoutValue:Z1,kMaxHeadersSize:Zqe,kKeepAliveMaxTimeout:$qe,kKeepAliveTimeoutThreshold:eVe,kHeadersTimeout:tVe,kBodyTimeout:rVe,kStrictContentLength:_8,kMaxRequests:Yoe,kCounter:sVe,kMaxResponseSize:nVe,kOnError:iVe,kResume:pc,kHTTPContext:Koe,kClosed:H8}=$e(),Jo=_ie(),oVe=Buffer.alloc(0),z1=Buffer[Symbol.species],aVe=ge.removeAllListeners,v8;function AVe(){let t=process.env.JEST_WORKER_ID?u8():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Yie())}catch{}return e||(e=new WebAssembly.Module(t||u8())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onStatus(new z1(Wo.buffer,o,i))},wasm_on_message_begin:s=>(de(ur.ptr===s),ur.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onHeaderField(new z1(Wo.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onHeaderValue(new z1(Wo.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(de(ur.ptr===s),ur.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onBody(new z1(Wo.buffer,o,i))},wasm_on_message_complete:s=>(de(ur.ptr===s),ur.onMessageComplete())}})}var O8=null,ur=null,Wo=null,K1=0,zo=null,cVe=0,SE=1,yg=2|SE,j1=4|SE,G8=8|cVe,Y8=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Jo.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Zqe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[nVe]}setTi Line truncated
`);h.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=Ww.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Wi.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Y4.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Wi.is.ReadableStream(t)?t:H7e(t)}return(typeof i=="string"||W7e(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(G4(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!G4(r)&&s.enqueue(typeof c=="string"?Ww.encode(c):new Uint8Array(c));queueMicrotask(()=>G7e(s))})(),[{stream:r,source:i,length:o},a]}function sWe(t,e=!1){return Wi.is.ReadableStream(t)&&(H4(!Y4.isDisturbed(t),"The body has already been consumed."),H4(!t.locked,"The stream is locked.")),xAe(t,e)}function nWe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function iWe(t,e){return{blob(){return Zg(this,s=>{let n=TAe(e(this));return n===null?n="":n&&(n=z7e(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Zg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Zg(this,Z7e,t,e)},json(){return Zg(this,j7e,t,e)},formData(){return Zg(this,s=>{let n=TAe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=K7e(s,n),o=new SAe;return V7e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new SAe;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Zg(this,s=>new Uint8Array(s),t,e)}}}function oWe(t,e){Object.assign(t.prototype,iWe(t,e))}function Zg(t,e,r,s){try{Wi.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),DAe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=X7e(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(Y7e(t.body,o,i),n.promise)}function DAe(t){let e=t.body;return e!=null&&(e.stream.locked||Y4.isDisturbed(e.stream))}function TAe(t){let e=t.headersList,r=q7e(e);return r==="failure"?null:r}RAe.exports={extractBody:xAe,safelyExtractBody:sWe,cloneBody:nWe,mixinBody:oWe,streamRegistry:rWe,bodyUnusable:DAe}});var GAe=E((kMt,HAe)=>{"use strict";var he=w("node:assert"),ge=Ie(),{channels:kAe}=Mc(),q4=w8(),{RequestContentLengthMismatchError:zl,ResponseContentLengthMismatchError:aWe,RequestAbortedError:PAe,HeadersTimeoutError:AWe,HeadersOverflowError:cWe,SocketError:mE,InformationalError:ef,BodyTimeoutError:uWe,HTTPParserError:lWe,ResponseExceededMaxSizeError:dWe}=me(),{kUrl:OAe,kReset:Us,kClient:j4,kParser:Pt,kBlocking:EE,kRunning:Yr,kPending:hWe,kSize:FAe,kWriting:Pc,kQueue:zi,kNoRef:fE,kKeepAliveDefaultTimeout:gWe,kHostHeader:fWe,kPendingIdx:pWe,kRunningIdx:ci,kError:ui,kPipelining:Xw,kSocket:tf,kKeepAliveTimeoutValue:Zw,kMaxHeadersSize:mWe,kKeepAliveMaxTimeout:EWe,kKeepAliveTimeoutThreshold:CWe,kHeadersTimeout:IWe,kBodyTimeout:BWe,kStrictContentLength:W4,kMaxRequests:MAe,kCounter:yWe,kMaxResponseSize:QWe,kOnError:bWe,kResume:vc,kHTTPContext:_Ae,kClosed:z4}=$e(),ea=Rae(),wWe=Buffer.alloc(0),zw=Buffer[Symbol.species],NWe=ge.removeAllListeners,V4;function SWe(){let t=process.env.JEST_WORKER_ID?m4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Mae())}catch{}return e||(e=new WebAssembly.Module(t||m4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onStatus(new zw(ta.buffer,o,i))},wasm_on_message_begin:s=>(he(lr.ptr===s),lr.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderField(new zw(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderValue(new zw(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(he(lr.ptr===s),lr.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onBody(new zw(ta.buffer,o,i))},wasm_on_message_complete:s=>(he(lr.ptr===s),lr.onMessageComplete())}})}var J4=null,lr=null,ta=null,Kw=0,ra=null,TWe=0,pE=1,rf=2|pE,jw=4|pE,K4=8|TWe,X4=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ea.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[mWe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[QWe]}setTi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[Xqe],i?p+=`connection: upgrade\r
`:p+=t[fWe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[X1]&&!g[xs]?p+=`connection: keep-alive\r
`:t[Xw]&&!h[Us]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],C=c[B+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${E}: ${C[w]}\r
`;else p+=`${E}: ${C}\r
`}return Hoe.sendHeaders.hasSubscribers&&Hoe.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?Voe(f,null,t,e,g,u,p,l):ge.isBuffer(A)?Voe(f,A,t,e,g,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?Joe(f,A.stream(),t,e,g,u,p,l):IVe(f,A,t,e,g,u,p,l):ge.isStream(A)?CVe(f,A,t,e,g,u,p,l):ge.isIterable(A)?Joe(f,A,t,e,g,u,p,l):de(!1),!0}function CVe(t,e,r,s,n,i,o,a){de(i!==0||r[Gr]===0,"stream body cannot be pipelined");let A=!1,c=new $1({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ge.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new Woe;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,de(n.destroyed||n[mc]&&r[Gr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ge.destroy(e,f):ge.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(g,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(g,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Voe(t,e,r,s,n,i,o,a){try{e?ge.isBuffer(e)&&(de(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return kAe.sendHeaders.hasSubscribers&&kAe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?LAe(f,null,t,e,h,u,p,l):ge.isBuffer(A)?LAe(f,A,t,e,h,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?vAe(f,A.stream(),t,e,h,u,p,l):OWe(f,A,t,e,h,u,p,l):ge.isStream(A)?PWe(f,A,t,e,h,u,p,l):ge.isIterable(A)?vAe(f,A,t,e,h,u,p,l):he(!1),!0}function PWe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"stream body cannot be pipelined");let A=!1,c=new $w({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ge.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new PAe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,he(n.destroyed||n[Pc]&&r[Yr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ge.destroy(e,f):ge.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function LAe(t,e,r,s,n,i,o,a){try{e?ge.isBuffer(e)&&(he(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[xs]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Us]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(de(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[pc]()}catch(A){t(A)}}async function IVe(t,e,r,s,n,i,o,a){de(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Bl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(he(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[vc]()}catch(A){t(A)}}async function OWe(t,e,r,s,n,i,o,a){he(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new zl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[xs]=!0),r[pc]()}catch(A){t(A)}}async function Joe(t,e,r,s,n,i,o,a){de(i!==0||r[Gr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{de(A===null),n[ni]?g(n[ni]):A=d});n.on("close",c).on("drain",c);let l=new $1({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ni])throw n[ni];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var $1=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[mc]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ni])throw r[ni];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[_8])throw new Bl;process.emitWarning(new Bl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[xs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Us]=!0),r[vc]()}catch(A){t(A)}}async function vAe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{he(A===null),n[ui]?h(n[ui]):A=d});n.on("close",c).on("drain",c);let l=new $w({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ui])throw n[ui];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var $w=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Pc]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ui])throw r[ui];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[W4])throw new zl;process.emitWarning(new zl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Us]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[vt].timeout&&r[vt].timeoutType===yg&&r[vt].timeout.refresh&&r[vt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[mc]=!1,e[ni])throw e[ni];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Pt].timeout&&r[Pt].timeoutType===rf&&r[Pt].timeout.refresh&&r[Pt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Pc]=!1,e[ui])throw e[ui];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[_8])throw new Bl;process.emitWarning(new Bl)}e[vt].timeout&&e[vt].timeoutType===yg&&e[vt].timeout.refresh&&e[vt].timeout.refresh(),s[pc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[mc]=!1,e&&(de(s[Gr]<=1,"pipeline should only contain this request"),n(e))}};Xoe.exports=uVe});var oae=m((H2t,iae)=>{"use strict";var oi=b("node:assert"),{pipeline:BVe}=b("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:z8,RequestAbortedError:QVe,SocketError:FE,InformationalError:Ec,InvalidArgumentError:yVe}=Ee(),{kUrl:kE,kReset:sw,kClient:An,kRunning:ME,kPending:bVe,kQueue:Cc,kPendingIdx:X8,kRunningIdx:Hi,kError:cn,kSocket:Nt,kStrictContentLength:wVe,kOnError:bg,kMaxConcurrentStreams:tw,kPingInterval:Zoe,kHTTP2Session:rA,kHTTP2InitialWindowSize:NVe,kHTTP2ConnectionWindowSize:SVe,kResume:Ko,kSize:TVe,kHTTPContext:j8,kClosed:K8,kBodyTimeout:xVe,kEnableConnectProtocol:DE,kRemoteSettings:RE,kHTTP2Stream:ew,kHTTP2SessionState:Z8}=$e(),{channels:$oe}=hc(),ii=Symbol("open streams"),eae,rw;try{rw=b("node:http2")}catch{rw={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DVe,HTTP2_HEADER_METHOD:tae,HTTP2_HEADER_PATH:rae,HTTP2_HEADER_SCHEME:V8,HTTP2_HEADER_CONTENT_LENGTH:RVe,HTTP2_HEADER_EXPECT:kVe,HTTP2_HEADER_STATUS:J8,HTTP2_HEADER_PROTOCOL:FVe,NGHTTP2_REFUSED_STREAM:MVe,NGHTTP2_CANCEL:UVe}}=rw;function W8(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function LVe(t,e){t[Nt]=e;let r=t[NVe],s=t[SVe],n=rw.connect(t[kE],{createConnection:()=>e,peerMaxConcurrentStreams:t[tw],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Nt]=e,n[ii]=0,n[An]=t,n[Nt]=e,n[Z8]={ping:{interval:t[Zoe]===0?null:setInterval(_Ve,t[Zoe],n).unref()}},n[DE]=!1,n[RE]=!1,s&&Te.addListener(n,"connect",vVe.bind(n,s)),Te.addListener(n,"error",HVe),Te.addListener(n,"frameError",GVe),Te.addListener(n,"end",YVe),Te.addListener(n,"goaway",qVe),Te.addListener(n,"close",VVe),Te.addListener(n,"remoteSettings",OVe),n.unref(),t[rA]=n,e[rA]=n,Te.addListener(e,"error",WVe),Te.addListener(e,"end",zVe),Te.addListener(e,"close",JVe),e[K8]=!1,e.on("close",KVe),{version:"h2",defaultPipelining:1/0,write(i){return jVe(t,i)},resume(){PVe(t)},destroy(i,o){e[K8]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[ME]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[RE]===!1||Te.bodyLength(i.body)!==0&&(Te.isStream(i.body)||Te.isAsyncIterable(i.body)||Te.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[RE]===!1;return!1}}}function PVe(t){let e=t[Nt];e?.destroyed===!1&&(t[TVe]===0||t[tw]===0?(e.unref(),t[rA].unref()):(e.ref(),t[rA].ref()))}function vVe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function OVe(t){if(this[An][tw]=t.maxConcurrentStreams??this[An][tw],this[RE]===!0&&this[DE]===!0&&t.enableConnectProtocol===!1){let e=new Ec("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Nt][cn]=e,this[An][bg](e);return}this[DE]=t.enableConnectProtocol??this[DE],this[RE]=!0,this[An][Ko]()}function _Ve(t){let e=t[Z8];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[An],o=this[An];if(s!=null){let a=new Ec(`HTTP/2: "PING" errored - type ${s.message}`);o[cn]=a,i[bg](a)}else i.emit("ping",n)}}function HVe(t){oi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nt][cn]=t,this[An][bg](t)}function GVe(t,e,r){if(r===0){let s=new Ec(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nt][cn]=s,this[An][bg](s)}}function YVe(){let t=new FE("other side closed",Te.getSocketInfo(this[Nt]));this.destroy(t),Te.destroy(this[Nt],t)}function qVe(t){let e=this[cn]||new FE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[Nt])),r=this[An];if(r[Nt]=null,r[j8]=null,this.close(),this[rA]=null,Te.destroy(this[Nt],e),r[Hi]<r[Cc].length){let s=r[Cc][r[Hi]];r[Cc][r[Hi]++]=null,Te.errorRequest(r,s,e),r[X8]=r[Hi]}oi(r[ME]===0),r.emit("disconnect",r[kE],[r],e),r.emit("connectionError",r[kE],[r],e),r[Ko]()}function VVe(){let{[An]:t,[Z8]:e}=this,{[Nt]:r}=t,s=this[Nt][cn]||this[cn]||new FE("closed",Te.getSocketInfo(r));if(t[Nt]=null,t[j8]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oi(t[bVe]===0);let n=t[Cc].splice(t[Hi]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function JVe(){let t=this[cn]||new FE("closed",Te.getSocketInfo(this)),e=this[rA][An];e[Nt]=null,e[j8]=null,this[rA]!==null&&this[rA].destroy(t),e[X8]=e[Hi],oi(e[ME]===0),e.emit("disconnect",e[kE],[e],t),e[Ko]()}function WVe(t){oi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=t,this[An][bg](t)}function zVe(){Te.destroy(this,new FE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;$oe.sendHeaders.publish({request:e,headers:F,socket:s[Nt]})}let x=n==="GET"||n==="HEAD"||d===null;A?(g[kVe]="100-continue",f=s.request(g,{endStream:x,signal:c}),f[ew]=!0,f.once("continue",O)):(f=s.request(g,{endStream:x,signal:c}),f[ew]=!0,O()),++s[ii],f.setTimeout(r);let k=!1;return f.once("response",F=>{let{[J8]:_,...H}=F;if(e.onResponseStarted(),k=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),W8(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ye=>{e.aborted||e.completed||e.onData(Ye)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),k?(!e.aborted&&!e.completed&&e.onComplete({}),t[Cc][t[Hi]++]=null,t[Ko]()):(E(new Ec("HTTP/2: stream half-closed (remote)")),t[Cc][t[Hi]++]=null,t[X8]=t[Hi],t[Ko]())}),f.once("close",()=>{f.removeAllListeners("data"),s[ii]-=1,s[ii]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),E(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),E(new Ec(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Ec(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[ii]-=1,s[ii]===0&&s.unref(),E(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function O(){!d||w===0?sae(E,f,null,t,e,t[Nt],w,C):Te.isBuffer(d)?sae(E,f,d,t,e,t[Nt],w,C):Te.isBlobLike(d)?typeof d.stream=="function"?nae(E,f,d.stream(),t,e,t[Nt],w,C):$Ve(E,f,d,t,e,t[Nt],w,C):Te.isStream(d)?ZVe(E,t[Nt],C,f,d,t,e,w):Te.isIterable(d)?nae(E,f,d,t,e,t[Nt],w,C):oi(!1)}}function sae(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(oi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[sw]=!0),n.onRequestSent(),s[Ko]()}catch(A){t(A)}}function ZVe(t,e,r,s,n,i,o,a){oi(a!==0||i[ME]===0,"stream body cannot be pipelined");let A=BVe(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[sw]=!0),i[Ko]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function $Ve(t,e,r,s,n,i,o,a){oi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new z8;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[sw]=!0),s[Ko]()}catch(A){t(A)}}async function nae(t,e,r,s,n,i,o,a){oi(o!==0||s[ME]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{oi(A===null),i[cn]?d(i[cn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cn])throw i[cn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[sw]=!0),s[Ko]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}iae.exports=LVe});var bc=m((G2t,fae)=>{"use strict";var sA=b("node:assert"),lae=b("node:net"),UE=b("node:http"),Ql=Ie(),{ClientStats:eJe}=W3(),{channels:wg}=hc(),tJe=Tie(),rJe=pl(),{InvalidArgumentError:ft,InformationalError:sJe,ClientDestroyedError:nJe}=Ee(),iJe=ml(),{kUrl:Xo,kServerName:yc,kClient:oJe,kBusy:$8,kConnect:aJe,kResuming:yl,kRunning:OE,kPending:_E,kSize:LE,kQueue:Gi,kConnected:AJe,kConnecting:Ng,kNeedDrain:Bc,kKeepAliveDefaultTimeout:aae,kHostHeader:cJe,kPendingIdx:Yi,kRunningIdx:nA,kError:uJe,kPipelining:nw,kKeepAliveTimeoutValue:lJe,kMaxHeadersSize:dJe,kKeepAliveMaxTimeout:hJe,kKeepAliveTimeoutThreshold:gJe,kHeadersTimeout:fJe,kBodyTimeout:pJe,kStrictContentLength:mJe,kConnector:PE,kMaxRequests:e4,kCounter:EJe,kClose:CJe,kDestroy:IJe,kDispatch:BJe,kLocalAddress:vE,kMaxResponseSize:QJe,kOnError:yJe,kHTTPContext:Xt,kMaxConcurrentStreams:bJe,kHTTP2InitialWindowSize:wJe,kHTTP2ConnectionWindowSize:NJe,kResume:Qc,kPingInterval:SJe}=$e(),TJe=joe(),xJe=oae(),Ic=Symbol("kClosedResolve"),DJe=UE&&UE.maxHeaderSize&&Number.isInteger(UE.maxHeaderSize)&&UE.maxHeaderSize>0?()=>UE.maxHeaderSize:()=>{throw new ft("http module not available or http.maxHeaderSize invalid")},Aae=()=>{};function dae(t){return t[nw]??t[Xt]?.defaultPipelining??1}var t4=class extends rJe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:g,socketPath:f,pipelining:p,tls:B,strictContentLength:E,maxCachedSessions:C,connect:w,maxRequestsPerClient:x,localAddress:k,maxResponseSize:O,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:_,maxConcurrentStreams:H,allowH2:Ye,useH2c:at,initialWindowSize:Be,connectionWindowSize:xe,pingInterval:Ue}={}){if(c!==void 0)throw new ft("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new ft("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new ft("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new ft("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new ft(" Line truncated
`,this[pJe]=a??3e5,this[fJe]=s??3e5,this[mJe]=E??!0,this[e4]=x,this[Ic]=null,this[QJe]=O>-1?O:-1,this[Xt]=null,this[bJe]=H??100,this[wJe]=Be??262144,this[NJe]=xe??524288,this[SJe]=Ue??6e4,this[Gi]=[],this[nA]=0,this[Yi]=0,this[Qc]=_t=>r4(this,_t),this[yJe]=_t=>hae(this,_t)}get pipelining(){return this[nw]}set pipelining(e){this[nw]=e,this[Qc](!0)}get stats(){return new eJe(this)}get[_E](){return this[Gi].length-this[Yi]}get[OE](){return this[Yi]-this[nA]}get[LE](){return this[Gi].length-this[nA]}get[AJe](){return!!this[Xt]&&!this[Ng]&&!this[Xt].destroyed}get[$8](){return!!(this[Xt]?.busy(null)||this[LE]>=(dae(this)||1)||this[_E]>0)}[aJe](e){gae(this),this.once("connect",e)}[BJe](e,r){let s=new tJe(this[Xo].origin,e,r);return this[Gi].push(s),this[yl]||(Ql.bodyLength(s.body)==null&&Ql.isIterable(s.body)?(this[yl]=1,queueMicrotask(()=>r4(this))):this[Qc](!0)),this[yl]&&this[Bc]!==2&&this[$8]&&(this[Bc]=2),this[Bc]<2}[CJe](){return new Promise(e=>{this[LE]?this[Ic]=e:e(null)})}[IJe](e){return new Promise(r=>{let s=this[Gi].splice(this[Yi]);for(let i=0;i<s.length;i++){let o=s[i];Ql.errorRequest(this,o,e)}let n=()=>{this[Ic]&&(this[Ic](),this[Ic]=null),r(null)};this[Xt]?(this[Xt].destroy(e,n),this[Xt]=null):queueMicrotask(n),this[Qc]()})}};function hae(t,e){if(t[OE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){sA(t[Yi]===t[nA]);let r=t[Gi].splice(t[nA]);for(let s=0;s<r.length;s++){let n=r[s];Ql.errorRequest(t,n,e)}sA(t[LE]===0)}}function gae(t){sA(!t[Ng]),sA(!t[Xt]);let{host:e,hostname:r,protocol:s,port:n}=t[Xo];if(r[0]==="["){let i=r.indexOf("]");sA(i!==-1);let o=r.substring(1,i);sA(lae.isIPv6(o)),r=o}t[Ng]=!0,wg.beforeConnect.hasSubscribers&&wg.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Xt]?.version,servername:t[yc],localAddress:t[vE]},connector:t[PE]}),t[PE]({host:e,hostname:r,protocol:s,port:n,servername:t[yc],localAddress:t[vE]},(i,o)=>{if(i){cae(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Qc]();return}if(t.destroyed){Ql.destroy(o.on("error",Aae),new nJe),t[Qc]();return}sA(o);try{t[Xt]=o.alpnProtocol==="h2"?xJe(t,o):TJe(t,o)}catch(a){o.destroy().on("error",Aae),cae(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Qc]();return}t[Ng]=!1,o[EJe]=0,o[e4]=t[e4],o[oJe]=t,o[uJe]=null,wg.connected.hasSubscribers&&wg.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Xt]?.version,servername:t[yc],localAddress:t[vE]},connector:t[PE],socket:o}),t.emit("connect",t[Xo],[t]),t[Qc]()})}function cae(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Ng]=!1,wg.connectError.hasSubscribers&&wg.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Xt]?.version,servername:t[yc],localAddress:t[vE]},connector:t[PE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(sA(t[OE]===0);t[_E]>0&&t[Gi][t[Yi]].servername===t[yc];){let o=t[Gi][t[Yi]++];Ql.errorRequest(t,o,e)}else hae(t,e);t.emit("connectionError",t[Xo],[t],e)}}function uae(t){t[Bc]=0,t.emit("drain",t[Xo],[t])}function r4(t,e){t[yl]!==2&&(t[yl]=2,RJe(t,e),t[yl]=0,t[nA]>256&&(t[Gi].splice(0,t[nA]),t[Yi]-=t[nA],t[nA]=0))}function RJe(t,e){for(;;){if(t.destroyed){sA(t[_E]===0);return}if(t[Ic]&&!t[LE]){t[Ic](),t[Ic]=null;return}if(t[Xt]&&t[Xt].resume(),t[$8])t[Bc]=2;else if(t[Bc]===2){e?(t[Bc]=1,queueMicrotask(()=>uae(t))):uae(t);continue}if(t[_E]===0||t[OE]>=(dae(t)||1))return;let r=t[Gi][t[Yi]];if(r===null)return;if(t[Xo].protocol==="https:"&&t[yc]!==r.servername){if(t[OE]>0)return;t[yc]=r.servername,t[Xt]?.destroy(new sJe("servername changed"),()=>{t[Xt]=null,r4(t)})}if(t[Ng])return;if(!t[Xt]){gae(t);return}if(t[Xt].destroyed||t[Xt].busy(r))return;!r.aborted&&t[Xt].write(r)?t[Yi]++:t[Gi].splice(t[Yi],1)}}fae.exports=t4});var s4=m((q2t,pae)=>{"use strict";var iw=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};pae.exports=class{constructor(){this.head=this.tail=new iw}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new iw),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ow=m((V2t,wae)=>{"use strict";var{PoolStats:kJe}=W3(),FJe=pl(),MJe=s4(),{kConnected:n4,kSize:mae,kRunning:Eae,kPending:Cae,kQueued:HE,kBusy:UJe,kFree:LJe,kUrl:PJe,kClose:vJe,kDestroy:OJe,kDispatch:_Je}=$e(),Nr=Symbol("clients"),ns=Symbol("needDrain"),GE=Symbol("queue"),i4=Symbol("closed resolve"),o4=Symbol("onDrain"),Iae=Symbol("onConnect"),Bae=Symbol("onDisconnect"),Qae=Symbol("onConnectionError"),a4=Symbol("get dispatcher"),yae=Symbol("add client"),bae=Symbol("remove client"),A4=class extends FJe{[GE]=new MJe;[HE]=0;[Nr]=[];[ns]=!1;[o4](e,r,s){let n=this[GE],i=!1;for(;!i;){let o=n.shi Line truncated
`,"latin1"),r!==null&&n!==r){if(s[W4])throw new zl;process.emitWarning(new zl)}e[Pt].timeout&&e[Pt].timeoutType===rf&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),s[vc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Pc]=!1,e&&(he(s[Yr]<=1,"pipeline should only contain this request"),n(e))}};HAe.exports=xWe});var jAe=E((FMt,XAe)=>{"use strict";var di=w("node:assert"),{pipeline:_We}=w("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:tO,RequestAbortedError:HWe,SocketError:yE,InformationalError:Oc,InvalidArgumentError:GWe}=me(),{kUrl:BE,kReset:sN,kClient:gn,kRunning:QE,kPending:YWe,kQueue:_c,kPendingIdx:sO,kRunningIdx:Ki,kError:fn,kSocket:St,kStrictContentLength:qWe,kOnError:sf,kMaxConcurrentStreams:tN,kPingInterval:YAe,kHTTP2Session:hA,kHTTP2InitialWindowSize:VWe,kHTTP2ConnectionWindowSize:JWe,kResume:sa,kSize:WWe,kHTTPContext:nO,kClosed:rO,kBodyTimeout:zWe,kEnableConnectProtocol:CE,kRemoteSettings:IE,kHTTP2Stream:eN,kHTTP2SessionState:iO}=$e(),{channels:qAe}=Mc(),li=Symbol("open streams"),VAe,rN;try{rN=w("node:http2")}catch{rN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:KWe,HTTP2_HEADER_METHOD:JAe,HTTP2_HEADER_PATH:WAe,HTTP2_HEADER_SCHEME:Z4,HTTP2_HEADER_CONTENT_LENGTH:XWe,HTTP2_HEADER_EXPECT:jWe,HTTP2_HEADER_STATUS:$4,HTTP2_HEADER_PROTOCOL:ZWe,NGHTTP2_REFUSED_STREAM:$We,NGHTTP2_CANCEL:eze}}=rN;function eO(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function tze(t,e){t[St]=e;let r=t[VWe],s=t[JWe],n=rN.connect(t[BE],{createConnection:()=>e,peerMaxConcurrentStreams:t[tN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[St]=e,n[li]=0,n[gn]=t,n[St]=e,n[iO]={ping:{interval:t[YAe]===0?null:setInterval(ize,t[YAe],n).unref()}},n[CE]=!1,n[IE]=!1,s&&Te.addListener(n,"connect",sze.bind(n,s)),Te.addListener(n,"error",oze),Te.addListener(n,"frameError",aze),Te.addListener(n,"end",Aze),Te.addListener(n,"goaway",cze),Te.addListener(n,"close",uze),Te.addListener(n,"remoteSettings",nze),n.unref(),t[hA]=n,e[hA]=n,Te.addListener(e,"error",dze),Te.addListener(e,"end",hze),Te.addListener(e,"close",lze),e[rO]=!1,e.on("close",gze),{version:"h2",defaultPipelining:1/0,write(i){return pze(t,i)},resume(){rze(t)},destroy(i,o){e[rO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[QE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[IE]===!1||Te.bodyLength(i.body)!==0&&(Te.isStream(i.body)||Te.isAsyncIterable(i.body)||Te.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[IE]===!1;return!1}}}function rze(t){let e=t[St];e?.destroyed===!1&&(t[WWe]===0||t[tN]===0?(e.unref(),t[hA].unref()):(e.ref(),t[hA].ref()))}function sze(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function nze(t){if(this[gn][tN]=t.maxConcurrentStreams??this[gn][tN],this[IE]===!0&&this[CE]===!0&&t.enableConnectProtocol===!1){let e=new Oc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[St][fn]=e,this[gn][sf](e);return}this[CE]=t.enableConnectProtocol??this[CE],this[IE]=!0,this[gn][sa]()}function ize(t){let e=t[iO];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[gn],o=this[gn];if(s!=null){let a=new Oc(`HTTP/2: "PING" errored - type ${s.message}`);o[fn]=a,i[sf](a)}else i.emit("ping",n)}}function oze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[St][fn]=t,this[gn][sf](t)}function aze(t,e,r){if(r===0){let s=new Oc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[St][fn]=s,this[gn][sf](s)}}function Aze(){let t=new yE("other side closed",Te.getSocketInfo(this[St]));this.destroy(t),Te.destroy(this[St],t)}function cze(t){let e=this[fn]||new yE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[St])),r=this[gn];if(r[St]=null,r[nO]=null,this.close(),this[hA]=null,Te.destroy(this[St],e),r[Ki]<r[_c].length){let s=r[_c][r[Ki]];r[_c][r[Ki]++]=null,Te.errorRequest(r,s,e),r[sO]=r[Ki]}di(r[QE]===0),r.emit("disconnect",r[BE],[r],e),r.emit("connectionError",r[BE],[r],e),r[sa]()}function uze(){let{[gn]:t,[iO]:e}=this,{[St]:r}=t,s=this[St][fn]||this[fn]||new yE("closed",Te.getSocketInfo(r));if(t[St]=null,t[nO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){di(t[YWe]===0);let n=t[_c].splice(t[Ki]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function lze(){let t=this[fn]||new yE("closed",Te.getSocketInfo(this)),e=this[hA][gn];e[St]=null,e[nO]=null,this[hA]!==null&&this[hA].destroy(t),e[sO]=e[Ki],di(e[QE]===0),e.emit("disconnect",e[BE],[e],t),e[sa]()}function dze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fn]=t,this[gn][sf](t)}function hze(){Te.destroy(this,new yE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;qAe.sendHeaders.publish({request:e,headers:F,socket:s[St]})}let T=n==="GET"||n==="HEAD"||d===null;A?(h[jWe]="100-continue",f=s.request(h,{endStream:T,signal:c}),f[eN]=!0,f.once("continue",M)):(f=s.request(h,{endStream:T,signal:c}),f[eN]=!0,M()),++s[li],f.setTimeout(r);let R=!1;return f.once("response",F=>{let{[$4]:_,...H}=F;if(e.onResponseStarted(),R=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),eO(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ye=>{e.aborted||e.completed||e.onData(Ye)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),R?(!e.aborted&&!e.completed&&e.onComplete({}),t[_c][t[Ki]++]=null,t[sa]()):(m(new Oc("HTTP/2: stream half-closed (remote)")),t[_c][t[Ki]++]=null,t[sO]=t[Ki],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),m(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),m(new Oc(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Oc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref(),m(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function M(){!d||b===0?zAe(m,f,null,t,e,t[St],b,C):Te.isBuffer(d)?zAe(m,f,d,t,e,t[St],b,C):Te.isBlobLike(d)?typeof d.stream=="function"?KAe(m,f,d.stream(),t,e,t[St],b,C):Eze(m,f,d,t,e,t[St],b,C):Te.isStream(d)?mze(m,t[St],C,f,d,t,e,b):Te.isIterable(d)?KAe(m,f,d,t,e,t[St],b,C):di(!1)}}function zAe(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(di(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[sN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function mze(t,e,r,s,n,i,o,a){di(a!==0||i[QE]===0,"stream body cannot be pipelined");let A=_We(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[sN]=!0),i[sa]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Eze(t,e,r,s,n,i,o,a){di(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new tO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[sN]=!0),s[sa]()}catch(A){t(A)}}async function KAe(t,e,r,s,n,i,o,a){di(o!==0||s[QE]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{di(A===null),i[fn]?d(i[fn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[fn])throw i[fn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[sN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}XAe.exports=tze});var Vc=E((MMt,oce)=>{"use strict";var gA=w("node:assert"),rce=w("node:net"),bE=w("node:http"),Kl=Ie(),{ClientStats:Cze}=e4(),{channels:nf}=Mc(),Ize=Cae(),Bze=Yl(),{InvalidArgumentError:mt,InformationalError:yze,ClientDestroyedError:Qze}=me(),bze=ql(),{kUrl:na,kServerName:qc,kClient:wze,kBusy:oO,kConnect:Nze,kResuming:Xl,kRunning:TE,kPending:xE,kSize:wE,kQueue:Xi,kConnected:Sze,kConnecting:of,kNeedDrain:Gc,kKeepAliveDefaultTimeout:ZAe,kHostHeader:Tze,kPendingIdx:ji,kRunningIdx:fA,kError:xze,kPipelining:nN,kKeepAliveTimeoutValue:Dze,kMaxHeadersSize:Rze,kKeepAliveMaxTimeout:kze,kKeepAliveTimeoutThreshold:Fze,kHeadersTimeout:Mze,kBodyTimeout:Uze,kStrictContentLength:Lze,kConnector:NE,kMaxRequests:aO,kCounter:vze,kClose:Pze,kDestroy:Oze,kDispatch:_ze,kLocalAddress:SE,kMaxResponseSize:Hze,kOnError:Gze,kHTTPContext:jt,kMaxConcurrentStreams:Yze,kHTTP2InitialWindowSize:qze,kHTTP2ConnectionWindowSize:Vze,kResume:Yc,kPingInterval:Jze}=$e(),Wze=GAe(),zze=jAe(),Hc=Symbol("kClosedResolve"),Kze=bE&&bE.maxHeaderSize&&Number.isInteger(bE.maxHeaderSize)&&bE.maxHeaderSize>0?()=>bE.maxHeaderSize:()=>{throw new mt("http module not available or http.maxHeaderSize invalid")},$Ae=()=>{};function sce(t){return t[nN]??t[jt]?.defaultPipelining??1}var AO=class extends Bze{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:T,localAddress:R,maxResponseSize:M,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:_,maxConcurrentStreams:H,allowH2:Ye,useH2c:at,initialWindowSize:Be,connectionWindowSize:xe,pingInterval:Ue}={}){if(c!==void 0)throw new mt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new mt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mt("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new mt("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new mt(" Line truncated
`,this[Uze]=a??3e5,this[Mze]=s??3e5,this[Lze]=m??!0,this[aO]=T,this[Hc]=null,this[Hze]=M>-1?M:-1,this[jt]=null,this[Yze]=H??100,this[qze]=Be??262144,this[Vze]=xe??524288,this[Jze]=Ue??6e4,this[Xi]=[],this[fA]=0,this[ji]=0,this[Yc]=_t=>cO(this,_t),this[Gze]=_t=>nce(this,_t)}get pipelining(){return this[nN]}set pipelining(e){this[nN]=e,this[Yc](!0)}get stats(){return new Cze(this)}get[xE](){return this[Xi].length-this[ji]}get[TE](){return this[ji]-this[fA]}get[wE](){return this[Xi].length-this[fA]}get[Sze](){return!!this[jt]&&!this[of]&&!this[jt].destroyed}get[oO](){return!!(this[jt]?.busy(null)||this[wE]>=(sce(this)||1)||this[xE]>0)}[Nze](e){ice(this),this.once("connect",e)}[_ze](e,r){let s=new Ize(this[na].origin,e,r);return this[Xi].push(s),this[Xl]||(Kl.bodyLength(s.body)==null&&Kl.isIterable(s.body)?(this[Xl]=1,queueMicrotask(()=>cO(this))):this[Yc](!0)),this[Xl]&&this[Gc]!==2&&this[oO]&&(this[Gc]=2),this[Gc]<2}[Pze](){return new Promise(e=>{this[wE]?this[Hc]=e:e(null)})}[Oze](e){return new Promise(r=>{let s=this[Xi].splice(this[ji]);for(let i=0;i<s.length;i++){let o=s[i];Kl.errorRequest(this,o,e)}let n=()=>{this[Hc]&&(this[Hc](),this[Hc]=null),r(null)};this[jt]?(this[jt].destroy(e,n),this[jt]=null):queueMicrotask(n),this[Yc]()})}};function nce(t,e){if(t[TE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gA(t[ji]===t[fA]);let r=t[Xi].splice(t[fA]);for(let s=0;s<r.length;s++){let n=r[s];Kl.errorRequest(t,n,e)}gA(t[wE]===0)}}function ice(t){gA(!t[of]),gA(!t[jt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");gA(i!==-1);let o=r.substring(1,i);gA(rce.isIPv6(o)),r=o}t[of]=!0,nf.beforeConnect.hasSubscribers&&nf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[qc],localAddress:t[SE]},connector:t[NE]}),t[NE]({host:e,hostname:r,protocol:s,port:n,servername:t[qc],localAddress:t[SE]},(i,o)=>{if(i){ece(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Yc]();return}if(t.destroyed){Kl.destroy(o.on("error",$Ae),new Qze),t[Yc]();return}gA(o);try{t[jt]=o.alpnProtocol==="h2"?zze(t,o):Wze(t,o)}catch(a){o.destroy().on("error",$Ae),ece(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Yc]();return}t[of]=!1,o[vze]=0,o[aO]=t[aO],o[wze]=t,o[xze]=null,nf.connected.hasSubscribers&&nf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[qc],localAddress:t[SE]},connector:t[NE],socket:o}),t.emit("connect",t[na],[t]),t[Yc]()})}function ece(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[of]=!1,nf.connectError.hasSubscribers&&nf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[jt]?.version,servername:t[qc],localAddress:t[SE]},connector:t[NE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gA(t[TE]===0);t[xE]>0&&t[Xi][t[ji]].servername===t[qc];){let o=t[Xi][t[ji]++];Kl.errorRequest(t,o,e)}else nce(t,e);t.emit("connectionError",t[na],[t],e)}}function tce(t){t[Gc]=0,t.emit("drain",t[na],[t])}function cO(t,e){t[Xl]!==2&&(t[Xl]=2,Xze(t,e),t[Xl]=0,t[fA]>256&&(t[Xi].splice(0,t[fA]),t[ji]-=t[fA],t[fA]=0))}function Xze(t,e){for(;;){if(t.destroyed){gA(t[xE]===0);return}if(t[Hc]&&!t[wE]){t[Hc](),t[Hc]=null;return}if(t[jt]&&t[jt].resume(),t[oO])t[Gc]=2;else if(t[Gc]===2){e?(t[Gc]=1,queueMicrotask(()=>tce(t))):tce(t);continue}if(t[xE]===0||t[TE]>=(sce(t)||1))return;let r=t[Xi][t[ji]];if(r===null)return;if(t[na].protocol==="https:"&&t[qc]!==r.servername){if(t[TE]>0)return;t[qc]=r.servername,t[jt]?.destroy(new yze("servername changed"),()=>{t[jt]=null,cO(t)})}if(t[of])return;if(!t[jt]){ice(t);return}if(t[jt].destroyed||t[jt].busy(r))return;!r.aborted&&t[jt].write(r)?t[ji]++:t[Xi].splice(t[ji],1)}}oce.exports=AO});var uO=E((LMt,ace)=>{"use strict";var iN=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};ace.exports=class{constructor(){this.head=this.tail=new iN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new iN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var oN=E((vMt,pce)=>{"use strict";var{PoolStats:jze}=e4(),Zze=Yl(),$ze=uO(),{kConnected:lO,kSize:Ace,kRunning:cce,kPending:uce,kQueued:DE,kBusy:eKe,kFree:tKe,kUrl:rKe,kClose:sKe,kDestroy:nKe,kDispatch:iKe}=$e(),Sr=Symbol("clients"),os=Symbol("needDrain"),RE=Symbol("queue"),dO=Symbol("closed resolve"),hO=Symbol("onDrain"),lce=Symbol("onConnect"),dce=Symbol("onDisconnect"),hce=Symbol("onConnectionError"),gO=Symbol("get dispatcher"),gce=Symbol("add client"),fce=Symbol("remove client"),fO=class extends Zze{[RE]=new $ze;[DE]=0;[Sr]=[];[os]=!1;[hO](e,r,s){let n=this[RE],i=!1;for(;!i;){let o=n.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Wce.exports=yO});var wO=m((QDt,jce)=>{"use strict";var{InvalidArgumentError:Pze}=Ee(),{runtimeFeatures:vze}=eA();function Oze(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var zce=vze.has("crypto")?b("node:crypto"):null,_ze=zce?.hash?t=>zce.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Xce(t){return Array.isArray(t)&&(t.length&1)===0}function Hze(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function Gze(t){let e={};if(!t)return e;if(Xce(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Kce=["record","playback","update"];function Yze(t){if(!Kce.includes(t))throw new Pze(`Invalid snapshot mode: ${t}. Must be one of: ${Kce.join(", ")}`)}jce.exports={createHeaderFilters:Oze,hashId:_ze,isUndiciHeaders:Xce,normalizeHeaders:Gze,isUrlExcludedFactory:Hze,validateSnapshotMode:Yze}});var oue=m((yDt,iue)=>{"use strict";var{writeFile:qze,readFile:Vze,mkdir:Jze}=b("node:fs/promises"),{dirname:Wze,resolve:Zce}=b("node:path"),{setTimeout:zze,clearTimeout:$ce}=b("node:timers"),{InvalidArgumentError:eue,UndiciError:Kze}=Ee(),{hashId:Xze,isUrlExcludedFactory:jze,normalizeHeaders:tue,createHeaderFilters:rue}=wO();function r0(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||tue(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:sue(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function sue(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function nue(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function s0(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Xze(r)}var NO=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=rue(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=jze(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=r0(e,this.#a,this.matchOptions),n=s0(s),i=tue(r.headers),o={statusCode:r.statusCode,headers:nue(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#s&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=r0(e,this.#a,this.matchOptions),s=s0(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#s;if(!r)throw new eue("Snapshot path is required");try{let s=await Vze(Zce(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new Kze(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new eue("Snapshot path is required");let s=Zce(r);await Jze(Wze(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await qze(s,JSON.s Line truncated
${e.format(r)}`.trim())}};Ple.exports=D_});var k_=E((gUt,Gle)=>{"use strict";var{InvalidArgumentError:rZe}=me(),{runtimeFeatures:sZe}=lA();function nZe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Ole=sZe.has("crypto")?w("node:crypto"):null,iZe=Ole?.hash?t=>Ole.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Hle(t){return Array.isArray(t)&&(t.length&1)===0}function oZe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function aZe(t){let e={};if(!t)return e;if(Hle(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var _le=["record","playback","update"];function AZe(t){if(!_le.includes(t))throw new rZe(`Invalid snapshot mode: ${t}. Must be one of: ${_le.join(", ")}`)}Gle.exports={createHeaderFilters:nZe,hashId:iZe,isUndiciHeaders:Hle,normalizeHeaders:aZe,isUrlExcludedFactory:oZe,validateSnapshotMode:AZe}});var jle=E((fUt,Xle)=>{"use strict";var{writeFile:cZe,readFile:uZe,mkdir:lZe}=w("node:fs/promises"),{dirname:dZe,resolve:Yle}=w("node:path"),{setTimeout:hZe,clearTimeout:qle}=w("node:timers"),{InvalidArgumentError:Vle,UndiciError:gZe}=me(),{hashId:fZe,isUrlExcludedFactory:pZe,normalizeHeaders:Jle,createHeaderFilters:Wle}=k_();function VE(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Jle(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:zle(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function zle(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Kle(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function JE(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return fZe(r)}var F_=class{#e;#t;#s=new Map;#r;#n=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#n=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Wle(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=pZe(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=VE(e,this.#a,this.matchOptions),n=JE(s),i=Jle(r.headers),o={statusCode:r.statusCode,headers:Kle(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#n&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=VE(e,this.#a,this.matchOptions),s=JE(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Vle("Snapshot path is required");try{let s=await uZe(Yle(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new gZe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Vle("Snapshot path is required");let s=Yle(r);await lZe(dZe(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await cZe(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${dn} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${En} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,9 +133,9 @@ ${e.format(r)}`.trim())}};Wce.exports=yO});var wO=m((QDt,jce)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${dn}_getValuesQuery ON cacheInterceptorV${dn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${dn}_deleteByUrlQuery ON cacheInterceptorV${dn}(deleteAt);
`),this.#s=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_getValuesQuery ON cacheInterceptorV${En}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_deleteByUrlQuery ON cacheInterceptorV${En}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
body,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};Wce.exports=yO});var wO=m((QDt,jce)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${dn}
FROM cacheInterceptorV${En}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${dn} SET
`),this.#n=this.#s.prepare(`
UPDATE cacheInterceptorV${En} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};Wce.exports=yO});var wO=m((QDt,jce)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${dn} (
`),this.#i=this.#s.prepare(`
INSERT INTO cacheInterceptorV${En} (
url,
method,
body,
@@ -182,79 +182,116 @@ ${e.format(r)}`.trim())}};Wce.exports=yO});var wO=m((QDt,jce)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${dn} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${dn}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${dn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${dn}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${En}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${En}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${dn}
FROM cacheInterceptorV${En}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){zO(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){zO(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){zO(e),PXe(r);let s=0,n=[],i=this;return new LXe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!vXe(n[l],u[l])){c=!1;break}}if(c)return A}}};function vXe(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var Pl=m((VDt,hle)=>{"use strict";var{kConstruct:OXe}=$e(),{kEnumerableProperty:Hg}=Ie(),{iteratorMixin:_Xe,isValidHeaderName:a0,isValidHeaderValue:Ale}=an(),{webidl:ve}=Dr(),XO=b("node:assert"),Pw=b("node:util");function ale(t){return t===10||t===13||t===9||t===32}function cle(t){let e=0,r=t.length;for(;r>e&&ale(t.charCodeAt(r-1));)--r;for(;r>e&&ale(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ule(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ve.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});jO(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)jO(t,r[s],e[r[s]])}else throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function jO(t,e,r){if(r=cle(r),a0(e)){if(!Ale(r))throw ve.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ve.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(dle(t)==="immutable")throw new TypeError("immutable");return Ow(t).append(e,r,!1)}function HXe(t){let e=Ow(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function lle(t,e){return t[0]<e[0]?-1:1}var vw=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":Ihe(i)&&(r[n]=i);break;case"id":Bhe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Ihe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Bhe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Qhe.exports={EventSourceStream:M6}});var Rhe=m((pRt,Dhe)=>{"use strict";var{pipeline:ott}=b("node:stream"),{fetching:att}=d0(),{makeRequest:Att}=Yg(),{webidl:os}=Dr(),{EventSourceStream:ctt}=yhe(),{parseMIMEType:utt}=ti(),{createFastMessageEvent:ltt}=uN(),{isNetworkError:bhe}=c0(),{kEnumerableProperty:Vl}=Ie(),{environmentSettingsObject:whe}=an(),Nhe=!1,She=3e3,C0=0,The=1,I0=2,dtt="anonymous",htt="use-credentials",$g=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=C0;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),os.util.markAsUncloneable(this);let s="EventSource constructor";os.argumentLengthCheck(arguments,1,s),Nhe||(Nhe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=os.converters.USVString(e),r=os.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=whe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=dtt;r.withCredentials===!0&&(o=htt,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=whe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Att(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===I0)return;this.#s=C0;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!bhe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(bhe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?utt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=The,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new ctt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(ltt(A.type,A.options))}});ott(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=att(e)}#c(){this.#s!==I0&&(this.#s=C0,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===C0&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){os.brandCheck(this,t),this.#s!==I0&&(this.#s=I0,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=os.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=os.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=os.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},xhe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:C0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:The,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:I0,writable:!1}};Object.defineProperties($g,xhe);Object.defineProperties($g.prototype,xhe);Object.defineProperties($g.prototype,{close:Vl,onerror:Vl,onmessage:Vl,onopen:Vl,readyState:Vl,url:Vl,withCredentials:Vl});os.converters.EventSourceInitDict=os.dictionaryConverter([{key:"withCredentials",converter:os.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:os.converters.any},{key:"node",converter:os.dictionaryConverter([{key:"reconnectionTime",converter:os.converters["unsigned long"],defaultValue:()=>She},{key:"dispatcher",converter:os.converters.any}]),defaultValue:()=>({})}]);Dhe.exports={EventSource:$g,defaultReconnectionTime:She}});var Phe=m((mRt,W)=>{"use strict";var gtt=bc(),Fhe=EE(),ftt=bl(),ptt=Fae(),mtt=Pae(),Ett=Sl(),Ctt=T4(),Itt=b4(),Btt=IAe(),Qtt=NAe(),ytt=xAe(),Mhe=Ee(),yN=Ie(),{InvalidArgumentError:QN}=Mhe,ef=uce(),btt=ml(),wtt=dO(),{MockCallHistory:Ntt Line truncated
`)}close(){this.#s.close()}get(e){t6(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){t6(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#n.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#i.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){t6(e),ret(r);let s=0,n=[],i=this;return new tet({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!set(n[l],u[l])){c=!1;break}}if(c)return A}}};function set(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var ud=E((vUt,nhe)=>{"use strict";var{kConstruct:net}=$e(),{kEnumerableProperty:Bf}=Ie(),{iteratorMixin:iet,isValidHeaderName:XE,isValidHeaderValue:$de}=hn(),{webidl:Pe}=kr(),s6=w("node:assert"),vN=w("node:util");function Zde(t){return t===10||t===13||t===9||t===32}function ehe(t){let e=0,r=t.length;for(;r>e&&Zde(t.charCodeAt(r-1));)--r;for(;r>e&&Zde(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function the(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Pe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});n6(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)n6(t,r[s],e[r[s]])}else throw Pe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function n6(t,e,r){if(r=ehe(r),XE(e)){if(!$de(r))throw Pe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(she(t)==="immutable")throw new TypeError("immutable");return ON(t).append(e,r,!1)}function oet(t){let e=ON(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function rhe(t,e){return t[0]<e[0]?-1:1}var PN=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":lfe(i)&&(r[n]=i);break;case"id":dfe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&lfe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&dfe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};hfe.exports={EventSourceStream:H6}});var yfe=E((ALt,Bfe)=>{"use strict";var{pipeline:wnt}=w("node:stream"),{fetching:Nnt}=tC(),{makeRequest:Snt}=Qf(),{webidl:As}=kr(),{EventSourceStream:Tnt}=gfe(),{parseMIMEType:xnt}=ai(),{createFastMessageEvent:Dnt}=uS(),{isNetworkError:ffe}=ZE(),{kEnumerableProperty:Ed}=Ie(),{environmentSettingsObject:pfe}=hn(),mfe=!1,Efe=3e3,AC=0,Cfe=1,cC=2,Rnt="anonymous",knt="use-credentials",Ff=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=AC;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),As.util.markAsUncloneable(this);let s="EventSource constructor";As.argumentLengthCheck(arguments,1,s),mfe||(mfe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=As.converters.USVString(e),r=As.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=pfe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Rnt;r.withCredentials===!0&&(o=knt,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=pfe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=Snt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===cC)return;this.#r=AC;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!ffe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(ffe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?xnt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Cfe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new Tnt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Dnt(A.type,A.options))}});wnt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Nnt(e)}#c(){this.#r!==cC&&(this.#r=AC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===AC&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){As.brandCheck(this,t),this.#r!==cC&&(this.#r=cC,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Ife={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:AC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Cfe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:cC,writable:!1}};Object.defineProperties(Ff,Ife);Object.defineProperties(Ff.prototype,Ife);Object.defineProperties(Ff.prototype,{close:Ed,onerror:Ed,onmessage:Ed,onopen:Ed,readyState:Ed,url:Ed,withCredentials:Ed});As.converters.EventSourceInitDict=As.dictionaryConverter([{key:"withCredentials",converter:As.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:As.converters.any},{key:"node",converter:As.dictionaryConverter([{key:"reconnectionTime",converter:As.converters["unsigned long"],defaultValue:()=>Efe},{key:"dispatcher",converter:As.converters.any}]),defaultValue:()=>({})}]);Bfe.exports={EventSource:Ff,defaultReconnectionTime:Efe}});var Tfe=E((cLt,W)=>{"use strict";var Fnt=Vc(),bfe=aE(),Mnt=jl(),Unt=bce(),Lnt=Tce(),vnt=ed(),Pnt=UO(),Ont=RO(),_nt=lue(),Hnt=mue(),Gnt=Iue(),wfe=me(),QS=Ie(),{InvalidArgumentError:yS}=wfe,Mf=tle(),Ynt=ql(),qnt=C_(),{MockCallHistory:Vnt Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return Ptt(e,r).catch(s=>{throw khe?Lhe(s,khe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=Pl().Headers;W.exports.Response=c0().Response;W.exports.Request=Yg().Request;W.exports.FormData=J1().FormData;var{setGlobalOrigin:vtt,getGlobalOrigin:Ott}=h8();W.exports.setGlobalOrigin=vtt;W.exports.getGlobalOrigin=Ott;var{CacheStorage:_tt}=pde(),{kConstruct:Htt}=$e();W.exports.caches=new _tt(Htt);var{deleteCookie:Gtt,getCookies:Ytt,getSetCookies:qtt,setCookie:Vtt,parseCookie:Jtt}=xde();W.exports.deleteCookie=Gtt;W.exports.getCookies=Ytt;W.exports.getSetCookies=qtt;W.exports.setCookie=Vtt;W.exports.parseCookie=Jtt;var{parseMIMEType:Wtt,serializeAMimeType:ztt}=ti();W.exports.parseMIMEType=Wtt;W.exports.serializeAMimeType=ztt;var{CloseEvent:Ktt,ErrorEvent:Xtt,MessageEvent:jtt}=uN(),{WebSocket:Ztt,ping:$tt}=che();W.exports.WebSocket=Ztt;W.exports.CloseEvent=Ktt;W.exports.ErrorEvent=Xtt;W.exports.MessageEvent=jtt;W.exports.ping=$tt;W.exports.WebSocketStream=mhe().WebSocketStream;W.exports.WebSocketError=x6().WebSocketError;W.exports.request=B0(ef.request);W.exports.stream=B0(ef.stream);W.exports.pipeline=B0(ef.pipeline);W.exports.connect=B0(ef.connect);W.exports.upgrade=B0(ef.upgrade);W.exports.MockClient=wtt;W.exports.MockCallHistory=Ntt;W.exports.MockCallHistoryLog=Stt;W.exports.MockPool=xtt;W.exports.MockAgent=Ttt;W.exports.SnapshotAgent=Dtt;W.exports.mockErrors=Rtt;var{EventSource:ert}=Rhe();W.exports.EventSource=ert;function trt(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=trt});var Q0=m(Pc=>{"use strict";Pc.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Pc.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Pc.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Pc.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Pc.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Pc.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Pc.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Ohe=m((IRt,vhe)=>{"use strict";var{asciiLowercase:bN,solelyContainsHTTPTokenCodePoints:rrt,soleyContainsHTTPQuotedStringTokenCodePoints:srt}=Q0();vhe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=bN(String(e)),this._map.get(e)}has(e){return e=bN(String(e)),this._map.has(e)}set(e,r){if(e=bN(String(e)),r=String(r),!rrt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!srt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=bN(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Ghe=m((BRt,Hhe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:nrt,removeTrailingHTTPWhitespace:_he,isHTTPWhitespaceChar:irt,solelyContainsHTTPTokenCodePoints:U6,soleyContainsHTTPQuotedStringTokenCodePoints:ort,asciiLowercase:L6,collectAnHTTPQuotedString:art}=Q0();Hhe.exports=t=>{t=nrt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!U6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=_he(s),s.length===0||!U6(s))return null;let n={type:L6(r),subtype:L6(s),parameters:new Map};for(;e<t.length;){for(++e;irt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=L6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=art(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=_he(o),o==="")continue}i.length>0&&U6(i)&&ort(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var qhe=m((QRt,Yhe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Art}=Q0();Yhe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!Art(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var zhe=m((bRt,Whe)=>{"use strict";var crt=Ohe(),urt=Ghe(),lrt=qhe(),{asciiLowercase:Vhe,solelyContainsHTTPTokenCodePoints:Jhe}=Q0();Whe.exports=class{constructor(e){e=String(e);let r=urt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new crt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Vhe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Jhe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Vhe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Jhe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return lrt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as Y6 from"os";function lA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function xN(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Jl(t,e,r){let s=new DN(t,e,r);process.stdout.write(s.toString()+Y6.EOL)}var G6="::",DN=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=G6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnPropertyLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function g2(t){process.exitCode=d2.Failure,hu(t)}function FA(){return process.env.RUNNER_DEBUG==="1"}function P(t){Jl("debug",{},t)}function hu(t,e={}){Jl("error",xN(e),t instanceof Error?t.toString():t)}function yt(t,e={}){Jl("warning",xN(e),t instanceof Error?t.toString():t)}function he(t){process.stdout.write(t+FJ.EOL)}function np(t,e){if(process.env.GITHUB_STATE||"")return V6("STATE",J6(t,e));Jl("save-state",{name:t},lA(e))}function MA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as $we,existsSync as eNe}from"fs";import{EOL as tNe}from"os";var Yd=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(eNe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse($we(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${tNe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var E2=fe(vJ(),1),OJ=fe(II(),1),gNe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function _J(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function HJ(t){return new E2.HttpClient().getAgent(t)}function fNe(t){return new E2.HttpClient().getAgentDispatcher(t)}function GJ(t){let e=fNe(t);return(s,n)=>gNe(this,void 0,void 0,function*(){return(0,OJ.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function YJ(){return process.env.GITHUB_API_URL||"https://api.github.com"}function MI(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function UI(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>UI.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function qJ(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function VJ(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var JJ=Function.bind,WJ=JJ.bind(JJ);function zJ(t,e,r){let s=WJ(VJ,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=WJ(qJ,null).apply(null,i)})}function mNe(){let t=Symbol("Singular"),e={registry:{}},r=UI.bind(null,e,t);return zJ(r,e,t),r}function ENe(){let t={registry:{}},e=UI.bind(null,t);return zJ(e,t),e}var KJ={Singular:mNe,Collection:ENe};var M2=fe(D2(),1);var Q7=fe(D2(),1);var lSe="0.0.0-development";function dSe(t){return`Request failed due to following response errors:
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return rit(e,r).catch(s=>{throw Qfe?Sfe(s,Qfe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=ud().Headers;W.exports.Response=ZE().Response;W.exports.Request=Qf().Request;W.exports.FormData=Jw().FormData;var{setGlobalOrigin:sit,getGlobalOrigin:nit}=I4();W.exports.setGlobalOrigin=sit;W.exports.getGlobalOrigin=nit;var{CacheStorage:iit}=age(),{kConstruct:oit}=$e();W.exports.caches=new iit(oit);var{deleteCookie:ait,getCookies:Ait,getSetCookies:cit,setCookie:uit,parseCookie:lit}=Ige();W.exports.deleteCookie=ait;W.exports.getCookies=Ait;W.exports.getSetCookies=cit;W.exports.setCookie=uit;W.exports.parseCookie=lit;var{parseMIMEType:dit,serializeAMimeType:hit}=ai();W.exports.parseMIMEType=dit;W.exports.serializeAMimeType=hit;var{CloseEvent:git,ErrorEvent:fit,MessageEvent:pit}=uS(),{WebSocket:mit,ping:Eit}=efe();W.exports.WebSocket=mit;W.exports.CloseEvent=git;W.exports.ErrorEvent=fit;W.exports.MessageEvent=pit;W.exports.ping=Eit;W.exports.WebSocketStream=Afe().WebSocketStream;W.exports.WebSocketError=L6().WebSocketError;W.exports.request=uC(Mf.request);W.exports.stream=uC(Mf.stream);W.exports.pipeline=uC(Mf.pipeline);W.exports.connect=uC(Mf.connect);W.exports.upgrade=uC(Mf.upgrade);W.exports.MockClient=qnt;W.exports.MockCallHistory=Vnt;W.exports.MockCallHistoryLog=Jnt;W.exports.MockPool=znt;W.exports.MockAgent=Wnt;W.exports.SnapshotAgent=Knt;W.exports.mockErrors=Xnt;var{EventSource:Cit}=yfe();W.exports.EventSource=Cit;function Iit(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=Iit});var lC=E(nu=>{"use strict";nu.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");nu.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");nu.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";nu.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);nu.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);nu.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());nu.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Dfe=E((dLt,xfe)=>{"use strict";var{asciiLowercase:bS,solelyContainsHTTPTokenCodePoints:Bit,soleyContainsHTTPQuotedStringTokenCodePoints:yit}=lC();xfe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=bS(String(e)),this._map.get(e)}has(e){return e=bS(String(e)),this._map.has(e)}set(e,r){if(e=bS(String(e)),r=String(r),!Bit(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!yit(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=bS(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Ffe=E((hLt,kfe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Qit,removeTrailingHTTPWhitespace:Rfe,isHTTPWhitespaceChar:bit,solelyContainsHTTPTokenCodePoints:G6,soleyContainsHTTPQuotedStringTokenCodePoints:wit,asciiLowercase:Y6,collectAnHTTPQuotedString:Nit}=lC();kfe.exports=t=>{t=Qit(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!G6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Rfe(s),s.length===0||!G6(s))return null;let n={type:Y6(r),subtype:Y6(s),parameters:new Map};for(;e<t.length;){for(++e;bit(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Y6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Nit(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Rfe(o),o==="")continue}i.length>0&&G6(i)&&wit(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var Ufe=E((gLt,Mfe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Sit}=lC();Mfe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!Sit(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Ofe=E((pLt,Pfe)=>{"use strict";var Tit=Dfe(),xit=Ffe(),Dit=Ufe(),{asciiLowercase:Lfe,solelyContainsHTTPTokenCodePoints:vfe}=lC();Pfe.exports=class{constructor(e){e=String(e);let r=xit(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Tit(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Lfe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!vfe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Lfe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!vfe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Dit(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as X6 from"os";function yA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function xS(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function au(t,e,r){let s=new DS(t,e,r);process.stdout.write(s.toString()+X6.EOL)}function RS(t,e=""){au(t,{},e)}var K6="::",DS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=K6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)ifLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function fD(t){process.exitCode=hD.Failure,Uu(t)}function qA(){return process.env.RUNNER_DEBUG==="1"}function U(t){au("debug",{},t)}function Uu(t,e={}){au("error",xS(e),t instanceof Error?t.toString():t)}function ht(t,e={}){au("warning",xS(e),t instanceof Error?t.toString():t)}function de(t){process.stdout.write(t+_7.EOL)}function H7(t){RS("group",t)}function G7(){RS("endgroup")}function vp(t,e){if(process.env.GITHUB_STATE||"")return Z6("STATE",$6(t,e));au("save-state",{name:t},yA(e))}function VA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as qSe,existsSync as VSe}from"fs";import{EOL as JSe}from"os";var fh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(VSe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(qSe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${JSe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var CD=Ee(W7(),1),z7=Ee(cB(),1),iTe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function K7(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function X7(t){return new CD.HttpClient().getAgent(t)}function oTe(t){return new CD.HttpClient().getAgentDispatcher(t)}function j7(t){let e=oTe(t);return(s,n)=>iTe(this,void 0,void 0,function*(){return(0,z7.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function Z7(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ID(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function JA(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function QB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>QB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function $7(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function eW(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var tW=Function.bind,rW=tW.bind(tW);function sW(t,e,r){let s=rW(eW,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=rW($7,null).apply(null,i)})}function ATe(){let t=Symbol("Singular"),e={registry:{}},r=QB.bind(null,e,t);return sW(r,e,t),r}function cTe(){let t={registry:{}},e=QB.bind(null,t);return sW(e,t),e}var nW={Singular:ATe,Collection:cTe};var uTe="0.0.0-development",lTe=`octokit-endpoint.js/${uTe} ${JA()}`,dTe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":lTe},mediaType Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var hSe=class extends Error{constructor(t,e,r){super(dSe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},gSe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],fSe=["query","method","url"],B7=/\/api\/v3\/?$/;function pSe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(fSe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>gSe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return B7.test(i)&&(n.url=i.replace(B7,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new hSe(n,a,o.data)}return o.data.data})}function R2(t,e){let r=t.defaults(e);return Object.assign((n,i)=>pSe(r,n,i),{defaults:R2.bind(null,r),endpoint:r.endpoint})}var xit=R2(Q7.request,{headers:{"user-agent":`octokit-graphql.js/${lSe} ${MI()}`},method:"POST",url:"/graphql"});function y7(t){return R2(t,{method:"POST",url:"/graphql"})}var k2="(?:[a-zA-Z0-9_-]+)",b7="\\.",w7=new RegExp(`^${k2}${b7}${k2}${b7}${k2}$`),mSe=w7.test.bind(w7);async function ESe(t){let e=mSe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function CSe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function ISe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=CSe(t),e(n)}var N7=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(ESe.bind(null,e),{hook:ISe.bind(null,e)})};var F2="7.0.6";var S7=()=>{},BSe=console.warn.bind(console),QSe=console.error.bind(console);function ySe(t={}){return typeof t.debug!="function"&&(t.debug=S7),typeof t.info!="function"&&(t.info=S7),typeof t.warn!="function"&&(t.warn=BSe),typeof t.error!="function"&&(t.error=QSe),t}var T7=`octokit-core.js/${F2} ${MI()}`,vI=class{static VERSION=F2;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new KJ.Collection,s={baseUrl:M2.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${T7}`:T7,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=M2.request.defaults(s),this.graphql=y7(this.request).defaults(s),this.log=ySe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=N7(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var U2="17.0.0";var bSe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgV Line truncated
`)}var zTe=class extends Error{constructor(t,e,r){super(WTe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},KTe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],XTe=["query","method","url"],TW=/\/api\/v3\/?$/;function jTe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(XTe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>KTe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return TW.test(i)&&(n.url=i.replace(TW,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new zTe(n,a,o.data)}return o.data.data})}function xD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>jTe(r,n,i),{defaults:xD.bind(null,r),endpoint:r.endpoint})}var jAt=xD(_p,{headers:{"user-agent":`octokit-graphql.js/${JTe} ${JA()}`},method:"POST",url:"/graphql"});function xW(t){return xD(t,{method:"POST",url:"/graphql"})}var DD="(?:[a-zA-Z0-9_-]+)",DW="\\.",RW=new RegExp(`^${DD}${DW}${DD}${DW}${DD}$`),ZTe=RW.test.bind(RW);async function $Te(t){let e=ZTe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function exe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function txe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=exe(t),e(n)}var kW=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign($Te.bind(null,e),{hook:txe.bind(null,e)})};var RD="7.0.6";var FW=()=>{},rxe=console.warn.bind(console),sxe=console.error.bind(console);function nxe(t={}){return typeof t.debug!="function"&&(t.debug=FW),typeof t.info!="function"&&(t.info=FW),typeof t.warn!="function"&&(t.warn=rxe),typeof t.error!="function"&&(t.error=sxe),t}var MW=`octokit-core.js/${RD} ${JA()}`,NB=class{static VERSION=RD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new nW.Collection,s={baseUrl:_p.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${MW}`:MW,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=_p.defaults(s),this.graphql=xW(this.request).defaults(s),this.log=nxe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=kW(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var kD="17.0.0";var ixe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
`)}
`:`${HW(t.status,e)}
${OD[t.status]}
`}function WW(t){return t==="enabled"||t==="read-only"||t==="write-only"}function HW(t,e){if(!WW(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",s=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${s}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function fxe(t){return t?hxe[t]:void 0}function pxe(t){return t?gxe[t]:void 0}function mxe(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${fs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${dxe}) for terms of use and opt-out instructions.`:`**[Basic Caching](${fs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${fs}#enhanced-caching)** provider.`}function Exe(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=zW(e)?`Entries: ${r} restored (${SB(e,u=>u.restoredSize)}Mb), ${s} saved (${SB(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?fxe(t.cleanup):void 0,o=pxe(t.projectCache),a=Cxe(t.entries),A=`<pre>
${Ixe(t.entries)}</pre>`,c=[OD[t.status],i,o,a,A].filter(Boolean).join(`
`);return`<details>
<summary>${n}</summary>
${c}
</details>`}function zW(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Cxe(t){return zW(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${GW(t,e=>e.restoredSize)}</td>
<td>${SB(t,e=>e.restoredSize)}</td>
<td>${YW(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${GW(t,e=>e.savedSize)}</td>
<td>${SB(t,e=>e.savedSize)}</td>
<td>${YW(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function Ixe(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${qW(e.restoredSize)}
Time: ${VW(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${qW(e.savedSize)}
Time: ${VW(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function GW(t,e){return t.filter(r=>e(r)).length}function SB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function YW(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function qW(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function VW(t){return t===void 0||t===0?"":`${t} ms`}import*as E0 from"path";import*as yh from"fs";function _D(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as kB from"path";import*as Ch from"path";import Pu from"assert";var WA=process.platform==="win32";function Fa(t){if(t=ka(t),WA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Ch.dirname(t);return WA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ka(e)),e}function TB(t,e){if(Pu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Pu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hp(e))return e;if(WA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Pu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ti(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Pu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Pu(Hp(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||WA&&t.endsWith("\\")||(t+=Ch.sep),t+e}function Hp(t){return Pu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ti(t),WA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Gp(t){return Pu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ti(t),WA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ti(t){return t=t||"",WA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ka(t){return t?(t=Ti(t),!t.endsWith(Ch.sep)||t===Ch.sep||WA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var xi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(xi||(xi={}));var KW=process.platform==="win32";function GD(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=KW?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=KW?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Fa(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Fa(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function XW(t,e){let r=xi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function jW(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Cz from"os";import*as Bh from"path";var Iz=Ee(Ez(),1);import Gu from"assert";import*as _u from"path";import qp from"assert";var qxe=process.platform==="win32",Hu=class{constructor(e){if(this.segments=[],typeof e=="string")if(qp(e,"Parameter 'itemPath' must not be empty"),e=ka(e),!Gp(e))this.segments=e.split(_u.sep);else{let r=e,s=Fa(r);for(;s!==r;){let n=_u.basename(r);this.segments.unshift(n),r=s,s=Fa(r)}this.segments.unshift(r)}else{qp(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];qp(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ti(e[r]),r===0&&Gp(s)?(s=ka(s),qp(s===Fa(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(qp(!s.includes(_u.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(_u.sep)||qxe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=_u.sep,e+=this.segments[s];return e}};var{Minimatch:Vxe}=Iz.default,Ma=process.platform==="win32",Vp=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Gu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Gu(c&&Hp(c),"Parameter 'segments' first element must be a root path"),i=new Hu(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new dp(i));return s.searchPaths.push(...q2(s.patterns)),s})}static stat(e,r,s){return K2(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Kd.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){P(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Kd.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Kd.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){P(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as X2 from"crypto";import*as qI from"fs";import*as gW from"stream";import*as fW from"util";import*as pW from"path";var hTe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},gTe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function mW(t,e){return hTe(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?he:P,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),g=X2.createHash("sha256"),f=0;try{for(var p=!0,B=gTe(r.globGenerator()),E;E=yield B.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${pW.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(qI.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let w=X2.createHash("sha256");yield fW.promisify(gW.pipeline)(qI.createReadStream(C),w),g.write(w.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=B.return)&&(yield a.call(B))}finally{if(o)throw o.error}}return g.end(),l?(u(`Found ${f} files to hash.`),g.digest("hex")):(u("No matches found for glob"),"")})}var EW=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function j2(t,e){return EW(this,void 0,void 0,function*(){return yield GI.create(t,e)})}function CW(t){return EW(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield j2(e,{followSymbolicLinks:i});return mW(o,r,n)})}var lK=fe(cK(),1);import*as iB from"crypto";import*as Zd from"fs";import*as Bu from"path";import*as dK from"util";var Bp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Bp||(Bp={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var Js;(function(t){t.GNU="gnu",t.BSD="bsd"})(Js||(Js={}));var sB=2,nB=5e3,mD=5e3,ED=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uK=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qp="cache.tar",CD="manifest.txt",dat=10*Math.pow(1024,3);var jd=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},uDe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},lDe="1.0";function yp(){return jd(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Bu.join(s,"actions","temp")}let r=Bu.join(e,iB.randomUUID());return yield bI(r),r})}function oo(t){return Zd.statSync(t).size}function ID(t){return jd(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield j2(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=uDe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let g=Bu.relative(a,n).replace(new RegExp(`\\${Bu.sep}`,"g"),"/");P(`Matched: ${g}`),g===""?o.push("."):o.push(`${g}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function bp(t){return jd(this,void 0,void 0,function*(){return dK.promisify(Zd.unlink)(t)})}function hK(t){return jd(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),P(`Checking ${e} ${r.join(" ")}`);try{yield SI(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){P(n.message)}return s=s.trim(),P(s),s})}function wp(){return jd(this,void 0,void 0,function*(){let t=yield hK("zstd",["--quiet"]),e=lK.clean(t);return P(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}function vA(t){return t===Xr.Gzip?Bp.Gzip:Bp.Zstd}function gK(){return jd(this,void 0,void 0,function*(){return Zd.existsSync(ED)?ED:(yield hK("tar")).toLowerCase().includes("gnu tar")?Qa("tar"):""})}function BD(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function $d(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(lDe),iB.createHash("sha256").update(s.join("|")).digest("hex")}function fK(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Sh from"fs";import{URL as LPe}from"url";var ao=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as dDe}from"node:os";import hDe from"node:util";import gDe from"node:process";function pK(t,...e){gDe.stderr.write(`${hDe.format(t,...e)}${dDe}`)}var mK=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,CK,QD=[],yD=[],aB=[];mK&&bD(mK);var IK=Object.assign(t=>BK(t),{enable:bD,enabled:wD,disable:fDe,log:pK});function bD(t){CK=t,QD=[],yD=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?yD.push(r.substring(1)):QD.push(r);for(let r of aB)r.enabled=wD(r.namespace)}function wD(t){if(t.endsWith("*"))return!0;for(let e of yD)if(EK(t,e))return!1;for(let e of QD)if(EK(t,e))return!0;return!1}function EK(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],g="";for(let f of e)f==="*"&&g==="*"||(g=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function fDe(){let t=CK||"";return bD(""),t}function BK(t){let e=Object.assign(r,{enabled:wD(t),destroy:pDe,log:IK.log,namespace:t,extend:mDe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return aB.push(e),e}function pDe(){let t=aB.indexOf(this);return t>=0?(aB.splice(t,1),!0):!1}function mDe(t){let e=BK(`${this.namespace}:${t}`);return e.log=this.log,e}var eh=IK;var ND=["verbose","info","warning","error"],QK={verbose:400,info:300,warning:200,error:100};function yK(t,e){e.log=(...r)=>{t.log(...r)}}function bK(t){return ND.includes(t)}function EDe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=eh(t.namespace);n.log=(...u)=>{eh.log(...u)};function i(u){if(u&&!bK(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${ND.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);eh.enable(l.join(","))}r&&(bK(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${ND.join(", ")}.`));function o(u){return!!(s&&QK[u.level]<=QK[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(yK(u,d),o(d)){let g=eh.disable();eh.enable(g+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return yK(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var wK=EDe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),CDe=wK.logger;function Np(t){return wK.createClientLogger(t)}function AB(t){return t.toLowerCase()}function*IDe(t){for(let e of t.values())yield[e.name,e.value]}var SD=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(AB(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(AB(e))?.value}has(e){return this._headersMap.has(AB(e))}delete(e){this._headersMap.delete(AB(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.values())r[s.name]=s.value;else for(let[s,n]of this._he Line truncated
${bDe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function lB(t){return t instanceof jr?!0:yu(t)&&t.name==="RestError"}function hs(t,e){return Buffer.from(t,e)}import RD from"node:http";import kD from"node:https";import TK from"node:zlib";import{Transform as wDe}from"node:stream";var Tn=Np("ts-http-runtime");var NDe={};function Sp(t){return t&&typeof t.pipe=="function"}function xK(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function DK(t){return t&&typeof t.byteLength=="number"}var dB=class extends wDe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},FD=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new ao("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new bi;Tn.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=DDe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new dB(f);p.on("error",B=>{Tn.error("Error in upload progress",B)}),Sp(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=SDe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?TDe(c,u):c;let g=e.onDownloadProgress;if(g){let f=new dB(g);f.on("error",p=>{Tn.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await xDe(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();Sp(a)&&(c=xK(a));let u=Promise.resolve();Sp(A)&&(u=xK(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Tn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?RD.request(a,A):kD.request(a,A);u.once("error",l=>{c(new jr(l.message,{code:l.code??jr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ao("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&Sp(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):DK(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Tn.error("Unrecognized body type",s),c(new jr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?RD.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new RD.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return kD.globalAgent;let n=e.tlsSettings??NDe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Tn.info("No cached TLS Agent exist, creating a new Agent"),i=new kD.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function SDe(t){let e=Ws();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function TDe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=TK.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=TK.createInflate();return t.pipe(s),s}return t}function xDe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new jr(`Error reading response as text: ${n.message}`,{code:jr.PARSE_ERROR}))})})}function DDe(t){return t?Buffer.isBuffer(t)?t.length:Sp(t)?null:DK(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function RK(){return new FD}function hB(){return RK()}var MD="logPolicy";function gB(t={}){let e=t.logger??Tn.info,r=new bi({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:MD,async sendRequest(s,n){if(!e.enabled)ret Line truncated
`;return e}function ZRe(t){return t instanceof Uint8Array?t.byteLength:LB(t)?t.size===-1?void 0:t.size:void 0}function $Re(t){let e=0;for(let r of t){let s=ZRe(r);if(s===void 0)return;e+=s}return e}async function eke(t,e,r){let s=[hs(`--${r}`,"utf-8"),...e.flatMap(i=>[hs(`\r
`,"utf-8"),hs(jRe(i.headers),"utf-8"),hs(`\r
`,"utf-8"),i.body,hs(`\r
--${r}`,"utf-8")]),hs(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Vp(i));return s.searchPaths.push(...GD(s.patterns)),s})}static stat(e,r,s){return WD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield yh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield yh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield yh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Kxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Bz(t,e){return Kxe(this,void 0,void 0,function*(){return yield RB.create(t,e)})}var gX=Ee(dX(),1);import*as WB from"crypto";import*as Nh from"fs";import*as Yu from"path";import*as fX from"util";var Zp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zp||(Zp={}));var jr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(jr||(jr={}));var Zs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zs||(Zs={}));var VB=2,JB=5e3,gR=5e3,fR=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,hX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,$p="cache.tar",pR="manifest.txt",Hut=10*Math.pow(1024,3);var wh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},ske=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},nke="1.0";function em(){return wh(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Yu.join(s,"actions","temp")}let r=Yu.join(e,WB.randomUUID());return yield hB(r),r})}function fo(t){return Nh.statSync(t).size}function mR(t){return wh(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield Bz(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=ske(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=Yu.relative(a,n).replace(new RegExp(`\\${Yu.sep}`,"g"),"/");U(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function tm(t){return wh(this,void 0,void 0,function*(){return fX.promisify(Nh.unlink)(t)})}function pX(t){return wh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),U(`Checking ${e} ${r.join(" ")}`);try{yield pB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){U(n.message)}return s=s.trim(),U(s),s})}function rm(){return wh(this,void 0,void 0,function*(){let t=yield pX("zstd",["--quiet"]),e=gX.clean(t);return U(`zstd version: ${e}`),t===""?jr.Gzip:jr.ZstdWithoutLong})}function jA(t){return t===jr.Gzip?Zp.Gzip:Zp.Zstd}function mX(){return wh(this,void 0,void 0,function*(){return Nh.existsSync(fR)?fR:(yield pX("tar")).toLowerCase().includes("gnu tar")?Da("tar"):""})}function ER(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Sh(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(nke),WB.createHash("sha256").update(s.join("|")).digest("hex")}function EX(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as sg from"fs";import{URL as H3e}from"url";var po=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as ike}from"node:os";import oke from"node:util";import ake from"node:process";function CX(t,...e){ake.stderr.write(`${oke.format(t,...e)}${ike}`)}import sm from"node:process";function KB(t){return sm.env[t]}var IX=typeof sm.versions.deno=="string"&&sm.versions.deno.length>0,BX=typeof sm.versions.bun=="string"&&sm.versions.bun.length>0,XB=!0;var yX=KB("DEBUG"),bX,CR=[],IR=[],jB=[];yX&&BR(yX);var wX=Object.assign(t=>NX(t),{enable:BR,enabled:yR,disable:Ake,log:CX});function BR(t){bX=t,CR=[],IR=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?IR.push(r.substring(1)):CR.push(r);for(let r of jB)r.enabled=yR(r.namespace)}function yR(t){if(t.endsWith("*"))return!0;for(let e of IR)if(QX(t,e))return!1;for(let e of CR)if(QX(t,e))return!0;return!1}function QX(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function Ake(){let t=bX||"";return BR(""),t}function NX(t){let e=Object.assign(r,{enabled:yR(t),destroy:cke,log:wX.log,namespace:t,extend:uke});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return jB.push(e),e}function cke(){let t=jB.indexOf(this);return t>=0?(jB.splice(t,1),!0):!1}function uke(t){let e=NX(`${this.namespace}:${t}`);return e.log=this.log,e}var Th=wX;var QR=["verbose","info","warning","error"],SX={verbose:400,info:300,warning:200,error:100};function TX(t,e){e.log=(...r)=>{t.log(...r)}}function xX(t){return QR.includes(t)}function ZB(t){let e=new Set,r=KB(t.logLevelEnvVarName),s,n=Th(t.namespace);n.log=(...u)=>{Th.log(...u)};function i(u){if(u&&!xX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${QR.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Th.enable(l.join(","))}r&&(xX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${QR.join(", ")}.`));function o(u){return!!(s&&SX[u.level]<=SX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(TX(u,d),o(d)){let h=Th.disable();Th.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return TX(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var DX=ZB({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lke=DX.logger;function nm(t){return DX.createClientLogger(t)}function $B(t){return t.toLowerCase()}function dke(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hke(t){for(let e of t.values())yield[e.name,e.value]}var bR=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set($B(e),{name:e,value:dke(r)})}get(e){return this._headersMap.get($B(e))?.value}has(e){return this._headersMap.has($B(e))}delete(e){this._ Line truncated
${mke.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xh(t){return t instanceof Zr?!0:Vu(t)&&t.name==="RestError"}function ps(t,e){return Buffer.from(t,e)}import TR from"node:http";import xR from"node:https";import FX from"node:zlib";import{Transform as Eke}from"node:stream";var ms=nm("ts-http-runtime");var Cke={};function im(t){return t&&typeof t.pipe=="function"}function MX(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function UX(t){return t&&typeof t.byteLength=="number"}var ry=class extends Eke{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},DR=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new po("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new Di;ms.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=Qke(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new ry(f);p.on("error",I=>{ms.error("Error in upload progress",I)}),im(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=Ike(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Bke(c,u):c;let h=e.onDownloadProgress;if(h){let f=new ry(h);f.on("error",p=>{ms.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await yke(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();im(a)&&(c=MX(a));let u=Promise.resolve();im(A)&&(u=MX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ms.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?TR.request(a,A):xR.request(a,A);u.once("error",l=>{c(new Zr(l.message,{code:l.code??Zr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new po("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&im(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):UX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ms.error("Unrecognized body type",s),c(new Zr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?TR.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new TR.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return xR.globalAgent;let n=e.tlsSettings??Cke,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ms.info("No cached TLS Agent exist, creating a new Agent"),i=new xR.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Ike(t){let e=$s();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function Bke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=FX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=FX.createInflate();return t.pipe(s),s}return t}function yke(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Zr(`Error reading response as text: ${n.message}`,{code:Zr.PARSE_ERROR}))})})}function Qke(t){return t?Buffer.isBuffer(t)?t.length:im(t)?null:UX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function LX(){return new DR}function sy(){return LX()}var RR="logPolicy";function ny(t={}){let e=t.logger??ms.info,r=new Di({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:RR,async sendRequ Line truncated
`;return e}function qFe(t){return t instanceof Uint8Array?t.byteLength:Am(t)?t.size===-1?void 0:t.size:void 0}function VFe(t){let e=0;for(let r of t){let s=qFe(r);if(s===void 0)return;e+=s}return e}async function JFe(t,e,r){let s=[ps(`--${r}`,"utf-8"),...e.flatMap(i=>[ps(`\r
`,"utf-8"),ps(YFe(i.headers),"utf-8"),ps(`\r
`,"utf-8"),i.body,ps(`\r
--${r}`,"utf-8")]),ps(`--\r
\r
`,"utf-8")],n=$Re(s);n&&t.headers.set("Content-Length",n),t.body=await SX(s)}var Dp="multipartPolicy",tke=70,rke=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ske(t){if(t.length>tke)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!rke.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function PB(){return{name:Dp,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ske(r):r=XRe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await eke(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function vB(){return uB()}import{EOL as ike}from"node:os";import oke from"node:util";import*as TX from"node:process";function xX(t,...e){TX.stderr.write(`${oke.format(t,...e)}${ike}`)}var DX=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,RX,ZD=[],$D=[],OB=[];DX&&eR(DX);var kX=Object.assign(t=>FX(t),{enable:eR,enabled:tR,disable:ake,log:xX});function eR(t){RX=t,ZD=[],$D=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?$D.push(new RegExp(`^${s.substr(1)}$`)):ZD.push(new RegExp(`^${s}$`));for(let s of OB)s.enabled=tR(s.namespace)}function tR(t){if(t.endsWith("*"))return!0;for(let e of $D)if(e.test(t))return!1;for(let e of ZD)if(e.test(t))return!0;return!1}function ake(){let t=RX||"";return eR(""),t}function FX(t){let e=Object.assign(r,{enabled:tR(t),destroy:Ake,log:kX.log,namespace:t,extend:cke});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return OB.push(e),e}function Ake(){let t=OB.indexOf(this);return t>=0?(OB.splice(t,1),!0):!1}function cke(t){let e=FX(`${this.namespace}:${t}`);return e.log=this.log,e}var ah=kX;var UX=new Set,_B=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,rR,sR=ah("azure");sR.log=(...t)=>{ah.log(...t)};var nR=["verbose","info","warning","error"];_B&&(vX(_B)?uke(_B):console.error(`AZURE_LOG_LEVEL set to unknown log level '${_B}'; logging is not enabled. Acceptable values: ${nR.join(", ")}.`));function uke(t){if(t&&!vX(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${nR.join(",")}`);rR=t;let e=[];for(let r of UX)PX(r)&&e.push(r.namespace);ah.enable(e.join(","))}var MX={verbose:400,info:300,warning:200,error:100};function kn(t){let e=sR.extend(t);return LX(sR,e),{error:HB(e,"error"),warning:HB(e,"warning"),info:HB(e,"info"),verbose:HB(e,"verbose")}}function LX(t,e){e.log=(...r)=>{t.log(...r)}}function HB(t,e){let r=Object.assign(t.extend(e),{level:e});if(LX(t,r),PX(r)){let s=ah.disable();ah.enable(s+","+r.namespace)}return UX.add(r),r}function PX(t){return!!(rR&&MX[t.level]<=MX[rR])}function vX(t){return nR.includes(t)}var co=kn("core-rest-pipeline");function iR(t={}){return gB({logger:co.info,...t})}var oR=fB;function aR(t={}){return pB(t)}import AR from"node:os";import cR from"node:process";function OX(){return"User-Agent"}async function _X(t){if(cR&&cR.versions){let e=`${AR.type()} ${AR.release()}; ${AR.arch()}`,r=cR.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var GB="1.22.2";function mke(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function HX(){return OX()}async function YB(t){let e=new Map;e.set("core-rest-pipeline",GB),await _X(e);let r=mke(e);return t?`${t} ${r}`:r}var GX=HX(),YX="userAgentPolicy";function uR(t={}){let e=YB(t.userAgentPrefix);return{name:YX,async sendRequest(r,s){return r.headers.has(GX)||r.headers.set(GX,await e),s(r)}}}var Rp=class extends Error{constructor(e){super(e),this.name="AbortError"}};function lR(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Rp(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var Qke="The delay was aborted.";function Ah(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return lR(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??Qke})}function _A(t){if(yu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function qX(t){return yu(t)}function ch(){return Qu()}var Je=Nu;var VX=Symbol("rawContent");function hR(t){return typ Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!JFe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Vt("InvalidTag",l,Zr(t,i))}let c=HFe(t,i);if(c===!1)return Vt("InvalidAttr","Attributes for '"+A+"' have open quote.",Zr(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Rj(u,e);if(d===!0)s=!0;else return Vt(d.err.code,d.err.msg,Zr(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Vt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Zr(t,o));if(r.length===0)return Vt("InvalidTag","Closing tag '"+A+"' has not been opened.",Zr(t,o));{let l=r.pop();if(A!==l.tagName){let d=Zr(t,l.tagStartPos);return Vt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Zr(t,o))}r.length==0&&(n=!0)}}else return Vt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Zr(t,i));else{let l=Rj(u,e);if(l!==!0)return Vt(l.err.code,l.err.msg,Zr(t,i-u.length+l.err.line));if(n===!0)return Vt("InvalidXml","Multiple possible root nodes found.",Zr(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Dj(t,i);continue}else if(t[i+1]==="?"){if(i=xj(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=qFe(t,i);if(l==-1)return Vt("InvalidChar","char '&' is not expected.",Zr(t,i));i=l}else if(n===!0&&!Tj(t[i]))return Vt("InvalidXml","Extra text at the end",Zr(t,i));t[i]==="<"&&i--}}else{if(Tj(t[i]))continue;return Vt("InvalidChar","char '"+t[i]+"' is not expected.",Zr(t,i))}if(s){if(r.length==1)return Vt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Zr(t,r[0].tagStartPos));if(r.length>0)return Vt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Vt("InvalidXml","Start tag expected.",1);return!0}function Tj(t){return t===" "||t===" "||t===`
`||t==="\r"}function xj(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Vt("InvalidXml","XML declaration allowed only at the start of the document.",Zr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Dj(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var OFe='"',_Fe="'";function HFe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===OFe||t[e]===_Fe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var GFe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Rj(t,e){let r=tQ(t,GFe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Vt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Yp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Vt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Yp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Vt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Yp(r[n]));let i=r[n][2];if(!VFe(i))return Vt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Yp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Vt("InvalidAttr","Attribute '"+i+"' is repeated.",Yp(r[n]))}return!0}function YFe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function qFe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,YFe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Vt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function VFe(t){return hh(t)}function JFe(t){return hh(t)}function Zr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Yp(t){return t.startIndex+t[1].length}var kj=t=>Gp.includes(t)?"__"+t:t,WFe={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:kj};function zFe(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Gp.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(rQ.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Fj(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Fj(!0)}var Mj=function(t){let e=Object.assign({},WFe,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:s,name:n}of r)s&&zFe(s,n);return e.onDangerousProperty===null&&(e.onDangerousProperty=kj),e.processEntities=Fj(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(s=>typeof s=="string"&&s.startsWith("*.")?".."+s.substring(2):s)),e};var nQ;typeof Symbol!="function"?nQ="@@xmlMetadata":nQ=Symbol("XML Node Metadata");var ps=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(eLine truncated
`);let e=new ps("!xml"),r=e,s="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=new Vp(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=Ru(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=YR(this.options.transformTagName,A,"",this.options).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",i=a}else if(t[i+1]==="?"){let a=qR(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new ps(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=Ru(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=n.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=Ru(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=qR(t,i,this.options.removeNSPrefix);if(!a){let w=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${w}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=YR(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let g=r;g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,B={},E;E=iMe(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(B=nMe(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let w="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let k=this.readStopNodeData(t,c,d+1);if(!k)throw new Error(`Unexpected end of ${c}`);i=k.i,w=k.tagContent}let x=new ps(A);p&&(x[":@"]=p),x.add(this.options.textNodeName,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,x,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=YR(this.options.transformTagName,A,u,this.options));let w=new ps(A);p&&(w[":@"]=p),this.addChild(r,w,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let w=new ps(A);p&&(w[":@"]=p),this.addChild(r,w,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let w=new ps(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(w[":@"]=p),this.addChild(r,w,this.readonlyMatcher,C),r=w}s="",i=d}}else s+=t[i];return e.child};function dMe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function hMe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}for(let n of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[n],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,s.maxTotalExpansions&&this.entityExpansionCount>s.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function KR(t,e){let r="";e.format&&e.indentBy.length>0&&(r=QMe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?s.push(new js(o)):o instanceof js&&s.push(o)}let n=new ho;return Oj(t,e,r,n,s)}function Oj(t,e,r,s,n){let i="",o=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=zR(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Hj(A);if(c===void 0)continue;let u=yMe(A[":@"],e);s.push(c,u);let l=wMe(s,n);if(c===e.textNodeName){let B=A[c];l||(B=e.tagValueProcessor(c,B),B=zR(B,e)),o&&(i+=r),i+=B,o=!1,s.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,s.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,s.pop();continue}else if(c[0]==="?"){let B=vj(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${B}?>`,o=!0,s.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let g=vj(A[":@"],e,l),f=r+`<${c}${g}`,p;l?p=_j(A[c],e):p=Oj(A[c],e,d,s,n),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,s.pop()}return i}function yMe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=t[n],s=!0}return s?r:null}function _j(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=Hj(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=bMe(n[":@"],e),a=_j(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function bMe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function Hj(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function vj(t,e,r){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i;r?i=t[n]:(i=e.attributeValueProcessor(n,t[n]),i=zR(i,e)),i===!0&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function wMe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function zR(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function XR(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var NMe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Es(t){if(this.options=Object.assign({},NMe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new js(r)):r instanceof js&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=XR(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=xMe),this.processTextOrObjNode=SMe,this.options.format?(this.indentate=TMe,this.tagEndChar=`>
`,"utf-8")],n=VFe(s);n&&t.headers.set("Content-Length",n),t.body=await Tj(s)}var cm="multipartPolicy",WFe=70,zFe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function KFe(t){if(t.length>WFe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!zFe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Ny(){return{name:cm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?KFe(r):r=GFe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await JFe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Sy(){return ty()}var xj=ZB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ygt=xj.logger;function vn(t){return xj.createClientLogger(t)}var Eo=vn("core-rest-pipeline");function KR(t={}){return ny({logger:Eo.info,...t})}var XR=by;function jR(t={}){return wy(t)}import ZR from"node:os";import ec from"node:process";function Dj(){return"User-Agent"}async function Rj(t){if(ec&&ec.versions){let e=`${ZR.type()} ${ZR.release()}; ${ZR.arch()}`;ec.versions.bun?t.set("Bun",`${ec.versions.bun} (${e})`):ec.versions.deno?t.set("Deno",`${ec.versions.deno} (${e})`):ec.versions.node&&t.set("Node",`${ec.versions.node} (${e})`)}}var Ty="1.24.0";function sMe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function kj(){return Dj()}async function xy(t){let e=new Map;e.set("core-rest-pipeline",Ty),await Rj(e);let r=sMe(e);return t?`${t} ${r}`:r}var Fj=kj(),Mj="userAgentPolicy";function $R(t={}){let e=xy(t.userAgentPrefix);return{name:Mj,async sendRequest(r,s){return r.headers.has(Fj)||r.headers.set(Fj,await e),s(r)}}}var Uj=Symbol("rawContent");function ek(t){return typeof t[Uj]=="function"}function Lj(t){return ek(t)?t[Uj]():t}var Dy=cm;function tk(){let t=Ny();return{name:Dy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)ek(s.body)&&(s.body=Lj(s.body));return t.sendRequest(e,r)}}}var rk=yy;function sk(){return Qy()}function nk(t={}){return ay(t)}function ik(){return Ay()}var um=class extends Error{constructor(e){super(e),this.name="AbortError"}};function ok(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new um(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var dMe="The delay was aborted.";function Uh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return ok(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??dMe})}function tc(t){if(Vu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function vj(t){return Vu(t)}function Lh(){return qu()}var Xe=XB;function rc(t){return VR(t)}function Ak(t,e){return By(t,e)}var Pj="setClientRequestIdPolicy";function ck(t="x-ms-client-request-id"){return{name:Pj,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function uk(t){return cy(t)}function lk(t){return uy(t)}var vh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Oj(t={}){let e=new dk(t.parentContext);return t.span&&(e=e.setValue(vh.span,t.span)),t.namespace&&(e=e.setValue(vh.namespace,t.namespace)),e}var dk=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Hj=Ee(_j(),1),ky=Hj.state;function hMe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function gMe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:hMe(),tracingContext:Oj({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function lm(){return ky.instrumenterImplementation||(ky.instrumenterImplementation=gMe()),ky.instrumenterImplementation}function dm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=lm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(vh.namespace)||( Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!LUe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Jt("InvalidTag",l,$r(t,i))}let c=RUe(t,i);if(c===!1)return Jt("InvalidAttr","Attributes for '"+A+"' have open quote.",$r(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=yZ(u,e);if(d===!0)s=!0;else return Jt(d.err.code,d.err.msg,$r(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Jt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",$r(t,o));if(r.length===0)return Jt("InvalidTag","Closing tag '"+A+"' has not been opened.",$r(t,o));{let l=r.pop();if(A!==l.tagName){let d=$r(t,l.tagStartPos);return Jt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",$r(t,o))}r.length==0&&(n=!0)}}else return Jt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",$r(t,i));else{let l=yZ(u,e);if(l!==!0)return Jt(l.err.code,l.err.msg,$r(t,i-u.length+l.err.line));if(n===!0)return Jt("InvalidXml","Multiple possible root nodes found.",$r(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=BZ(t,i);continue}else if(t[i+1]==="?"){if(i=IZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=MUe(t,i);if(l==-1)return Jt("InvalidChar","char '&' is not expected.",$r(t,i));i=l}else if(n===!0&&!CZ(t[i]))return Jt("InvalidXml","Extra text at the end",$r(t,i));t[i]==="<"&&i--}}else{if(CZ(t[i]))continue;return Jt("InvalidChar","char '"+t[i]+"' is not expected.",$r(t,i))}if(s){if(r.length==1)return Jt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",$r(t,r[0].tagStartPos));if(r.length>0)return Jt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Jt("InvalidXml","Start tag expected.",1);return!0}function CZ(t){return t===" "||t===" "||t===`
`||t==="\r"}function IZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Jt("InvalidXml","XML declaration allowed only at the start of the document.",$r(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function BZ(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var xUe='"',DUe="'";function RUe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===xUe||t[e]===DUe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var kUe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function yZ(t,e){let r=Hy(t,kUe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",ym(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",ym(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Jt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",ym(r[n]));let i=r[n][2];if(!UUe(i))return Jt("InvalidAttr","Attribute '"+i+"' is an invalid name.",ym(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Jt("InvalidAttr","Attribute '"+i+"' is repeated.",ym(r[n]))}return!0}function FUe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function MUe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,FUe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Jt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function UUe(t){return Dk(t)}function LUe(t){return Dk(t)}function $r(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function ym(t){return t.startIndex+t[1].length}var QZ={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},bZ={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},wZ={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaLine truncated
`);let e=new Bs("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new wm(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=Yh(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=Pk(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(c===63){let u=Ok(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Bs(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Yh(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=Yh(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,d),a=u+2}else{let u=Ok(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=Pk(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let I=r;I&&n.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,b={},T;T=ALe(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(b=aLe(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=a;if(this.isCurrentNodeStopNode){let M="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let _=this.readStopNodeData(t,d,p+1);if(!_)throw new Error(`Unexpected end of ${d}`);a=_.i,M=_.tagContent}let F=new Bs(l);C&&(F[":@"]=C),F.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,R)}else{if(m){({tagName:l,tagExp:h}=Pk(n.transformTagName,l,h,n));let M=new Bs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let M=new Bs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Bs(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),r=M}s="",a=p}}}else s+=t[a];return e.child};function gLe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function fLe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function pLe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function mLe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function ELe(t,e,r=">"){Line truncated
`;function NLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Vk(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function jZ(t,e,r,s,n){return!r.sanitizeName||Zu(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function qk(t,e){let r="";e.format&&(r=wLe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new sn(a)):a instanceof sn&&s.push(a)}let n=NLe(t,e),i=new Bo;return ZZ(t,e,r,i,s,n)}function ZZ(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let A=t.toString();return A=Yk(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=Vk(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:jZ(u,!1,e,s,i),h=SLe(c[":@"],e);s.push(d,h);let f=xLe(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=Yk(b,e)),a&&(o+=r),o+=b,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let b=c[u][0][e.textNodeName],T=Zy(b);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],T=jy(b);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=XZ(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${b}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=XZ(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=$Z(c[u],e):C=ZZ(c[u],e,p,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function SLe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=ic(t[n]),s=!0}return s?r:null}function $Z(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=Vk(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=TLe(n[":@"],e),a=$Z(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function TLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${ic(n)}"`}return r}function Vk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function XZ(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:jZ(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=Yk(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${ic(c)}"`}return i}function xLe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function Yk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function Jk(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var DLe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Qs(t){if(this.options=Object.assign({},DLe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new sn(r)):r instanceof sn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Es.prototype.build=function(t){if(this.options.preserveOrder)return KR(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ho;return this.j2x(t,0,e).val}};Es.prototype.j2x=function(t,e,r){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(n+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?n+="":a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))s+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?n+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:n+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let g=this.j2x(d,e+1,r);r.pop(),c+=g.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=g.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let g=this.options.tagValueProcessor(a,d);g=this.replaceEntitiesValue(g),c+=g}else{r.push(a);let g=this.checkStopNode(r);if(r.pop(),g){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),n+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)s+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else n+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:s,val:n}};Es.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function SMe(t,e,r,s){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,s);return s.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,s):this.buildObjectNode(o.val,e,o.attrStr,r)}Es.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=s[n],r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=t[s],r=!0)}return r?e:null};Es.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let n of s)if(typeof n=="string"||typeof n=="number")e+=`<${r}>${n}</${r}>`;else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),i=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${n}</${r}>`}else e+=`<${r}>${s}</${r}>`}return e};Es.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function RLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function Wk(t,e,r,s,n){return!r.sanitizeName||Zu(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Qs.prototype.build=function(t){if(this.options.preserveOrder)return qk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Bo,r=RLe(t,this.options);return this.j2x(t,0,e,r).val}};Qs.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:Wk(A,!1,this.options,r,s);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=Wk(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[A],a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+t[A]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[A];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",h="";for(let f=0;f<l;f++){let p=t[A][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,s);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let h=0;h<d;h++){let f=Wk(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+t[A][l[h]],a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};Qs.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ic(e)+'"'};function kLe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}Qs.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=ic(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=ic(t[s]),r=!0)}return r?e:null};Qs.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(me.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===me.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(me.PREFIX_FOR_STORAGE));r.sort((n,i)=>fQ(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=dQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=hQ(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Dt=class extends Fu{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Xp(e,r,this)}computeHMACSHA256(e){return OMe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Mu=class extends Error{constructor(e){super(e),this.name="AbortError"}};var ir=kn("storage-common");var Fn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fn||(Fn={}));var VA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_Me=new Mu("The operation was aborted."),jp=class extends go{retryOptions;constructor(e,r,s=VA){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:VA.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):VA.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:VA.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:VA.maxRetryDelayInMs):VA.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:VA.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:VA.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=lQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=qA(n.url,Da.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(ir.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(ir.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return ir.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return ir.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return ir.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return ir.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(me.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(ir.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Fn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return ir.info(`RetryPolicy: Delay for ${n}ms`),gQ(n,s,_Me)}};var Zp=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new jp(e,r,this.retryOptions)}};var HMe="storageBrowserPolicy";function Jj(){return{name:HMe,async sendRequest(t,e){return Je||((t.method==="GET"||t.method==="HEAD")&&(t.url=qA(t.url,Da.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(me.COOKIE),t.headers.delete(me.CONTENT_LENGTH)),e(t)}}}var GMe="StorageCorrectContentLengthPolicy";function Wj(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(me.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:GMe,async sendRequest(e,r){return t(e),r(e)}}}var YMe="storageRetryPolicy",fh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qMe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],VMe=new Mu("The operation was aborted.");function zj(t={}){let e=t.retryPolicyType??fh.retryPolicyType,r=t.maxTries??fh.maxTries,s=t.retryDelayInMs??fh.retryDelayInMs,n=t.maxRetryDelayInMs??fh.maxRetryDelayInMs,i=t.secondaryHost??fh.secondaryHost,o=t.tryTimeoutInMs??fh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return ir.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let g of qMe)if(d.name.toUpperCase().includes(g)||d.message.toUpperCase().inclu Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===pe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE));r.sort((n,i)=>cQ(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=oQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=aQ(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Dt=class extends tl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Dm(e,r,this)}computeHMACSHA256(e){return qLe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rl=class extends Error{constructor(e){super(e),this.name="AbortError"}};var or=vn("storage-common");var Pn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Pn||(Pn={}));var ac={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},VLe=new rl("The operation was aborted."),Rm=class extends yo{retryOptions;constructor(e,r,s=ac){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:ac.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):ac.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:ac.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:ac.maxRetryDelayInMs):ac.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:ac.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:ac.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=iQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=oc(n.url,Pa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(or.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(or.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return or.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return or.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return or.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return or.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(pe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(or.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Pn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Pn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return or.info(`RetryPolicy: Delay for ${n}ms`),AQ(n,s,VLe)}};var km=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Rm(e,r,this.retryOptions)}};var JLe="storageBrowserPolicy";function n$(){return{name:JLe,async sendRequest(t,e){return Xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=oc(t.url,Pa.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(pe.COOKIE),t.headers.delete(pe.CONTENT_LENGTH)),e(t)}}}var WLe="StorageCorrectContentLengthPolicy";function i$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:WLe,async sendRequest(e,r){return t(e),r(e)}}}var zLe="storageRetryPolicy",Vh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},KLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],XLe=new rl("The operation was aborted.");function o$(t={}){let e=t.retryPolicyType??Vh.retryPolicyType,r=t.maxTries??Vh.maxTries,s=t.retryDelayInMs??Vh.retryDelayInMs,n=t.maxRetryDelayInMs??Vh.maxRetryDelayInMs,i=t.secondaryHost??Vh.secondaryHost,o=t.tryTimeoutInMs??Vh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return or.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of KLe)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().inclu Line truncated
`)+`
`+s(i)+n(i),a=JMe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(me.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===me.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(me.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>fQ(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=dQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=hQ(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:WMe,async sendRequest(i,o){return e(i),o(i)}}}var zMe="storageRequestFailureDetailsParserPolicy";function Kj(){return{name:zMe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as KMe}from"node:crypto";var pQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return KMe("sha256",this.key).update(e,"utf8").digest("base64")}};var mQ="12.31.0",EQ="2026-02-06";var CQ="https://storage.azure.com/.default",Ra={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var wi="",rk="*",XMe=1*1024*1024;var jMe=4*XMe;var Xj="AES256",jj="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Zj=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],$j=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],eZ="BlobUsesCustomerSpecifiedEncryption",tZ="BlobDoesNotUseCustomerSpecifiedEncryption",rZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function ka(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var $p=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Jt(t,e={}){t||(t=new It);let r=new $p([],e);return r._credential=t,r}function ZMe(t){let e=[$Me,sZ,eUe,tUe,rUe,sUe,iUe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>nUe(n));return{wrappedPolicies:OR(r),afterRetry:s}}}}function sk(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?_R(e):ek(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${mQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Lp({...r,loggingOptions:{additionalAllowedHeaderNames:Zj,additionalAllowedQueryParameters:$j,logger:oQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:iQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:ZR,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:fR}),n.addPolicy(Wj()),n.addPolicy(zj(r.retryOptions),{phase:"Retry"}),n.addPolicy(Kj()),n.addPolicy(Jj());let a=ZMe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=nk(t);Ks(A)?n.addPolicy(lh({credential:A,scopes:r.audience??CQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Di(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function $Le(t,e){if(t=Yu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function ePe(t,e){if(t=Yu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function tPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function rPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function sPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function nPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Gu(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Yu(t){let e=t.version?t.version:EQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var lm=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=ch()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==wi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-acquireLease",r,async s=>ne(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==wi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==wi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==wi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-releaseLease",e,async r=>ne(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==wi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==wi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};wh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ju=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};Ju.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Cm=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var SPe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},RU=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function p$(t,e,r){return SPe(this,void 0,void 0,function*(){var s;let n=new Oa(t),i=n.getBlockBlobClient(),o=new RU((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),P(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new hy(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw yt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as E$ from"buffer";import*as Fo from"fs";import*as C$ from"stream";import*as I$ from"util";var gy=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function fy(t){return t?t>=200&&t<300:!1}function TPe(t){return t?t>=500:!0}function xPe(t){return t?[Tt.BadGateway,Tt.ServiceUnavailable,Tt.GatewayTimeout].includes(t):!1}function DPe(t){return gy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function m$(t,e,r){return gy(this,arguments,void 0,function*(s,n,i,o=sB,a=nB,A=void 0){let c="",u=1;for(;u<=o;){let l,d,g=!1;try{l=yield n()}catch(f){A&&(l=A(f)),g=!0,c=f.message}if(l&&(d=i(l),!TPe(d)))return l;if(d&&(g=xPe(d),c=`Cache service responded with ${d}`),P(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!g){P(`${s} - Error is not retryable`);break}yield DPe(a),u++}throw Error(`${s} failed: ${c}`)})}function Im(t,e){return gy(this,arguments,void 0,function*(r,s,n=sB,i=nB){return yield m$(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof so)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Nh(t,e){return gy(this,arguments,void 0,function*(r,s,n=sB,i=nB){return yield m$(r,s,o=>o.message.statusCode,n,i)})}var vn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function RPe(t,e){return vn(this,void 0,void 0,function*(){yield I$.promisify(C$.pipeline)(t.message,e)})}var py=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,P(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r= Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])P(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function UU(t,e,r){return Is(this,void 0,void 0,function*(){let s=new LPe(t),n=b$(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Q$(t,e,n):n.concurrentBlobDownloads?yield B$(t,e,n):yield my(t,e):yield my(t,e)})}function R$(t,e,r){return Is(this,void 0,void 0,function*(){let s=MU(),n=$d(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Im("reserveCache",()=>Is(this,void 0,void 0,function*(){return s.postJson(Qm("caches"),i)}))})}function x$(t,e){return`bytes ${t}-${e}/*`}function _Pe(t,e,r,s,n){return Is(this,void 0,void 0,function*(){P(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${x$(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":x$(s,n)},o=yield Nh(`uploadChunk (start: ${s}, end: ${n})`,()=>Is(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!fy(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function HPe(t,e,r,s){return Is(this,void 0,void 0,function*(){let n=oo(r),i=Qm(`caches/${e.toString()}`),o=Sh.openSync(r,"r"),a=kU(s),A=BD("uploadConcurrency",a.uploadConcurrency),c=BD("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];P("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Is(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),g=l,f=l+d-1;l+=c,yield _Pe(t,i,()=>Sh.createReadStream(r,{fd:o,start:g,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),g,f)}})))}finally{Sh.closeSync(o)}})}function GPe(t,e,r){return Is(this,void 0,void 0,function*(){let s={size:r};return yield Im("commitCache",()=>Is(this,void 0,void 0,function*(){return t.postJson(Qm(`caches/${e.toString()}`),s)}))})}function LU(t,e,r,s){return Is(this,void 0,void 0,function*(){if(kU(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield p$(r,e,s)}else{let i=MU();P("Upload cache"),yield HPe(i,t,e,s),P("Commiting cache");let o=oo(e);he(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield GPe(i,t,o);if(!fy(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);he("Cache saved successfully")}})}var wee=fe(Eee(),1),Kt=fe(zt(),1),en=fe(zt(),1),ju=fe(zt(),1),Zu=fe(zt(),1),$u=fe(zt(),1);var DL=fe(zt(),1),RL=fe(zt(),1),Qee=fe(zt(),1),yee=fe(zt(),1),bee=fe(zt(),1);var SL=fe(zt(),1),TL=fe(zt(),1),Cee=fe(zt(),1),Iee=fe(zt(),1),Bee=fe(zt(),1),xL=class extends Bee.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Iee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Cee.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?TL.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,SL.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,SL.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?TL.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},nb=new xL;var kL=class extends bee.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>nb}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,yee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Qee.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(nb.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?RL.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,DL.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)nb.internalBinaryWrite(e.scope[i],r.tag(2,DL.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?RL.UnknownFieldHandler.onWrite:n)(thi Line truncated
`));let s=yield WL(r,"create");yield zL(s,t)})}var qh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Fi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yh=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ab=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function xee(t){if(!t||t.length===0)throw new Fi("Path Validation Error: At least one directory or file path is required")}function jL(t){if(t.length>512)throw new Fi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Fi(`Key Validation Error: ${t} cannot contain commas.`)}function Dee(){return Bm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Ree(t,e,r,s){return qh(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=Bm();return P(`Cache service version: ${c}`),xee(n),c==="v2"?yield i8e(n,i,o,a,A):yield n8e(n,i,o,a,A)})}function n8e(t,e,r,s){return qh(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(P("Resolved Keys:"),P(JSON.stringify(c)),c.length>10)throw new Fi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)jL(d);let u=yield wp(),l="";try{let d=yield D$(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return he("Lookup only - skipping download"),d.cacheKey;l=vm.join(yield yp(),vA(u)),P(`Archive Path: ${l}`),yield UU(d.archiveLocation,l,a),FA()&&(yield Pm(l,u));let g=oo(l);return he(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),yield KL(l,u),he("Cache restored successfully"),d.cacheKey}catch(d){let g=d;if(g.name===Fi.name)throw d;g instanceof so&&typeof g.statusCode=="number"&&g.statusCode>=500?hu(`Failed to restore: ${d.message}`):yt(`Failed to restore: ${d.message}`)}finally{try{yield bp(l)}catch(d){P(`Failed to delete archive: ${d}`)}}})}function i8e(t,e,r,s){return qh(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(P("Resolved Keys:"),P(JSON.stringify(c)),c.length>10)throw new Fi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)jL(l);let u="";try{let l=JL(),d=yield wp(),g={key:i,restoreKeys:o,version:$d(n,d,A)},f=yield l.GetCacheEntryDownloadURL(g);if(!f.ok){P(`Cache not found for version ${g.version} of keys: ${c.join(", ")}`);return}if(g.key!==f.matchedKey?he(`Cache hit for restore-key: ${f.matchedKey}`):he(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return he("Lookup only - skipping download"),f.matchedKey;u=vm.join(yield yp(),vA(d)),P(`Archive path: ${u}`),P(`Starting download of archive to: ${u}`),yield UU(f.signedDownloadUrl,u,a);let B=oo(u);return he(`Cache Size: ~${Math.round(B/(1024*1024))} MB (${B} B)`),FA()&&(yield Pm(u,d)),yield KL(u,d),he("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Fi.name)throw l;d instanceof so&&typeof d.statusCode=="number"&&d.statusCode>=500?hu(`Failed to restore: ${l.message}`):yt(`Failed to restore: ${l.message}`)}finally{try{u&&(yield bp(u))}catch(l){P(`Failed to delete archive: ${l}`)}}})}function kee(t,e,r){return qh(this,arguments,void 0,function*(s,n,i,o=!1){let a=Bm();return P(`Cache service version: ${a}`),xee(s),jL(n),a==="v2"?yield a8e(s,n,i,o):yield o8e(s,n,i,o)})}function o8e(t,e,r){return qh(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield wp(),g=-1,f=yield ID(s);if(P("Cache Paths:"),P(`${JSON.stringify(f)}`),f.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.");let p=yield yp(),B=vm.join(p,vA(d));P(`Archive Path: ${B}`);try{yield XL(p,f,d),FA()&&(yield Pm(B,d));let E=10*1024*1024*1024,C=oo(B);if(P(`File Size: ${C}`),C>E&&!FU())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);P("Reserving Cache");let w=yield R$(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)g=(A=w?.result)===null||A===void 0?void 0:A.cacheId;else throw w?.statusCode===400?new Error((u=(c=w?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Yh(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=w?.error)===null||l===void 0?void 0:l.message}`);P(`Saving Cache (ID: ${g})`),yield LU(g,B,"",i)}catch(E){let C=E;if(C.name===Fi.name)throw E;C.name== Line truncated
`+s(i)+n(i),a=jLe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(pe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===pe.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>cQ(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=oQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=aQ(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:ZLe,async sendRequest(i,o){return e(i),o(i)}}}var $Le="storageRequestFailureDetailsParserPolicy";function a$(){return{name:$Le,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as eve}from"node:crypto";var uQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return eve("sha256",this.key).update(e,"utf8").digest("base64")}};var lQ="12.31.0",dQ="2026-02-06";var hQ="https://storage.azure.com/.default",Oa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ri="",$k="*",tve=1*1024*1024;var rve=4*tve;var A$="AES256",c$="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",u$=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],l$=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],d$="BlobUsesCustomerSpecifiedEncryption",h$="BlobDoesNotUseCustomerSpecifiedEncryption",g$=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Fm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Wt(t,e={}){t||(t=new yt);let r=new Fm([],e);return r._credential=t,r}function sve(t){let e=[nve,f$,ive,ove,ave,Ave,uve];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>cve(n));return{wrappedPolicies:Tk(r),afterRetry:s}}}}function eF(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?xk(e):jk(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${lQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=fm({...r,loggingOptions:{additionalAllowedHeaderNames:u$,additionalAllowedQueryParameters:l$,logger:eQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:$y,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Kk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:rk}),n.addPolicy(i$()),n.addPolicy(o$(r.retryOptions),{phase:"Retry"}),n.addPolicy(a$()),n.addPolicy(n$());let a=sve(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=tF(t);tn(A)?n.addPolicy(Ph({credential:A,scopes:r.audience??hQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Li(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function n3e(t,e){if(t=ll(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function i3e(t,e){if(t=ll(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function o3e(t,e){if(t=ll(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function a3e(t,e){if(t=ll(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function A3e(t,e){if(t=ll(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function c3e(t,e){if(t=ll(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function ul(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ll(t){let e=t.version?t.version:dQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Vm=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Lh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-acquireLease",r,async s=>ne(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-releaseLease",e,async r=>ne(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};tg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var gl=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More 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`),this.name="UsageError"}};gl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var $m=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var k3e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},TL=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);de(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Tee(t,e,r){return k3e(this,void 0,void 0,function*(){var s;let n=new Wa(t),i=n.getBlockBlobClient(),o=new TL((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),U(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new ab(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Dee from"buffer";import*as Ho from"fs";import*as Ree from"stream";import*as kee from"util";var Ab=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function cb(t){return t?t>=200&&t<300:!1}function F3e(t){return t?t>=500:!0}function M3e(t){return t?[xt.BadGateway,xt.ServiceUnavailable,xt.GatewayTimeout].includes(t):!1}function U3e(t){return Ab(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function xee(t,e,r){return Ab(this,arguments,void 0,function*(s,n,i,o=VB,a=JB,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!F3e(d)))return l;if(d&&(h=M3e(d),c=`Cache service responded with ${d}`),U(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){U(`${s} - Error is not retryable`);break}yield U3e(a),u++}throw Error(`${s} failed: ${c}`)})}function e0(t,e){return Ab(this,arguments,void 0,function*(r,s,n=VB,i=JB){return yield xee(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof lo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function rg(t,e){return Ab(this,arguments,void 0,function*(r,s,n=VB,i=JB){return yield xee(r,s,o=>o.message.statusCode,n,i)})}var Yn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function L3e(t,e){return Yn(this,void 0,void 0,function*(){yield kee.promisify(Ree.pipeline)(t.message,e)})}var ub=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,U(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);de(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])U(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function kL(t,e,r){return ws(this,void 0,void 0,function*(){let s=new H3e(t),n=Lee(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Mee(t,e,n):n.concurrentBlobDownloads?yield Fee(t,e,n):yield lb(t,e):yield lb(t,e)})}function Yee(t,e,r){return ws(this,void 0,void 0,function*(){let s=RL(),n=Sh(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield e0("reserveCache",()=>ws(this,void 0,void 0,function*(){return s.postJson(r0("caches"),i)}))})}function Hee(t,e){return`bytes ${t}-${e}/*`}function V3e(t,e,r,s,n){return ws(this,void 0,void 0,function*(){U(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${Hee(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Hee(s,n)},o=yield rg(`uploadChunk (start: ${s}, end: ${n})`,()=>ws(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!cb(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function J3e(t,e,r,s){return ws(this,void 0,void 0,function*(){let n=fo(r),i=r0(`caches/${e.toString()}`),o=sg.openSync(r,"r"),a=xL(s),A=ER("uploadConcurrency",a.uploadConcurrency),c=ER("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];U("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ws(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield V3e(t,i,()=>sg.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{sg.closeSync(o)}})}function W3e(t,e,r){return ws(this,void 0,void 0,function*(){let s={size:r};return yield e0("commitCache",()=>ws(this,void 0,void 0,function*(){return t.postJson(r0(`caches/${e.toString()}`),s)}))})}function FL(t,e,r,s){return ws(this,void 0,void 0,function*(){if(xL(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Tee(r,e,s)}else{let i=RL();U("Upload cache"),yield J3e(i,t,e,s),U("Commiting cache");let o=fo(e);de(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield W3e(i,t,o);if(!cb(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);de("Cache saved successfully")}})}var vte=Ee(Dte(),1),Xt=Ee(Kt(),1),an=Ee(Kt(),1),Cl=Ee(Kt(),1),Il=Ee(Kt(),1),Bl=Ee(Kt(),1);var Sv=Ee(Kt(),1),Tv=Ee(Kt(),1),Mte=Ee(Kt(),1),Ute=Ee(Kt(),1),Lte=Ee(Kt(),1);var bv=Ee(Kt(),1),wv=Ee(Kt(),1),Rte=Ee(Kt(),1),kte=Ee(Kt(),1),Fte=Ee(Kt(),1),Nv=class extends Fte.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,kte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Rte.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?wv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,bv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,bv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?wv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Zb=new Nv;var xv=class extends Lte.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>Zb}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Ute.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Mte.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(Zb.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Tv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Sv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Zb.internalBinaryWrite(e.scope[i],r.tag(2,Sv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Tv.UnknownFieldHandler.onWrit Line truncated
`));let s=yield qv(r,"create");yield Vv(s,t)})}var Ig=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Oi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Cg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},t1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Hte(t){if(!t||t.length===0)throw new Oi("Path Validation Error: At least one directory or file path is required")}function zv(t){if(t.length>512)throw new Oi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Oi(`Key Validation Error: ${t} cannot contain commas.`)}function Gte(){return t0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Yte(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=t0();return U(`Cache service version: ${c}`),Hte(n),c==="v2"?yield uOe(n,i,o,a,A):yield cOe(n,i,o,a,A)})}function cOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)zv(d);let u=yield rm(),l="";try{let d=yield Gee(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return de("Lookup only - skipping download"),d.cacheKey;l=E0.join(yield em(),jA(u)),U(`Archive Path: ${l}`),yield kL(d.archiveLocation,l,a),qA()&&(yield m0(l,u));let h=fo(l);return de(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Jv(l,u),de("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Oi.name)throw d;h instanceof lo&&typeof h.statusCode=="number"&&h.statusCode>=500?Uu(`Failed to restore: ${d.message}`):ht(`Failed to restore: ${d.message}`)}finally{try{yield tm(l)}catch(d){U(`Failed to delete archive: ${d}`)}}})}function uOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)zv(l);let u="";try{let l=Yv(),d=yield rm(),h={key:i,restoreKeys:o,version:Sh(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){U(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?de(`Cache hit for restore-key: ${f.matchedKey}`):de(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return de("Lookup only - skipping download"),f.matchedKey;u=E0.join(yield em(),jA(d)),U(`Archive path: ${u}`),U(`Starting download of archive to: ${u}`),yield kL(f.signedDownloadUrl,u,a);let I=fo(u);return de(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),qA()&&(yield m0(u,d)),yield Jv(u,d),de("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Oi.name)throw l;d instanceof lo&&typeof d.statusCode=="number"&&d.statusCode>=500?Uu(`Failed to restore: ${l.message}`):ht(`Failed to restore: ${l.message}`)}finally{try{u&&(yield tm(u))}catch(l){U(`Failed to delete archive: ${l}`)}}})}function qte(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){let a=t0();return U(`Cache service version: ${a}`),Hte(s),zv(n),a==="v2"?yield dOe(s,n,i,o):yield lOe(s,n,i,o)})}function lOe(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield rm(),h=-1,f=yield mR(s);if(U("Cache Paths:"),U(`${JSON.stringify(f)}`),f.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.");let p=yield em(),I=E0.join(p,jA(d));U(`Archive Path: ${I}`);try{yield Wv(p,f,d),qA()&&(yield m0(I,d));let m=10*1024*1024*1024,C=fo(I);if(U(`File Size: ${C}`),C>m&&!DL())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);U("Reserving Cache");let b=yield Yee(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=b?.result)===null||a===void 0)&&a.cacheId)h=(A=b?.result)===null||A===void 0?void 0:A.cacheId;else throw b?.statusCode===400?new Error((u=(c=b?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Cg(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=b?.error)===null||l===void 0?void 0:l.message}`);U(`Saving Cache (ID: ${h})`),yield FL(h,I,"",i)}catch(m){let C=m;if(C.name===Oi.name)throw m;C.name Line truncated
<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,n=Lee(),i=_7(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")yt(g8e(o));else throw o}}function g8e(t){let e=`Failed to generate PR comment.
${t}`,n=eP(),i=PD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ht(IOe(o));else throw o}}function IOe(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function f8e(t){return`${m8e()}
${C8e(t)}`}function p8e(){let t=Uee();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function m8e(){let t=Mee();return t.length===0?"":`
`:e}function BOe(t){return`${QOe()}
${wOe(t)}`}function yOe(){let t=Wte();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function QOe(){let t=Jte();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${tP()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${Zv()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${E8e(e)}</li>`).join("")}
${t.map(e=>`<li>${bOe(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function E8e(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function C8e(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function bOe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function wOe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -262,38 +299,43 @@ This job uses deprecated functionality from the <code>${tP()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>B8e(e)).join("")}
</tr>${t.map(e=>SOe(e)).join("")}
</table>
`}function I8e(t){return t.some(e=>e.buildFailed)}function B8e(t){return`
`}function NOe(t){return t.some(e=>e.buildFailed)}function SOe(t){return`
<tr>
<td>${Pee(t.rootProjectName,30)}</td>
<td>${Pee(t.requestedTasks,60)}</td>
<td>${Xte(t.rootProjectName,30)}</td>
<td>${Xte(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${Q8e(t)}</td>
<td>${y8e(t)}</td>
</tr>`}function Q8e(t){return t.buildFailed?":x:":":white_check_mark:"}function y8e(t){return t.buildScanFailed?nP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?nP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):nP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function nP({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function Pee(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var Oee=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Gn from"fs";import*as Ga from"path";function _ee(){return Gee().map(e=>{let r=Gn.readFileSync(e,"utf8"),s=JSON.parse(r);return N8e(e,s),s})}function Hee(){Gee().forEach(T8e)}function Gee(){let t=Ga.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Gn.existsSync(t)?Gn.readdirSync(t).map(e=>Ga.resolve(t,e)).filter(e=>Ga.extname(e)===".json"&&!S8e(e)):[]}function N8e(t,e){let r=Ga.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Gn.existsSync(r))return;let s=Ga.resolve(r,Ga.basename(t));if(Gn.existsSync(s)){let n=Gn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function S8e(t){let e=`${t}.processed`;return Gn.existsSync(e)}function T8e(t){let e=`${t}.processed`;Gn.writeFileSync(e,"")}import*as Jee from"fs";import*as Wee from"path";import{pathToFileURL as R8e}from"url";import*as oP from"path";var Yee="BASIC_CACHE_PRIMARY_KEY",iP="BASIC_CACHE_RESTORED_KEY",x8e="setup-java",qee=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],db=class{async restore(e,r){let s=Vee(e),n=await D8e();np(Yee,n);try{let i=await Ree(s,n);i?(np(iP,i),he(`Basic caching restored from cache key: ${i}`)):he("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){yt(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){if(s.readOnly){let a=MA(iP);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let n=MA(Yee);if(MA(iP)===n)return he(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),`Basic caching restored entry with key \`${n}\`. Save was skipped.`;let o=Vee(e);try{return await kee(o,n),he(`Basic caching saved entry with key: ${n}`),`Basic caching saved entry with key \`${n}\`.`}catch(a){return yt(`Basic caching failed to save entry with key \`${n}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Vee(t){return[oP.join(t,"caches"),oP.join(t,"wrapper")]}async function D8e(){let t=await CW(qee.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${qee}], make sure you have checked out the target repository`);return`${x8e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var k8e=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,F8e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",M8e=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,U8e="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",L8e=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,AP=class{async restore(e,r){}async save(e,r,s){return k8e}},hb=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,s){return`${await this.delegate.save(e,r,s)}
${this.summary}`}};async function zee(t){if(t.isCacheDisabled())return aP("Cache is disabled: will not restore state from previous builds."),new AP;if(t.getCacheProvider()==="basic")return aP(U8e),new hb(new db,L8e);aP(F8e);let e=await P8e();return t.isCacheLicenseAccepted()?e:new hb(e,M8e)}async function P8e(){let t=v8e();return await import(R8e(t).href)}function v8e(){let t=import.meta.dirname,e=Wee.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Jee.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function aP(t){console.info(t)}import*as $ee from"util";var V8e=fe(Zee(),1);import*as cP from"fs";var fwt=$ee.promisify(cP.readdir);var W8e={_useHtmlParser2:!1};function Vh(t,e){if(!t)return e??W8e;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var FP={};li(FP,{contains:()=>Tb,extract:()=>H4e,html:()=>P4e,merge:()=>Qte,parseHTML:()=>O4e,root:()=>_4e,text:()=>ol,xml:()=>v4e});var sc={};li(sc,{DocumentPosition:()=>Vn,append:()=>C4e,appendChild:()=>E4e,compareDocumentPosition:()=>Ete,existsOne:()=>pte,filter:()=>Xh,find:()=>bb,findAll:()=>y4e,findOne:()=>wb,findOneChild:()=>Q4e,getAttributeValue:()=>g4e,getChildren:()=>Kh,getElementById:()=>S4e,getElements:()=>N4e,getElementsByClassName:()=>T4e,getElementsByTagName:()=>il,getElementsByTagType:()=>x4e,getFeed:()=>kP,getInnerHTML:()=>h4e,getName:()=>p4e,getOuterHTML:()=>gte,getParent:()=>fte,getSiblings:()=>DP,getText:()=>Bb,hasAttrib:()=>f4e,hasChildren:()=>st,innerText:()=>qm,isCDATA:()=>Jh,isComment:()=>nl,isDocument:()=>qn,isTag:()=>Z,isText:()=>ys,nextElementSibling:()=>Qb,prepend:()=>B4e,prependChild:()=>I4e,prevElementSibling:()=>yb,removeElement:()=>Va,removeSubsets:()=>D4e,replaceElement:()=>m4e,testElement:()=>w4e,textContent:()=>qa,uniqueSort:()=>tc});var Yn={};li(Yn,{CDATA:()=>EP,Comment:()=>gP,Directive:()=>hP,Doctype:()=>CP,ElementType:()=>Le,Root:()=>lP,Script:()=>fP,Style:()=>pP,Tag:()=>mP,Text:()=>dP,isTag:()=>uP});var Le;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Le||(Le={}));function uP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var lP=Le.Root,dP=Le.Text,hP=Le.Directive,gP=Le.Comment,fP=Le.Script,pP=Le.Style,mP=Le.Tag,EP=Le.CDATA,CP=Le.Doctype;var gb=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Wh(this,e)}},_m=class extends gb{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Oo=class extends _m{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},tl=class extends _m{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},rl=class extends _m{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},Hm=class extends gb{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},Gm=class extends Hm{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},rn=class extends Hm{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},sl=class extends Hm{constructor(e,r,s=[],n=e==="script"?Le.Script:e==="style"?Le.Style:Le.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}})}};function Z(t){return uP(t)}function Jh(t){return t.type===Le.CDATA}function ys(t){return t.type===Le.Text}function nl(t){return t.type===Le.Comment}function fb(t){return t.type===Le.Directive}function qn(t){return t.type===Le.Root}function st(t){return Object.prototype.hasOwnProperty.call(t,"children")}function Wh(t,e=!1){let r;if(ys(t))r=new Oo(t.data);else if(nl(t))r=new tl(t.data);else if(Z(t)){let s=e?IP(t.children):[],n=new sl(t.name,{...t.attribs},s);s.forEach(i=>i.parent=n),t.namespace!=null&&(n.namespace=t.namespace),t["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=n}else if(Jh(t)){let s=e?IP(t.children):[],n=new Gm(s);s.forEach(i=>i.parent=n),r=n}else if(q Line truncated
`:Bb(t.children):Jh(t)?Bb(t.children):ys(t)?t.data:""}function qa(t){return Array.isArray(t)?t.map(qa).join(""):st(t)&&!nl(t)?qa(t.children):ys(t)?t.data:""}function qm(t){return Array.isArray(t)?t.map(qm).join(""):st(t)&&(t.type===Le.Tag||Jh(t))?qm(t.children):ys(t)?t.data:""}function Kh(t){return st(t)?t.children:[]}function fte(t){return t.parent||null}function DP(t){let e=fte(t);if(e!=null)return Kh(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function g4e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function f4e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function p4e(t){return t.name}function Qb(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function yb(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function Va(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function m4e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function E4e(t,e){if(Va(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function C4e(t,e){Va(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function I4e(t,e){if(Va(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function B4e(t,e){Va(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Xh(t,e,r=!0,s=1/0){return bb(t,Array.isArray(e)?e:[e],r,s)}function bb(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Q4e(t,e){return e.find(t)}function wb(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&st(i)&&i.children.length>0){let o=wb(t,i.children,!0);if(o)return o}}return null}function pte(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&pte(t,r.children))}function y4e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Z(i)&&t(i)&&r.push(i),st(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var Nb={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>ys(e)&&t(e.data):e=>ys(e)&&e.data===t}};function RP(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function b4e(t,e){return r=>t(r)||e(r)}function mte(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(Nb,r)?Nb[r](s):RP(r,s)});return e.length===0?null:e.reduce(b4e)}function w4e(t,e){let r=mte(t);return r?r(e):!0}function N4e(t,e,r,s=1/0){let n=mte(t);return n?Xh(n,e,r,s):[]}function S4e(t,e,r=!0){return Array.isArray(e)||(e=[e]),wb(RP("id",t),e,r)}function il(t,e,r=!0,s=1/0){return Xh(Nb.tag_name(t),e,r,s)}function T4e(t,e,r=!0,s=1/0){return Xh(RP("class",t),e,r,s)}function x4e(t,e,r=!0,s=1/0){return Xh(Nb.tag_type(t),e,r,s)}function D4e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Vn;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Vn||(Vn={}));function Ete(t,e){let r=[],s=[];if(t===e)return 0;let n=st(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=st(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Vn.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Vn.FOLLOWING|Vn.CONTAINED_BY:Vn.FOLLOWING:a===t?Vn.PRECEDING|Vn.CONTAINS:Vn.PRECEDING}function tc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=Ete(e,r);return s&Vn.PRECEDING?-1:s&Vn.FOLLOWING?1:0}),t}function kP(t){let e=Sb(U4e,t);return e?e.name==="feed"?R4e(e):k4e(e):null}function R4e(t){var e;let r=t.children,s={type:"atom",items:il("entry",r).map(o=>{var a;let{children:A}=o,c={media:Cte(A)};bs(c,"id","id",A),bs(c,"title","title",A);let u=(a=Sb("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=rc("summary",A)||rc("content",A);l&&( Line truncated
<td align='center'>${TOe(t)}</td>
<td>${xOe(t)}</td>
</tr>`}function TOe(t){return t.buildFailed?":x:":":white_check_mark:"}function xOe(t){return t.buildScanFailed?tP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?tP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):tP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function tP({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function Xte(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function DOe(){let t=Eh;if(t.payload.pull_request==null){de("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;de(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Zte(t),s=PD(eP()),{owner:n,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
comments(last: 100) {
nodes { id body isMinimized url }
}
}
}
}
`,a;try{let{repository:u}=await s.graphql(o,{owner:n,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return ht(`Failed to fetch comments: ${u}`)}let A=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>de(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ht(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function Zte(t){return`<!-- gradle-job-summary: ${r1.constructJobCorrelator(t.workflow,t.job,$v())} -->`}var $te=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Wn from"fs";import*as Xa from"path";function ere(){return rre().map(e=>{let r=Wn.readFileSync(e,"utf8"),s=JSON.parse(r);return FOe(e,s),s})}function tre(){rre().forEach(UOe)}function rre(){let t=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Wn.existsSync(t)?Wn.readdirSync(t).map(e=>Xa.resolve(t,e)).filter(e=>Xa.extname(e)===".json"&&!MOe(e)):[]}function FOe(t,e){let r=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Wn.existsSync(r))return;let s=Xa.resolve(r,Xa.basename(t));if(Wn.existsSync(s)){let n=Wn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function MOe(t){let e=`${t}.processed`;return Wn.existsSync(e)}function UOe(t){let e=`${t}.processed`;Wn.writeFileSync(e,"")}import*as Lre from"fs";import*as vre from"path";import{pathToFileURL as $_e}from"url";import*as Qg from"fs";function rP(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as u1 from"path";import*as Bg from"path";import Ql from"assert";var mc=process.platform==="win32";function Za(t){if(t=ja(t),mc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Bg.dirname(t);return mc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ja(e)),e}function a1(t,e){if(Ql(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ql(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),B0(e))return e;if(mc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Ql(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(_i(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Ql(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Ql(B0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||mc&&t.endsWith("\\")||(t+=Bg.sep),t+e}function B0(t){return Ql(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=_i(t),mc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function y0(t){return Ql(t,"isRooted parameter 'itemPath' must not be empty"),t=_i(t),mc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function _i(t){return t=t||"",mc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ja(t){return t?(t=_i(t),!t.endsWith(Bg.sep)||t===Bg.sep||mc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Hi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Hi||(Hi={}));var sre=process.platform==="win32";function nP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=sre?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=sre?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Za(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Za(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function nre(t,e){let r=Hi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function ire(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as wre from"os";import*as Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new S0(i));return s.searchPaths.push(...nP(s.patterns)),s})}static stat(e,r,s){return lP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Qg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Qg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Qg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as dP from"crypto";import*as l1 from"fs";import*as Nre from"stream";import*as Sre from"util";import*as Tre from"path";var J_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},W_e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function xre(t,e){return J_e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?de:U,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=dP.createHash("sha256"),f=0;try{for(var p=!0,I=W_e(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${Tre.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(l1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=dP.createHash("sha256");yield Sre.promisify(Nre.pipeline)(l1.createReadStream(C),b),h.write(b.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Dre=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function z_e(t,e){return Dre(this,void 0,void 0,function*(){return yield c1.create(t,e)})}function Rre(t){return Dre(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield z_e(e,{followSymbolicLinks:i});return xre(o,r,n)})}import*as hP from"path";var X_e="Gradle User Home",kre="BASIC_CACHE_PRIMARY_KEY",Fre="BASIC_CACHE_RESTORED_KEY",j_e="setup-java",Mre=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],h1=class{async restore(e,r){let s=Ure(e),n=await Z_e();vp(kre,n);try{let i=await Yte(s,n);i?(vp(Fre,i),de(`Basic caching restored from cache key: ${i}`)):de("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ht(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=VA(kre),i=VA(Fre);if(s.readOnly)return{status:"read-only",entries:[d1({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===n)return de(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[d1({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Ure(e);try{return await qte(o,n),de(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[d1({primaryKey:n,restoredKey:i,savedKey:n,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return ht(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[d1({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function d1(t){return{entryName:X_e,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Mre}], make sure you have checked out the target repository`);return`${j_e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var e6e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",t6e="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",fP=class{async restore(e,r){}async save(e,r,s){return{status:"disabled",entries:[]}}};async function Pre(t){return t.isCacheDisabled()?(gP("Cache is disabled: will not restore state from previous builds."),new fP):t.getCacheProvider()==="basic"?(gP(t6e),new h1):(gP(e6e),r6e())}function Ore(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function r6e(){let t=s6e();return await import($_e(t).href)}function s6e(){let t=import.meta.dirname,e=vre.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Lre.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function gP(t){console.info(t)}import*as qre from"util";var u6e=Ee(Yre(),1);import*as pP from"fs";var a2t=qre.promisify(pP.readdir);var d6e={_useHtmlParser2:!1};function bg(t,e){if(!t)return e??d6e;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var _P={};mi(_P,{contains:()=>T1,extract:()=>o5e,html:()=>r5e,merge:()=>hse,parseHTML:()=>n5e,root:()=>i5e,text:()=>Fl,xml:()=>s5e});var bc={};mi(bc,{DocumentPosition:()=>jn,append:()=>P6e,appendChild:()=>v6e,compareDocumentPosition:()=>cse,existsOne:()=>ase,filter:()=>xg,find:()=>b1,findAll:()=>G6e,findOne:()=>w1,findOneChild:()=>H6e,getAttributeValue:()=>F6e,getChildren:()=>Tg,getElementById:()=>J6e,getElements:()=>V6e,getElementsByClassName:()=>W6e,getElementsByTagName:()=>kl,getElementsByTagType:()=>z6e,getFeed:()=>OP,getInnerHTML:()=>k6e,getName:()=>U6e,getOuterHTML:()=>ise,getParent:()=>ose,getSiblings:()=>vP,getText:()=>B1,hasAttrib:()=>M6e,hasChildren:()=>st,innerText:()=>F0,isCDATA:()=>wg,isComment:()=>Rl,isDocument:()=>Xn,isTag:()=>Z,isText:()=>xs,nextElementSibling:()=>y1,prepend:()=>_6e,prependChild:()=>O6e,prevElementSibling:()=>Q1,removeElement:()=>rA,removeSubsets:()=>K6e,replaceElement:()=>L6e,testElement:()=>q6e,textContent:()=>tA,uniqueSort:()=>yc});var Kn={};mi(Kn,{CDATA:()=>wP,Comment:()=>BP,Directive:()=>IP,Doctype:()=>NP,ElementType:()=>Le,Root:()=>EP,Script:()=>yP,Style:()=>QP,Tag:()=>bP,Text:()=>CP,isTag:()=>mP});var Le;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Le||(Le={}));function mP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var EP=Le.Root,CP=Le.Text,IP=Le.Directive,BP=Le.Comment,yP=Le.Script,QP=Le.Style,bP=Le.Tag,wP=Le.CDATA,NP=Le.Doctype;var g1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Ng(this,e)}},x0=class extends g1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Wo=class extends x0{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},Tl=class extends x0{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},xl=class extends x0{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},D0=class extends g1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},R0=class extends D0{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},cn=class extends D0{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},Dl=class extends D0{constructor(e,r,s=[],n=e==="script"?Le.Script:e==="style"?Le.Style:Le.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}}) Line truncated
`:B1(t.children):wg(t)?B1(t.children):xs(t)?t.data:""}function tA(t){return Array.isArray(t)?t.map(tA).join(""):st(t)&&!Rl(t)?tA(t.children):xs(t)?t.data:""}function F0(t){return Array.isArray(t)?t.map(F0).join(""):st(t)&&(t.type===Le.Tag||wg(t))?F0(t.children):xs(t)?t.data:""}function Tg(t){return st(t)?t.children:[]}function ose(t){return t.parent||null}function vP(t){let e=ose(t);if(e!=null)return Tg(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function F6e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function M6e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function U6e(t){return t.name}function y1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function Q1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function rA(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function L6e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function v6e(t,e){if(rA(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function P6e(t,e){rA(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function O6e(t,e){if(rA(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function _6e(t,e){rA(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function xg(t,e,r=!0,s=1/0){return b1(t,Array.isArray(e)?e:[e],r,s)}function b1(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function H6e(t,e){return e.find(t)}function w1(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&st(i)&&i.children.length>0){let o=w1(t,i.children,!0);if(o)return o}}return null}function ase(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&ase(t,r.children))}function G6e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Z(i)&&t(i)&&r.push(i),st(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var N1={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>xs(e)&&t(e.data):e=>xs(e)&&e.data===t}};function PP(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function Y6e(t,e){return r=>t(r)||e(r)}function Ase(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(N1,r)?N1[r](s):PP(r,s)});return e.length===0?null:e.reduce(Y6e)}function q6e(t,e){let r=Ase(t);return r?r(e):!0}function V6e(t,e,r,s=1/0){let n=Ase(t);return n?xg(n,e,r,s):[]}function J6e(t,e,r=!0){return Array.isArray(e)||(e=[e]),w1(PP("id",t),e,r)}function kl(t,e,r=!0,s=1/0){return xg(N1.tag_name(t),e,r,s)}function W6e(t,e,r=!0,s=1/0){return xg(PP("class",t),e,r,s)}function z6e(t,e,r=!0,s=1/0){return xg(N1.tag_type(t),e,r,s)}function K6e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var jn;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(jn||(jn={}));function cse(t,e){let r=[],s=[];if(t===e)return 0;let n=st(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=st(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return jn.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?jn.FOLLOWING|jn.CONTAINED_BY:jn.FOLLOWING:a===t?jn.PRECEDING|jn.CONTAINS:jn.PRECEDING}function yc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=cse(e,r);return s&jn.PRECEDING?-1:s&jn.FOLLOWING?1:0}),t}function OP(t){let e=S1(e5e,t);return e?e.name==="feed"?X6e(e):j6e(e):null}function X6e(t){var e;let r=t.children,s={type:"atom",items:kl("entry",r).map(o=>{var a;let{children:A}=o,c={media:use(A)};Ds(c,"id","id",A),Ds(c,"title","title",A);let u=(a=S1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=Qc("summary",A)||Qc("content",A);l&&( Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var zn=fe(nc(),1);var KP={};function XP(t,e){return t===zn.default.falseFunc?zn.default.falseFunc:r=>e.isTag(r)&&t(r)}function jP(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function zP(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var WP=(t,e,r,s,n)=>{let i=n(e,zP(r),s);return i===zn.default.trueFunc?t:i===zn.default.falseFunc?zn.default.falseFunc:o=>i(o)&&t(o)},_b={is:WP,matches:WP,where:WP,not(t,e,r,s,n){let i=n(e,zP(r),s);return i===zn.default.falseFunc?t:i===zn.default.trueFunc?zn.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=zP(r);o.relativeSelector=!0;let a=e.some(u=>u.some(jm))?[KP]:void 0,A=n(e,o,a);if(A===zn.default.falseFunc)return zn.default.falseFunc;let c=XP(A,i);if(a&&A!==zn.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),g=u?[...d,...jP(l,i)]:d;return i.existsOne(c,g)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function are(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _b))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _b[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:Ob[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ore.parse)(c);return _b.is(t,u,r,s,n)}if(typeof A=="function")return JP(A,o,a,1),u=>A(u,a)&&t(u);if(o in ig)return ig[o](t,a,r,s);if(o in $m){let u=$m[o];return JP(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Kn=fe(sg(),1);function ZP(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Are(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Kn.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Kn.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Kn.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),rre[e.action](t,e,r)}case Kn.SelectorType.Pseudo:return are(t,e,r,s,n);case Kn.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Kn.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=ZP(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=ZP(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=ZP(c,i));return!1};case Kn.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Kn.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Kn.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Kn.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Kn.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function cre(t,e,r){let s=Hb(t,e,r);return XP(s,e.adapter)}function Hb(t,e,r){let s=typeof t=="string"?(0,Ui.parse)(t):t;return Gb(s,e,r)}function ure(t){return t.type===Ui.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(ure)))}var NOe={type:Ui.SelectorType.Descendant},SOe={type:"_flexibleDescendant"},TOe={type:Ui.SelectorType.Pseudo,name:"scope",data:null};function xOe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===KP||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Nre,`\r
`)}}).toArray()}var gv={};li(gv,{extract:()=>q6e});function Y6e(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function q6e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=Y6e(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var ac=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};ac.prototype.cheerio="[cheerio object]";ac.prototype.splice=Array.prototype.splice;ac.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ac.prototype,HP,uv,lv,dv,hv,gv);function Sre(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Vh(n),a=t(s,o,i,null);class A extends ac{_make(l,d){let g=c(l,d);return g.prevObject=this,g}_parse(l,d,g,f){return t(l,d,g,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,g){if(u&&Jn(u))return u;let f=Vh(g,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],B=Jn(p)?p:new A(p,null,f);if(B._root=B,!u)return new A(void 0,B,f);let E=typeof u=="string"&&Vm(u)?t(u,f,!1,null).children:V6e(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,B,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,x=l?typeof l=="string"?Vm(l)?new A([t(l,f,!1,null)],B,f):(w=`${l} ${w}`,B):Jn(l)?l:new A(Array.isArray(l)?l:[l],B,f):B;return x?x.find(w):C}return Object.assign(c,FP,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function V6e(t){return!!t.name||t.type===Yn.Root||t.type===Yn.Text||t.type===Yn.Comment}var J6e=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lt="\uFFFD",I;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));var rs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function zb(t){return t>=55296&&t<=57343}function Tre(t){return t>=56320&&t<=57343}function xre(t,e){return(t-55296)*1024+9216+e}function Kb(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Xb(t){return t>=64976&&t<=65007||J6e.has(t)}var D;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ei=Ee(wc(),1);var r3={};function s3(t,e){return t===ei.default.falseFunc?ei.default.falseFunc:r=>e.isTag(r)&&t(r)}function n3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function t3(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var e3=(t,e,r,s,n)=>{let i=n(e,t3(r),s);return i===ei.default.trueFunc?t:i===ei.default.falseFunc?ei.default.falseFunc:o=>i(o)&&t(o)},_1={is:e3,matches:e3,where:e3,not(t,e,r,s,n){let i=n(e,t3(r),s);return i===ei.default.falseFunc?t:i===ei.default.trueFunc?ei.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=t3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(_0))?[r3]:void 0,A=n(e,o,a);if(A===ei.default.falseFunc)return ei.default.falseFunc;let c=s3(A,i);if(a&&A!==ei.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...n3(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Zse(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _1))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _1[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:O1[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jse.parse)(c);return _1.is(t,u,r,s,n)}if(typeof A=="function")return $P(A,o,a,1),u=>A(u,a)&&t(u);if(o in Pg)return Pg[o](t,a,r,s);if(o in G0){let u=G0[o];return $P(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ti=Ee(Lg(),1);function i3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $se(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ti.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ti.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ti.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),Wse[e.action](t,e,r)}case ti.SelectorType.Pseudo:return Zse(t,e,r,s,n);case ti.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ti.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=i3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=i3(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=i3(c,i));return!1};case ti.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ti.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ti.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case ti.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case ti.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ene(t,e,r){let s=H1(t,e,r);return s3(s,e.adapter)}function H1(t,e,r){let s=typeof t=="string"?(0,Yi.parse)(t):t;return G1(s,e,r)}function tne(t){return t.type===Yi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(tne)))}var V5e={type:Yi.SelectorType.Descendant},J5e={type:"_flexibleDescendant"},W5e={type:Yi.SelectorType.Pseudo,name:"scope",data:null};function z5e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===r3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(mne,`\r
`)}}).toArray()}var B3={};mi(B3,{extract:()=>c9e});function A9e(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function c9e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=A9e(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Tc=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Tc.prototype.cheerio="[cheerio object]";Tc.prototype.splice=Array.prototype.splice;Tc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Tc.prototype,zP,m3,E3,C3,I3,B3);function Ene(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=bg(n),a=t(s,o,i,null);class A extends Tc{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Zn(u))return u;let f=bg(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Zn(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&M0(u)?t(u,f,!1,null).children:u9e(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let b=u,T=l?typeof l=="string"?M0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):Zn(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return T?T.find(b):C}return Object.assign(c,_P,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function u9e(t){return!!t.name||t.type===Kn.Root||t.type===Kn.Text||t.type===Kn.Comment}var l9e=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lt="\uFFFD",B;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(B||(B={}));var ns={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function z1(t){return t>=55296&&t<=57343}function Cne(t){return t>=56320&&t<=57343}function Ine(t,e){return(t-55296)*1024+9216+e}function K1(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function X1(t){return t>=64976&&t<=65007||l9e.has(t)}var D;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -303,5 +345,19 @@ undici/lib/web/fetch/body.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+161 -157
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var s3e=Object.create;var eM=Object.defineProperty;var i3e=Object.getOwnPropertyDescriptor;var o3e=Object.getOwnPropertyNames;var a3e=Object.getPrototypeOf,A3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)eM(t,r,{get:e[r],enumerable:!0})},c3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of o3e(e))!A3e.call(t,s)&&s!==r&&eM(t,s,{get:()=>e[s],enumerable:!(n=i3e(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?s3e(a3e(t)):{},c3e(e||!t||!t.__esModule?eM(r,"default",{value:t,enumerable:!0}):r,t));var PX=m(fp=>{"use strict";var Bqt=b("net"),g3e=b("tls"),sM=b("http"),MX=b("https"),p3e=b("events"),bqt=b("assert"),m3e=b("util");fp.httpOverHttp=E3e;fp.httpsOverHttp=C3e;fp.httpOverHttps=I3e;fp.httpsOverHttps=y3e;function E3e(t){var e=new tu(t);return e.request=sM.request,e}function C3e(t){var e=new tu(t);return e.request=sM.request,e.createSocket=LX,e.defaultPort=443,e}function I3e(t){var e=new tu(t);return e.request=MX.request,e}function y3e(t){var e=new tu(t);return e.request=MX.request,e.createSocket=LX,e.defaultPort=443,e}function tu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||sM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=UX(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}m3e.inherits(tu,p3e.EventEmitter);tu.prototype.addRequest=function(e,r,n,s){var i=this,o=iM({request:e},i.options,UX(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};tu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=iM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),El("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){El("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){El("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return El("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),El(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};tu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function LX(t,e){var r=this;tu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=iM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=g3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function UX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function iM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var El;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?El=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:El=function(){};fp.debug=El});var oM=m((wqt,OX)=>{OX.exports=PX()});var Br=m((Sqt,HX)=>{HX.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=m((Nqt,dZ)=>{"use strict";var GX=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[GX]===!0}[GX]=!0},qX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),aM=class extends br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[qX]===!0}[qX]=!0},YX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),AM=class extends br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[YX]===!0}[YX]=!0},VX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),cM=class extends br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[VX]===!0}[VX]=!0},WX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),uM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[WX]===!0}[WX]=!0},JX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),lM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function L4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(y4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function U4e(){return"allowed"}function P4e(){return"success"}function O4e(){return"success"}function H4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function G4e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&rL(t.origin)&&!rL(jC(t))&&(e=null);break;case"same-origin":x1(t,jC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Qp(t,e){return t}function q4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Qp(t.domainLookupStartTime,r),domainLookupEndTime:Qp(t.domainLookupEndTime,r),connectionStartTime:Qp(t.connectionStartTime,r),connectionEndTime:Qp(t.connectionEndTime,r),secureConnectionStartTime:Qp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Y4e(t){return Qp(S4e.now(),t)}function V4e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function See(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function W4e(t){return{referrerPolicy:t.referrerPolicy}}function J4e(t){let e=t.referrerPolicy;Qh(e);let r=null;if(t.referrer==="client"){let a=Iee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=tL(r),s=tL(r,!0);n.toString().length>4096&&(n=s);let i=x1(t,n),o=zC(n)&&!zC(t.url);switch(e){case"origin":return s??tL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=jC(t);return x1(n,a)?n:zC(n)&&!zC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function tL(t,e){return Qh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function zC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function z4e(t,e){if(T1===void 0)return!0;let r=Nee(e);if(r==="no metadata"||r.length===0)return!0;let n=K4e(r),s=$4e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=T1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),X4e(A,a))return!0}return!1}var j4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Nee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j4e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Bee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function K4e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function $4e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function X4e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Z4e(t){}function x1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function e6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function t6e(t){return t.controller.state==="aborted"}function r6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function n6e(t){return x4e[t.toLowerCase()]??t}function s6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Qh(typeof e=="string"),e}var i6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Tee(t,e,r=0,n=1){class s{ Line truncated
`);function F6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function M6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function L6e(t,e){D1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&k1(t,v6e,i)||i.position===t.length-4&&k1(t,_6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=U6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",F6e(u)||(u=""),h=new D6e([d],c,{type:u})):h=S6e(Buffer.from(d)),D1(Oee(A)),D1(typeof h=="string"&&Oee(h)||T6e(h)),s.push(x6e(A,h,c))}}function U6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Sp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=cL(o,!0,!0,a=>a===9||a===32),!N6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sp(a=>a===32||a===9,t,e),w6e(o)){case"content-disposition":{if(r=n=null,!k1(t,k6e,e)||(e.position+=17,r=qee(t,e),r===null))return"failure";if(k1(t,Gee,e)){let a=e.position+Gee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=qee(t,e),n===null))return"failure"}break}case"content-type":{let a=Sp(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),s=Hee(a);break}case"content-transfer-encoding":{let a=Sp(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),i=Hee(a);break}default:Sp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function qee(t,e){D1(t[e.position-1]===34);let r=Sp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Sp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function cL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function k1(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Yee.exports={multipartFormDataParser:L6e,validateBoundary:M6e}});var xp=m((Xqt,tte)=>{"use strict";var XC=dt(),{ReadableStreamFrom:P6e,isBlobLike:Wee,isReadableStreamLike:O6e,readableStreamClose:H6e,createDeferredPromise:G6e,fullyReadBody:q6e,extractMimeType:Y6e,utf8DecodeBytes:jee}=Ti(),{FormData:Jee}=$C(),{kState:Tp}=Cl(),{webidl:V6e}=zn(),{Blob:W6e}=b("node:buffer"),uL=b("node:assert"),{isErrored:Kee,isDisturbed:J6e}=b("node:stream"),{isArrayBuffer:z6e}=b("node:util/types"),{serializeAMimeType:j6e}=Xs(),{multipartFormDataParser:K6e}=Vee(),lL;try{let t=b("node:crypto");lL=e=>t.randomInt(0,e)}catch{lL=t=>Math.floor(Math.random(t))}var v1=new TextEncoder;function $6e(){}var $ee=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Xee;$ee&&(Xee=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!J6e(e)&&!Kee(e)&&e.cancel("Response object has been garbage collected").catch($6e)}));function Zee(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Wee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?v1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>H6e(A))},start(){},type:"bytes"}),uL(O6e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(z6e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let A=`----formdata-undici-0${`${lL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var L8e=Object.create;var $M=Object.defineProperty;var U8e=Object.getOwnPropertyDescriptor;var P8e=Object.getOwnPropertyNames;var O8e=Object.getPrototypeOf,H8e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},G8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P8e(e))!H8e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=U8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?L8e(O8e(t)):{},G8e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var MZ=E(Op=>{"use strict";var f7t=b("net"),z8e=b("tls"),tL=b("http"),vZ=b("https"),j8e=b("events"),g7t=b("assert"),K8e=b("util");Op.httpOverHttp=$8e;Op.httpsOverHttp=X8e;Op.httpOverHttps=Z8e;Op.httpsOverHttps=e4e;function $8e(t){var e=new uu(t);return e.request=tL.request,e}function X8e(t){var e=new uu(t);return e.request=tL.request,e.createSocket=_Z,e.defaultPort=443,e}function Z8e(t){var e=new uu(t);return e.request=vZ.request,e}function e4e(t){var e=new uu(t);return e.request=vZ.request,e.createSocket=_Z,e.defaultPort=443,e}function uu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=FZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}K8e.inherits(uu,j8e.EventEmitter);uu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,FZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};uu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),xl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){xl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){xl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return xl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),xl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};uu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function _Z(t,e){var r=this;uu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=z8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function FZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var xl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?xl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:xl=function(){};Op.debug=xl});var nL=E((m7t,LZ)=>{LZ.exports=MZ()});var yr=E((E7t,UZ)=>{UZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((C7t,Aee)=>{"use strict";var PZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[PZ]===!0}[PZ]=!0},OZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=class extends Br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[OZ]===!0}[OZ]=!0},HZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=class extends Br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[HZ]===!0}[HZ]=!0},GZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=class extends Br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[GZ]===!0}[GZ]=!0},qZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[qZ]===!0}[qZ]=!0},YZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function p5e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(e5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function m5e(){return"allowed"}function E5e(){return"success"}function C5e(){return"success"}function I5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function y5e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":mS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Kp(t,e){return t}function B5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Kp(t.domainLookupStartTime,r),domainLookupEndTime:Kp(t.domainLookupEndTime,r),connectionStartTime:Kp(t.connectionStartTime,r),connectionEndTime:Kp(t.connectionEndTime,r),secureConnectionStartTime:Kp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function b5e(t){return Kp(i5e.now(),t)}function Q5e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function bte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function w5e(t){return{referrerPolicy:t.referrerPolicy}}function S5e(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=mte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=mS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=NI(t);return mS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return Yh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function SI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function N5e(t,e){if(pS===void 0)return!0;let r=Qte(e);if(r==="no metadata"||r.length===0)return!0;let n=x5e(r),s=R5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=pS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),D5e(c,a))return!0}return!1}var T5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Qte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=T5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Cte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function x5e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function R5e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function D5e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function k5e(t){}function mS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function v5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function _5e(t){return t.controller.state==="aborted"}function F5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function M5e(t){return c5e[t.toLowerCase()]??t}function L5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var U5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function wte(t,e,r=0,n=1){class s{ Line truncated
`);function fHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function gHe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function pHe(t,e){CS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&IS(t,dHe,i)||i.position===t.length-4&&IS(t,hHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=mHe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",fHe(u)||(u=""),h=new uHe([d],A,{type:u})):h=iHe(Buffer.from(d)),CS(Lte(c)),CS(typeof h=="string"&&Lte(h)||aHe(h)),s.push(cHe(c,h,A))}}function mHe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Xp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!oHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Xp(a=>a===32||a===9,t,e),sHe(o)){case"content-disposition":{if(r=n=null,!IS(t,lHe,e)||(e.position+=17,r=Ote(t,e),r===null))return"failure";if(IS(t,Pte,e)){let a=e.position+Pte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Ote(t,e),n===null))return"failure"}break}case"content-type":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=Ute(a);break}case"content-transfer-encoding":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=Ute(a);break}default:Xp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Ote(t,e){CS(t[e.position-1]===34);let r=Xp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Xp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function IS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Hte.exports={multipartFormDataParser:pHe,validateBoundary:gHe}});var tm=E((Y7t,Xte)=>{"use strict";var RI=dt(),{ReadableStreamFrom:EHe,isBlobLike:qte,isReadableStreamLike:CHe,readableStreamClose:IHe,createDeferredPromise:yHe,fullyReadBody:BHe,extractMimeType:bHe,utf8DecodeBytes:Wte}=xi(),{FormData:Yte}=xI(),{kState:em}=Rl(),{webidl:QHe}=jn(),{Blob:wHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Jte,isDisturbed:SHe}=b("node:stream"),{isArrayBuffer:NHe}=b("node:util/types"),{serializeAMimeType:THe}=Ks(),{multipartFormDataParser:xHe}=Gte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var yS=new TextEncoder;function RHe(){}var zte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,jte;zte&&(jte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SHe(e)&&!Jte(e)&&e.cancel("Response object has been garbage collected").catch(RHe)}));function Kte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:qte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?yS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>IHe(c))},start(){},type:"bytes"}),aU(CHe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(NHe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=v1.encode(c+`; name="${u(l(I))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=yS.encode(A+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=v1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=yS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=v1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Wee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:P6e(t)}if((typeof s=="string"||XC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Kee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function X6e(t,e=!1){return t instanceof ReadableStream&&(uL(!XC.isDisturbed(t),"The body has already been consumed."),uL(!t.locked,"The stream is locked.")),Zee(t,e)}function Z6e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function e5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function t5e(t){return{blob(){return Np(this,r=>{let n=zee(this);return n===null?n="":n&&(n=j6e(n)),new W6e([r],{type:n})},t)},arrayBuffer(){return Np(this,r=>new Uint8Array(r).buffer,t)},text(){return Np(this,jee,t)},json(){return Np(this,n5e,t)},formData(){return Np(this,r=>{let n=zee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=K6e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Jee;return i[Tp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Jee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Np(this,r=>new Uint8Array(r),t)}}}function r5e(t){Object.assign(t.prototype,t5e(t))}async function Np(t,e,r){if(V6e.brandCheck(t,r),ete(t))throw new TypeError("Body is unusable: Body has already been read");e5e(t[Tp]);let n=G6e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Tp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await q6e(t[Tp].body,i,s),n.promise)}function ete(t){let e=t[Tp].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}function n5e(t){return JSON.parse(jee(t))}function zee(t){let e=t[Tp].headersList,r=Y6e(e);return r==="failure"?null:r}tte.exports={extractBody:Zee,safelyExtractBody:X6e,cloneBody:Z6e,mixinBody:r5e,streamRegistry:Xee,hasFinalizationRegistry:$ee,bodyUnusable:ete}});var dte=m((Zqt,lte)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:rte}=pp(),dL=JM(),{RequestContentLengthMismatchError:wh,ResponseContentLengthMismatchError:s5e,RequestAbortedError:Ate,HeadersTimeoutError:i5e,HeadersOverflowError:o5e,SocketError:P1,InformationalError:Rp,BodyTimeoutError:a5e,HTTPParserError:A5e,ResponseExceededMaxSizeError:c5e}=Lt(),{kUrl:cte,kReset:Zs,kClient:pL,kParser:Mr,kBlocking:tI,kRunning:is,kPending:u5e,kSize:nte,kWriting:yl,kQueue:ba,kNoRef:ZC,kKeepAliveDefaultTimeout:l5e,kHostHeader:d5e,kPendingIdx:h5e,kRunningIdx:yo,kError:Bo,kPipelining:L1,kSocket:Dp,kKeepAliveTimeoutValue:O1,kMaxHeadersSize:hL,kKeepAliveMaxTimeout:f5e,kKeepAliveTimeoutThreshold:g5e,kHeadersTimeout:p5e,kBodyTimeout:m5e,kStrictContentLength:mL,kMaxRequests:ste,kCounter:E5e,kMaxResponseSize:C5e,kOnError:I5e,kResume:Il,kHTTPContext:ute}=Br(),mA=XZ(),y5e=Buffer.alloc(0),_1=Buffer[Symbol.species],F1=Ze.addListener,B5e=Ze.removeAllListeners,fL;async function b5e(){let t=process.env.JEST_WORKER_ID?KM():void 0,e;try{e=await WebAssembly.compile(tee())}catch{e=await WebAssembly.compile(t||KM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onStatus(new _1(EA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onHeaderField(new _1(EA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onHeaderValue(new _1(EA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onBody(new _1(EA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var gL=null,EL=b5e();EL.catch();var fn=null,EA=null,M1=0,CA=null,Q5e=0,eI=1,kp=2|eI,U1=4|eI,CL=8|Q5e,IL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[hL])&&e[hL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this Line truncated
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=yS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(qte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:EHe(t)}if((typeof s=="string"||RI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Jte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function DHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),Kte(t,e)}function kHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function vHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _He(t){return{blob(){return Zp(this,r=>{let n=Vte(this);return n===null?n="":n&&(n=THe(n)),new wHe([r],{type:n})},t)},arrayBuffer(){return Zp(this,r=>new Uint8Array(r).buffer,t)},text(){return Zp(this,Wte,t)},json(){return Zp(this,MHe,t)},formData(){return Zp(this,r=>{let n=Vte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=xHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Yte;return i[em]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Yte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Zp(this,r=>new Uint8Array(r),t)}}}function FHe(t){Object.assign(t.prototype,_He(t))}async function Zp(t,e,r){if(QHe.brandCheck(t,r),$te(t))throw new TypeError("Body is unusable: Body has already been read");vHe(t[em]);let n=yHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[em].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await BHe(t[em].body,i,s),n.promise)}function $te(t){let e=t[em].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function MHe(t){return JSON.parse(Wte(t))}function Vte(t){let e=t[em].headersList,r=bHe(e);return r==="failure"?null:r}Xte.exports={extractBody:Kte,safelyExtractBody:DHe,cloneBody:kHe,mixinBody:FHe,streamRegistry:jte,hasFinalizationRegistry:zte,bodyUnusable:$te}});var Are=E((V7t,cre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:Zte}=Gp(),AU=YL(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:LHe,RequestAbortedError:ire,HeadersTimeoutError:UHe,HeadersOverflowError:PHe,SocketError:NS,InformationalError:rm,BodyTimeoutError:OHe,HTTPParserError:HHe,ResponseExceededMaxSizeError:GHe}=Lt(),{kUrl:ore,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:qHe,kSize:ere,kWriting:kl,kQueue:xa,kNoRef:DI,kKeepAliveDefaultTimeout:YHe,kHostHeader:VHe,kPendingIdx:WHe,kRunningIdx:Qo,kError:wo,kPipelining:wS,kSocket:nm,kKeepAliveTimeoutValue:TS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:JHe,kKeepAliveTimeoutThreshold:zHe,kHeadersTimeout:jHe,kBodyTimeout:KHe,kStrictContentLength:fU,kMaxRequests:tre,kCounter:$He,kMaxResponseSize:XHe,kOnError:ZHe,kResume:Dl,kHTTPContext:are}=yr(),Sc=jee(),e9e=Buffer.alloc(0),BS=Buffer[Symbol.species],bS=Xe.addListener,t9e=Xe.removeAllListeners,lU;async function r9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(Xee())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onStatus(new BS(Nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderField(new BS(Nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderValue(new BS(Nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onBody(new BS(Nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=r9e();gU.catch();var gn=null,Nc=null,QS=0,Tc=null,n9e=0,kI=1,sm=2|kI,SS=4|kI,pU=8|n9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[d5e],i?p+=`connection: upgrade\r
`:p+=t[VHe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[L1]&&!h[Zs]?p+=`connection: keep-alive\r
`:t[wS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return rte.sendHeaders.hasSubscribers&&rte.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?ote(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?ote(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?ate(f,A.stream(),t,e,h,u,p,l):R5e(f,A,t,e,h,u,p,l):Ze.isStream(A)?x5e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?ate(f,A,t,e,h,u,p,l):Ge(!1),!0}function x5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new H1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Ate;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[yl]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ze.destroy(e,f):Ze.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function ote(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return Zte.sendHeaders.hasSubscribers&&Zte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?nre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?nre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?sre(f,c.stream(),t,e,h,u,p,l):A9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?c9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?sre(f,c,t,e,h,u,p,l):Ge(!1),!0}function c9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ire;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[kl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function nre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Zs]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Il]()}catch(A){t(A)}}async function R5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new wh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Dl]()}catch(c){t(c)}}async function A9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Zs]=!0),r[Il]()}catch(A){t(A)}}async function ate(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Bo]?h(s[Bo]):A=d});s.on("close",c).on("drain",c);let l=new H1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Bo])throw s[Bo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var H1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[yl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bo])throw r[Bo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[mL])throw new wh;process.emitWarning(new wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[Dl]()}catch(c){t(c)}}async function sre(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var xS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[kl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===kp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yl]=!1,e[Bo])throw e[Bo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===sm&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[kl]=!1,e[wo])throw e[wo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[mL])throw new wh;process.emitWarning(new wh)}e[Mr].timeout&&e[Mr].timeoutType===kp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Il]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[yl]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};lte.exports=w5e});var Ite=m((eYt,Cte)=>{"use strict";var bo=b("node:assert"),{pipeline:D5e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:yL,RequestAbortedError:hte,SocketError:rI,InformationalError:BL}=Lt(),{kUrl:G1,kReset:Y1,kClient:vp,kRunning:V1,kPending:k5e,kQueue:Bl,kPendingIdx:bL,kRunningIdx:Qa,kError:Sa,kSocket:xn,kStrictContentLength:v5e,kOnError:QL,kMaxConcurrentStreams:Ete,kHTTP2Session:wa,kResume:bl,kSize:_5e,kHTTPContext:F5e}=Br(),au=Symbol("open streams"),fte,gte=!1,q1;try{q1=b("node:http2")}catch{q1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:M5e,HTTP2_HEADER_METHOD:L5e,HTTP2_HEADER_PATH:U5e,HTTP2_HEADER_SCHEME:P5e,HTTP2_HEADER_CONTENT_LENGTH:O5e,HTTP2_HEADER_EXPECT:H5e,HTTP2_HEADER_STATUS:G5e}}=q1;function q5e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function Y5e(t,e){t[xn]=e,gte||(gte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=q1.connect(t[G1],{createConnection:()=>e,peerMaxConcurrentStreams:t[Ete]});r[au]=0,r[vp]=t,r[xn]=e,mt.addListener(r,"error",W5e),mt.addListener(r,"frameError",J5e),mt.addListener(r,"end",z5e),mt.addListener(r,"goaway",j5e),mt.addListener(r,"close",function(){let{[vp]:s}=this,{[xn]:i}=s,o=this[xn][Sa]||this[Sa]||new rI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){bo(s[k5e]===0);let a=s[Bl].splice(s[Qa]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[vp][QL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new rI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new rI("closed",mt.getSocketInfo(this));t[xn]=null,this[wa]!=null&&this[wa].destroy(s),t[bL]=t[Qa],bo(t[V1]===0),t.emit("disconnect",t[G1],[t],s),t[bl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return $5e(t,...s)},resume(){V5e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function V5e(t){let e=t[xn];e?.destroyed===!1&&(t[_5e]===0&&t[Ete]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function W5e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xn][Sa]=t,this[vp][QL](t)}function J5e(t,e,r){if(r===0){let n=new BL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xn][Sa]=n,this[vp][QL](n)}}function z5e(){let t=new rI("other side closed",mt.getSocketInfo(this[xn]));this.destroy(t),mt.destroy(this[xn],t)}function j5e(t){let e=this[Sa]||new rI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[vp];if(r[xn]=null,r[F5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[xn],e),r[Qa]<r[Bl].length){let n=r[Bl][r[Qa]];r[Bl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[bL]=r[Qa]}bo(r[V1]===0),r.emit("disconnect",r[G1],[r],e),r[bl]()}function K5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function $5e(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],Y=c[R+1];if(Array.isArray(Y))for(let v=0;v<Y.length;v++)l[M]?l[M]+=`,${Y[v]}`:l[M]=Y[v];else l[M]=Y}let d,{hostname:h,port:f}=t[G1];l[M5e]=i||`${h}${f?`:${f}`:""}`,l[L5e]=n;let p=R=>{e.aborted||e.completed||(R=R||new hte,mt.errorRequest(t,e,R),d!=null&&mt.destroy(d,R),mt.destroy(u,R),t[Bl][t[Qa]++]=null,t[bl]())};try{e.onConnect(p)}catch(R){mt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[au],t[Bl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[au],t[Bl][t[Qa]++]=null}),d.once("close",()=>{r[au]-=1,r[au]===0&&r.unref()}),!0;l[U5e]=s,l[P5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=mt.bodyLength(u);if(mt.isFormDataLike(u)){fte??=xp().extractBody;let[R,M]=fte(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),K5e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[v5e])return mt.errorRequest(t,e,new yL),!1;process.emitWarning(new yL)}E!=null&&(bo(u,"no body must not have content length"),l[O5e]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[H5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[bHe]=A??3e5,this[BHe]=s??3e5,this[QHe]=C??!0,this[wHe]=R,this[TL]=Y,this[wl]=null,this[RHe]=P>-1?P:-1,this[kHe]=ee??100,this[Kr]=null,this[Na]=[],this[cu]=0,this[Ta]=0,this[oI]=Ae=>RL(this,Ae),this[DHe]=Ae=>kte(this,Ae)}get pipelining(){return this[j1]}set pipelining(e){this[j1]=e,this[oI](!0)}get[cI](){return this[Na].length-this[Ta]}get[AI](){return this[Ta]-this[cu]}get[aI](){return this[Na].length-this[cu]}get[gHe](){return!!this[Kr]&&!this[Fp]&&!this[Kr].destroyed}get[NL](){return!!(this[Kr]?.busy(null)||this[aI]>=(Dte(this)||1)||this[cI]>0)}[fHe](e){vte(this),this.once("connect",e)}[xHe](e,r){let n=e.origin||this[yA].origin,s=new AHe(n,e,r);return this[Na].push(s),this[Nh]||(Sh.bodyLength(s.body)==null&&Sh.isIterable(s.body)?(this[Nh]=1,queueMicrotask(()=>RL(this))):this[oI](!0)),this[Nh]&&this[Sl]!==2&&this[NL]&&(this[Sl]=2),this[Sl]<2}async[NHe](){return new Promise(e=>{this[aI]?this[wl]=e:e(null)})}async[THe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Sh.errorRequest(this,o,e)}let s=()=>{this[wl]&&(this[wl](),this[wl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[oI]()})}},FHe=z1();function kte(t,e){if(t[AI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Au(t[Ta]===t[cu]);let r=t[Na].splice(t[cu]);for(let n=0;n<r.length;n++){let s=r[n];Sh.errorRequest(t,s,e)}Au(t[aI]===0)}}async function vte(t){Au(!t[Fp]),Au(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yA];if(r[0]==="["){let i=r.indexOf("]");Au(i!==-1);let o=r.substring(1,i);Au(Rte.isIP(o)),r=o}t[Fp]=!0,_p.beforeConnect.hasSubscribers&&_p.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[iI]},connector:t[sI]});try{let i=await new Promise((o,a)=>{t[sI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ql],localAddress:t[iI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sh.destroy(i.on("error",Tte),new lHe);return}Au(i);try{t[Kr]=i.alpnProtocol==="h2"?await _He(t,i):await vHe(t,i)}catch(o){throw i.destroy().on("error",Tte),o}t[Fp]=!1,i[SHe]=0,i[TL]=t[TL],i[hHe]=t,i[mHe]=null,_p.connected.hasSubscribers&&_p.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[iI]},connector:t[sI],socket:i}),t.emit("connect",t[yA],[t])}catch(i){if(t.destroyed)return;if(t[Fp]=!1,_p.connectError.hasSubscribers&&_p.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[iI]},connector:t[sI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Au(t[AI]===0);t[cI]>0&&t[Na][t[Ta]].servername===t[Ql];){let o=t[Na][t[Ta]++];Sh.errorRequest(t,o,i)}else kte(t,i);t.emit("connectionError",t[yA],[t],i)}t[oI]()}function xte(t){t[Sl]=0,t.emit("drain",t[yA],[t])}function RL(t,e){t[Nh]!==2&&(t[Nh]=2,MHe(t,e),t[Nh]=0,t[cu]>256&&(t[Na].splice(0,t[cu]),t[Ta]-=t[cu],t[cu]=0))}function MHe(t,e){for(;;){if(t.destroyed){Au(t[cI]===0);return}if(t[wl]&&!t[aI]){t[wl](),t[wl]=null;return}if(t[Kr]&&t[Kr].resume(),t[NL])t[Sl]=2;else if(t[Sl]===2){e?(t[Sl]=1,queueMicrotask(()=>xte(t))):xte(t);continue}if(t[cI]===0||t[AI]>=(Dte(t)||1))return;let r=t[Na][t[Ta]];if(t[yA].protocol==="https:"&&t[Ql]!==r.servername){if(t[AI]>0)return;t[Ql]=r.servername,t[Kr]?.destroy(new uHe("servername changed"),()=>{t[Kr]=null,RL(t)})}if(t[Fp])return;if(!t[Kr]){vte(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}_te.exports=xL});var DL=m((iYt,Fte)=>{"use strict";var K1=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Fte.exports=class{constructor(){this.head=this.tail=new K1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new K1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Lte=m((oYt,Mte)=>{var{kFree:LHe,kConnected:UHe,kPending:PHe,kQueued:OHe,kRunning:HHe,kSize:GHe}=Br(),Th=Symbol("pool"),kL=class{constructor(e){this[Th]=e}get connected(){return this[Th][UHe]}get free(){return this[Th][LHe]}get pending(){return this[Th][PHe]}get queued(){return this[Th][OHe]}get running(){return this[Th][HHe]}get size(){return this[Th][GHe]}};Mte.exports=kL});var UL=m((aYt,Jte)=>{"use strict";var qHe=Ip(),YHe=DL(),{kConnected:vL,kSize:Ute,kRunning:Pte,kPending:Ote,kQueued:uI,kBusy:VHe,kFree:WHe,kUrl:JHe,kClose:zHe,kDestroy:jHe,kDispatch:KHe}=Br(),$He=Lte(),ei=Symbol("clients"),Ts=Symbol("needDrain"),lI=Symbol("queue"),_L=Symbol("closed resolve"),FL=Symbol("onDrain"),Hte=Symbol("onConnect"),Gte=Symbol("onDisconnect"),qte=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Vh;process.emitWarning(new Vh)}e[Mr].timeout&&e[Mr].timeoutType===sm&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Dl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[kl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};cre.exports=s9e});var mre=E((W7t,pre)=>{"use strict";var So=b("node:assert"),{pipeline:u9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:ure,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:RS,kReset:kS,kClient:im,kRunning:vS,kPending:l9e,kQueue:vl,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Rn,kStrictContentLength:d9e,kOnError:yU,kMaxConcurrentStreams:gre,kHTTP2Session:Da,kResume:_l,kSize:h9e,kHTTPContext:f9e}=yr(),pu=Symbol("open streams"),lre,dre=!1,DS;try{DS=b("node:http2")}catch{DS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:g9e,HTTP2_HEADER_METHOD:p9e,HTTP2_HEADER_PATH:m9e,HTTP2_HEADER_SCHEME:E9e,HTTP2_HEADER_CONTENT_LENGTH:C9e,HTTP2_HEADER_EXPECT:I9e,HTTP2_HEADER_STATUS:y9e}}=DS;function B9e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function b9e(t,e){t[Rn]=e,dre||(dre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=DS.connect(t[RS],{createConnection:()=>e,peerMaxConcurrentStreams:t[gre]});r[pu]=0,r[im]=t,r[Rn]=e,Et.addListener(r,"error",w9e),Et.addListener(r,"frameError",S9e),Et.addListener(r,"end",N9e),Et.addListener(r,"goaway",T9e),Et.addListener(r,"close",function(){let{[im]:s}=this,{[Rn]:i}=s,o=this[Rn][ka]||this[ka]||new _I("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[l9e]===0);let a=s[vl].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[im][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new _I("closed",Et.getSocketInfo(this));t[Rn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[vS]===0),t.emit("disconnect",t[RS],[t],s),t[_l]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return R9e(t,...s)},resume(){Q9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Q9e(t){let e=t[Rn];e?.destroyed===!1&&(t[h9e]===0&&t[gre]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function w9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][ka]=t,this[im][yU](t)}function S9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][ka]=n,this[im][yU](n)}}function N9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function T9e(t){let e=this[ka]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[im];if(r[Rn]=null,r[f9e]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Rn],e),r[Ra]<r[vl].length){let n=r[vl][r[Ra]];r[vl][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[vS]===0),r.emit("disconnect",r[RS],[r],e),r[_l]()}function x9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function R9e(t,e){let r=t[Da],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[RS];l[g9e]=i||`${h}${f?`:${f}`:""}`,l[p9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new ure,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[vl][t[Ra]++]=null,t[_l]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[vl][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[vl][t[Ra]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[m9e]=s,l[E9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){lre??=tm().extractBody;let[N,M]=lre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),x9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[d9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[C9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[I9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[rGe]=c??3e5,this[tGe]=s??3e5,this[nGe]=C??!0,this[sGe]=N,this[wU]=O,this[Ml]=null,this[AGe]=P>-1?P:-1,this[lGe]=ee??100,this[Kr]=null,this[va]=[],this[Eu]=0,this[_a]=0,this[UI]=ce=>NU(this,ce),this[uGe]=ce=>xre(this,ce)}get pipelining(){return this[LS]}set pipelining(e){this[LS]=e,this[UI](!0)}get[HI](){return this[va].length-this[_a]}get[OI](){return this[_a]-this[Eu]}get[PI](){return this[va].length-this[Eu]}get[z9e](){return!!this[Kr]&&!this[am]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Tre(this)||1)||this[HI]>0)}[J9e](e){Rre(this),this.once("connect",e)}[cGe](e,r){let n=e.origin||this[Rc].origin,s=new H9e(n,e,r);return this[va].push(s),this[Jh]||(Wh.bodyLength(s.body)==null&&Wh.isIterable(s.body)?(this[Jh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[Jh]&&this[Ll]!==2&&this[QU]&&(this[Ll]=2),this[Ll]<2}async[oGe](){return new Promise(e=>{this[PI]?this[Ml]=e:e(null)})}async[aGe](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Wh.errorRequest(this,o,e)}let s=()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},fGe=MS();function xre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[_a]===t[Eu]);let r=t[va].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Wh.errorRequest(t,s,e)}mu(t[PI]===0)}}async function Rre(t){mu(!t[am]),mu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Rc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Nre.isIP(o)),r=o}t[am]=!0,om.beforeConnect.hasSubscribers&&om.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Fl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Wh.destroy(i.on("error",wre),new Y9e);return}mu(i);try{t[Kr]=i.alpnProtocol==="h2"?await hGe(t,i):await dGe(t,i)}catch(o){throw i.destroy().on("error",wre),o}t[am]=!1,i[iGe]=0,i[wU]=t[wU],i[W9e]=t,i[K9e]=null,om.connected.hasSubscribers&&om.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[Rc],[t])}catch(i){if(t.destroyed)return;if(t[am]=!1,om.connectError.hasSubscribers&&om.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[OI]===0);t[HI]>0&&t[va][t[_a]].servername===t[Fl];){let o=t[va][t[_a]++];Wh.errorRequest(t,o,i)}else xre(t,i);t.emit("connectionError",t[Rc],[t],i)}t[UI]()}function Sre(t){t[Ll]=0,t.emit("drain",t[Rc],[t])}function NU(t,e){t[Jh]!==2&&(t[Jh]=2,gGe(t,e),t[Jh]=0,t[Eu]>256&&(t[va].splice(0,t[Eu]),t[_a]-=t[Eu],t[Eu]=0))}function gGe(t,e){for(;;){if(t.destroyed){mu(t[HI]===0);return}if(t[Ml]&&!t[PI]){t[Ml](),t[Ml]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ll]=2;else if(t[Ll]===2){e?(t[Ll]=1,queueMicrotask(()=>Sre(t))):Sre(t);continue}if(t[HI]===0||t[OI]>=(Tre(t)||1))return;let r=t[va][t[_a]];if(t[Rc].protocol==="https:"&&t[Fl]!==r.servername){if(t[OI]>0)return;t[Fl]=r.servername,t[Kr]?.destroy(new q9e("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[am])return;if(!t[Kr]){Rre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}Dre.exports=SU});var TU=E(($7t,kre)=>{"use strict";var US=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};kre.exports=class{constructor(){this.head=this.tail=new US}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new US),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var _re=E((X7t,vre)=>{var{kFree:pGe,kConnected:mGe,kPending:EGe,kQueued:CGe,kRunning:IGe,kSize:yGe}=yr(),zh=Symbol("pool"),xU=class{constructor(e){this[zh]=e}get connected(){return this[zh][mGe]}get free(){return this[zh][pGe]}get pending(){return this[zh][EGe]}get queued(){return this[zh][CGe]}get running(){return this[zh][IGe]}get size(){return this[zh][yGe]}};vre.exports=xU});var FU=E((Z7t,Yre)=>{"use strict";var BGe=Wp(),bGe=TU(),{kConnected:RU,kSize:Fre,kRunning:Mre,kPending:Lre,kQueued:GI,kBusy:QGe,kFree:wGe,kUrl:SGe,kClose:NGe,kDestroy:TGe,kDispatch:xGe}=yr(),RGe=_re(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),Ure=Symbol("onConnect"),Pre=Symbol("onDisconnect"),Ore=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Zne.exports=UU});var fS=m((FYt,sse)=>{"use strict";var tse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bqe}=Lt(),Qqe=Up();nse()===void 0&&rse(new Qqe);function rse(t){if(!t||typeof t.dispatch!="function")throw new bqe("Argument agent must implement Agent");Object.defineProperty(globalThis,tse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function nse(){return globalThis[tse]}sse.exports={setGlobalDispatcher:rse,getGlobalDispatcher:nse}});var gS=m((LYt,ise)=>{"use strict";ise.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var ase=m((UYt,ose)=>{"use strict";var wqe=J1();ose.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new wqe(r,o,s,i);return r(a,A)}}});var cse=m((PYt,Ase)=>{"use strict";var Sqe=sS();Ase.exports=t=>e=>function(n,s){return e(n,new Sqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var lse=m((OYt,use)=>{"use strict";var Nqe=dt(),{InvalidArgumentError:Tqe,RequestAbortedError:xqe}=Lt(),Rqe=gS(),PU=class extends Rqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Tqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Nqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new xqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Dqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new PU({maxSize:i},s);return e(n,o)}}use.exports=Dqe});var fse=m((HYt,hse)=>{"use strict";var{isIP:kqe}=b("node:net"),{lookup:vqe}=b("node:dns"),_qe=gS(),{InvalidArgumentError:zp,InformationalError:Fqe}=Lt(),dse=Math.pow(2,31)-1,OU=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Fqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){vqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===dse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===dse?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new HU(this,e,r)}},HU=class extends _qe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Joe(i)&&(r[s]=i);break;case"id":zoe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Joe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&zoe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};joe.exports={EventSourceStream:SP}});var sae=m((EVt,nae)=>{"use strict";var{pipeline:VWe}=b("node:stream"),{fetching:WWe}=QI(),{makeRequest:JWe}=$p(),{webidl:fu}=zn(),{EventSourceStream:zWe}=Koe(),{parseMIMEType:jWe}=Xs(),{createFastMessageEvent:KWe}=nm(),{isNetworkError:$oe}=BI(),{delay:$We}=QP(),{kEnumerableProperty:qh}=dt(),{environmentSettingsObject:Xoe}=Ti(),Zoe=!1,eae=3e3,LI=0,tae=1,UI=2,XWe="anonymous",ZWe="use-credentials",Am=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=LI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let n="EventSource constructor";fu.argumentLengthCheck(arguments,1,n),Zoe||(Zoe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,n,"url"),r=fu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:eae};let s=Xoe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XWe;r.withCredentials&&(o=ZWe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Xoe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=JWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===UI)return;this.#r=LI;let e={request:this.#s,dispatcher:this.#a},r=n=>{$oe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if($oe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jWe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=tae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zWe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KWe(A.type,A.options))}});VWe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=WWe(e)}async#c(){this.#r!==UI&&(this.#r=LI,this.dispatchEvent(new Event("error")),await $We(this.#o.reconnectionTime),this.#r===LI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){fu.brandCheck(this,t),this.#r!==UI&&(this.#r=UI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},rae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:LI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:tae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:UI,writable:!1}};Object.defineProperties(Am,rae);Object.defineProperties(Am.prototype,rae);Object.defineProperties(Am.prototype,{close:qh,onerror:qh,onmessage:qh,onopen:qh,readyState:qh,url:qh,withCredentials:qh});fu.converters.EventSourceInitDict=fu.dictionaryConverter([{key:"withCredentials",converter:fu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fu.converters.any}]);nae.exports={EventSource:Am,defaultReconnectionTime:eae}});var nN=m((CVt,Ye)=>{"use strict";var eJe=Mp(),iae=GC(),tJe=Lp(),rJe=rre(),nJe=Up(),sJe=$L(),iJe=Sre(),oJe=kre(),oae=Lt(),rN=dt(),{InvalidArgumentError:tN}=oae,cm=Ene(),aJe=YC(),AJe=kU(),cJe=ese(),uJe=FU(),lJe=CU(),dJe=sS(),{getGlobalDispatcher:aae,setGlobalDispatcher:hJe}=fS(),fJe=gS(),gJe=J1(),pJe=z1();Object.assign(iae.prototype,cm);Ye.exports.Dispatcher=iae;Ye.exports.Client=eJe;Ye.exports.Pool=tJe;Ye.exports.BalancedPool=rJe;Ye.exports.Agent=nJe;Ye.exports.ProxyAgent=sJe;Ye.exports.EnvHttpProxyAgent=iJe;Ye.exports Line truncated
%s`,M,M,C,n);var Y=C.type==="*"?mO:C.type==="?"?pO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),ne=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);ne+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var $e="";Ae===""&&e!==NN&&($e="$");var it=z+ee+Ae+$e+ne;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===NN)return[n,s];if(!s)return lKe(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Ui.makeRe=function(t,e){return new An(t,e||{}).makeRe()};An.prototype.makeRe=uKe;function uKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?mO:e.dot?rKe:nKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===jh?r:typeof o=="string"?dKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Ui.match=function(t,e,r){r=r||{};var n=new An(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};An.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;KI.sep!=="/"&&(e=e.split(KI.sep).join("/")),e=e.split(ZAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};An.prototype.matchOne=function(t,e,r){return e.indexOf(jh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};An.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===jh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===jh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===jh?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var Y=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[Y--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};An.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};An.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===jh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function lKe(t){return t.replace(/\\(.)/g,"$1")}function dKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ty=m((hWt,lce)=>{"use strict";var IKe="2.0.0",yKe=Number.MAX_SAFE_INTEGER||9007199254740991,BKe=16,bKe=250,QKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:BKe,MAX_SAFE_BUILD_LENGTH:bKe,MAX_SAFE_INTEGER:yKe,RELEASE_TYPES:QKe,SEMVER_SPEC_VERSION:IKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ry=m((fWt,dce)=>{"use strict";var wKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};dce.exports=wKe});var Em=m((xA,hce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:yO,MAX_SAFE_BUILD_LENGTH:SKe,MAX_LENGTH:NKe}=ty(),TKe=ry();xA=hce.exports={};var xKe=xA.re=[],RKe=xA.safeRe=[],me=xA.src=[],DKe=xA.safeSrc=[],Ee=xA.t={},kKe=0,BO="[a-zA-Z0-9-]",vKe=[["\\s",1],["\\d",NKe],[BO,SKe]],_Ke=t=>{for(let[e,r]of vKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};Kse.exports=FP});var rN=E((NWt,tie)=>{"use strict";var Xse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rVe}=Lt(),nVe=um();eie()===void 0&&Zse(new nVe);function Zse(t){if(!t||typeof t.dispatch!="function")throw new rVe("Argument agent must implement Agent");Object.defineProperty(globalThis,Xse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function eie(){return globalThis[Xse]}tie.exports={setGlobalDispatcher:Zse,getGlobalDispatcher:eie}});var nN=E((xWt,rie)=>{"use strict";rie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var sie=E((RWt,nie)=>{"use strict";var sVe=FS();nie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new sVe(r,o,s,i);return r(a,c)}}});var oie=E((DWt,iie)=>{"use strict";var iVe=WS();iie.exports=t=>e=>function(n,s){return e(n,new iVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var cie=E((kWt,aie)=>{"use strict";var oVe=dt(),{InvalidArgumentError:aVe,RequestAbortedError:cVe}=Lt(),AVe=nN(),MP=class extends AVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=oVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new cVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function uVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}aie.exports=uVe});var lie=E((vWt,uie)=>{"use strict";var{isIP:lVe}=b("node:net"),{lookup:dVe}=b("node:dns"),hVe=nN(),{InvalidArgumentError:Im,InformationalError:fVe}=Lt(),Aie=Math.pow(2,31)-1,LP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new fVe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){dVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Aie?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Aie?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new UP(this,e,r)}},UP=class extends hVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Yae(i)&&(r[s]=i);break;case"id":Vae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vae(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Wae.exports={EventSourceStream:bO}});var tce=E((uJt,ece)=>{"use strict";var{pipeline:Qze}=b("node:stream"),{fetching:wze}=ry(),{makeRequest:Sze}=bm(),{webidl:bu}=jn(),{EventSourceStream:Nze}=Jae(),{parseMIMEType:Tze}=Ks(),{createFastMessageEvent:xze}=xm(),{isNetworkError:zae}=ey(),{delay:Rze}=yO(),{kEnumerableProperty:uf}=dt(),{environmentSettingsObject:jae}=xi(),Kae=!1,$ae=3e3,gy=0,Xae=1,py=2,Dze="anonymous",kze="use-credentials",_m=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Kae||(Kae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ae};let s=jae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Dze;r.withCredentials&&(o=kze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Sze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{zae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Tze(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Xae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Nze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(xze(c.type,c.options))}});Qze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=wze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Rze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Zae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(_m,Zae);Object.defineProperties(_m.prototype,Zae);Object.defineProperties(_m.prototype,{close:uf,onerror:uf,onmessage:uf,onopen:uf,readyState:uf,url:uf,withCredentials:uf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);ece.exports={EventSource:_m,defaultReconnectionTime:$ae}});var VN=E((lJt,Ye)=>{"use strict";var vze=cm(),rce=II(),_ze=Am(),Fze=Zre(),Mze=um(),Lze=zU(),Uze=bne(),Pze=xne(),nce=Lt(),YN=dt(),{InvalidArgumentError:qN}=nce,Fm=gse(),Oze=BI(),Hze=xP(),Gze=$se(),qze=kP(),Yze=pP(),Vze=WS(),{getGlobalDispatcher:sce,setGlobalDispatcher:Wze}=rN(),Jze=nN(),zze=FS(),jze=MS();Object.assign(rce.prototype,Fm);Ye.exports.Dispatcher=rce;Ye.exports.Client=vze;Ye.exports.Pool=_ze;Ye.exports.BalancedPool=Fze;Ye.exports.Agent=Mze;Ye.exports.ProxyAgent=Lze;Ye.exports.EnvHttpProxyAgent=Uze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?A3:C.type==="?"?c3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==fT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===fT)return[n,s];if(!s)return Q$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=b$e;function b$e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?A3:e.dot?g$e:p$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?w$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(YAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};cn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===mf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function Q$e(t){return t.replace(/\\(.)/g,"$1")}function w$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var qm=E((mjt,$Ae)=>{"use strict";var v$e="2.0.0",_$e=Number.MAX_SAFE_INTEGER||9007199254740991,F$e=16,M$e=250,L$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$Ae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:F$e,MAX_SAFE_BUILD_LENGTH:M$e,MAX_SAFE_INTEGER:_$e,RELEASE_TYPES:L$e,SEMVER_SPEC_VERSION:v$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((Ejt,XAe)=>{"use strict";var U$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};XAe.exports=U$e});var Ym=E((Uc,ZAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l3,MAX_SAFE_BUILD_LENGTH:P$e,MAX_LENGTH:O$e}=qm(),H$e=vy();Uc=ZAe.exports={};var G$e=Uc.re=[],q$e=Uc.safeRe=[],me=Uc.src=[],Y$e=Uc.safeSrc=[],Ee=Uc.t={},V$e=0,d3="[a-zA-Z0-9-]",W$e=[["\\s",1],["\\d",O$e],[d3,P$e]],J$e=t=>{for(let[e,r]of W$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`).join(`
`+i),t.push(s+"m+"+hT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=uet()+e+" "+t[0]}function uet(){return Dn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function det(...t){return process.stderr.write(dT.formatWithOptions(Dn.inspectOpts,...t)+`
`)}function het(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fet(){return process.env.DEBUG}function get(t){t.inspectOpts={};let e=Object.keys(Dn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dn.inspectOpts[e[r]]}hT.exports=A3()(Dn);var{formatters:qle}=hT.exports;qle.o=function(t){return this.inspectOpts.colors=this.useColors,dT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qle.O=function(t){return this.inspectOpts.colors=this.useColors,dT.inspect(t,this.inspectOpts)}});var fT=m((Uzt,l3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?l3.exports=Lle():l3.exports=Yle()});var Jle=m(ai=>{"use strict";var pet=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),met=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vle=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pet(e,t,r);return met(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var Eet=Vle(b("http")),Cet=Vle(b("https"));async function Wle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Wle;async function Iet(t){let r=(await Wle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=Iet;function yet(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Cet:Eet).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=yet});var h3=m(Hi=>{"use strict";var jle=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bet=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kle=Hi&&Hi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&jle(e,t,r);return Bet(e,t),e},bet=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jle(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Agent=void 0;var Qet=Kle(b("net")),zle=Kle(b("http")),wet=b("https");bet(Jle(),Hi);var kA=Symbol("AgentBaseInternalState"),d3=class extends zle.Agent{constructor(e){super(e),this[kA]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Qet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?wet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof zle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[kA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kA].currentSocket;if(this[kA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kA]&&(this[kA].defaultPort=e)}get protocol(){return this[kA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kA]&&(this[kA].protocol=e)}};Hi.Agent=d3});var $le=m(Nm=>{"use strict";var Net=Nm&&Nm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nm,"__esModule",{value:!0});Nm.parseProxyResponse=void 0;var Tet=Net(fT()),gT=(0,Tet.default)("https-proxy-agent:parse-proxy-response");function xet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),gT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),gT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+ZT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ftt()+e+" "+t[0]}function Ftt(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mtt(...t){return process.stderr.write(XT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function Ltt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Utt(){return process.env.DEBUG}function Ptt(t){t.inspectOpts={};let e=Object.keys(kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kn.inspectOpts[e[r]]}ZT.exports=t8()(kn);var{formatters:Nde}=ZT.exports;Nde.o=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nde.O=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts)}});var ex=E((z$t,s8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?s8.exports=yde():s8.exports=Tde()});var Dde=E(oi=>{"use strict";var Ott=oi&&oi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Htt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xde=oi&&oi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ott(e,t,r);return Htt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Gtt=xde(b("http")),qtt=xde(b("https"));async function Rde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Rde;async function Ytt(t){let r=(await Rde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=Ytt;function Vtt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qtt:Gtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=Vtt});var o8=E(qi=>{"use strict";var vde=qi&&qi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wtt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_de=qi&&qi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vde(e,t,r);return Wtt(e,t),e},Jtt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var ztt=_de(b("net")),kde=_de(b("http")),jtt=b("https");Jtt(Dde(),qi);var Hc=Symbol("AgentBaseInternalState"),i8=class extends kde.Agent{constructor(e){super(e),this[Hc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new ztt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?jtt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof kde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Hc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Hc].currentSocket;if(this[Hc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Hc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Hc]&&(this[Hc].defaultPort=e)}get protocol(){return this[Hc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Hc]&&(this[Hc].protocol=e)}};qi.Agent=i8});var Fde=E(Zm=>{"use strict";var Ktt=Zm&&Zm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.parseProxyResponse=void 0;var $tt=Ktt(ex()),tx=(0,$tt.default)("https-proxy-agent:parse-proxy-response");function Xtt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),tx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),tx("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){gT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),Y=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,Y]:Array.isArray(v)?v.push(Y):C[M]=Y}gT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Nm.parseProxyResponse=xet});var nde=m(ko=>{"use strict";var Ret=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Det=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tde=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ret(e,t,r);return Det(e,t),e},rde=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var pT=tde(b("net")),Xle=tde(b("tls")),ket=rde(b("assert")),vet=rde(fT()),_et=h3(),Fet=b("url"),Met=$le(),my=(0,vet.default)("https-proxy-agent"),Zle=t=>t.servername===void 0&&t.host&&!pT.isIP(t.host)?{...t,servername:t.host}:t,mT=class extends _et.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fet.URL(e):e,this.proxyHeaders=r?.headers??{},my("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ede(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(my("Creating `tls.Socket`: %o",this.connectOpts),s=Xle.connect(Zle(this.connectOpts))):(my("Creating `net.Socket`: %o",this.connectOpts),s=pT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=pT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){tx("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}tx("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Zm.parseProxyResponse=Xtt});var Hde=E(Fo=>{"use strict";var Ztt=Fo&&Fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ert=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pde=Fo&&Fo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ztt(e,t,r);return ert(e,t),e},Ode=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpsProxyAgent=void 0;var rx=Pde(b("net")),Mde=Pde(b("tls")),trt=Ode(b("assert")),rrt=Ode(ex()),nrt=o8(),srt=b("url"),irt=Fde(),zy=(0,rrt.default)("https-proxy-agent"),Lde=t=>t.servername===void 0&&t.host&&!rx.isIP(t.host)?{...t,servername:t.host}:t,nx=class extends nrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new srt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ude(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=Mde.connect(Lde(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=rx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=rx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,Met.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Let),r.secureEndpoint?(my("Upgrading socket connection to TLS"),Xle.connect({...ede(Zle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new pT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{my("Replaying proxy buffer for failed request"),(0,ket.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};mT.protocols=["http","https"];ko.HttpsProxyAgent=mT;function Let(t){t.resume()}function ede(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ode=m(vo=>{"use strict";var Uet=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pet=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ide=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Uet(e,t,r);return Pet(e,t),e},Oet=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var Het=ide(b("net")),Get=ide(b("tls")),qet=Oet(fT()),Yet=b("events"),Vet=h3(),sde=b("url"),Tm=(0,qet.default)("http-proxy-agent"),ET=class extends Vet.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new sde.URL(e):e,this.proxyHeaders=r?.headers??{},Tm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Wet(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new sde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Tm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Tm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,irt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",ort),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),Mde.connect({...Ude(Lde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new rx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,trt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};nx.protocols=["http","https"];Fo.HttpsProxyAgent=nx;function ort(t){t.resume()}function Ude(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yde=E(Mo=>{"use strict";var art=Mo&&Mo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),crt=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qde=Mo&&Mo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&art(e,t,r);return crt(e,t),e},Art=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpProxyAgent=void 0;var urt=qde(b("net")),lrt=qde(b("tls")),drt=Art(ex()),hrt=b("events"),frt=o8(),Gde=b("url"),e0=(0,drt.default)("http-proxy-agent"),sx=class extends frt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gde.URL(e):e,this.proxyHeaders=r?.headers??{},e0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?grt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Gde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;e0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(e0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Tm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Tm("Creating `tls.Socket`: %o",this.connectOpts),i=Get.connect(this.connectOpts)):(Tm("Creating `net.Socket`: %o",this.connectOpts),i=Het.connect(this.connectOpts)),await(0,Yet.once)(i,"connect"),i}};ET.protocols=["http","https"];vo.HttpProxyAgent=ET;function Wet(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ude=m(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.state=void 0;kT.state={instrumenterImplementation:void 0}});var the=m(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.state=void 0;LT.state={operationRequestMap:new WeakMap}});var fge=m((dlr,Hot)=>{Hot.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var pge=m((hlr,gge)=>{var Got=fge();gge.exports={version:Got.version}});var aR=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.isJsonObject=Km.typeofJsonValue=void 0;function $ot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Km.typeofJsonValue=$ot;function Xot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Km.isJsonObject=Xot});var cR=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.base64encode=$m.base64decode=void 0;var _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),AR=[];for(let t=0;t<_u.length;t++)AR[_u[t].charCodeAt(0)]=t;AR[45]=_u.indexOf("+");AR[95]=_u.indexOf("/");function Zot(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=AR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}$m.base64decode=Zot;function eat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=_u[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=_u[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=_u[s|n>>6],e+=_u[n&63],r=0;break}return r&&(e+=_u[s],e+="=",r==1&&(e+="=")),e}$m.base64encode=eat});var yge=m(uR=>{"use strict";Object.defineProperty(uR,"__esModule",{value:!0});uR.utf8read=void 0;var oH=t=>String.fromCharCode.apply(String,t);function tat(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(oH(n)),s=0);return r.length?(s&&r.push(oH(n.slice(0,s))),r.join("")):oH(n.slice(0,s))}uR.utf8read=tat});var lB=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var rat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(rat=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function nat(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=nat;var sat;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(sat=nc.WireType||(nc.WireType={}))});var dR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function iat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=iat;function oat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}hi.varint64write=oat;var lR=65536*65536;function aat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=lR&&(s=s+(n/lR|0),n=n%lR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=aat;function Aat(t,e){if(e>>>0<=2097151)return""+(lR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}hi.int64toString=Aat;function cat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=cat;function uat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=uat});var rd=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.PbLong=td.PbULong=td.detectBi=void 0;var dB=dR(),or;function Bge(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}td.detectBi=Bge;Bge();function bge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qge=/^-?[0-9]+$/,fR=4294967296,hR=2147483648,gR=c Line truncated
`)}};PR.RpcError=vH});var FH=m(HR=>{"use strict";Object.defineProperty(HR,"__esModule",{value:!0});HR.mergeRpcOptions=void 0;var epe=ct();function kAt(t,e){if(!e)return t;let r={};OR(t,r),OR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=epe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=epe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},OR(t.meta,r.meta),OR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}HR.mergeRpcOptions=kAt;function OR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var LH=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.Deferred=xf.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=xf.DeferredState||(xf.DeferredState={}));var MH=class{constructor(e=!0){this._state=oc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};xf.Deferred=MH});var PH=m(GR=>{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});GR.RpcOutputStreamController=void 0;var tpe=LH(),Rf=ct(),UH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Rf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Rf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Rf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Rf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Rf.assert(e,"bad state"),Rf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new tpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Rf.assert(n.state==tpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};GR.RpcOutputStreamController=UH});var HH=m(s0=>{"use strict";var vAt=s0&&s0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(s0,"__esModule",{value:!0});s0.UnaryCall=void 0;var OH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return vAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};s0.UnaryCall=OH});var qH=m(i0=>{"use strict";var _At=i0&&i0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(i0,"__esModule",{value:!0});i0.ServerStreamingCall=void 0;var GH=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),e0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(e0("Creating `tls.Socket`: %o",this.connectOpts),i=lrt.connect(this.connectOpts)):(e0("Creating `net.Socket`: %o",this.connectOpts),i=urt.connect(this.connectOpts)),await(0,hrt.once)(i,"connect"),i}};sx.protocols=["http","https"];Mo.HttpProxyAgent=sx;function grt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var fhe=E(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.state=void 0;px.state={instrumenterImplementation:void 0}});var Dhe=E(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var lpe=E((jfr,bct)=>{bct.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var hpe=E((Kfr,dpe)=>{var Qct=lpe();dpe.exports={version:Qct.version}});var ZR=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.isJsonObject=Q0.typeofJsonValue=void 0;function vct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Q0.typeofJsonValue=vct;function _ct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Q0.isJsonObject=_ct});var tD=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.base64encode=w0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),eD=[];for(let t=0;t<Gu.length;t++)eD[Gu[t].charCodeAt(0)]=t;eD[45]=Gu.indexOf("+");eD[95]=Gu.indexOf("/");function Fct(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=eD[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}w0.base64decode=Fct;function Mct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}w0.base64encode=Mct});var Epe=E(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function Lct(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}rD.utf8read=Lct});var YB=E(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.WireType=dA.mergeBinaryOptions=dA.UnknownFieldHandler=void 0;var Uct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Uct=dA.UnknownFieldHandler||(dA.UnknownFieldHandler={}));function Pct(t,e){return Object.assign(Object.assign({},t),e)}dA.mergeBinaryOptions=Pct;var Oct;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Oct=dA.WireType||(dA.WireType={}))});var sD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Hct(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=Hct;function Gct(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}hi.varint64write=Gct;var nD=65536*65536;function qct(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=nD&&(s=s+(n/nD|0),n=n%nD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=qct;function Yct(t,e){if(e>>>0<=2097151)return""+(nD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}hi.int64toString=Yct;function Vct(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=Vct;function Wct(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=Wct});var Ed=E(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var VB=sD(),ir;function Cpe(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}md.detectBi=Cpe;Cpe();function Ipe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ype=/^-?[0-9]+$/,oD=4294967296,iD=2147483648,aD=c Line truncated
`)}};DD.RpcError=Q9});var S9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.mergeRpcOptions=void 0;var $pe=At();function fut(t,e){if(!e)return t;let r={};kD(t,r),kD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$pe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$pe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},kD(t.meta,r.meta),kD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}vD.mergeRpcOptions=fut;function kD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var T9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var gA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(gA=jf.DeferredState||(jf.DeferredState={}));var N9=class{constructor(e=!0){this._state=gA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==gA.PENDING)throw new Error(`cannot resolve ${gA[this.state].toLowerCase()}`);this._resolve(e),this._state=gA.RESOLVED}reject(e){if(this.state!==gA.PENDING)throw new Error(`cannot reject ${gA[this.state].toLowerCase()}`);this._reject(e),this._state=gA.REJECTED}resolvePending(e){this._state===gA.PENDING&&this.resolve(e)}rejectPending(e){this._state===gA.PENDING&&this.reject(e)}};jf.Deferred=N9});var R9=E(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.RpcOutputStreamController=void 0;var Xpe=T9(),Kf=At(),x9=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Kf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Kf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Kf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Kf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Kf.assert(e,"bad state"),Kf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Xpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==Xpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_D.RpcOutputStreamController=x9});var k9=E(k0=>{"use strict";var gut=k0&&k0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(k0,"__esModule",{value:!0});k0.UnaryCall=void 0;var D9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return gut(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};k0.UnaryCall=D9});var _9=E(v0=>{"use strict";var put=v0&&v0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(v0,"__esModule",{value:!0});v0.ServerStreamingCall=void 0;var v9=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var kEe=m(DEe=>{"use strict";var Sq=Gu().Buffer;DEe._dbcs=qu;var Kn=-1,REe=-2,ta=-10,Os=-1e3,_0=new Array(256),nb=-1;for(y2=0;y2<256;y2++)_0[y2]=Kn;var y2;function qu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=_0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(_0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(_0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=REe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function I0t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(i0t.has(s)){r=s;break}}return r}function y0t(t,e){let r=I0t(e);r!==""&&(t.referrerPolicy=r)}function B0t(){return"allowed"}function b0t(){return"success"}function Q0t(){return"success"}function w0t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function S0t(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&YY(t.origin)&&!YY(eg(t))&&(e=null);break;case"same-origin":db(t,eg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function P0(t,e){return t}function N0t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:P0(t.domainLookupStartTime,r),domainLookupEndTime:P0(t.domainLookupEndTime,r),connectionStartTime:P0(t.connectionStartTime,r),connectionEndTime:P0(t.connectionEndTime,r),secureConnectionStartTime:P0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function T0t(t){return P0(c0t.now(),t)}function x0t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Aye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R0t(t){return{referrerPolicy:t.referrerPolicy}}function D0t(t){let e=t.referrerPolicy;hb(e);let r=null;if(t.referrer==="client"){let i=nye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else bd.is.URL(t.referrer)&&(r=t.referrer);let n=qY(r),s=qY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=eg(t);return db(n,i)?n:Zf(n)&&!Zf(i)?"no-referrer":s}case"same-origin":return db(t,n)?n:"no-referrer";case"origin-when-cross-origin":return db(t,n)?n:s;case"no-referrer-when-downgrade":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":n}}}function qY(t,e=!1){return hb(bd.is.URL(t)),t=new URL(t),dye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var k0t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),v0t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function cye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),v0t(t)):k0t(t)}function _0t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||cye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Zf(t){return bd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:_0t(t.origin):!1}function F0t(t){}function db(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function M0t(t){return t.controller.state==="aborted"}function L0t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function U0t(t){return l0t[t.toLowerCase()]??t}var P0t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function uye(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,P0t),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function O0t(t,e,r,n=0,s=1){let i=uye(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return bd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return bd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=sa(a=>ZY(a)&&a!==59,t,e);i=$Y.decode(o)}return{name:n,value:i}}function uEt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=sa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=XY(o,!0,!0,a=>a===9||a===32),!rEt.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,sa(a=>a===32||a===9,t,e),tEt(o)){case"content-disposition":{if(r=n=null,sa(A=>ZY(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=cEt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=sa(A=>A!==10&&A!==13,t,e);a=XY(a,!1,!0,A=>A===9||A===32),s=Eye(a);break}case"content-transfer-encoding":{let a=sa(A=>A!==10&&A!==13,t,e);a=XY(a,!1,!0,A=>A===9||A===32),i=Eye(a);break}default:sa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function sa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function XY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function lEt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function dEt(t){return t<=31||t===127}function hEt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function ZY(t){return t<=127&&t!==32&&t!==9&&!dEt(t)&&!hEt(t)}Cye.exports={multipartFormDataParser:AEt,validateBoundary:aEt}});var fb=m((k0r,yye)=>{"use strict";function fEt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yye.exports={createDeferredPromise:fEt}});var G0=m((v0r,Sye)=>{"use strict";var rV=et(),{ReadableStreamFrom:gEt,readableStreamClose:pEt,fullyReadBody:mEt,extractMimeType:EEt}=eo(),{FormData:Bye,setFormDataState:CEt}=W2(),{webidl:Za}=$n(),eV=b("node:assert"),{isErrored:tV,isDisturbed:IEt}=b("node:stream"),{isUint8Array:yEt}=b("node:util/types"),{serializeAMimeType:BEt}=na(),{multipartFormDataParser:bEt}=Iye(),{createDeferredPromise:QEt}=fb(),{parseJSONFromBytes:wEt}=Wu(),{utf8DecodeBytes:SEt}=O2(),{runtimeFeatures:NEt}=Ju(),TEt=NEt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),J2=new TextEncoder;function xEt(){}var REt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!IEt(e)&&!tV(e)&&e.cancel("Response object has been garbage collected").catch(xEt)});function Qye(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),eV(Za.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let c=`----formdata-undici-0${`${TEt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=J2.encode(u+`; name="${l(d(E))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var aIe=E(oIe=>{"use strict";var TY=Zu().Buffer;oIe._dbcs=el;var Zn=-1,iIe=-2,sa=-10,Us=-1e3,lE=new Array(256),Vb=-1;for(mk=0;mk<256;mk++)lE[mk]=Zn;var mk;function el(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=lE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(lE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(lE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=iIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function dIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if($Ct.has(s)){r=s;break}}return r}function hIt(t,e){let r=dIt(e);r!==""&&(t.referrerPolicy=r)}function fIt(){return"allowed"}function gIt(){return"success"}function pIt(){return"success"}function mIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function EIt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&WV(t.origin)&&!WV(wg(t))&&(e=null);break;case"same-origin":eQ(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pE(t,e){return t}function CIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pE(t.domainLookupStartTime,r),domainLookupEndTime:pE(t.domainLookupEndTime,r),connectionStartTime:pE(t.connectionStartTime,r),connectionEndTime:pE(t.connectionEndTime,r),secureConnectionStartTime:pE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function IIt(t){return pE(tIt.now(),t)}function yIt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function LBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function BIt(t){return{referrerPolicy:t.referrerPolicy}}function bIt(t){let e=t.referrerPolicy;tQ(e);let r=null;if(t.referrer==="client"){let i=kBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else qd.is.URL(t.referrer)&&(r=t.referrer);let n=VV(r),s=VV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??VV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return eQ(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return eQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return eQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function VV(t,e=!1){return tQ(qd.is.URL(t)),t=new URL(t),HBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var QIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),wIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function UBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),wIt(t)):QIt(t)}function SIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||UBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Qg(t){return qd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:SIt(t.origin):!1}function NIt(t){}function eQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function TIt(t){return t.controller.state==="aborted"}function xIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function RIt(t){return nIt[t.toLowerCase()]??t}var DIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function PBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,DIt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function kIt(t,e,r,n=0,s=1){let i=PBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>t7(a)&&a!==59,t,e);i=ZV.decode(o)}return{name:n,value:i}}function ryt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=e7(o,!0,!0,a=>a===9||a===32),!zIt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,aa(a=>a===32||a===9,t,e),JIt(o)){case"content-disposition":{if(r=n=null,aa(c=>t7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=tyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=aa(c=>c!==10&&c!==13,t,e);a=e7(a,!1,!0,c=>c===9||c===32),s=JBe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=e7(a,!1,!0,c=>c===9||c===32),i=JBe(a);break}default:aa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function e7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function nyt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function syt(t){return t<=31||t===127}function iyt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function t7(t){return t<=127&&t!==32&&t!==9&&!syt(t)&&!iyt(t)}zBe.exports={multipartFormDataParser:eyt,validateBoundary:ZIt}});var rQ=E((rBr,KBe)=>{"use strict";function oyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}KBe.exports={createDeferredPromise:oyt}});var CE=E((nBr,tbe)=>{"use strict";var s7=Ze(),{ReadableStreamFrom:ayt,readableStreamClose:cyt,fullyReadBody:Ayt,extractMimeType:uyt}=ro(),{FormData:$Be,setFormDataState:lyt}=Gk(),{webidl:cc}=es(),r7=b("node:assert"),{isErrored:n7,isDisturbed:dyt}=b("node:stream"),{isUint8Array:hyt}=b("node:util/types"),{serializeAMimeType:fyt}=oa(),{multipartFormDataParser:gyt}=jBe(),{createDeferredPromise:pyt}=rQ(),{parseJSONFromBytes:myt}=nl(),{utf8DecodeBytes:Eyt}=Mk(),{runtimeFeatures:Cyt}=sl(),Iyt=Cyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),qk=new TextEncoder;function yyt(){}var Byt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dyt(e)&&!n7(e)&&e.cancel("Response object has been garbage collected").catch(yyt)});function ZBe(t,e=!1){let r=null,n=null;cc.is.ReadableStream(t)?r=t:cc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),r7(cc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(cc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cc.is.BufferSource(t))i=cc.util.getCopyOfBytesHeldByBufferSource(t);else if(cc.is.FormData(t)){let A=`----formdata-undici-0${`${Iyt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=qk.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=J2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=qk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=J2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Za.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(rV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:gEt(t)}return(typeof i=="string"||yEt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(tV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!tV(r)&&n.enqueue(typeof c=="string"?J2.encode(c):new Uint8Array(c));queueMicrotask(()=>pEt(n))})(),[{stream:r,source:i,length:o},a]}function DEt(t,e=!1){return Za.is.ReadableStream(t)&&(eV(!rV.isDisturbed(t),"The body has already been consumed."),eV(!t.locked,"The stream is locked.")),Qye(t,e)}function kEt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function vEt(t,e){return{blob(){return H0(this,n=>{let s=bye(e(this));return s===null?s="":s&&(s=BEt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return H0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return H0(this,SEt,t,e)},json(){return H0(this,wEt,t,e)},formData(){return H0(this,n=>{let s=bye(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=bEt(n,s),o=new Bye;return CEt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Bye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return H0(this,n=>new Uint8Array(n),t,e)}}}function _Et(t,e){Object.assign(t.prototype,vEt(t,e))}function H0(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),wye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=QEt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(mEt(t.body,o,i),s.promise)}function wye(t){let e=t.body;return e!=null&&(e.stream.locked||rV.isDisturbed(e.stream))}function bye(t){let e=t.headersList,r=EEt(e);return r==="failure"?null:r}Sye.exports={extractBody:Qye,safelyExtractBody:DEt,cloneBody:kEt,mixinBody:_Et,streamRegistry:REt,bodyUnusable:wye}});var Lye=m((_0r,Mye)=>{"use strict";var Ve=b("node:assert"),Je=et(),{channels:Nye}=yd(),nV=Uq(),{RequestContentLengthMismatchError:tg,ResponseContentLengthMismatchError:FEt,RequestAbortedError:vye,HeadersTimeoutError:MEt,HeadersOverflowError:LEt,SocketError:mb,InformationalError:q0,BodyTimeoutError:UEt,HTTPParserError:PEt,ResponseExceededMaxSizeError:OEt}=Ke(),{kUrl:_ye,kReset:yi,kClient:uV,kParser:Wr,kBlocking:Eb,kRunning:gs,kPending:HEt,kSize:Tye,kWriting:wd,kQueue:eA,kNoRef:gb,kKeepAliveDefaultTimeout:GEt,kHostHeader:qEt,kPendingIdx:YEt,kRunningIdx:ia,kError:oa,kPipelining:K2,kSocket:Y0,kKeepAliveTimeoutValue:X2,kMaxHeadersSize:VEt,kKeepAliveMaxTimeout:WEt,kKeepAliveTimeoutThreshold:JEt,kHeadersTimeout:zEt,kBodyTimeout:jEt,kStrictContentLength:oV,kMaxRequests:xye,kCounter:KEt,kMaxResponseSize:$Et,kOnError:XEt,kResume:Qd,kHTTPContext:Fye,kClosed:aV}=$t(),mc=SIe(),ZEt=Buffer.alloc(0),z2=Buffer[Symbol.species],eCt=Je.removeAllListeners,sV;function tCt(){let t=process.env.JEST_WORKER_ID?RY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(xIe())}catch{}return e||(e=new WebAssembly.Module(t||RY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onStatus(new z2(Ec.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onHeaderField(new z2(Ec.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onHeaderValue(new z2(Ec.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onBody(new z2(Ec.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var iV=null,yn=null,Ec=null,j2=0,Cc=null,rCt=0,pb=1,V0=2|pb,$2=4|pb,AV=8|rCt,cV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[VEt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[$Et]}setTi Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=qk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(cc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(s7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=cc.is.ReadableStream(t)?t:ayt(t)}return(typeof i=="string"||hyt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(n7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!n7(r)&&n.enqueue(typeof A=="string"?qk.encode(A):new Uint8Array(A));queueMicrotask(()=>cyt(n))})(),[{stream:r,source:i,length:o},a]}function byt(t,e=!1){return cc.is.ReadableStream(t)&&(r7(!s7.isDisturbed(t),"The body has already been consumed."),r7(!t.locked,"The stream is locked.")),ZBe(t,e)}function Qyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function wyt(t,e){return{blob(){return EE(this,n=>{let s=XBe(e(this));return s===null?s="":s&&(s=fyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return EE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return EE(this,Eyt,t,e)},json(){return EE(this,myt,t,e)},formData(){return EE(this,n=>{let s=XBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=gyt(n,s),o=new $Be;return lyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new $Be;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return EE(this,n=>new Uint8Array(n),t,e)}}}function Syt(t,e){Object.assign(t.prototype,wyt(t,e))}function EE(t,e,r,n){try{cc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),ebe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=pyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Ayt(t.body,o,i),s.promise)}function ebe(t){let e=t.body;return e!=null&&(e.stream.locked||s7.isDisturbed(e.stream))}function XBe(t){let e=t.headersList,r=uyt(e);return r==="failure"?null:r}tbe.exports={extractBody:ZBe,safelyExtractBody:byt,cloneBody:Qyt,mixinBody:Syt,streamRegistry:Byt,bodyUnusable:ebe}});var dbe=E((sBr,lbe)=>{"use strict";var Ve=b("node:assert"),Je=Ze(),{channels:rbe}=Hd(),i7=OY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Nyt,RequestAbortedError:cbe,HeadersTimeoutError:Tyt,HeadersOverflowError:xyt,SocketError:iQ,InformationalError:IE,BodyTimeoutError:Ryt,HTTPParserError:Dyt,ResponseExceededMaxSizeError:kyt}=Ke(),{kUrl:Abe,kReset:Bi,kClient:d7,kParser:Wr,kBlocking:oQ,kRunning:ms,kPending:vyt,kSize:nbe,kWriting:Vd,kQueue:Ac,kNoRef:nQ,kKeepAliveDefaultTimeout:_yt,kHostHeader:Fyt,kPendingIdx:Myt,kRunningIdx:ca,kError:Aa,kPipelining:Wk,kSocket:yE,kKeepAliveTimeoutValue:zk,kMaxHeadersSize:Lyt,kKeepAliveMaxTimeout:Uyt,kKeepAliveTimeoutThreshold:Pyt,kHeadersTimeout:Oyt,kBodyTimeout:Hyt,kStrictContentLength:c7,kMaxRequests:sbe,kCounter:Gyt,kMaxResponseSize:qyt,kOnError:Yyt,kResume:Yd,kHTTPContext:ube,kClosed:A7}=Kt(),SA=tBe(),Vyt=Buffer.alloc(0),Yk=Buffer[Symbol.species],Wyt=Je.removeAllListeners,o7;function Jyt(){let t=process.env.JEST_WORKER_ID?kV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(sBe())}catch{}return e||(e=new WebAssembly.Module(t||kV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onStatus(new Yk(NA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onHeaderField(new Yk(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onHeaderValue(new Yk(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onBody(new Yk(NA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(Bn.ptr===n),Bn.onMessageComplete())}})}var a7=null,Bn=null,NA=null,Vk=0,TA=null,zyt=0,sQ=1,BE=2|sQ,Jk=4|sQ,u7=8|zyt,l7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(SA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Lyt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[qyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[qEt],i?p+=`connection: upgrade\r
`:p+=t[Fyt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[K2]&&!h[yi]?p+=`connection: keep-alive\r
`:t[Wk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return Nye.sendHeaders.hasSubscribers&&Nye.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Dye(f,null,t,e,h,u,p,l):Je.isBuffer(A)?Dye(f,A,t,e,h,u,p,l):Je.isBlobLike(A)?typeof A.stream=="function"?kye(f,A.stream(),t,e,h,u,p,l):hCt(f,A,t,e,h,u,p,l):Je.isStream(A)?dCt(f,A,t,e,h,u,p,l):Je.isIterable(A)?kye(f,A,t,e,h,u,p,l):Ve(!1),!0}function dCt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let A=!1,c=new Z2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new vye;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[wd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Dye(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return rbe.sendHeaders.hasSubscribers&&rbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?obe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?obe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?abe(f,c.stream(),t,e,h,u,p,l):iBt(f,c,t,e,h,u,p,l):Je.isStream(c)?sBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?abe(f,c,t,e,h,u,p,l):Ve(!1),!0}function sBt(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new cbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Vd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function obe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[yi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Bi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Qd]()}catch(A){t(A)}}async function hCt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Yd]()}catch(c){t(c)}}async function iBt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[yi]=!0),r[Qd]()}catch(A){t(A)}}async function kye(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[oa]?h(s[oa]):A=d});s.on("close",c).on("drain",c);let l=new Z2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[oa])throw s[oa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var Z2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[oa])throw r[oa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[oV])throw new tg;process.emitWarning(new tg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Bi]=!0),r[Yd]()}catch(c){t(c)}}async function abe(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ve(c===null),s[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var jk=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[c7])throw new Sg;process.emitWarning(new Sg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===V0&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[wd]=!1,e[oa])throw e[oa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===BE&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vd]=!1,e[Aa])throw e[Aa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[oV])throw new tg;process.emitWarning(new tg)}e[Wr].timeout&&e[Wr].timeoutType===V0&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Qd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[wd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};Mye.exports=nCt});var Wye=m((F0r,Vye)=>{"use strict";var Aa=b("node:assert"),{pipeline:fCt}=b("node:stream"),ut=et(),{RequestContentLengthMismatchError:fV,RequestAbortedError:gCt,SocketError:Bb,InformationalError:Sd,InvalidArgumentError:pCt}=Ke(),{kUrl:yb,kReset:nk,kClient:to,kRunning:bb,kPending:mCt,kQueue:Nd,kPendingIdx:pV,kRunningIdx:tA,kError:ro,kSocket:kr,kStrictContentLength:ECt,kOnError:W0,kMaxConcurrentStreams:tk,kPingInterval:Uye,kHTTP2Session:ju,kHTTP2InitialWindowSize:CCt,kHTTP2ConnectionWindowSize:ICt,kResume:Ic,kSize:yCt,kHTTPContext:mV,kClosed:gV,kBodyTimeout:BCt,kEnableConnectProtocol:Cb,kRemoteSettings:Ib,kHTTP2Stream:ek,kHTTP2SessionState:EV}=$t(),{channels:Pye}=yd(),aa=Symbol("open streams"),Oye,rk;try{rk=b("node:http2")}catch{rk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bCt,HTTP2_HEADER_METHOD:Hye,HTTP2_HEADER_PATH:Gye,HTTP2_HEADER_SCHEME:lV,HTTP2_HEADER_CONTENT_LENGTH:QCt,HTTP2_HEADER_EXPECT:wCt,HTTP2_HEADER_STATUS:dV,HTTP2_HEADER_PROTOCOL:SCt,NGHTTP2_REFUSED_STREAM:NCt,NGHTTP2_CANCEL:TCt}}=rk;function hV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function xCt(t,e){t[kr]=e;let r=t[CCt],n=t[ICt],s=rk.connect(t[yb],{createConnection:()=>e,peerMaxConcurrentStreams:t[tk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[to]=t,s[kr]=e,s[EV]={ping:{interval:t[Uye]===0?null:setInterval(vCt,t[Uye],s).unref()}},s[Cb]=!1,s[Ib]=!1,n&&ut.addListener(s,"connect",DCt.bind(s,n)),ut.addListener(s,"error",_Ct),ut.addListener(s,"frameError",FCt),ut.addListener(s,"end",MCt),ut.addListener(s,"goaway",LCt),ut.addListener(s,"close",UCt),ut.addListener(s,"remoteSettings",kCt),s.unref(),t[ju]=s,e[ju]=s,ut.addListener(e,"error",OCt),ut.addListener(e,"end",HCt),ut.addListener(e,"close",PCt),e[gV]=!1,e.on("close",GCt),{version:"h2",defaultPipelining:1/0,write(i){return YCt(t,i)},resume(){RCt(t)},destroy(i,o){e[gV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[bb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ib]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ib]===!1;return!1}}}function RCt(t){let e=t[kr];e?.destroyed===!1&&(t[yCt]===0||t[tk]===0?(e.unref(),t[ju].unref()):(e.ref(),t[ju].ref()))}function DCt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function kCt(t){if(this[to][tk]=t.maxConcurrentStreams??this[to][tk],this[Ib]===!0&&this[Cb]===!0&&t.enableConnectProtocol===!1){let e=new Sd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][ro]=e,this[to][W0](e);return}this[Cb]=t.enableConnectProtocol??this[Cb],this[Ib]=!0,this[to][Ic]()}function vCt(t){let e=t[EV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[to],o=this[to];if(n!=null){let a=new Sd(`HTTP/2: "PING" errored - type ${n.message}`);o[ro]=a,i[W0](a)}else i.emit("ping",s)}}function _Ct(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][ro]=t,this[to][W0](t)}function FCt(t,e,r){if(r===0){let n=new Sd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][ro]=n,this[to][W0](n)}}function MCt(){let t=new Bb("other side closed",ut.getSocketInfo(this[kr]));this.destroy(t),ut.destroy(this[kr],t)}function LCt(t){let e=this[ro]||new Bb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[kr])),r=this[to];if(r[kr]=null,r[mV]=null,this.close(),this[ju]=null,ut.destroy(this[kr],e),r[tA]<r[Nd].length){let n=r[Nd][r[tA]];r[Nd][r[tA]++]=null,ut.errorRequest(r,n,e),r[pV]=r[tA]}Aa(r[bb]===0),r.emit("disconnect",r[yb],[r],e),r.emit("connectionError",r[yb],[r],e),r[Ic]()}function UCt(){let{[to]:t,[EV]:e}=this,{[kr]:r}=t,n=this[kr][ro]||this[ro]||new Bb("closed",ut.getSocketInfo(r));if(t[kr]=null,t[mV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Aa(t[mCt]===0);let s=t[Nd].splice(t[tA]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function PCt(){let t=this[ro]||new Bb("closed",ut.getSocketInfo(this)),e=this[ju][to];e[kr]=null,e[mV]=null,this[ju]!==null&&this[ju].destroy(t),e[pV]=e[tA],Aa(e[bb]===0),e.emit("disconnect",e[yb],[e],t),e[Ic]()}function OCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ro]=t,this[to][W0](t)}function HCt(){ut.destroy(this,new Bb("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Pye.sendHeaders.publish({request:e,headers:v,socket:n[kr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[wCt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[ek]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:R,signal:c}),f[ek]=!0,Y()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[dV]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),hV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Nd][t[tA]++]=null,t[Ic]()):(E(new Sd("HTTP/2: stream half-closed (remote)")),t[Nd][t[tA]++]=null,t[pV]=t[tA],t[Ic]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new Sd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new Sd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function Y(){!d||y===0?qye(E,f,null,t,e,t[kr],y,C):ut.isBuffer(d)?qye(E,f,d,t,e,t[kr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Yye(E,f,d.stream(),t,e,t[kr],y,C):WCt(E,f,d,t,e,t[kr],y,C):ut.isStream(d)?VCt(E,t[kr],C,f,d,t,e,y):ut.isIterable(d)?Yye(E,f,d,t,e,t[kr],y,C):Aa(!1)}}function qye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(Aa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[nk]=!0),s.onRequestSent(),n[Ic]()}catch(A){t(A)}}function VCt(t,e,r,n,s,i,o,a){Aa(a!==0||i[bb]===0,"stream body cannot be pipelined");let A=fCt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[nk]=!0),i[Ic]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function WCt(t,e,r,n,s,i,o,a){Aa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new fV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[nk]=!0),n[Ic]()}catch(A){t(A)}}async function Yye(t,e,r,n,s,i,o,a){Aa(o!==0||n[bb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Aa(A===null),i[ro]?d(i[ro]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ro])throw i[ro];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[nk]=!0),n[Ic]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Vye.exports=xCt});var kd=m((M0r,tBe)=>{"use strict";var Ku=b("node:assert"),$ye=b("node:net"),Qb=b("node:http"),rg=et(),{ClientStats:JCt}=hY(),{channels:J0}=yd(),zCt=fIe(),jCt=Kf(),{InvalidArgumentError:pr,InformationalError:KCt,ClientDestroyedError:$Ct}=Ke(),XCt=$f(),{kUrl:yc,kServerName:Dd,kClient:ZCt,kBusy:CV,kConnect:eIt,kResuming:ng,kRunning:Tb,kPending:xb,kSize:wb,kQueue:rA,kConnected:tIt,kConnecting:z0,kNeedDrain:xd,kKeepAliveDefaultTimeout:Jye,kHostHeader:rIt,kPendingIdx:nA,kRunningIdx:$u,kError:nIt,kPipelining:sk,kKeepAliveTimeoutValue:sIt,kMaxHeadersSize:iIt,kKeepAliveMaxTimeout:oIt,kKeepAliveTimeoutThreshold:aIt,kHeadersTimeout:AIt,kBodyTimeout:cIt,kStrictContentLength:uIt,kConnector:Sb,kMaxRequests:IV,kCounter:lIt,kClose:dIt,kDestroy:hIt,kDispatch:fIt,kLocalAddress:Nb,kMaxResponseSize:gIt,kOnError:pIt,kHTTPContext:nn,kMaxConcurrentStreams:mIt,kHTTP2InitialWindowSize:EIt,kHTTP2ConnectionWindowSize:CIt,kResume:Rd,kPingInterval:IIt}=$t(),yIt=Lye(),BIt=Wye(),Td=Symbol("kClosedResolve"),bIt=Qb&&Qb.maxHeaderSize&&Number.isInteger(Qb.maxHeaderSize)&&Qb.maxHeaderSize>0?()=>Qb.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},zye=()=>{};function Xye(t){return t[sk]??t[nn]?.defaultPipelining??1}var yV=class extends jCt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:Y,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:ne,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new pr("uns Line truncated
`,this[cIt]=a??3e5,this[AIt]=n??3e5,this[uIt]=E??!0,this[IV]=R,this[Td]=null,this[gIt]=Y>-1?Y:-1,this[nn]=null,this[mIt]=D??100,this[EIt]=ne??262144,this[CIt]=Ae??524288,this[IIt]=ge??6e4,this[rA]=[],this[$u]=0,this[nA]=0,this[Rd]=De=>BV(this,De),this[pIt]=De=>Zye(this,De)}get pipelining(){return this[sk]}set pipelining(e){this[sk]=e,this[Rd](!0)}get stats(){return new JCt(this)}get[xb](){return this[rA].length-this[nA]}get[Tb](){return this[nA]-this[$u]}get[wb](){return this[rA].length-this[$u]}get[tIt](){return!!this[nn]&&!this[z0]&&!this[nn].destroyed}get[CV](){return!!(this[nn]?.busy(null)||this[wb]>=(Xye(this)||1)||this[xb]>0)}[eIt](e){eBe(this),this.once("connect",e)}[fIt](e,r){let n=new zCt(this[yc].origin,e,r);return this[rA].push(n),this[ng]||(rg.bodyLength(n.body)==null&&rg.isIterable(n.body)?(this[ng]=1,queueMicrotask(()=>BV(this))):this[Rd](!0)),this[ng]&&this[xd]!==2&&this[CV]&&(this[xd]=2),this[xd]<2}[dIt](){return new Promise(e=>{this[wb]?this[Td]=e:e(null)})}[hIt](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];rg.errorRequest(this,o,e)}let s=()=>{this[Td]&&(this[Td](),this[Td]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Rd]()})}};function Zye(t,e){if(t[Tb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[nA]===t[$u]);let r=t[rA].splice(t[$u]);for(let n=0;n<r.length;n++){let s=r[n];rg.errorRequest(t,s,e)}Ku(t[wb]===0)}}function eBe(t){Ku(!t[z0]),Ku(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku($ye.isIPv6(o)),r=o}t[z0]=!0,J0.beforeConnect.hasSubscribers&&J0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Dd],localAddress:t[Nb]},connector:t[Sb]}),t[Sb]({host:e,hostname:r,protocol:n,port:s,servername:t[Dd],localAddress:t[Nb]},(i,o)=>{if(i){jye(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Rd]();return}if(t.destroyed){rg.destroy(o.on("error",zye),new $Ct),t[Rd]();return}Ku(o);try{t[nn]=o.alpnProtocol==="h2"?BIt(t,o):yIt(t,o)}catch(a){o.destroy().on("error",zye),jye(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Rd]();return}t[z0]=!1,o[lIt]=0,o[IV]=t[IV],o[ZCt]=t,o[nIt]=null,J0.connected.hasSubscribers&&J0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Dd],localAddress:t[Nb]},connector:t[Sb],socket:o}),t.emit("connect",t[yc],[t]),t[Rd]()})}function jye(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[z0]=!1,J0.connectError.hasSubscribers&&J0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Dd],localAddress:t[Nb]},connector:t[Sb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[Tb]===0);t[xb]>0&&t[rA][t[nA]].servername===t[Dd];){let o=t[rA][t[nA]++];rg.errorRequest(t,o,e)}else Zye(t,e);t.emit("connectionError",t[yc],[t],e)}}function Kye(t){t[xd]=0,t.emit("drain",t[yc],[t])}function BV(t,e){t[ng]!==2&&(t[ng]=2,QIt(t,e),t[ng]=0,t[$u]>256&&(t[rA].splice(0,t[$u]),t[nA]-=t[$u],t[$u]=0))}function QIt(t,e){for(;;){if(t.destroyed){Ku(t[xb]===0);return}if(t[Td]&&!t[wb]){t[Td](),t[Td]=null;return}if(t[nn]&&t[nn].resume(),t[CV])t[xd]=2;else if(t[xd]===2){e?(t[xd]=1,queueMicrotask(()=>Kye(t))):Kye(t);continue}if(t[xb]===0||t[Tb]>=(Xye(t)||1))return;let r=t[rA][t[nA]];if(r===null)return;if(t[yc].protocol==="https:"&&t[Dd]!==r.servername){if(t[Tb]>0)return;t[Dd]=r.servername,t[nn]?.destroy(new KCt("servername changed"),()=>{t[nn]=null,BV(t)})}if(t[z0])return;if(!t[nn]){eBe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}tBe.exports=yV});var bV=m((U0r,rBe)=>{"use strict";var ik=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};rBe.exports=class{constructor(){this.head=this.tail=new ik}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ik),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ok=m((P0r,lBe)=>{"use strict";var{PoolStats:wIt}=hY(),SIt=Kf(),NIt=bV(),{kConnected:QV,kSize:nBe,kRunning:sBe,kPending:iBe,kQueued:Rb,kBusy:TIt,kFree:xIt,kUrl:RIt,kClose:DIt,kDestroy:kIt,kDispatch:vIt}=$t(),qn=Symbol("clients"),Hs=Symbol("needDrain"),Db=Symbol("queue"),wV=Symbol("closed resolve"),SV=Symbol("onDrain"),oBe=Symbol("onConnect"),aBe=Symbol("onDisconnect"),ABe=Symbol("onConnectionError"),NV=Symbol("get dispatcher"),cBe=Symbol("add client"),uBe=Symbol("remove client"),TV=class extends SIt{[Db]=new NIt;[Rb]=0;[qn]=[];[Hs]=!1;[SV](e,r,n){let s=this[Db],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[c7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===BE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Yd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(Ve(n[ms]<=1,"pipeline should only contain this request"),s(e))}};lbe.exports=jyt});var ybe=E((iBr,Ibe)=>{"use strict";var la=b("node:assert"),{pipeline:oBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:p7,RequestAbortedError:aBt,SocketError:uQ,InformationalError:Wd,InvalidArgumentError:cBt}=Ke(),{kUrl:AQ,kReset:Zk,kClient:no,kRunning:lQ,kPending:ABt,kQueue:Jd,kPendingIdx:E7,kRunningIdx:uc,kError:so,kSocket:Dr,kStrictContentLength:uBt,kOnError:bE,kMaxConcurrentStreams:$k,kPingInterval:hbe,kHTTP2Session:ol,kHTTP2InitialWindowSize:lBt,kHTTP2ConnectionWindowSize:dBt,kResume:xA,kSize:hBt,kHTTPContext:C7,kClosed:m7,kBodyTimeout:fBt,kEnableConnectProtocol:aQ,kRemoteSettings:cQ,kHTTP2Stream:Kk,kHTTP2SessionState:I7}=Kt(),{channels:fbe}=Hd(),ua=Symbol("open streams"),gbe,Xk;try{Xk=b("node:http2")}catch{Xk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:gBt,HTTP2_HEADER_METHOD:pbe,HTTP2_HEADER_PATH:mbe,HTTP2_HEADER_SCHEME:h7,HTTP2_HEADER_CONTENT_LENGTH:pBt,HTTP2_HEADER_EXPECT:mBt,HTTP2_HEADER_STATUS:f7,HTTP2_HEADER_PROTOCOL:EBt,NGHTTP2_REFUSED_STREAM:CBt,NGHTTP2_CANCEL:IBt}}=Xk;function g7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function yBt(t,e){t[Dr]=e;let r=t[lBt],n=t[dBt],s=Xk.connect(t[AQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[$k],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[I7]={ping:{interval:t[hbe]===0?null:setInterval(wBt,t[hbe],s).unref()}},s[aQ]=!1,s[cQ]=!1,n&&ut.addListener(s,"connect",bBt.bind(s,n)),ut.addListener(s,"error",SBt),ut.addListener(s,"frameError",NBt),ut.addListener(s,"end",TBt),ut.addListener(s,"goaway",xBt),ut.addListener(s,"close",RBt),ut.addListener(s,"remoteSettings",QBt),s.unref(),t[ol]=s,e[ol]=s,ut.addListener(e,"error",kBt),ut.addListener(e,"end",vBt),ut.addListener(e,"close",DBt),e[m7]=!1,e.on("close",_Bt),{version:"h2",defaultPipelining:1/0,write(i){return MBt(t,i)},resume(){BBt(t)},destroy(i,o){e[m7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[lQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!1;return!1}}}function BBt(t){let e=t[Dr];e?.destroyed===!1&&(t[hBt]===0||t[$k]===0?(e.unref(),t[ol].unref()):(e.ref(),t[ol].ref()))}function bBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function QBt(t){if(this[no][$k]=t.maxConcurrentStreams??this[no][$k],this[cQ]===!0&&this[aQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][bE](e);return}this[aQ]=t.enableConnectProtocol??this[aQ],this[cQ]=!0,this[no][xA]()}function wBt(t){let e=t[I7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[no],o=this[no];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[bE](a)}else i.emit("ping",s)}}function SBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][bE](t)}function NBt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][bE](n)}}function TBt(){let t=new uQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function xBt(t){let e=this[so]||new uQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[C7]=null,this.close(),this[ol]=null,ut.destroy(this[Dr],e),r[uc]<r[Jd].length){let n=r[Jd][r[uc]];r[Jd][r[uc]++]=null,ut.errorRequest(r,n,e),r[E7]=r[uc]}la(r[lQ]===0),r.emit("disconnect",r[AQ],[r],e),r.emit("connectionError",r[AQ],[r],e),r[xA]()}function RBt(){let{[no]:t,[I7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new uQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[C7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[ABt]===0);let s=t[Jd].splice(t[uc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function DBt(){let t=this[so]||new uQ("closed",ut.getSocketInfo(this)),e=this[ol][no];e[Dr]=null,e[C7]=null,this[ol]!==null&&this[ol].destroy(t),e[E7]=e[uc],la(e[lQ]===0),e.emit("disconnect",e[AQ],[e],t),e[xA]()}function kBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][bE](t)}function vBt(){ut.destroy(this,new uQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;fbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[mBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[f7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),g7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jd][t[uc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[uc]++]=null,t[E7]=t[uc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?Ebe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Ebe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Cbe(m,f,d.stream(),t,e,t[Dr],y,C):UBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?LBt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?Cbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Ebe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Zk]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function LBt(t,e,r,n,s,i,o,a){la(a!==0||i[lQ]===0,"stream body cannot be pipelined");let c=oBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Zk]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function UBt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new p7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Zk]=!0),n[xA]()}catch(c){t(c)}}async function Cbe(t,e,r,n,s,i,o,a){la(o!==0||n[lQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{la(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Zk]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Ibe.exports=yBt});var Xd=E((oBr,Rbe)=>{"use strict";var al=b("node:assert"),Sbe=b("node:net"),dQ=b("node:http"),Ng=Ze(),{ClientStats:PBt}=gV(),{channels:QE}=Hd(),OBt=qye(),HBt=yg(),{InvalidArgumentError:gr,InformationalError:GBt,ClientDestroyedError:qBt}=Ke(),YBt=Bg(),{kUrl:RA,kServerName:$d,kClient:VBt,kBusy:y7,kConnect:WBt,kResuming:Tg,kRunning:pQ,kPending:mQ,kSize:hQ,kQueue:lc,kConnected:JBt,kConnecting:wE,kNeedDrain:jd,kKeepAliveDefaultTimeout:Bbe,kHostHeader:zBt,kPendingIdx:dc,kRunningIdx:cl,kError:jBt,kPipelining:ev,kKeepAliveTimeoutValue:KBt,kMaxHeadersSize:$Bt,kKeepAliveMaxTimeout:XBt,kKeepAliveTimeoutThreshold:ZBt,kHeadersTimeout:ebt,kBodyTimeout:tbt,kStrictContentLength:rbt,kConnector:fQ,kMaxRequests:B7,kCounter:nbt,kClose:sbt,kDestroy:ibt,kDispatch:obt,kLocalAddress:gQ,kMaxResponseSize:abt,kOnError:cbt,kHTTPContext:nn,kMaxConcurrentStreams:Abt,kHTTP2InitialWindowSize:ubt,kHTTP2ConnectionWindowSize:lbt,kResume:Kd,kPingInterval:dbt}=Kt(),hbt=dbe(),fbt=ybe(),zd=Symbol("kClosedResolve"),gbt=dQ&&dQ.maxHeaderSize&&Number.isInteger(dQ.maxHeaderSize)&&dQ.maxHeaderSize>0?()=>dQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},bbe=()=>{};function Nbe(t){return t[ev]??t[nn]?.defaultPipelining??1}var b7=class extends HBt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[tbt]=a??3e5,this[ebt]=n??3e5,this[rbt]=m??!0,this[B7]=N,this[zd]=null,this[abt]=O>-1?O:-1,this[nn]=null,this[Abt]=D??100,this[ubt]=te??262144,this[lbt]=ce??524288,this[dbt]=ge??6e4,this[lc]=[],this[cl]=0,this[dc]=0,this[Kd]=De=>Q7(this,De),this[cbt]=De=>Tbe(this,De)}get pipelining(){return this[ev]}set pipelining(e){this[ev]=e,this[Kd](!0)}get stats(){return new PBt(this)}get[mQ](){return this[lc].length-this[dc]}get[pQ](){return this[dc]-this[cl]}get[hQ](){return this[lc].length-this[cl]}get[JBt](){return!!this[nn]&&!this[wE]&&!this[nn].destroyed}get[y7](){return!!(this[nn]?.busy(null)||this[hQ]>=(Nbe(this)||1)||this[mQ]>0)}[WBt](e){xbe(this),this.once("connect",e)}[obt](e,r){let n=new OBt(this[RA].origin,e,r);return this[lc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>Q7(this))):this[Kd](!0)),this[Tg]&&this[jd]!==2&&this[y7]&&(this[jd]=2),this[jd]<2}[sbt](){return new Promise(e=>{this[hQ]?this[zd]=e:e(null)})}[ibt](e){return new Promise(r=>{let n=this[lc].splice(this[dc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Kd]()})}};function Tbe(t,e){if(t[pQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){al(t[dc]===t[cl]);let r=t[lc].splice(t[cl]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}al(t[hQ]===0)}}function xbe(t){al(!t[wE]),al(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");al(i!==-1);let o=r.substring(1,i);al(Sbe.isIPv6(o)),r=o}t[wE]=!0,QE.beforeConnect.hasSubscribers&&QE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ]}),t[fQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[gQ]},(i,o)=>{if(i){Qbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}if(t.destroyed){Ng.destroy(o.on("error",bbe),new qBt),t[Kd]();return}al(o);try{t[nn]=o.alpnProtocol==="h2"?fbt(t,o):hbt(t,o)}catch(a){o.destroy().on("error",bbe),Qbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}t[wE]=!1,o[nbt]=0,o[B7]=t[B7],o[VBt]=t,o[jBt]=null,QE.connected.hasSubscribers&&QE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],socket:o}),t.emit("connect",t[RA],[t]),t[Kd]()})}function Qbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[wE]=!1,QE.connectError.hasSubscribers&&QE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(al(t[pQ]===0);t[mQ]>0&&t[lc][t[dc]].servername===t[$d];){let o=t[lc][t[dc]++];Ng.errorRequest(t,o,e)}else Tbe(t,e);t.emit("connectionError",t[RA],[t],e)}}function wbe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function Q7(t,e){t[Tg]!==2&&(t[Tg]=2,pbt(t,e),t[Tg]=0,t[cl]>256&&(t[lc].splice(0,t[cl]),t[dc]-=t[cl],t[cl]=0))}function pbt(t,e){for(;;){if(t.destroyed){al(t[mQ]===0);return}if(t[zd]&&!t[hQ]){t[zd](),t[zd]=null;return}if(t[nn]&&t[nn].resume(),t[y7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>wbe(t))):wbe(t);continue}if(t[mQ]===0||t[pQ]>=(Nbe(t)||1))return;let r=t[lc][t[dc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[$d]!==r.servername){if(t[pQ]>0)return;t[$d]=r.servername,t[nn]?.destroy(new GBt("servername changed"),()=>{t[nn]=null,Q7(t)})}if(t[wE])return;if(!t[nn]){xbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[dc]++:t[lc].splice(t[dc],1)}}Rbe.exports=b7});var w7=E((cBr,Dbe)=>{"use strict";var tv=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Dbe.exports=class{constructor(){this.head=this.tail=new tv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var rv=E((ABr,Obe)=>{"use strict";var{PoolStats:mbt}=gV(),Ebt=yg(),Cbt=w7(),{kConnected:S7,kSize:kbe,kRunning:vbe,kPending:_be,kQueued:EQ,kBusy:Ibt,kFree:ybt,kUrl:Bbt,kClose:bbt,kDestroy:Qbt,kDispatch:wbt}=Kt(),Yn=Symbol("clients"),Ps=Symbol("needDrain"),CQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),Fbe=Symbol("onConnect"),Mbe=Symbol("onDisconnect"),Lbe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),Ube=Symbol("add client"),Pbe=Symbol("remove client"),R7=class extends Ebt{[CQ]=new Cbt;[EQ]=0;[Yn]=[];[Ps]=!1;[T7](e,r,n){let s=this[CQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};vQe.exports=q7});var V7=m((pEr,LQe)=>{"use strict";var{InvalidArgumentError:Rbt}=Ke(),{runtimeFeatures:Dbt}=Ju();function kbt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var _Qe=Dbt.has("crypto")?b("node:crypto"):null,vbt=_Qe?.hash?t=>_Qe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function MQe(t){return Array.isArray(t)&&(t.length&1)===0}function _bt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Fbt(t){let e={};if(!t)return e;if(MQe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var FQe=["record","playback","update"];function Mbt(t){if(!FQe.includes(t))throw new Rbt(`Invalid snapshot mode: ${t}. Must be one of: ${FQe.join(", ")}`)}LQe.exports={createHeaderFilters:kbt,hashId:vbt,isUndiciHeaders:MQe,normalizeHeaders:Fbt,isUrlExcludedFactory:_bt,validateSnapshotMode:Mbt}});var WQe=m((mEr,VQe)=>{"use strict";var{writeFile:Lbt,readFile:Ubt,mkdir:Pbt}=b("node:fs/promises"),{dirname:Obt,resolve:UQe}=b("node:path"),{setTimeout:Hbt,clearTimeout:PQe}=b("node:timers"),{InvalidArgumentError:OQe,UndiciError:Gbt}=Ke(),{hashId:qbt,isUrlExcludedFactory:Ybt,normalizeHeaders:HQe,createHeaderFilters:GQe}=V7();function Vb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||HQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:qQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function qQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function YQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Wb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return qbt(r)}var W7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=GQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Ybt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Vb(e,this.#a,this.matchOptions),s=Wb(n),i=HQe(r.headers),o={statusCode:r.statusCode,headers:YQe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Vb(e,this.#a,this.matchOptions),n=Wb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new OQe("Snapshot path is required");try{let n=await Ubt(UQe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new Gbt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new OQe("Snapshot path is required");let n=UQe(r);await Pbt(Obt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Lbt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};c1e.exports=VW});var JW=E((OBr,d1e)=>{"use strict";var{InvalidArgumentError:B1t}=Ke(),{runtimeFeatures:b1t}=sl();function Q1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var A1e=b1t.has("crypto")?b("node:crypto"):null,w1t=A1e?.hash?t=>A1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function l1e(t){return Array.isArray(t)&&(t.length&1)===0}function S1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function N1t(t){let e={};if(!t)return e;if(l1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var u1e=["record","playback","update"];function T1t(t){if(!u1e.includes(t))throw new B1t(`Invalid snapshot mode: ${t}. Must be one of: ${u1e.join(", ")}`)}d1e.exports={createHeaderFilters:Q1t,hashId:w1t,isUndiciHeaders:l1e,normalizeHeaders:N1t,isUrlExcludedFactory:S1t,validateSnapshotMode:T1t}});var y1e=E((HBr,I1e)=>{"use strict";var{writeFile:x1t,readFile:R1t,mkdir:D1t}=b("node:fs/promises"),{dirname:k1t,resolve:h1e}=b("node:path"),{setTimeout:v1t,clearTimeout:f1e}=b("node:timers"),{InvalidArgumentError:g1e,UndiciError:_1t}=Ke(),{hashId:F1t,isUrlExcludedFactory:M1t,normalizeHeaders:p1e,createHeaderFilters:m1e}=JW();function vQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||p1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:E1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function E1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function C1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function _Q(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return F1t(r)}var zW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=m1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=M1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=vQ(e,this.#a,this.matchOptions),s=_Q(n),i=p1e(r.headers),o={statusCode:r.statusCode,headers:C1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=vQ(e,this.#a,this.matchOptions),n=_Q(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new g1e("Snapshot path is required");try{let n=await R1t(h1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new _1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new g1e("Snapshot path is required");let n=h1e(r);await D1t(k1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await x1t(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${io} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};vQe.exports=q7});var V7=m((pEr,LQe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${io}_getValuesQuery ON cacheInterceptorV${io}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${io}_deleteByUrlQuery ON cacheInterceptorV${io}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};vQe.exports=q7});var V7=m((pEr,LQe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${io}
FROM cacheInterceptorV${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${io} SET
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +168,7 @@ ${e.format(r)}`.trim())}};vQe.exports=q7});var V7=m((pEr,LQe)=>{"use strict";var
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${io} (
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -182,102 +182,91 @@ ${e.format(r)}`.trim())}};vQe.exports=q7});var V7=m((pEr,LQe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${io} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${io}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${io} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${io}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${io}
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){fW(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){fW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){fW(e),Rwt(r);let n=0,s=[],i=this;return new xwt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Dwt(s[l],u[l])){c=!1;break}}if(c)return A}}};function Dwt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var mg=m((PEr,Zwe)=>{"use strict";var{kConstruct:kwt}=$t(),{kEnumerableProperty:cE}=et(),{iteratorMixin:vwt,isValidHeaderName:Kb,isValidHeaderValue:zwe}=eo(),{webidl:wt}=$n(),pW=b("node:assert"),Lk=b("node:util");function Jwe(t){return t===10||t===13||t===9||t===32}function jwe(t){let e=0,r=t.length;for(;r>e&&Jwe(t.charCodeAt(r-1));)--r;for(;r>e&&Jwe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Kwe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});mW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)mW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function mW(t,e,r){if(r=jwe(r),Kb(e)){if(!zwe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Xwe(t)==="immutable")throw new TypeError("immutable");return Pk(t).append(e,r,!1)}function _wt(t){let e=Pk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function $we(t,e){return t[0]<e[0]?-1:1}var Uk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":oNe(i)&&(r[s]=i);break;case"id":aNe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&oNe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&aNe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};ANe.exports={EventSourceStream:eJ}});var mNe=m((uCr,pNe)=>{"use strict";var{pipeline:$Tt}=b("node:stream"),{fetching:XTt}=tQ(),{makeRequest:ZTt}=lE(),{webidl:qs}=$n(),{EventSourceStream:ext}=cNe(),{parseMIMEType:txt}=na(),{createFastMessageEvent:rxt}=uv(),{isNetworkError:uNe}=Xb(),{kEnumerableProperty:wg}=et(),{environmentSettingsObject:lNe}=eo(),dNe=!1,hNe=3e3,AQ=0,fNe=1,cQ=2,nxt="anonymous",sxt="use-credentials",yE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=AQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),dNe||(dNe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=lNe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=nxt;r.withCredentials===!0&&(o=sxt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=lNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=ZTt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===cQ)return;this.#r=AQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!uNe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(uNe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?txt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=fNe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new ext({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(rxt(A.type,A.options))}});$Tt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=XTt(e)}#c(){this.#r!==cQ&&(this.#r=AQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===AQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==cQ&&(this.#r=cQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},gNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:AQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:fNe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:cQ,writable:!1}};Object.defineProperties(yE,gNe);Object.defineProperties(yE.prototype,gNe);Object.defineProperties(yE.prototype,{close:wg,onerror:wg,onmessage:wg,onopen:wg,readyState:wg,url:wg,withCredentials:wg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>hNe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);pNe.exports={EventSource:yE,defaultReconnectionTime:hNe}});var bNe=m((lCr,pe)=>{"use strict";var ixt=kd(),CNe=ab(),oxt=sg(),axt=CBe(),Axt=bBe(),cxt=ag(),uxt=zV(),lxt=YV(),dxt=obe(),hxt=dbe(),fxt=gbe(),INe=Ke(),bv=et(),{InvalidArgumentError:Bv}=INe,BE=Kbe(),gxt=$f(),pxt=k7(),{MockCallHistory:mx Line truncated
`)}close(){this.#n.close()}get(e){pJ(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){pJ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){pJ(e),BNt(r);let n=0,s=[],i=this;return new yNt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!bNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function bNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Gg=E((Abr,TSe)=>{"use strict";var{kConstruct:QNt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:wNt,isValidHeaderName:UQ,isValidHeaderValue:bSe}=ro(),{webidl:wt}=es(),EJ=b("node:assert"),vv=b("node:util");function BSe(t){return t===10||t===13||t===9||t===32}function QSe(t){let e=0,r=t.length;for(;r>e&&BSe(t.charCodeAt(r-1));)--r;for(;r>e&&BSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function wSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});CJ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)CJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function CJ(t,e,r){if(r=QSe(r),UQ(e)){if(!bSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(NSe(t)==="immutable")throw new TypeError("immutable");return Fv(t).append(e,r,!1)}function SNt(t){let e=Fv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function SSe(t,e){return t[0]<e[0]?-1:1}var _v=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":FTe(i)&&(r[s]=i);break;case"id":MTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&FTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&MTe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};LTe.exports={EventSourceStream:rz}});var WTe=E((_br,VTe)=>{"use strict";var{pipeline:qDt}=b("node:stream"),{fetching:YDt}=qQ(),{makeRequest:VDt}=GE(),{webidl:Hs}=es(),{EventSourceStream:WDt}=UTe(),{parseMIMEType:JDt}=oa(),{createFastMessageEvent:zDt}=o_(),{isNetworkError:PTe}=OQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:OTe}=ro(),HTe=!1,GTe=3e3,KQ=0,qTe=1,$Q=2,jDt="anonymous",KDt="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=KQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),HTe||(HTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=OTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=jDt;r.withCredentials===!0&&(o=KDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=OTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=VDt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===$Q)return;this.#r=KQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!PTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(PTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?JDt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=qTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new WDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(zDt(c.type,c.options))}});qDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=YDt(e)}#A(){this.#r!==$Q&&(this.#r=KQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===KQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==$Q&&(this.#r=$Q,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},YTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:qTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$Q,writable:!1}};Object.defineProperties(XE,YTe);Object.defineProperties(XE.prototype,YTe);Object.defineProperties(XE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>GTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);VTe.exports={EventSource:XE,defaultReconnectionTime:GTe}});var XTe=E((Fbr,pe)=>{"use strict";var $Dt=Xd(),zTe=jb(),XDt=xg(),ZDt=zbe(),e2t=Xbe(),t2t=kg(),r2t=K7(),n2t=W7(),s2t=FQe(),i2t=HQe(),o2t=YQe(),jTe=Ke(),C_=Ze(),{InvalidArgumentError:E_}=jTe,ZE=wwe(),a2t=Bg(),c2t=_W(),{MockCallHistory:A2 Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Txt(e,r).catch(n=>{throw ENe?BNe(n,ENe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=mg().Headers;pe.exports.Response=Xb().Response;pe.exports.Request=lE().Request;pe.exports.FormData=W2().FormData;var{setGlobalOrigin:xxt,getGlobalOrigin:Rxt}=vY();pe.exports.setGlobalOrigin=xxt;pe.exports.getGlobalOrigin=Rxt;var{CacheStorage:Dxt}=rSe(),{kConstruct:kxt}=$t();pe.exports.caches=new Dxt(kxt);var{deleteCookie:vxt,getCookies:_xt,getSetCookies:Fxt,setCookie:Mxt,parseCookie:Lxt}=gSe();pe.exports.deleteCookie=vxt;pe.exports.getCookies=_xt;pe.exports.getSetCookies=Fxt;pe.exports.setCookie=Mxt;pe.exports.parseCookie=Lxt;var{parseMIMEType:Uxt,serializeAMimeType:Pxt}=na();pe.exports.parseMIMEType=Uxt;pe.exports.serializeAMimeType=Pxt;var{CloseEvent:Oxt,ErrorEvent:Hxt,MessageEvent:Gxt}=uv(),{WebSocket:qxt,ping:Yxt}=jSe();pe.exports.WebSocket=qxt;pe.exports.CloseEvent=Oxt;pe.exports.ErrorEvent=Hxt;pe.exports.MessageEvent=Gxt;pe.exports.ping=Yxt;pe.exports.WebSocketStream=nNe().WebSocketStream;pe.exports.WebSocketError=jW().WebSocketError;pe.exports.request=uQ(BE.request);pe.exports.stream=uQ(BE.stream);pe.exports.pipeline=uQ(BE.pipeline);pe.exports.connect=uQ(BE.connect);pe.exports.upgrade=uQ(BE.upgrade);pe.exports.MockClient=pxt;pe.exports.MockCallHistory=mxt;pe.exports.MockCallHistoryLog=Ext;pe.exports.MockPool=Ixt;pe.exports.MockAgent=Cxt;pe.exports.SnapshotAgent=yxt;pe.exports.mockErrors=Bxt;var{EventSource:Vxt}=mNe();pe.exports.EventSource=Vxt;function Wxt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Wxt});var lQ=m(Vd=>{"use strict";Vd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Vd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Vd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Vd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Vd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Vd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Vd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var wNe=m((fCr,QNe)=>{"use strict";var{asciiLowercase:Qv,solelyContainsHTTPTokenCodePoints:Jxt,soleyContainsHTTPQuotedStringTokenCodePoints:zxt}=lQ();QNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Qv(String(e)),this._map.get(e)}has(e){return e=Qv(String(e)),this._map.has(e)}set(e,r){if(e=Qv(String(e)),r=String(r),!Jxt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!zxt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Qv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var TNe=m((gCr,NNe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:jxt,removeTrailingHTTPWhitespace:SNe,isHTTPWhitespaceChar:Kxt,solelyContainsHTTPTokenCodePoints:tJ,soleyContainsHTTPQuotedStringTokenCodePoints:$xt,asciiLowercase:rJ,collectAnHTTPQuotedString:Xxt}=lQ();NNe.exports=t=>{t=jxt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!tJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=SNe(n),n.length===0||!tJ(n))return null;let s={type:rJ(r),subtype:rJ(n),parameters:new Map};for(;e<t.length;){for(++e;Kxt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=rJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Xxt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=SNe(o),o==="")continue}i.length>0&&tJ(i)&&$xt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var RNe=m((pCr,xNe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Zxt}=lQ();xNe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!Zxt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var _Ne=m((ECr,vNe)=>{"use strict";var eRt=wNe(),tRt=TNe(),rRt=RNe(),{asciiLowercase:DNe,solelyContainsHTTPTokenCodePoints:kNe}=lQ();vNe.exports=class{constructor(e){e=String(e);let r=tRt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new eRt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=DNe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!kNe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=DNe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!kNe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return rRt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var sTe=m(Bn=>{"use strict";var lJ=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),FRt=lJ(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i(await(0,r.stat)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i((0,e.statSync)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getgroups?.()Line truncated
%s`,v,v,f,s);let P=f.type==="*"?sz:f.type==="?"?az:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=TDt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+ee,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=ee;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==iz?"(?:$|\\/)":"";s=D+z+ee+$e+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===iz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return RDt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?sz:r.dot?SDt:NDt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?kDt(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;oz.sep!=="/"&&(e=e.split(oz.sep).join("/")),e=e.split(pxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return lo.defaults(e).Minimatch}};lo.Minimatch=TE});var Qxe=m((myr,bxe)=>{bxe.exports=Bxe;var uz=b("fs"),{EventEmitter:_Dt}=b("events"),{Minimatch:cz}=Cxe(),{resolve:FDt}=b("path");function MDt(t,e){return new Promise((r,n)=>{uz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Ixe(t,e){return new Promise((r,n)=>{(e?uz.stat:uz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Ixe(t,!1):null):r(null):r(o)})})}async function*yxe(t,e,r,n,s,i){let o=await MDt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Ixe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*yxe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*LDt(t,e,r,n){yield*yxe("",t,e,r,n,!0)}function UDt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Uv=class extends _Dt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=UDt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new cz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new cz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new cz(i,{dot:!0}))}this.iterator=LDt(FDt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function xC(Q){let B=TC(Q.toString()),w=B.match(VF);if(w||(w=B.match(WF)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return I2t(e,r).catch(n=>{throw JTe?$Te(n,JTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=OQ().Response;pe.exports.Request=GE().Request;pe.exports.FormData=Gk().FormData;var{setGlobalOrigin:y2t,getGlobalOrigin:B2t}=FV();pe.exports.setGlobalOrigin=y2t;pe.exports.getGlobalOrigin=B2t;var{CacheStorage:b2t}=DNe(),{kConstruct:Q2t}=Kt();pe.exports.caches=new b2t(Q2t);var{deleteCookie:w2t,getCookies:S2t,getSetCookies:N2t,setCookie:T2t,parseCookie:x2t}=YNe();pe.exports.deleteCookie=w2t;pe.exports.getCookies=S2t;pe.exports.getSetCookies=N2t;pe.exports.setCookie=T2t;pe.exports.parseCookie=x2t;var{parseMIMEType:R2t,serializeAMimeType:D2t}=oa();pe.exports.parseMIMEType=R2t;pe.exports.serializeAMimeType=D2t;var{CloseEvent:k2t,ErrorEvent:v2t,MessageEvent:_2t}=o_(),{WebSocket:F2t,ping:M2t}=QTe();pe.exports.WebSocket=F2t;pe.exports.CloseEvent=k2t;pe.exports.ErrorEvent=v2t;pe.exports.MessageEvent=_2t;pe.exports.ping=M2t;pe.exports.WebSocketStream=kTe().WebSocketStream;pe.exports.WebSocketError=$J().WebSocketError;pe.exports.request=XQ(ZE.request);pe.exports.stream=XQ(ZE.stream);pe.exports.pipeline=XQ(ZE.pipeline);pe.exports.connect=XQ(ZE.connect);pe.exports.upgrade=XQ(ZE.upgrade);pe.exports.MockClient=c2t;pe.exports.MockCallHistory=A2t;pe.exports.MockCallHistoryLog=u2t;pe.exports.MockPool=d2t;pe.exports.MockAgent=l2t;pe.exports.SnapshotAgent=h2t;pe.exports.mockErrors=f2t;var{EventSource:L2t}=WTe();pe.exports.EventSource=L2t;function U2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=U2t});var ZQ=E(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var exe=E((Ubr,ZTe)=>{"use strict";var{asciiLowercase:I_,solelyContainsHTTPTokenCodePoints:P2t,soleyContainsHTTPQuotedStringTokenCodePoints:O2t}=ZQ();ZTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=I_(String(e)),this._map.get(e)}has(e){return e=I_(String(e)),this._map.has(e)}set(e,r){if(e=I_(String(e)),r=String(r),!P2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!O2t(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=I_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var nxe=E((Pbr,rxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:H2t,removeTrailingHTTPWhitespace:txe,isHTTPWhitespaceChar:G2t,solelyContainsHTTPTokenCodePoints:nz,soleyContainsHTTPQuotedStringTokenCodePoints:q2t,asciiLowercase:sz,collectAnHTTPQuotedString:Y2t}=ZQ();rxe.exports=t=>{t=H2t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!nz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=txe(n),n.length===0||!nz(n))return null;let s={type:sz(r),subtype:sz(n),parameters:new Map};for(;e<t.length;){for(++e;G2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=sz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Y2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=txe(o),o==="")continue}i.length>0&&nz(i)&&q2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var ixe=E((Obr,sxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:V2t}=ZQ();sxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!V2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var Axe=E((Gbr,cxe)=>{"use strict";var W2t=exe(),J2t=nxe(),z2t=ixe(),{asciiLowercase:oxe,solelyContainsHTTPTokenCodePoints:axe}=ZQ();cxe.exports=class{constructor(e){e=String(e);let r=J2t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new W2t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=oxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!axe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=oxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!axe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return z2t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var vxe=E(bn=>{"use strict";var hz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Tkt=hz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?rj:f.type==="?"?ij:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=mvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==nj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===nj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Cvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?rj:r.dot?gvt:pvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?yvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Gs))}),o.filter(a=>a!==Gs).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;sj.sep!=="/"&&(e=e.split(sj.sep).join("/")),e=e.split(VRe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return go.defaults(e).Minimatch}};go.Minimatch=oC});var ZRe=E((qwr,XRe)=>{XRe.exports=$Re;var cj=b("fs"),{EventEmitter:bvt}=b("events"),{Minimatch:aj}=zRe(),{resolve:Qvt}=b("path");function wvt(t,e){return new Promise((r,n)=>{cj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function jRe(t,e){return new Promise((r,n)=>{(e?cj.stat:cj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?jRe(t,!1):null):r(null):r(o)})})}async function*KRe(t,e,r,n,s,i){let o=await wvt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await jRe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*KRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Svt(t,e,r,n){yield*KRe("",t,e,r,n,!0)}function Nvt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var v_=class extends bvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Nvt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new aj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new aj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new aj(i,{dot:!0}))}this.iterator=Svt(Qvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Mw).map(H=>H.replace(Lw,"").trim())}function RC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],V,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),w[F]=V.concat(V.length>0?te:H);else if(j)w[F]=H;else{if(V=xC(H),H.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(te)}function te(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(H)(...Ft)}}),NC(w,B)}class DC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):kC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):kC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function kC(Q,B){Q.length=1,Q.head=Q.tail=B}function cp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var yr,Nn;function Co(Ih,...PC){if(Ih)return Pe?Nn(Ih):yr();if(PC.length<=1)return yr(PC[0]);yr(PC)}var hp=Mt._createTaskItem(Ue,Pe?Co:Nt||Co);if(be?Mt._tasks.unshift(hp):Mt._tasks.push(hp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Ih,PC)=>{yr=Ih,Nn=PC})}function Eo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,yr=Ue.length;Nt<yr;Nt++){var Nn=Ue[Nt],Co=V.indexOf(Nn);Co===0?V.shift():Co>0&&V.splice(Co,1),Nn.callback(be,...Pe),be!=null&&Bt("error",be,Nn.data)}H<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function dp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>Bt("drain")),!0):!1}let Ch=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(yr,Nn)=>{if(yr)return Nt(yr);Pe(Nn)})});Se(Ue),j(Ue,be)};var UC=!1,Mt={_tasks:new DC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!UC){for(UC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var yr=Mt._tasks.shift();Ue.push(yr),V.push(yr),be.push(yr.data)}H+=1,Mt._tasks.length===0&&Bt("empty"),H===Mt.concurrency&&Bt("saturated");var Nn=ne(Eo(Ue));F(be,Nn)}UC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return V},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ch("saturated")},unsaturated:{writable:!1,value:Ch("unsaturated")},empty:{writable:!1,value:Ch("empty")},drain:{writable:!1,value:Ch("drain")},error:{writable:!1,value:Ch("error")}}),Mt}function vC(Q,B){return cp(Q,1,B)}function up(Q,B,w){return cp(Q,B,w)}function mo(Q,B,w,F){F=Y(F);var H=I(w);return $s(Q,(V,J,j)=>{H(B,V,(te,Se)=>{B=Se,j(te)})},V=>F(V,B))}var Ia=E(mo,4);function lp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=eu(),Ia(B,w,(V,J,j)=>{J.apply(F,V.concat((te,...Se)=>{j(te,Se)}))},(V,J)=>H(V,...J)),H[Zc]}}function Uw(...Q){return lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(V,J)=>{H(V,(j,...te)=>j?J(j):J(j,te))},(V,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(V,j)})}var q=E(N,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[Zn]||(_xe=global[Zn]||[],Mxe(vr,_xe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||Fxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,qv,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),Fxe()}return Object.defineProperty(e,qv,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kg(vr[Zn]),b("assert").equal(vr[Zn].length,0)}));var _xe;global[Zn]||Mxe(global,vr[Zn]);fz.exports=dz(JDt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(fz.exports=dz(vr),vr.__patched=!0);function dz(t){VDt(t),t.gracefulify=dz,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),ne(D,z,ee);function ne(Ae,ge,De,$e){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?xE([ne,[Ae,ge,De],it,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=0),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var ne=u.test(process.version)?function(De,$e,it,Wt){return c(De,Ae(De,$e,it,Wt))}:function(De,$e,it,Wt){return c(De,$e,Ae(De,$e,it,Wt))};return ne(D,z,ee);function Ae(ge,De,$e,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?xE([ne,[ge,De,$e],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=WDt(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return v(ge,De,$e,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function xE(t){kg("ENQUEUE",t[0].name,t[1]),vr[Zn].push(t),hz()}var Gv;function Fxe(){for(var t=Date.now(),e=0;e<vr[Zn].length;++e)vr[Zn][e].length>2&&(vr[Zn][e][3]=t,vr[Zn][e][4]=t);hz()}function hz(){if(clearTimeout(Gv),Gv=void 0,vr[Zn].length!==0){var t=vr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)kg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){kg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(kg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[Zn].push(t)}Gv===void 0&&(Gv=setTimeout(hz,0))}}});var Yv=m((Byr,Lxe)=>{"use strict";var Pc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pc.writable=t=>Pc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pc.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};g2e.exports={AggregateError:Kz,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var $z=m((kBr,p2e)=>{"use strict";p2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=m((vBr,C2e)=>{"use strict";var{format:pFt,inspect:c_}=$z(),{AggregateError:mFt}=xr(),EFt=globalThis.AggregateError||mFt,CFt=Symbol("kIsNodeError"),IFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yFt=/^([A-Z][a-z0-9]*)+$/,BFt="__node_internal_",u_={};function Fg(t,e){if(!t)throw new u_.ERR_INTERNAL_ASSERTION(e)}function m2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function bFt(t,e,r){if(typeof e=="function")return Fg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Fg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:pFt(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(bFt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[CFt]=!0,u_[t]=n}function E2e(t){let e=BFt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function QFt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new EFt([e,t],e.message);return r.code=e.code,r}return t||e}var Xz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new u_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Fg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)Fg(typeof A=="string","All expected entries have to be of type string"),IFt.includes(A)?s.push(A.toLowerCase()):yFt.test(A)?i.push(A):(Fg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=R$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=R$(" "+s+"="+n[s]+`
`);return kt.from(r)};pC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};pC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,lh(e.mode&F9t,6),100),kt.write(r,lh(e.uid,6),108),kt.write(r,lh(e.gid,6),116),G9t(e.size,r,124),kt.write(r,lh(e.mtime.getTime()/1e3|0,11),136),r[156]=UF+O9t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(HUe,r,Tw),kt.copy(k9t,r,D$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,lh(e.devmajor||0,6),329),kt.write(r,lh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,lh(qUe(r),6),148),r)};pC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-UF,i=gC(e,0,100,r),o=uh(e,100,8),a=uh(e,108,8),A=uh(e,116,8),c=uh(e,124,12),u=uh(e,136,12),l=P9t(s),d=e[157]===0?null:gC(e,157,100,r),h=gC(e,265,32),f=gC(e,297,32),p=uh(e,329,8),I=uh(e,337,8),E=qUe(e);if(E===256)return null;if(E!==uh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(M9t(e))e[345]&&(i=gC(e,345,155,r)+"/"+i);else if(!L9t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function M9t(t){return kt.equals(HUe,t.subarray(Tw,Tw+6))}function L9t(t){return kt.equals(v9t,t.subarray(Tw,Tw+6))&&kt.equals(_9t,t.subarray(D$,D$+2))}function U9t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function P9t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function O9t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function GUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function qUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function lh(t,e){return t=t.toString(8),t.length>e?D9t.slice(0,e)+" ":R9t.slice(0,e-t.length)+t+" "}function H9t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function G9t(t,e,r){t.toString(8).length>11?H9t(t,e,r):kt.write(e,lh(t,11),r)}function q9t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function uh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return q9t(t);{for(;e<t.length&&t[e]===32;)e++;let n=U9t(GUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function gC(t,e,r,n){return kt.toString(t.subarray(e,GUe(t,0,e,e+r)),n)}function R$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var zUe=m((iwr,JUe)=>{var{Writable:Y9t,Readable:V9t,getStreamError:YUe}=x$(),W9t=f$(),VUe=uC(),mC=k$(),J9t=VUe.alloc(0),_$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new W9t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return J9t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return VUe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},F$=class extends V9t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(YUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=WUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},M$=class extends Y9t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Nae(t,e){if(process.env.GITHUB_OUTPUT||"")return OC("OUTPUT",a1(t,e));process.stdout.write(MP.EOL),Ba("set-output",{name:t},hA(e))}function Vh(t){process.exitCode=FP.Failure,TA(t)}function _a(){return process.env.RUNNER_DEBUG==="1"}function G(t){Ba("debug",{},t)}function TA(t,e={}){Ba("error",s1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Ba("warning",s1(e),t instanceof Error?t.toString():t)}function Tae(t,e={}){Ba("notice",s1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+MP.EOL)}function nze(t){rM("group",t)}function sze(){rM("endgroup")}function dN(t,e){return rze(this,void 0,void 0,function*(){nze(t);let r;try{r=yield e()}finally{sze()}return r})}function mu(t,e){if(process.env.GITHUB_STATE||"")return OC("STATE",a1(t,e));Ba("save-state",{name:t},hA(e))}function um(t){return process.env[`STATE_${t}`]||""}import*as aJ from"fs";import*as AJ from"path";import*as Nv from"os";import{readFileSync as ize,existsSync as oze}from"fs";import{EOL as aze}from"os";var lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(oze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(ize(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${aze}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var HP=ce(vae(),1),_ae=ce(nN(),1),Ize=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Fae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Mae(t){return new HP.HttpClient().getAgent(t)}function yze(t){return new HP.HttpClient().getAgentDispatcher(t)}function Lae(t){let e=yze(t);return(n,s)=>Ize(this,void 0,void 0,function*(){return(0,_ae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Uae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function CN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function IN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>IN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Pae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Oae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Hae=Function.bind,Gae=Hae.bind(Hae);function qae(t,e,r){let n=Gae(Oae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Gae(Pae,null).apply(null,i)})}function bze(){let t=Symbol("Singular"),e={registry:{}},r=IN.bind(null,e,t);return qae(r,e,t),r}function Qze(){let t={registry:{}},e=IN.bind(null,t);return qae(e,t),e}var Yae={Singular:bze,Collection:Qze};var sO=ce(e Line truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Q1).map(q=>q.replace(w1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,B)}class AI{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):uI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):uI(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Fp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,Tn;function Bo(Oh,...mI){if(Oh)return Pe?Tn(Oh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Pp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Pp):Mt._tasks.push(Pp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Oh,mI)=>{Ir=Oh,Tn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var Tn=Ue[Nt],Bo=V.indexOf(Tn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Up(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,Tn)=>{if(Ir)return Nt(Ir);Pe(Tn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var Tn=te(yo(Ue));F(be,Tn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Mt}function lI(Q,B){return Fp(Q,1,B)}function Mp(Q,B,w){return Fp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var Sa=m(Io,4);function Lp(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=Au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[cu]}}function S1(...Q){return Lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(ADe=global[rs]||[],lDe(vr,ADe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||uDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),uDe()}return Object.defineProperty(e,U_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var ADe;global[rs]||lDe(global,vr[rs]);dj.exports=uj(Mvt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(dj.exports=uj(vr),vr.__patched=!0);function uj(t){_vt(t),t.gracefulify=uj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?aC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?aC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Fvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function aC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),lj()}var L_;function uDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);lj()}function lj(){if(clearTimeout(L_),L_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}L_===void 0&&(L_=setTimeout(lj,0))}}});var P_=E((zwr,dDe)=>{"use strict";var zA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";zA.writable=t=>zA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";zA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Yke.exports={AggregateError:zj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var jj=E((sSr,Vke)=>{"use strict";Vke.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Is=E((iSr,zke)=>{"use strict";var{format:iUt,inspect:sF}=jj(),{AggregateError:oUt}=Tr(),aUt=globalThis.AggregateError||oUt,cUt=Symbol("kIsNodeError"),AUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],uUt=/^([A-Z][a-z0-9]*)+$/,lUt="__node_internal_",iF={};function ap(t,e){if(!t)throw new iF.ERR_INTERNAL_ASSERTION(e)}function Wke(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function dUt(t,e,r){if(typeof e=="function")return ap(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:iUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(dUt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[cUt]=!0,iF[t]=n}function Jke(t){let e=lUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function hUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aUt([e,t],e.message);return r.code=e.code,r}return t||e}var Kj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)ap(typeof c=="string","All expected entries have to be of type string"),AUt.includes(c)?s.push(c.toLowerCase()):uUt.test(c)?i.push(c):(ap(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=TX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=TX(" "+s+"="+n[s]+`
`);return kt.from(r)};zC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};zC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Dh(e.mode&QYt,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),DYt(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=vM+xYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(pOe,r,g1),kt.copy(yYt,r,xX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(EOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-vM,i=JC(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=TYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),p=Rh(e,329,8),I=Rh(e,337,8),m=EOe(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(wYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!SYt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function wYt(t){return kt.equals(pOe,t.subarray(g1,g1+6))}function SYt(t){return kt.equals(BYt,t.subarray(g1,g1+6))&&kt.equals(bYt,t.subarray(xX,xX+2))}function NYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function TYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function xYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function mOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function EOe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Dh(t,e){return t=t.toString(8),t.length>e?IYt.slice(0,e)+" ":CYt.slice(0,e-t.length)+t+" "}function RYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function DYt(t,e,r){t.toString(8).length>11?RYt(t,e,r):kt.write(e,Dh(t,11),r)}function kYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return kYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=NYt(mOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function JC(t,e,r,n){return kt.toString(t.subarray(e,mOe(t,0,e,e+r)),n)}function TX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var bOe=E((DTr,BOe)=>{var{Writable:vYt,Readable:_Yt,getStreamError:COe}=NX(),FYt=dX(),IOe=GC(),jC=RX(),MYt=IOe.alloc(0),kX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new FYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return MYt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return IOe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},vX=class extends _Yt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(COe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=yOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},_X=class extends vYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Qce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",j1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},Bc(e))}function df(t){process.exitCode=kO.Failure,Pi(t)}function Pa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",W1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Ta("warning",W1(e),t instanceof Error?t.toString():t)}function wce(t,e={}){Ta("notice",W1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+vO.EOL)}function Sce(t){ZM("group",t)}function Nce(){ZM("endgroup")}function eT(t,e){return Fje(this,void 0,void 0,function*(){Sce(t);let r;try{r=yield e()}finally{Nce()}return r})}function Lc(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",j1(t,e));Ta("save-state",{name:t},Bc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as Az from"fs";import*as uz from"path";import*as b_ from"os";import{readFileSync as Mje,existsSync as Lje}from"fs";import{EOL as Uje}from"os";var Mm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Lje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Mje(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Uje}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var UO=fe(kce(),1),vce=fe(VN(),1),$je=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function _ce(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Fce(t){return new UO.HttpClient().getAgent(t)}function Xje(t){return new UO.HttpClient().getAgentDispatcher(t)}function Mce(t){let e=Xje(t);return(n,s)=>$je(this,void 0,void 0,function*(){return(0,vce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Lce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function $l(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function aT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>aT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Uce(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Pce(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Oce=Function.bind,Hce=Oce.bind(Oce);function Gce(t,e,r){let n=Hce(Pce,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Hce(Uce,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Cje=class extends Error{constructor(t,e,r){super(Eje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Ije=["method","baseUrl","url","headers","request","query","mediaType","operationName"],yje=["query","method","url"],gAe=/\/api\/v3\/?$/;function Bje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(yje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Ije.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return gAe.test(i)&&(s.url=i.replace(gAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new Cje(s,a,o.data)}return o.data.data})}function tO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Bje(r,s,i),{defaults:tO.bind(null,r),endpoint:r.endpoint})}var I7t=tO(pAe.request,{headers:{"user-agent":`octokit-graphql.js/${mje} ${CN()}`},method:"POST",url:"/graphql"});function mAe(t){return tO(t,{method:"POST",url:"/graphql"})}var rO="(?:[a-zA-Z0-9_-]+)",EAe="\\.",CAe=new RegExp(`^${rO}${EAe}${rO}${EAe}${rO}$`),bje=CAe.test.bind(CAe);async function Qje(t){let e=bje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function wje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Sje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=wje(t),e(s)}var IAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Qje.bind(null,e),{hook:Sje.bind(null,e)})};var nO="7.0.6";var yAe=()=>{},Nje=console.warn.bind(console),Tje=console.error.bind(console);function xje(t={}){return typeof t.debug!="function"&&(t.debug=yAe),typeof t.info!="function"&&(t.info=yAe),typeof t.warn!="function"&&(t.warn=Nje),typeof t.error!="function"&&(t.error=Tje),t}var BAe=`octokit-core.js/${nO} ${CN()}`,bN=class{static VERSION=nO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Yae.Collection,n={baseUrl:sO.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${BAe}`:BAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=sO.request.defaults(n),this.graphql=mAe(this.request).defaults(n),this.log=xje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=IAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var iO="17.0.0";var Rje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`)}var OKe=class extends Error{constructor(t,e,r){super(PKe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},HKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],GKe=["query","method","url"],hAe=/\/api\/v3\/?$/;function qKe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(GKe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>HKe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return hAe.test(i)&&(s.url=i.replace(hAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new OKe(s,a,o.data)}return o.data.data})}function zO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>qKe(r,s,i),{defaults:zO.bind(null,r),endpoint:r.endpoint})}var gzt=zO(Sy,{headers:{"user-agent":`octokit-graphql.js/${UKe} ${$l()}`},method:"POST",url:"/graphql"});function fAe(t){return zO(t,{method:"POST",url:"/graphql"})}var jO="(?:[a-zA-Z0-9_-]+)",gAe="\\.",pAe=new RegExp(`^${jO}${gAe}${jO}${gAe}${jO}$`),YKe=pAe.test.bind(pAe);async function VKe(t){let e=YKe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function WKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function JKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=WKe(t),e(s)}var mAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(VKe.bind(null,e),{hook:JKe.bind(null,e)})};var KO="7.0.6";var EAe=()=>{},zKe=console.warn.bind(console),jKe=console.error.bind(console);function KKe(t={}){return typeof t.debug!="function"&&(t.debug=EAe),typeof t.info!="function"&&(t.info=EAe),typeof t.warn!="function"&&(t.warn=zKe),typeof t.error!="function"&&(t.error=jKe),t}var CAe=`octokit-core.js/${KO} ${$l()}`,uT=class{static VERSION=KO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new qce.Collection,n={baseUrl:Sy.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${CAe}`:CAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=fAe(this.request).defaults(n),this.log=KKe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=mAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var $O="17.0.0";var $Ke={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XI(i));return n.searchPaths.push(...hO(n.patterns)),n})}static stat(e,r,n){return EO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield mm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield mm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as CO from"crypto";import*as DN from"fs";import*as ice from"stream";import*as oce from"util";import*as ace from"path";var EKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},CKe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Ace(t,e){return EKe(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?Z:G,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=CO.createHash("sha256"),f=0;try{for(var p=!0,I=CKe(r.globGenerator()),E;E=yield I.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${ace.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(DN.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=CO.createHash("sha256");yield oce.promisify(ice.pipeline)(DN.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var cce=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function ey(t,e){return cce(this,void 0,void 0,function*(){return yield xN.create(t,e)})}function uce(t){return cce(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield ey(e,{followSymbolicLinks:i});return Ace(o,r,s)})}var ele=ce(Ay(),1);import*as WN from"crypto";import*as Im from"fs";import*as ef from"path";import*as tle from"util";var cy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(cy||(cy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Pi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Pi||(Pi={}));var YN=2,VN=5e3,OO=5e3,HO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Zue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,uy="cache.tar",GO="manifest.txt",nJt=10*Math.pow(1024,3);var Cm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},gZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},pZe="1.0";function ly(){return Cm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=ef.join(n,"actions","temp")}let r=ef.join(e,WN.randomUUID());return yield Yh(r),r})}function RA(t){return Im.statSync(t).size}function qO(t){return Cm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield ey(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=gZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=ef.relative(a,s).replace(new RegExp(`\\${ef.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function dy(t){return Cm(this,void 0,void 0,function*(){return tle.promisify(Im.unlink)(t)})}function rle(t){return Cm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield NA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function hy(){return Cm(this,void 0,void 0,function*(){let t=yield rle("zstd",["--quiet"]),e=ele.clean(t);return G(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function ql(t){return t===vs.Gzip?cy.Gzip:cy.Zstd}function nle(){return Cm(this,void 0,void 0,function*(){return Im.existsSync(HO)?HO:(yield rle("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function YO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(pZe),WN.createHash("sha256").update(n.join("|")).digest("hex")}function sle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as jm from"fs";import{URL as qot}from"url";var DA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as mZe}from"node:os";import EZe from"node:util";import CZe from"node:process";function ile(t,...e){CZe.stderr.write(`${EZe.format(t,...e)}${mZe}`)}var ole=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ale,VO=[],WO=[],zN=[];ole&&JO(ole);var cle=Object.assign(t=>ule(t),{enable:JO,enabled:zO,disable:IZe,log:ile});function JO(t){Ale=t,VO=[],WO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?WO.push(r.substring(1)):VO.push(r);for(let r of zN)r.enabled=zO(r.namespace)}function zO(t){if(t.endsWith("*"))return!0;for(let e of WO)if(ale(t,e))return!1;for(let e of VO)if(ale(t,e))return!0;return!1}function ale(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function IZe(){let t=Ale||"";return JO(""),t}function ule(t){let e=Object.assign(r,{enabled:zO(t),destroy:yZe,log:cle.log,namespace:t,extend:BZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return zN.push(e),e}function yZe(){let t=zN.indexOf(this);return t>=0?(zN.splice(t,1),!0):!1}function BZe(t){let e=ule(`${this.namespace}:${t}`);return e.log=this.log,e}var Bm=cle;var jO=["verbose","info","warning","error"],lle={verbose:400,info:300,warning:200,error:100};function dle(t,e){e.log=(...r)=>{t.log(...r)}}function hle(t){return jO.includes(t)}function bZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Bm(t.namespace);s.log=(...u)=>{Bm.log(...u)};function i(u){if(u&&!hle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${jO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Bm.enable(l.join(","))}r&&(hle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${jO.join(", ")}.`));function o(u){return!!(n&&lle[u.level]<=lle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(dle(u,d),o(d)){let h=Bm.disable();Bm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return dle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var fle=bZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),QZe=fle.logger;function fy(t){return fle.createClientLogger(t)}function jN(t){return t.toLowerCase()}function*wZe(t){for(let e of t.values())yield[e.name,e.value]}var KO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(jN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(jN(e))?.value}has(e){return this._headersMap.has(jN(e))}delete(e){this._headersMap.delete(jN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${xZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function XN(t){return t instanceof _s?!0:rf(t)&&t.name==="RestError"}function ii(t,e){return Buffer.from(t,e)}import e3 from"node:http";import t3 from"node:https";import mle from"node:zlib";import{Transform as RZe}from"node:stream";var Ro=fy("ts-http-runtime");var DZe={};function gy(t){return t&&typeof t.pipe=="function"}function Ele(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Cle(t){return t&&typeof t.byteLength=="number"}var ZN=class extends RZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},r3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new DA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Ua;Ro.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=FZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new ZN(f);p.on("error",I=>{Ro.error("Error in upload progress",I)}),gy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=kZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?vZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new ZN(h);f.on("error",p=>{Ro.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await _Ze(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();gy(a)&&(c=Ele(a));let u=Promise.resolve();gy(A)&&(u=Ele(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ro.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?e3.request(a,A):t3.request(a,A);u.once("error",l=>{c(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new DA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&gy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Cle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ro.error("Unrecognized body type",n),c(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?e3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new e3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return t3.globalAgent;let s=e.tlsSettings??DZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ro.info("No cached TLS Agent exist, creating a new Agent"),i=new t3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function kZe(t){let e=Oi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function vZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=mle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=mle.createInflate();return t.pipe(n),n}return t}function _Ze(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function FZe(t){return t?Buffer.isBuffer(t)?t.length:gy(t)?null:Cle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Ile(){return new r3}function eT(){return Ile()}var n3="logPolicy";function tT(t={}){let e=t.logger??Ro.info,r=new Ua({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:n3,async sendRequest(n,s){if(!e. Line truncated
`;return e}function itt(t){return t instanceof Uint8Array?t.byteLength:bT(t)?t.size===-1?void 0:t.size:void 0}function ott(t){let e=0;for(let r of t){let n=itt(r);if(n===void 0)return;e+=n}return e}async function att(t,e,r){let n=[ii(`--${r}`,"utf-8"),...e.flatMap(i=>[ii(`\r
`,"utf-8"),ii(stt(i.headers),"utf-8"),ii(`\r
`,"utf-8"),i.body,ii(`\r
--${r}`,"utf-8")]),ii(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Dy(i));return n.searchPaths.push(...i3(n.patterns)),n})}static stat(e,r,n){return u3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Gm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Gm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Gm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var D$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function KAe(t,e){return D$e(this,void 0,void 0,function*(){return yield pT.create(t,e)})}var Gle=fe(Uy(),1);import*as kT from"crypto";import*as Wm from"fs";import*as yf from"path";import*as qle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var RT=2,DT=5e3,D3=5e3,k3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Hle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",v3="manifest.txt",cKt=10*Math.pow(1024,3);var Vm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Het=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Get="1.0";function Hy(){return Vm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=yf.join(n,"actions","temp")}let r=yf.join(e,kT.randomUUID());return yield lf(r),r})}function Pc(t){return Wm.statSync(t).size}function _3(t){return Vm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield KAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Het(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Gy(t){return Vm(this,void 0,void 0,function*(){return qle.promisify(Wm.unlink)(t)})}function Yle(t){return Vm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Mc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Vm(this,void 0,void 0,function*(){let t=yield Yle("zstd",["--quiet"]),e=Gle.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function rd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function Vle(){return Vm(this,void 0,void 0,function*(){return Wm.existsSync(k3)?k3:(yield Yle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function F3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Jm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Get),kT.createHash("sha256").update(n.join("|")).digest("hex")}function Wle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as b0 from"fs";import{URL as wct}from"url";var Oc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as qet}from"node:os";import Yet from"node:util";import Vet from"node:process";function Jle(t,...e){Vet.stderr.write(`${Yet.format(t,...e)}${qet}`)}import Yy from"node:process";function _T(t){return Yy.env[t]}var zle=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,jle=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,FT=!0;var Kle=_T("DEBUG"),Xle,M3=[],L3=[],MT=[];Kle&&U3(Kle);var Zle=Object.assign(t=>ede(t),{enable:U3,enabled:P3,disable:Wet,log:Jle});function U3(t){Xle=t,M3=[],L3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L3.push(r.substring(1)):M3.push(r);for(let r of MT)r.enabled=P3(r.namespace)}function P3(t){if(t.endsWith("*"))return!0;for(let e of L3)if($le(t,e))return!1;for(let e of M3)if($le(t,e))return!0;return!1}function $le(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function Wet(){let t=Xle||"";return U3(""),t}function ede(t){let e=Object.assign(r,{enabled:P3(t),destroy:Jet,log:Zle.log,namespace:t,extend:zet});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return MT.push(e),e}function Jet(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function zet(t){let e=ede(`${this.namespace}:${t}`);return e.log=this.log,e}var zm=Zle;var O3=["verbose","info","warning","error"],tde={verbose:400,info:300,warning:200,error:100};function rde(t,e){e.log=(...r)=>{t.log(...r)}}function nde(t){return O3.includes(t)}function LT(t){let e=new Set,r=_T(t.logLevelEnvVarName),n,s=zm(t.namespace);s.log=(...u)=>{zm.log(...u)};function i(u){if(u&&!nde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${O3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);zm.enable(l.join(","))}r&&(nde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function o(u){return!!(n&&tde[u.level]<=tde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(rde(u,d),o(d)){let h=zm.disable();zm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return rde(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var sde=LT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),jet=sde.logger;function Vy(t){return sde.createClientLogger(t)}function UT(t){return t.toLowerCase()}function Ket(t){return String(t).trim().replace(/[\r\n]/g,"")}function*$et(t){for(let e of t.values())yield[e.name,e.value]}var H3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(UT(e),{name:e,value:Ket(r)})}get(e){return this._headersMap.get(UT(e))?.value}has(e){return this._ Line truncated
${ttt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function jm(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import V3 from"node:http";import W3 from"node:https";import ade from"node:zlib";import{Transform as rtt}from"node:stream";var si=Vy("ts-http-runtime");var ntt={};function Wy(t){return t&&typeof t.pipe=="function"}function cde(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Ade(t){return t&&typeof t.byteLength=="number"}var HT=class extends rtt{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},J3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Oc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Ya;si.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=att(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new HT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=stt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new HT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ott(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=cde(a));let u=Promise.resolve();Wy(c)&&(u=cde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?V3.request(a,c):W3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Oc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ade(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W3.globalAgent;let s=e.tlsSettings??ntt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new W3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function stt(t){let e=Gi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ade.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ade.createInflate();return t.pipe(n),n}return t}function ott(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function att(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:Ade(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ude(){return new J3}function GT(){return ude()}var z3="logPolicy";function qT(t={}){let e=t.logger??si.info,r=new Ya({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:z3,asy Line truncated
`;return e}function Trt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function xrt(t){let e=0;for(let r of t){let n=Trt(r);if(n===void 0)return;e+=n}return e}async function Rrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Nrt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=ott(n);s&&t.headers.set("Content-Length",s),t.body=await pde(n)}var Ey="multipartPolicy",Att=70,ctt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function utt(t){if(t.length>Att)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ctt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function QT(){return{name:Ey,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?utt(r):r=ntt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await att(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function wT(){return $N()}import{EOL as dtt}from"node:os";import htt from"node:util";import*as mde from"node:process";function Ede(t,...e){mde.stderr.write(`${htt.format(t,...e)}${dtt}`)}var Cde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ide,y3=[],B3=[],ST=[];Cde&&b3(Cde);var yde=Object.assign(t=>Bde(t),{enable:b3,enabled:Q3,disable:ftt,log:Ede});function b3(t){Ide=t,y3=[],B3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?B3.push(new RegExp(`^${n.substr(1)}$`)):y3.push(new RegExp(`^${n}$`));for(let n of ST)n.enabled=Q3(n.namespace)}function Q3(t){if(t.endsWith("*"))return!0;for(let e of B3)if(e.test(t))return!1;for(let e of y3)if(e.test(t))return!0;return!1}function ftt(){let t=Ide||"";return b3(""),t}function Bde(t){let e=Object.assign(r,{enabled:Q3(t),destroy:gtt,log:yde.log,namespace:t,extend:ptt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ST.push(e),e}function gtt(){let t=ST.indexOf(this);return t>=0?(ST.splice(t,1),!0):!1}function ptt(t){let e=Bde(`${this.namespace}:${t}`);return e.log=this.log,e}var xm=yde;var Qde=new Set,NT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,w3,S3=xm("azure");S3.log=(...t)=>{xm.log(...t)};var N3=["verbose","info","warning","error"];NT&&(Nde(NT)?mtt(NT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${NT}'; logging is not enabled. Acceptable values: ${N3.join(", ")}.`));function mtt(t){if(t&&!Nde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${N3.join(",")}`);w3=t;let e=[];for(let r of Qde)Sde(r)&&e.push(r.namespace);xm.enable(e.join(","))}var bde={verbose:400,info:300,warning:200,error:100};function _o(t){let e=S3.extend(t);return wde(S3,e),{error:TT(e,"error"),warning:TT(e,"warning"),info:TT(e,"info"),verbose:TT(e,"verbose")}}function wde(t,e){e.log=(...r)=>{t.log(...r)}}function TT(t,e){let r=Object.assign(t.extend(e),{level:e});if(wde(t,r),Sde(r)){let n=xm.disable();xm.enable(n+","+r.namespace)}return Qde.add(r),r}function Sde(t){return!!(w3&&bde[t.level]<=bde[w3])}function Nde(t){return N3.includes(t)}var vA=_o("core-rest-pipeline");function T3(t={}){return tT({logger:vA.info,...t})}var x3=rT;function R3(t={}){return nT(t)}import D3 from"node:os";import k3 from"node:process";function Tde(){return"User-Agent"}async function xde(t){if(k3&&k3.versions){let e=`${D3.type()} ${D3.release()}; ${D3.arch()}`,r=k3.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var xT="1.22.2";function Qtt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Rde(){return Tde()}async function RT(t){let e=new Map;e.set("core-rest-pipeline",xT),await xde(e);let r=Qtt(e);return t?`${t} ${r}`:r}var Dde=Rde(),kde="userAgentPolicy";function v3(t={}){let e=RT(t.userAgentPrefix);return{name:kde,async sendRequest(r,n){return r.headers.has(Dde)||r.headers.set(Dde,await e),n(r)}}}var Cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function _3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Cy(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var xtt="The delay was aborted.";function Rm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return _3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??xtt})}function Vl(t){if(rf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function vde(t){return rf(t)}function Dm(){return tf()}var Ot=of;var _de=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Zrt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,Fs(t,i))}let c=zrt(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",Fs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Ihe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",Fs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Fs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Fs(t,i));else{let l=Ihe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Che(t,i);continue}else if(t[i+1]==="?"){if(i=Ehe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=$rt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!mhe(t[i]))return Zr("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(mhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function mhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Ehe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Che(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Wrt='"',Jrt="'";function zrt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Wrt||t[e]===Jrt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var jrt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ihe(t,e){let r=GT(t,jrt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dy(r[s]));let i=r[s][2];if(!Xrt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",Dy(r[s]))}return!0}function Krt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function $rt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Krt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Xrt(t){return Fm(t)}function Zrt(t){return Fm(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Dy(t){return t.startIndex+t[1].length}var yhe=t=>Ry.includes(t)?"__"+t:t,ent={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:yhe};function tnt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ry.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(qT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Bhe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Bhe(!0)}var bhe=function(t){let e=Object.assign({},ent,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&tnt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=yhe),e.processEntities=Bhe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var VT;typeof Symbol!="function"?VT="@@xmlMetadata":VT=Symbol("XML Node Metadata");var Ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new vy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=lf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=d8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=h8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Ai(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=lf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=lf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=h8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=dnt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=lnt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new Ai(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options));let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new Ai(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function Cnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Int(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function E8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=xnt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Yi(o)):o instanceof Yi&&n.push(o)}let s=new MA;return The(t,e,r,s,n)}function The(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=m8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Rhe(A);if(c===void 0)continue;let u=Rnt(A[":@"],e);n.push(c,u);let l=knt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=m8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=Nhe(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=Nhe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=xhe(A[c],e):p=The(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function Rnt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function xhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Rhe(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Dnt(s[":@"],e),a=xhe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Dnt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Rhe(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Nhe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=m8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function knt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function m8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function C8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var vnt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ui(t){if(this.options=Object.assign({},vnt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Yi(r)):r instanceof Yi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=C8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Mnt),this.processTextOrObjNode=_nt,this.options.format?(this.indentate=Fnt,this.tagEndChar=`>
`,"utf-8")],s=xrt(n);s&&t.headers.set("Content-Length",s),t.body=await rhe(n)}var Ky="multipartPolicy",Drt=70,krt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function vrt(t){if(t.length>Drt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!krt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function lx(){return{name:Ky,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?vrt(r):r=Srt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Rrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function dx(){return OT()}var nhe=LT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),uer=nhe.logger;function Lo(t){return nhe.createClientLogger(t)}var Gc=Lo("core-rest-pipeline");function d8(t={}){return qT({logger:Gc.info,...t})}var h8=Ax;function f8(t={}){return ux(t)}import g8 from"node:os";import id from"node:process";function she(){return"User-Agent"}async function ihe(t){if(id&&id.versions){let e=`${g8.type()} ${g8.release()}; ${g8.arch()}`;id.versions.bun?t.set("Bun",`${id.versions.bun} (${e})`):id.versions.deno?t.set("Deno",`${id.versions.deno} (${e})`):id.versions.node&&t.set("Node",`${id.versions.node} (${e})`)}}var hx="1.24.0";function Hrt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function ohe(){return she()}async function fx(t){let e=new Map;e.set("core-rest-pipeline",hx),await ihe(e);let r=Hrt(e);return t?`${t} ${r}`:r}var ahe=ohe(),che="userAgentPolicy";function p8(t={}){let e=fx(t.userAgentPrefix);return{name:che,async sendRequest(r,n){return r.headers.has(ahe)||r.headers.set(ahe,await e),n(r)}}}var Ahe=Symbol("rawContent");function m8(t){return typeof t[Ahe]=="function"}function uhe(t){return m8(t)?t[Ahe]():t}var gx=Ky;function E8(){let t=lx();return{name:gx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)m8(n.body)&&(n.body=uhe(n.body));return t.sendRequest(e,r)}}}var C8=ax;function I8(){return cx()}function y8(t={}){return WT(t)}function B8(){return JT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function b8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Krt="The delay was aborted.";function t0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return b8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Krt})}function od(t){if(bf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function lhe(t){return bf(t)}function r0(){return Bf()}var Wt=FT;function ad(t){return c8(t)}function w8(t,e){return ox(t,e)}var dhe="setClientRequestIdPolicy";function S8(t="x-ms-client-request-id"){return{name:dhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function N8(t){return zT(t)}function T8(t){return jT(t)}var n0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hhe(t={}){let e=new x8(t.parentContext);return t.span&&(e=e.setValue(n0.span,t.span)),t.namespace&&(e=e.setValue(n0.namespace,t.namespace)),e}var x8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var ghe=fe(fhe(),1),mx=ghe.state;function $rt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Xrt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$rt(),tracingContext:hhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return mx.instrumenterImplementation||(mx.instrumenterImplementation=Xrt()),mx.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Ist(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=gst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Khe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=Khe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=jhe(t,i);continue}else if(t[i+1]==="?"){if(i=zhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Est(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Jhe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Jhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Jhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function zhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function jhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var hst='"',fst="'";function gst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===hst||t[e]===fst)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var pst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Khe(t,e){let r=Sx(t,pst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",AB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!Cst(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function mst(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,mst(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Cst(t){return J8(t)}function Ist(t){return J8(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function AB(t){return t.startIndex+t[1].length}var $he={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Xhe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Zhe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=A0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=t4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=r4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ci(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=A0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=A0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=r4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=Wst(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Vst(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Xst(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Zst(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function eit(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function tit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function rit(t,e,r=">"){Line truncated
`;function uit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function wfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function a4(t,e){let r="";e.format&&(r=Ait);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Wi(a)):a instanceof Wi&&n.push(a)}let s=uit(t,e),i=new Vc;return Sfe(t,e,r,i,n,s)}function Sfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=o4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=c4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:wfe(u,!1,e,n,i),h=lit(A[":@"],e);n.push(d,h);let f=hit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=o4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=Lx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Mx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Qfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Qfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Nfe(A[u],e):C=Sfe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function lit(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=ud(t[s]),n=!0}return n?r:null}function Nfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=c4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=dit(s[":@"],e),a=Nfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function dit(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${ud(s)}"`}return r}function c4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Qfe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:wfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=o4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ud(A)}"`}return i}function hit(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function o4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function A4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var fit={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ui(t){if(this.options=Object.assign({},fit,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ui.prototype.build=function(t){if(this.options.preserveOrder)return E8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new MA;return this.j2x(t,0,e).val}};ui.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function _nt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};ui.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function git(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function u4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return a4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vc,r=git(t,this.options);return this.j2x(t,0,e,r).val}};ui.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:u4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=u4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=u4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ud(e)+'"'};function pit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=ud(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=ud(t[n]),r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>rx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=ZT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=ex(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends hf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Uy(e,r,this)}computeHMACSHA256(e){return Wnt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ff=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var Kl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Jnt=new ff("The operation was aborted."),Py=class extends LA{retryOptions;constructor(e,r,n=Kl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Kl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Kl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Kl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Kl.maxRetryDelayInMs):Kl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Kl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Kl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=XT(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=jl(s.url,wu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(pn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return pn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return pn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),tx(s,n,Jnt)}};var Oy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Py(e,r,this.retryOptions)}};var znt="storageBrowserPolicy";function Fhe(){return{name:znt,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=jl(t.url,wu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var jnt="StorageCorrectContentLengthPolicy";function Mhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:jnt,async sendRequest(e,r){return t(e),r(e)}}}var Knt="storageRetryPolicy",Lm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$nt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Xnt=new ff("The operation was aborted.");function Lhe(t={}){let e=t.retryPolicyType??Lm.retryPolicyType,r=t.maxTries??Lm.maxTries,n=t.retryDelayInMs??Lm.retryDelayInMs,s=t.maxRetryDelayInMs??Lm.maxRetryDelayInMs,i=t.secondaryHost??Lm.secondaryHost,o=t.tryTimeoutInMs??Lm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of $nt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>zx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Vx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Wx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return Tit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=Lo("storage-common");var Uo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Uo||(Uo={}));var dd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xit=new _f("The operation was aborted."),EB=class extends Wc{retryOptions;constructor(e,r,n=dd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:dd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):dd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:dd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:dd.maxRetryDelayInMs):dd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:dd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:dd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Yx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ld(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(mn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return mn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return mn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Uo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Uo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),Jx(s,n,xit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Rit="storageBrowserPolicy";function kfe(){return{name:Rit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ld(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Dit="StorageCorrectContentLengthPolicy";function vfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Dit,async sendRequest(e,r){return t(e),r(e)}}}var kit="storageRetryPolicy",l0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},vit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],_it=new _f("The operation was aborted.");function _fe(t={}){let e=t.retryPolicyType??l0.retryPolicyType,r=t.maxTries??l0.maxTries,n=t.retryDelayInMs??l0.retryDelayInMs,s=t.maxRetryDelayInMs??l0.maxRetryDelayInMs,i=t.secondaryHost??l0.secondaryHost,o=t.tryTimeoutInMs??l0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of vit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Znt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>rx(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=ZT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ex(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:est,async sendRequest(i,o){return e(i),o(i)}}}var tst="storageRequestFailureDetailsParserPolicy";function Uhe(){return{name:tst,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as rst}from"node:crypto";var nx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return rst("sha256",this.key).update(e,"utf8").digest("base64")}};var sx="12.31.0",ix="2026-02-06";var ox="https://storage.azure.com/.default",Su={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Pa="",w8="*",nst=1*1024*1024;var sst=4*nst;var Phe="AES256",Ohe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Hhe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Ghe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],qhe="BlobUsesCustomerSpecifiedEncryption",Yhe="BlobDoesNotUseCustomerSpecifiedEncryption",Vhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Nu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Hy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new Sr);let r=new Hy([],e);return r._credential=t,r}function ist(t){let e=[ost,Whe,ast,Ast,cst,ust,dst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>lst(s));return{wrappedPolicies:A8(r),afterRetry:n}}}}function S8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?c8(e):b8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${sx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Qy({...r,loggingOptions:{additionalAllowedHeaderNames:Hhe,additionalAllowedQueryParameters:Ghe,logger:JT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:WT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:y8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:U3}),s.addPolicy(Mhe()),s.addPolicy(Lhe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Uhe()),s.addPolicy(Fhe());let a=ist(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=N8(t);Gi(A)?s.addPolicy(vm({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ya(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function oot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function aot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Aot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function cot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function uot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function lot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Bf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function bf(t){let e=t.version?t.version:ix;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Zy=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Dm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};Jm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};Sf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var aB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var _ot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},eH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ige(t,e,r){return _ot(this,void 0,void 0,function*(){var n;let s=new Va(t),i=s.getBlockBlobClient(),o=new eH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new eR(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as age from"buffer";import*as rc from"fs";import*as Age from"stream";import*as cge from"util";var tR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function rR(t){return t?t>=200&&t<300:!1}function Fot(t){return t?t>=500:!0}function Mot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Lot(t){return tR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function oge(t,e,r){return tR(this,arguments,void 0,function*(n,s,i,o=YN,a=VN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Fot(d)))return l;if(d&&(h=Mot(d),c=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){G(`${n} - Error is not retryable`);break}yield Lot(a),u++}throw Error(`${n} failed: ${c}`)})}function AB(t,e){return tR(this,arguments,void 0,function*(r,n,s=YN,i=VN){return yield oge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function zm(t,e){return tR(this,arguments,void 0,function*(r,n,s=YN,i=VN){return yield oge(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Uot(t,e){return Oo(this,void 0,void 0,function*(){yield cge.promisify(Age.pipeline)(t.message,e)})}var nR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sH(t,e,r){return di(this,void 0,void 0,function*(){let n=new qot(t),s=hge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lge(t,e,s):s.concurrentBlobDownloads?yield uge(t,e,s):yield sR(t,e):yield sR(t,e)})}function Ige(t,e,r){return di(this,void 0,void 0,function*(){let n=nH(),s=ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield AB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(uB("caches"),i)}))})}function Ege(t,e){return`bytes ${t}-${e}/*`}function Jot(t,e,r,n,s){return di(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ege(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ege(n,s)},o=yield zm(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!rR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function zot(t,e,r,n){return di(this,void 0,void 0,function*(){let s=RA(r),i=uB(`caches/${e.toString()}`),o=jm.openSync(r,"r"),a=tH(n),A=YO("uploadConcurrency",a.uploadConcurrency),c=YO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Jot(t,i,()=>jm.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{jm.closeSync(o)}})}function jot(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield AB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(uB(`caches/${e.toString()}`),n)}))})}function iH(t,e,r,n){return di(this,void 0,void 0,function*(){if(tH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ige(r,e,n)}else{let i=nH();G("Upload cache"),yield zot(i,t,e,n),G("Commiting cache");let o=RA(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield jot(i,t,o);if(!rR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var hpe=ce(KH(),1),rn=ce(ct(),1),Ji=ce(ct(),1),Df=ce(ct(),1),kf=ce(ct(),1),vf=ce(ct(),1);var e9=ce(ct(),1),t9=ce(ct(),1),upe=ce(ct(),1),lpe=ce(ct(),1),dpe=ce(ct(),1);var $H=ce(ct(),1),XH=ce(ct(),1),ape=ce(ct(),1),Ape=ce(ct(),1),cpe=ce(ct(),1),ZH=class extends cpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Ape.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ape.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?XH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,$H.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,$H.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VR=new ZH;var r9=class extends dpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>VR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,lpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,upe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(VR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?t9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,e9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)VR.internalBinaryWrite(e.scope[i],r.tag(2,e9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?t9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield m9(r,"create");yield E9(n,t)})}var l0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},ji=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},id=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},zR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function mpe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}function y9(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}function Epe(){return cB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function jR(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=cB();return G(`Cache service version: ${c}`),mpe(s),c==="v2"?yield dct(s,i,o,a,A):yield lct(s,i,o,a,A)})}function lct(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)y9(d);let u=yield hy(),l="";try{let d=yield Cge(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=SB.join(yield ly(),ql(u)),G(`Archive Path: ${l}`),yield sH(d.archiveLocation,l,a),_a()&&(yield wB(l,u));let h=RA(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield C9(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ji.name)throw d;h instanceof wA&&typeof h.statusCode=="number"&&h.statusCode>=500?TA(`Failed to restore: ${d.message}`):We(`Failed to restore: ${d.message}`)}finally{try{yield dy(l)}catch(d){G(`Failed to delete archive: ${d}`)}}})}function dct(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)y9(l);let u="";try{let l=p9(),d=yield hy(),h={key:i,restoreKeys:o,version:ym(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){G(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=SB.join(yield ly(),ql(d)),G(`Archive path: ${u}`),G(`Starting download of archive to: ${u}`),yield sH(f.signedDownloadUrl,u,a);let I=RA(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),_a()&&(yield wB(u,d)),yield C9(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===ji.name)throw l;d instanceof wA&&typeof d.statusCode=="number"&&d.statusCode>=500?TA(`Failed to restore: ${l.message}`):We(`Failed to restore: ${l.message}`)}finally{try{u&&(yield dy(u))}catch(l){G(`Failed to delete archive: ${l}`)}}})}function KR(t,e,r){return l0(this,arguments,void 0,function*(n,s,i,o=!1){let a=cB();return G(`Cache service version: ${a}`),mpe(n),y9(s),a==="v2"?yield fct(n,s,i,o):yield hct(n,s,i,o)})}function hct(t,e,r){return l0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield hy(),h=-1,f=yield qO(n);if(G("Cache Paths:"),G(`${JSON.stringify(f)}`),f.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.");let p=yield ly(),I=SB.join(p,ql(d));G(`Archive Path: ${I}`);try{yield I9(p,f,d),_a()&&(yield wB(I,d));let E=10*1024*1024*1024,C=RA(I);if(G(`File Size: ${C}`),C>E&&!rH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);G("Reserving Cache");let y=yield Ige(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new id(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);G(`Saving Cache (ID: ${h})`),yield iH(h,I,"",i)}catch(E){let C=E;if(C.name===ji.name)throw E;C.name===id.name Line truncated
See ${r.getDocumentationLink()}`;Cpe.push(n),Vh(n)}function Ipe(){mu("deprecation-collector_deprecations",JSON.stringify(b9)),mu("deprecation-collector_errors",JSON.stringify(Cpe))}import*as eD from"path";var ype="GRADLE_ACTION_ID";var iD=".setup-gradle",tD=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Ac("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Ect("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(si.workflow,si.job,mct())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return eD.resolve(od(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return _f("dependency-graph-exclude-projects")}getIncludeProjects(){return _f("dependency-graph-include-projects")}getExcludeConfigurations(){return _f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return _f("dependency-graph-include-configurations")}getPluginRepository(){return new rD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var d0=class{isCacheDisabled(){return Epe()?Ac("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Ac("cache-read-only")}isCacheWriteOnly(){return Ac("cache-write-only")}isCacheOverwriteExisting(){return Ac("cache-overwrite-existing")}isCacheStrictMatch(){return Ac("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=TB("gradle-home-cache-cleanup");if(e!==void 0)return XR("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return LP("gradle-home-cache-includes")}getCacheExcludes(){return LP("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Yo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Yo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ac("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return TB("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return TB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return TB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return TB("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new rD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(We("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},rD=class{getUrl(){return _f("gradle-plugin-repository-url")}getUsername(){return _f("gradle-plugin-repository Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Npe}], make sure you have checked out the target repository`);return`${bct}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Sct=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,Nct="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Tct=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,xct="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Rct=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,T9=class{async restore(e,r){}async save(e,r,n){return Sct}},cD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function Dpe(t){if(t.isCacheDisabled())return N9("Cache is disabled: will not restore state from previous builds."),new T9;if(t.getCacheProvider()==="basic")return N9(xct),new cD(new AD,Rct);N9(Nct);let e=await Dct();return t.isCacheLicenseAccepted()?e:new cD(e,Tct)}async function Dct(){let t=kct();return await import(wct(t).href)}function kct(){let t=import.meta.dirname,e=Rpe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(xpe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function N9(t){console.info(t)}import uD from"fs";import kpe from"path";var lD=class{constructor(e){this.cacheFile=kpe.resolve(e,iD,"valid-wrappers.json")}load(){if(uD.existsSync(this.cacheFile))try{return JSON.parse(uD.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];uD.mkdirSync(kpe.dirname(this.cacheFile),{recursive:!0}),uD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Upe=ce(Mpe(),1);import*as Lpe from"util";import*as dD from"path";import*as hD from"fs";var Uct=Lpe.promisify(hD.readdir);async function Ppe(t){return(await Ope(t)).filter(r=>(0,Upe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>dD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Ope(t){let e=await Uct(t),r=await Promise.all(e.map(async n=>{let s=dD.resolve(t,n),i=hD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ope(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Oct={_useHtmlParser2:!1};function h0(t,e){if(!t)return e??Oct;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var X9={};ya(X9,{contains:()=>TD,extract:()=>_ut,html:()=>Rut,merge:()=>cme,parseHTML:()=>kut,root:()=>vut,text:()=>Of,xml:()=>Dut});var ld={};ya(ld,{DocumentPosition:()=>Jo,append:()=>dut,appendChild:()=>lut,compareDocumentPosition:()=>ime,existsOne:()=>nme,filter:()=>E0,find:()=>QD,findAll:()=>put,findOne:()=>wD,findOneChild:()=>gut,getAttributeValue:()=>aut,getChildren:()=>m0,getElementById:()=>Iut,getElements:()=>Cut,getElementsByClassName:()=>yut,getElementsByTagName:()=>Pf,getElementsByTagType:()=>But,getFeed:()=>$9,getInnerHTML:()=>out,getName:()=>cut,getOuterHTML:()=>tme,getParent:()=>rme,getSiblings:()=>j9,getText:()=>yD,hasAttrib:()=>Aut,hasChildren:()=>rr,innerText:()=>vB,isCDATA:()=>f0,isComment:()=>Uf,isDocument:()=>Wo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>BD,prepend:()=>fut,prependChild:()=>hut,prevElementSibling:()=>bD,removeElement:()=>Uu,removeSubsets:()=>but,replaceElement:()=>uut,testElement:()=>Eut,textContent:()=>Lu,uniqueSort:()=>cd});var Vo={};ya(Vo,{CDATA:()=>L9,Comment:()=>v9,Directive:()=>k9,Doctype:()=>U9,ElementType:()=>bt,Root:()=>R9,Script:()=>_9,Style:()=>F9,Tag:()=>M9,Text:()=>D9,isTag:()=>x9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function x9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var R9=bt.Root,D9=bt.Text,k9=bt.Directive,v9=bt.Comment,_9=bt.Script,F9=bt.Style,M9=bt.Tag,L9=bt.CDATA,U9=bt.Doctype;var fD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return g0(this,e)}},xB=class extends fD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uc=class extends xB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ff=class extends xB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Mf=class extends xB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},RB=class extends fD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},DB=class extends RB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ki=class extends RB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Lf=class extends RB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void Line truncated
`:yD(t.children):f0(t)?yD(t.children):gi(t)?t.data:""}function Lu(t){return Array.isArray(t)?t.map(Lu).join(""):rr(t)&&!Uf(t)?Lu(t.children):gi(t)?t.data:""}function vB(t){return Array.isArray(t)?t.map(vB).join(""):rr(t)&&(t.type===bt.Tag||f0(t))?vB(t.children):gi(t)?t.data:""}function m0(t){return rr(t)?t.children:[]}function rme(t){return t.parent||null}function j9(t){let e=rme(t);if(e!=null)return m0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function aut(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Aut(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function cut(t){return t.name}function BD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function bD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Uu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function uut(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function lut(t,e){if(Uu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function dut(t,e){Uu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function hut(t,e){if(Uu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function fut(t,e){Uu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function E0(t,e,r=!0,n=1/0){return QD(t,Array.isArray(e)?e:[e],r,n)}function QD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function gut(t,e){return e.find(t)}function wD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=wD(t,i.children,!0);if(o)return o}}return null}function nme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&nme(t,r.children))}function put(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var SD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function K9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function mut(t,e){return r=>t(r)||e(r)}function sme(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(SD,r)?SD[r](n):K9(r,n)});return e.length===0?null:e.reduce(mut)}function Eut(t,e){let r=sme(t);return r?r(e):!0}function Cut(t,e,r,n=1/0){let s=sme(t);return s?E0(s,e,r,n):[]}function Iut(t,e,r=!0){return Array.isArray(e)||(e=[e]),wD(K9("id",t),e,r)}function Pf(t,e,r=!0,n=1/0){return E0(SD.tag_name(t),e,r,n)}function yut(t,e,r=!0,n=1/0){return E0(K9("class",t),e,r,n)}function But(t,e,r=!0,n=1/0){return E0(SD.tag_type(t),e,r,n)}function but(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Jo||(Jo={}));function ime(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Jo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Jo.FOLLOWING|Jo.CONTAINED_BY:Jo.FOLLOWING:a===t?Jo.PRECEDING|Jo.CONTAINS:Jo.PRECEDING}function cd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=ime(e,r);return n&Jo.PRECEDING?-1:n&Jo.FOLLOWING?1:0}),t}function $9(t){let e=ND(Tut,t);return e?e.name==="feed"?Qut(e):wut(e):null}function Qut(t){var e;let r=t.children,n={type:"atom",items:Pf("entry",r).map(o=>{var a;let{children:A}=o,c={media:ome(A)};pi(c,"id","id",A),pi(c,"title","title",A);let u=(a=ND("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ud("summary",A)||ud("conten Line truncated
`+n(i)+s(i),a=Fit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>zx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Vx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Wx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Mit,async sendRequest(i,o){return e(i),o(i)}}}var Lit="storageRequestFailureDetailsParserPolicy";function Ffe(){return{name:Lit,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as Uit}from"node:crypto";var jx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Uit("sha256",this.key).update(e,"utf8").digest("base64")}};var Kx="12.31.0",$x="2026-02-06";var Xx="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Va="",p4="*",Pit=1*1024*1024;var Oit=4*Pit;var Mfe="AES256",Lfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ufe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Pfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Ofe="BlobUsesCustomerSpecifiedEncryption",Hfe="BlobDoesNotUseCustomerSpecifiedEncryption",Gfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function Hit(t){let e=[Git,qfe,qit,Yit,Vit,Wit,zit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Jit(s));return{wrappedPolicies:V8(r),afterRetry:n}}}}function m4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?W8(e):f4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Kx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:Ufe,additionalAllowedQueryParameters:Pfe,logger:Px.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ux,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C8}),s.addPolicy(vfe()),s.addPolicy(_fe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Ffe()),s.addPolicy(kfe());let a=Hit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E4(t);Yi(c)?s.addPolicy(s0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ka(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Gat(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function qat(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Yat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Vat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Wat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Jat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:$x;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var kB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=r0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};y0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More 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`),this.name="UsageError"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var pct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},VH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function rpe(t,e,r){return pct(this,void 0,void 0,function*(){var n;let s=new $a(t),i=s.getBlockBlobClient(),o=new VH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as spe from"buffer";import*as lA from"fs";import*as ipe from"stream";import*as ope from"util";var JR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function zR(t){return t?t>=200&&t<300:!1}function mct(t){return t?t>=500:!0}function Ect(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Cct(t){return JR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function npe(t,e,r){return JR(this,arguments,void 0,function*(n,s,i,o=RT,a=DT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!mct(d)))return l;if(d&&(h=Ect(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield Cct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield npe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof _c)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function B0(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield npe(r,n,o=>o.message.statusCode,s,i)})}var qo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Ict(t,e){return qo(this,void 0,void 0,function*(){yield ope.promisify(ipe.pipeline)(t.message,e)})}var jR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return di(this,void 0,void 0,function*(){let n=new wct(t),s=upe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cpe(t,e,s):s.concurrentBlobDownloads?yield ape(t,e,s):yield KR(t,e):yield KR(t,e)})}function mpe(t,e,r){return di(this,void 0,void 0,function*(){let n=zH(),s=Jm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function gpe(t,e){return`bytes ${t}-${e}/*`}function xct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":gpe(n,s)},o=yield B0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!zR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Rct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Pc(r),i=qB(`caches/${e.toString()}`),o=b0.openSync(r,"r"),a=WH(n),c=F3("uploadConcurrency",a.uploadConcurrency),A=F3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield xct(t,i,()=>b0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{b0.closeSync(o)}})}function Dct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return di(this,void 0,void 0,function*(){if(WH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rpe(r,e,n)}else{let i=zH();H("Upload cache"),yield Rct(i,t,e,n),H("Commiting cache");let o=Pc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Dct(i,t,o);if(!zR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var ume=fe(H9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var V9=fe(At(),1),W9=fe(At(),1),ame=fe(At(),1),cme=fe(At(),1),Ame=fe(At(),1);var G9=fe(At(),1),q9=fe(At(),1),sme=fe(At(),1),ime=fe(At(),1),ome=fe(At(),1),Y9=class extends ome.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,ime.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,sme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},LD=new Y9;var J9=class extends Ame.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>LD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,cme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ame.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(LD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)LD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var P0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},yd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},OD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function fme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function dG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function gme(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function HD(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),fme(s),A==="v2"?yield zut(s,i,o,a,c):yield Jut(s,i,o,a,c)})}function Jut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)dG(d);let u=yield qy(),l="";try{let d=yield ppe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),rd(u)),H(`Archive Path: ${l}`),yield jH(d.archiveLocation,l,a),Pa()&&(yield sb(l,u));let h=Pc(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield uG(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof _c&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):We(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function zut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)dG(l);let u="";try{let l=aG(),d=yield qy(),h={key:i,restoreKeys:o,version:Jm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),rd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield jH(f.signedDownloadUrl,u,a);let I=Pc(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pa()&&(yield sb(u,d)),yield uG(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof _c&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):We(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function GD(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),fme(n),dG(s),a==="v2"?yield Kut(n,s,i,o):yield jut(n,s,i,o)})}function jut(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield _3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.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.");let p=yield Hy(),I=ib.join(p,rd(d));H(`Archive Path: ${I}`);try{yield lG(p,f,d),Pa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Pc(I);if(H(`File Size: ${C}`),C>m&&!JH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield mpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new yd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield KH(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===yd.name Line truncated
See ${r.getDocumentationLink()}`;pme.push(n),df(n)}function mme(){Lc("deprecation-collector_deprecations",JSON.stringify(fG)),Lc("deprecation-collector_errors",JSON.stringify(pme))}import*as WD from"path";var Eme="GRADLE_ACTION_ID";var KD=".setup-gradle",cb=class t{getDependencyGraphOption(){let e=dr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return mA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return Zut("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,Cme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return WD.resolve(Bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new JD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var O0=class{isCacheDisabled(){return gme()?mA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&mA("cache-read-only")}isCacheWriteOnly(){return mA("cache-write-only")}isCacheOverwriteExisting(){return mA("cache-overwrite-existing")}isCacheStrictMatch(){return mA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ab("gradle-home-cache-cleanup");if(e!==void 0)return YD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var ec=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return mA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return ab("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ab("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ab("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ab("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new JD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(We("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},JD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},zD=class{getGradleVersion(){re Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new gb(i));return n.searchPaths.push(...EG(n.patterns)),n})}static stat(e,r,n){return wG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield q0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield q0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield q0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as SG from"crypto";import*as n2 from"fs";import*as Jme from"stream";import*as zme from"util";import*as jme from"path";var gdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},pdt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function Kme(t,e){return gdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=SG.createHash("sha256"),f=0;try{for(var p=!0,I=pdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${jme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=SG.createHash("sha256");yield zme.promisify(Jme.pipeline)(n2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var $me=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function NG(t,e){return $me(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function Xme(t){return $me(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield NG(e,{followSymbolicLinks:i});return Kme(o,r,s)})}import*as TG from"path";var mdt="Gradle User Home",e0e="BASIC_CACHE_PRIMARY_KEY",t0e="BASIC_CACHE_RESTORED_KEY",Edt="setup-java",r0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],i2=class{async restore(e,r){let n=n0e(e),s=await Cdt();Lc(e0e,s);try{let i=await HD(n,s);i?(Lc(t0e,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){We(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(e0e),i=by(t0e);if(n.readOnly)return{status:"read-only",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=n0e(e);try{return await GD(o,s),Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return We(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function s2(t){return{entryName:mdt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${r0e}], make sure you have checked out the target repository`);return`${Edt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var ydt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Bdt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",RG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function o0e(t){return t.isCacheDisabled()?(xG("Cache is disabled: will not restore state from previous builds."),new RG):t.getCacheProvider()==="basic"?(xG(Bdt),new i2):(xG(ydt),bdt())}async function bdt(){let t=Qdt();return await import(Idt(t).href)}function Qdt(){let t=import.meta.dirname,e=i0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(s0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function xG(t){console.info(t)}import o2 from"fs";import a0e from"path";var a2=class{constructor(e){this.cacheFile=a0e.resolve(e,KD,"valid-wrappers.json")}load(){if(o2.existsSync(this.cacheFile))try{return JSON.parse(o2.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];o2.mkdirSync(a0e.dirname(this.cacheFile),{recursive:!0}),o2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var h0e=fe(l0e(),1);import*as d0e from"util";import*as c2 from"path";import*as A2 from"fs";var Rdt=d0e.promisify(A2.readdir);async function f0e(t){return(await g0e(t)).filter(r=>(0,h0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>c2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function g0e(t){let e=await Rdt(t),r=await Promise.all(e.map(async n=>{let s=c2.resolve(t,n),i=A2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?g0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var kdt={_useHtmlParser2:!1};function Y0(t,e){if(!t)return e??kdt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var eq={};Na(eq,{contains:()=>Q2,extract:()=>Sht,html:()=>Bht,merge:()=>U0e,parseHTML:()=>Qht,root:()=>wht,text:()=>lg,xml:()=>bht});var Dd={};Na(Dd,{DocumentPosition:()=>Ko,append:()=>sht,appendChild:()=>nht,compareDocumentPosition:()=>_0e,existsOne:()=>k0e,filter:()=>j0,find:()=>I2,findAll:()=>cht,findOne:()=>y2,findOneChild:()=>aht,getAttributeValue:()=>Zdt,getChildren:()=>z0,getElementById:()=>dht,getElements:()=>lht,getElementsByClassName:()=>hht,getElementsByTagName:()=>ug,getElementsByTagType:()=>fht,getFeed:()=>ZG,getInnerHTML:()=>Xdt,getName:()=>tht,getOuterHTML:()=>R0e,getParent:()=>D0e,getSiblings:()=>$G,getText:()=>m2,hasAttrib:()=>eht,hasChildren:()=>tr,innerText:()=>yb,isCDATA:()=>V0,isComment:()=>Ag,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>E2,prepend:()=>oht,prependChild:()=>iht,prevElementSibling:()=>C2,removeElement:()=>ju,removeSubsets:()=>ght,replaceElement:()=>rht,testElement:()=>uht,textContent:()=>zu,uniqueSort:()=>xd});var zo={};Na(zo,{CDATA:()=>PG,Comment:()=>FG,Directive:()=>_G,Doctype:()=>OG,ElementType:()=>bt,Root:()=>kG,Script:()=>MG,Style:()=>LG,Tag:()=>UG,Text:()=>vG,isTag:()=>DG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function DG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var kG=bt.Root,vG=bt.Text,_G=bt.Directive,FG=bt.Comment,MG=bt.Script,LG=bt.Style,UG=bt.Tag,PG=bt.CDATA,OG=bt.Doctype;var u2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return W0(this,e)}},mb=class extends u2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},CA=class extends mb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends mb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends mb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Eb=class extends u2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:m2(t.children):V0(t)?m2(t.children):pi(t)?t.data:""}function zu(t){return Array.isArray(t)?t.map(zu).join(""):tr(t)&&!Ag(t)?zu(t.children):pi(t)?t.data:""}function yb(t){return Array.isArray(t)?t.map(yb).join(""):tr(t)&&(t.type===bt.Tag||V0(t))?yb(t.children):pi(t)?t.data:""}function z0(t){return tr(t)?t.children:[]}function D0e(t){return t.parent||null}function $G(t){let e=D0e(t);if(e!=null)return z0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Zdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function eht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function tht(t){return t.name}function E2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function C2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function ju(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function rht(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function nht(t,e){if(ju(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function sht(t,e){ju(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function iht(t,e){if(ju(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function oht(t,e){ju(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function j0(t,e,r=!0,n=1/0){return I2(t,Array.isArray(e)?e:[e],r,n)}function I2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function aht(t,e){return e.find(t)}function y2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=y2(t,i.children,!0);if(o)return o}}return null}function k0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&k0e(t,r.children))}function cht(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var B2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function XG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Aht(t,e){return r=>t(r)||e(r)}function v0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(B2,r)?B2[r](n):XG(r,n)});return e.length===0?null:e.reduce(Aht)}function uht(t,e){let r=v0e(t);return r?r(e):!0}function lht(t,e,r,n=1/0){let s=v0e(t);return s?j0(s,e,r,n):[]}function dht(t,e,r=!0){return Array.isArray(e)||(e=[e]),y2(XG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return j0(B2.tag_name(t),e,r,n)}function hht(t,e,r=!0,n=1/0){return j0(XG("class",t),e,r,n)}function fht(t,e,r=!0,n=1/0){return j0(B2.tag_type(t),e,r,n)}function ght(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ko;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ko||(Ko={}));function _0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function xd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=_0e(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function ZG(t){let e=b2(Iht,t);return e?e.name==="feed"?pht(e):mht(e):null}function pht(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:F0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=b2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Rd("summary",c)||Rd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ko=ce(dd(),1);var fG={};function gG(t,e){return t===Ko.default.falseFunc?Ko.default.falseFunc:r=>e.isTag(r)&&t(r)}function pG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function hG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var dG=(t,e,r,n,s)=>{let i=s(e,hG(r),n);return i===Ko.default.trueFunc?t:i===Ko.default.falseFunc?Ko.default.falseFunc:o=>i(o)&&t(o)},OD={is:dG,matches:dG,where:dG,not(t,e,r,n,s){let i=s(e,hG(r),n);return i===Ko.default.falseFunc?t:i===Ko.default.trueFunc?Ko.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=hG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(OB))?[fG]:void 0,A=s(e,o,a);if(A===Ko.default.falseFunc)return Ko.default.falseFunc;let c=gG(A,i);if(a&&A!==Ko.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...pG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function zme(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in OD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return OD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:PD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Jme.parse)(c);return OD.is(t,u,r,n,s)}if(typeof A=="function")return lG(A,o,a,1),u=>A(u,a)&&t(u);if(o in N0)return N0[o](t,a,r,n);if(o in GB){let u=GB[o];return lG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var $o=ce(w0(),1);function mG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function jme(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case $o.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case $o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case $o.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),qme[e.action](t,e,r)}case $o.SelectorType.Pseudo:return zme(t,e,r,n,s);case $o.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case $o.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=mG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=mG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=mG(c,i));return!1};case $o.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case $o.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case $o.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case $o.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case $o.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Kme(t,e,r){let n=HD(t,e,r);return gG(n,e.adapter)}function HD(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return GD(n,e,r)}function $me(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some($me)))}var Clt={type:ja.SelectorType.Descendant},Ilt={type:"_flexibleDescendant"},ylt={type:ja.SelectorType.Pseudo,name:"scope",data:null};function Blt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===fG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(h0e,`\r
`)}}).toArray()}var vG={};ya(vG,{extract:()=>Ldt});function Mdt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Ldt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Mdt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var gd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};gd.prototype.cheerio="[cheerio object]";gd.prototype.splice=Array.prototype.splice;gd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(gd.prototype,oG,xG,RG,DG,kG,vG);function f0e(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=h0(s),a=t(n,o,i,null);class A extends gd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&zo(u))return u;let f=h0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=zo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&_B(u)?t(u,f,!1,null).children:Udt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?_B(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):zo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,X9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function Udt(t){return!!t.name||t.type===Vo.Root||t.type===Vo.Text||t.type===Vo.Comment}var Pdt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function zD(t){return t>=55296&&t<=57343}function g0e(t){return t>=56320&&t<=57343}function p0e(t,e){return(t-55296)*1024+9216+e}function jD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function KD(t){return t>=64976&&t<=65007||Pdt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Zo=fe(kd(),1);var pq={};function mq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Eq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function gq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var fq=(t,e,r,n,s)=>{let i=s(e,gq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},M2={is:fq,matches:fq,where:fq,not(t,e,r,n,s){let i=s(e,gq(r),n);return i===Zo.default.falseFunc?t:i===Zo.default.trueFunc?Zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Tb))?[pq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=mq(c,i);if(a&&c!==Zo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Eq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function bEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in M2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return M2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:F2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,BEe.parse)(A);return M2.is(t,u,r,n,s)}if(typeof c=="function")return hq(c,o,a,1),u=>c(u,a)&&t(u);if(o in sE)return sE[o](t,a,r,n);if(o in Rb){let u=Rb[o];return hq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=fe(rE(),1);function Cq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function QEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),EEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return bEe(t,e,r,n,s);case ea.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Cq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Cq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Cq(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case ea.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function wEe(t,e,r){let n=L2(t,e,r);return mq(n,e.adapter)}function L2(t,e,r){let n=typeof t=="string"?(0,sc.parse)(t):t;return U2(n,e,r)}function SEe(t){return t.type===sc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(SEe)))}var lft={type:sc.SelectorType.Descendant},dft={type:"_flexibleDescendant"},hft={type:sc.SelectorType.Pseudo,name:"scope",data:null};function fft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===pq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(GEe,`\r
`)}}).toArray()}var Fq={};Na(Fq,{extract:()=>xgt});function Tgt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function xgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Tgt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Fd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Fd.prototype.cheerio="[cheerio object]";Fd.prototype.splice=Array.prototype.splice;Fd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Fd.prototype,cq,Dq,kq,vq,_q,Fq);function qEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=Y0(s),a=t(n,o,i,null);class c extends Fd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&$o(u))return u;let f=Y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Bb(u)?t(u,f,!1,null).children:Rgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?Bb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,eq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Rgt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Dgt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y2(t){return t>=55296&&t<=57343}function YEe(t){return t>=56320&&t<=57343}function VEe(t,e){return(t-55296)*1024+9216+e}function V2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function W2(t){return t>=64976&&t<=65007||Dgt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},Sv=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var Sg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function GNe(t){if(t instanceof AggregateError){Vh("Multiple errors returned");for(let e of t.errors)TA(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof Sg?(Vh(String(t)),t.stack&&Z(t.stack)):(Vh(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function qNe(t,e,r){if(!t.doValidateWrappers())return;let n=new lD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await HNe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await dN("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new Sg(`At least one Gradle Wrapper Jar failed validation!
`)}`}},B_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function mxe(t){if(t instanceof AggregateError){df("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof $g?(df(String(t)),t.stack&&Z(t.stack)):(df(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function Exe(t,e,r){if(!t.doValidateWrappers())return;let n=new a2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await pxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await eT("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new $g(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import uo from"fs";import Ng from"path";function YNe(t,e,r){let n=Ng.resolve(e,iD);uo.mkdirSync(n,{recursive:!0}),gRt(e),pRt(t),_a()&&mRt(e),r&&jn("GRADLE_ENCRYPTION_KEY",r)}function gRt(t){let e=Ng.resolve(t,"init.d");uo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=ERt("init-scripts",n),i=Ng.resolve(e,n);uo.writeFileSync(i,s)}}function pRt(t){let e=CRt();if(e==null)return;let r=Ng.resolve(t,".m2"),n=Ng.resolve(r,"toolchains.xml");if(!uo.existsSync(n))uo.mkdirSync(r,{recursive:!0}),uo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=uo.readFileSync(n,"utf8"),i=IRt(s,e);uo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function mRt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ho from"fs";import Xg from"path";function Cxe(t,e,r){let n=Xg.resolve(e,KD);ho.mkdirSync(n,{recursive:!0}),akt(e),ckt(t),Pa()&&Akt(e),r&&Kn("GRADLE_ENCRYPTION_KEY",r)}function akt(t){let e=Xg.resolve(t,"init.d");ho.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=ukt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function ckt(t){let e=lkt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=dkt(s,e);ho.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Akt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Ng.resolve(t,"gradle.properties");if(uo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=uo.readFileSync(r,"utf-8");uo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),uo.writeFileSync(r,e)}function ERt(...t){let e=import.meta.dirname,r=Ng.resolve(e,"..","..","..","sources","src","resources",...t);return uo.readFileSync(r,"utf8")}function CRt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function ukt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function lkt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -291,49 +280,49 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function IRt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var oJ="GRADLE_BUILD_ACTION_SETUP_COMPLETED",yRt="GRADLE_USER_HOME";async function VNe(t,e,r){let n=await WNe(),s=await bRt();return process.env[oJ]?(Z("Gradle setup only performed on first gradle/actions step in workflow."),!1):(jn(oJ,!0),mu(oJ,!0),mu(yRt,s),YNe(n,s,t.getCacheEncryptionKey()),await(await Dpe(t)).restore(s,BRt(t)),await qNe(r,od(),s),await wpe(e),!0)}function BRt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function bRt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=od();return AJ.resolve(r,t)}let e=AJ.resolve(await WNe(),".gradle");if(aJ.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),jn("GRADLE_USER_HOME",e),e;if(Nv.platform()==="win32"&&e.startsWith("C:\\")&&aJ.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),jn("GRADLE_USER_HOME",r),r}return jn("GRADLE_USER_HOME",e),e}async function WNe(){let t=await YI("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),Nv.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as bE from"fs";import*as STe from"os";import*as Wd from"path";import*as uJ from"crypto";import*as xg from"fs";var wRt=ce(Ay(),1);import*as dQ from"path";var Rv=ce(Ay(),1);import*as zNe from"stream";import*as jNe from"util";import{ok as NRt}from"assert";var JNe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Tv=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return JNe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return JNe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Tg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},xv=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},TRt=process.platform==="win32",oIr=process.platform==="darwin",xRt="actions/tool-cache";function KNe(t,e,r,n){return Tg(this,void 0,void 0,function*(){e=e||dQ.join(XNe(),uJ.randomUUID()),yield Yh(dQ.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=cJ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=cJ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Tv(s,i,o).execute(()=>Tg(this,void 0,void 0,function*(){return yield RRt(t,e||"",r,n)}),A=>!(A instanceof xv&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function RRt(t,e,r,n){return Tg(this,void 0,void 0,function*(){if(xg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(xRt,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new xv(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=jNe.promisify(zNe.pipeline),A=cJ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,xg.createWriteStream(e)),G("download complete"),c=!0,e}finally{if(!c){G("download failed");try{yield mae(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function $Ne(t,e){return Tg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield vRt(e),TRt?yield DRt(t,e):yield kRt(t,e),e})}function DRt(t,e){return Tg(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\nLine truncated
`," Line feed \\n"]]),HTe=new Map([...ZJ,["\\"," Backslash \\"],["/"," Forward slash /"]]);function GTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of HTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function dkt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var cz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",hkt="GRADLE_USER_HOME",fkt="DEVELOCITY_CACHE_TOKEN";async function Ixe(t,e,r){let n=await yxe(),s=await pkt();if(process.env[cz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Kn(cz,!0),Lc(cz,!0),Lc(hkt,s),Cxe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await bme(e);return Lc(fkt,o??""),await(await o0e(t)).restore(s,gkt(t,i,o)),await Exe(r,Bd(),s),yme(e),!0}function gkt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function pkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Bd();return uz.resolve(r,t)}let e=uz.resolve(await yxe(),".gradle");if(Az.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Kn("GRADLE_USER_HOME",e),e;if(b_.platform()==="win32"&&e.startsWith("C:\\")&&Az.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Kn("GRADLE_USER_HOME",r),r}return Kn("GRADLE_USER_HOME",e),e}async function yxe(){let t=await By("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),b_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}import*as eC from"fs";import*as tRe from"os";import*as dh from"path";import*as dz from"crypto";import*as ep from"fs";var Ekt=fe(Uy(),1);import*as ew from"path";var S_=fe(Uy(),1);import*as bxe from"stream";import*as Qxe from"util";import{ok as Ikt}from"assert";var Bxe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Q_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Bxe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Bxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},w_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},ykt=process.platform==="win32",kQr=process.platform==="darwin",Bkt="actions/tool-cache";function wxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ew.join(Nxe(),dz.randomUUID()),yield lf(ew.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=lz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=lz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Q_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield bkt(t,e||"",r,n)}),c=>!(c instanceof w_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function bkt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Bkt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new w_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Qxe.promisify(bxe.pipeline),c=lz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield fce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function Sxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),pRe=new Map([...$z,["\\"," Backslash \\"],["/"," Forward slash /"]]);function mRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of pRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(HTe.values()).toString()}
Invalid characters include: ${Array.from(pRe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function ez(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of ZJ)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function Xz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of $z)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(ZJ.values()).toString()}
Invalid characters include: ${Array.from($z.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var WTe=ce(VTe(),1);function Mc(){return`@actions/artifact-${WTe.version}`}var _v=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Jd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ol=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If 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(r),this.code=e,this.name="NetworkError"}};ol.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};Rg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Dg=class extends Error{};Dg.prototype.name="InvalidTokenError";function gDt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function pDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return gDt(e)}catch{return atob(e)}}function JTe(t,e){if(typeof t!="string")throw new Dg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Dg(`Invalid token specified: missing part #${r+1}`);let s;try{s=pDt(n)}catch(i){throw new Dg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Dg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Fv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Lc(){let t=kv(),e=JTe(t);if(!e.scp)throw Fv;let r=e.scp.split(" ");if(r.length===0)throw Fv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Fv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Fv}function zTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(va(r),va(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function jTe(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&zTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&zTe(t.signed_url)}var Mv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},tz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=kv();this.baseUrl=RTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new pu(i)])}request(e,r,n,s){return Mv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Mv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return Mv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(jTe(c),G(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Rg.isUsageErrorMessage(c.msg))throw new Rg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Rg)throw a;if(ol.isNetworkErrorCode(a?.code))throw new ol(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return Mv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Uc(t){let e=new tz(Mc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new vv(e)}import*as NE from"fs";import{normalize as KTe,resolve as $Te}from"path";function XTe(t){if(!NE.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&We("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);Z(`Redirecting to blob download url: ${sOe(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield iOe(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function AOe(){return yC(this,arguments,void 0,function*(t=DTe()){return(yield YGt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield ZPe.mkdir(t,{recursive:!0})),t})}var WGt=5,JGt=[400,401,403,404,422];function BC(t,e=WGt,r=JGt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var cOe="6.0.0";function op(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}op.VERSION=cOe;var dOe=ce(uOe(),1),hOe=ce(KP(),1),zGt="0.0.0-development";async function lOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function jGt(t,e,r,n){let s=new dOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(KGt.bind(null,t,e,r),n)}async function KGt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new hOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return lOe(t,e,i,n)}return s}function ap(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",lOe.bind(null,r,t)),t.hook.wrap("request",jGt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}ap.VERSION=zGt;var fOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function GF(t,e,r,n,s){return fOe(this,void 0,void 0,function*(){var i;let[o,a]=BC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},u=yield Fa(s,A,ap,op).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
`)}var yRe=fe(IRe(),1);function VA(){return`@actions/artifact-${yRe.version}`}var sC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},gl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},pl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ml=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If 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(r),this.code=e,this.name="NetworkError"}};ml.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More 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`),this.name="UsageError"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function svt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function ivt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return svt(e)}catch{return atob(e)}}function BRe(t,e){if(typeof t!="string")throw new np("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new np(`Invalid token specified: missing part #${r+1}`);let s;try{s=ivt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var R_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function WA(){let t=T_(),e=BRe(t);if(!e.scp)throw R_;let r=e.scp.split(" ");if(r.length===0)throw R_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw R_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw R_}function bRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ro(r),Ro(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function QRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&bRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&bRe(t.signed_url)}var D_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Zz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=T_();this.baseUrl=iRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new wu(i)])}request(e,r,n,s){return D_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>D_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return D_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(QRe(A),H(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(ml.isNetworkErrorCode(a?.code))throw new ml(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return D_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function JA(t){let e=new Zz(VA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new x_(e)}import*as iC from"fs";import{normalize as wRe,resolve as SRe}from"path";function NRe(t){if(!iC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&We("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${U3e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield P3e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function G3e(){return ZC(this,arguments,void 0,function*(t=oRe()){return(yield MVt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield v3e.mkdir(t,{recursive:!0})),t})}var UVt=5,PVt=[400,401,403,404,422];function eI(t,e=UVt,r=PVt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return H(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var q3e="6.0.0";function kp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}kp.VERSION=q3e;var W3e=fe(Y3e(),1);var UM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var OVt="0.0.0-development";async function V3e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function HVt(t,e,r,n){let s=new W3e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(GVt.bind(null,t,e,r),n)}async function GVt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new UM(s.data.errors[0].message,500,{request:n,response:s});return V3e(t,e,i,n)}return s}function vp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",V3e.bind(null,r,t)),t.hook.wrap("request",HVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=OVt;var J3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function PM(t,e,r,n,s){return J3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},u=yield Oa(s,c,vp,kp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new gl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new pl(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function gOe(t){return fOe(this,void 0,void 0,function*(){var e;let r=Uc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Lc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Es.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],H(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function z3e(t){return J3e(this,void 0,void 0,function*(){var e;let r=JA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=WA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new pl(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var pOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function mOe(t,e,r,n,s){return pOe(this,void 0,void 0,function*(){var i;let[o,a]=BC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},c=Fa(s,A,ap,op),u=yield GF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new sl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function EOe(t){return pOe(this,void 0,void 0,function*(){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Es.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var COe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},qF=_Te(),YF=100,$Gt=Math.ceil(qF/YF);function IOe(t,e,r,n){return COe(this,arguments,void 0,function*(s,i,o,a,A=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=BC(Jh),d={log:void 0,userAgent:Mc(),previews:void 0,retry:u,request:l},h=Fa(a,d,ap,op),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:YF,page:f}),I=Math.ceil(p.total_count/YF),E=p.total_count;E>qF&&(We(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${qF}. Results will be incomplete as only the first ${qF} artifacts will be returned`),I=$Gt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){G(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:YF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=BOe(c)),Z(`Found ${c.length} artifact(s)`),{artifacts:c}})}function yOe(){return COe(this,arguments,void 0,function*(t=!1){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=BOe(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function BOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var _w=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},XGt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},bC=class{uploadArtifact(e,r,n,s){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;return EPe(e,r,n,s)}catch(i){throw We(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var j3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function K3e(t,e,r,n,s){return j3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},A=Oa(s,c,vp,kp),u=yield PM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new gl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function $3e(t){return j3e(this,void 0,void 0,function*(){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new pl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var X3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},OM=ARe(),HM=100,qVt=Math.ceil(OM/HM);function Z3e(t,e,r,n){return X3e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(gf),d={log:void 0,userAgent:VA(),previews:void 0,retry:u,request:l},h=Oa(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f}),I=Math.ceil(p.total_count/HM),m=p.total_count;m>OM&&(We(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${OM}. Results will be incomplete as only the first ${OM} artifacts will be returned`),I=qVt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=t8e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function e8e(){return X3e(this,arguments,void 0,function*(t=!1){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=t8e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function t8e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var B1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},YVt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},tI=class{uploadArtifact(e,r,n,s){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;return XOe(e,r,n,s)}catch(i){throw We(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=XGt(r,["findBy"]);return oOe(e,n,s,i,o)}return aOe(e,r)}catch(n){throw We(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=YVt(r,["findBy"]);return O3e(e,n,s,i,o)}return H3e(e,r)}catch(n){throw We(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return IOe(r,n,s,i,e?.latest)}return yOe(e?.latest)}catch(r){throw We(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return Z3e(r,n,s,i,e?.latest)}return e8e(e?.latest)}catch(r){throw We(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return GF(e,n,s,i,o)}return gOe(e)}catch(n){throw We(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return PM(e,n,s,i,o)}return z3e(e)}catch(n){throw We(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return mOe(e,i,n,s,o)}return EOe(e)}catch(n){throw We(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return K3e(e,i,n,s,o)}return $3e(e)}catch(n){throw We(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var K1r=new bC;import*as $$ from"path";import X$ from"fs";var ZGt="dependency-graph_";async function bOe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){jn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await eqt(t);return}Z("Enabling dependency graph generation"),jn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ks("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_ID",si.runId.toString()),Ks("GITHUB_DEPENDENCY_GRAPH_REF",si.ref),Ks("GITHUB_DEPENDENCY_GRAPH_SHA",lqt()),Ks("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",od()),Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ks("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ks("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ks("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ks("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ks("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ks("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ks("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ks(t,e){process.env[t]||e!==void 0&&jn(t,e)}async function eqt(t){if(dqt()){Z("Dependency graph not supported in the ACT environment.");return}try{await nqt(await tqt(t))}catch(e){cqt(t,"download-and-submit",e)}}async function tqt(t){let e=si.payload.workflow_run?{token:oD(),workflowRunId:si.payload.workflow_run.id,repositoryName:si.repo.repo,repositoryOwner:si.repo.owner}:void 0,r=new bC,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(ZGt)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return rqt()}async function rqt(){let r=(await(await ey(`${oqt()}/**/*.json`)).glob()).filter(n=>!aqt(n));return r.forEach(Aqt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function nqt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await iqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=sqt(e,r)),r}}function sqt(t,e){let n=`Dependency submission failed for ${QOe(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var DRr=new tI;import*as zX from"path";import jX from"fs";var VVt="dependency-graph_";async function r8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await WVt(t);return}Z("Enabling dependency graph generation"),Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",n7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Bd()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&Kn(t,e)}async function WVt(t){if(s7t()){Z("Dependency graph not supported in the ACT environment.");return}try{await jVt(await JVt(t))}catch(e){t7t(t,"download-and-submit",e)}}async function JVt(t){let e=ri.payload.workflow_run?{token:$D(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new tI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(VVt)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return zVt()}async function zVt(){let r=(await(await NG(`${XVt()}/**/*.json`)).glob()).filter(n=>!ZVt(n));return r.forEach(e7t),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function jVt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await $Vt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=KVt(e,r)),r}}function KVt(t,e){let n=`Dependency submission failed for ${n8e(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function iqt(t){let e=uqt(),r=X$.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=si.repo.owner,n.repo=si.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=QOe(t);Tae(`Submitted ${i}: ${s.data.message}`)}function oqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function aqt(t){let e=`${t}.processed`;return X$.existsSync(e)}function Aqt(t){let e=`${t}.processed`;X$.writeFileSync(e,"")}function cqt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new Sg(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function uqt(){return Fa(oD())}function QOe(t){let e=od();return $$.relative(e,t)}function lqt(){let t=si;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function dqt(){return process.env.ACT!==void 0}function fqt(t=process.platform){return t==="win32"?50:0}async function wOe(t=process.platform){let e=fqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function gqt(){try{NB()==="gradle/gradle-build-action"&&ZR("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Bpe("gradle/actions/setup-gradle"),await VNe(new d0,new Yo,new sD),await bOe(new tD);let t=new nD;t.verifyNoArguments(),await hJ(t.getGradleVersion()),Ipe()}catch(t){GNe(t)}await wOe()}gqt();export{gqt as run};
`:n}async function $Vt(t){let e=r7t(),r=jX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=n8e(t);wce(`Submitted ${i}: ${s.data.message}`)}function XVt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ZVt(t){let e=`${t}.processed`;return jX.existsSync(e)}function e7t(t){let e=`${t}.processed`;jX.writeFileSync(e,"")}function t7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function r7t(){return Oa($D())}function n8e(t){let e=Bd();return zX.relative(e,t)}function n7t(){let t=ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function s7t(){return process.env.ACT!==void 0}function o7t(t=process.platform){return t==="win32"?50:0}async function s8e(t=process.platform){let e=o7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function a7t(){try{ob()==="gradle/gradle-build-action"&&VD("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Ime("gradle/actions/setup-gradle"),await Ixe(new O0,new ec,new jD),await r8e(new cb);let t=new zD;t.verifyNoArguments(),await gz(t.getGradleVersion()),mme()}catch(t){mxe(t)}await s8e()}a7t();export{a7t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -344,6 +333,13 @@ undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -412,5 +408,13 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+222 -165
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var TPe=Object.create;var EF=Object.defineProperty;var xPe=Object.getOwnPropertyDescriptor;var RPe=Object.getOwnPropertyNames;var DPe=Object.getPrototypeOf,kPe=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ga=(t,e)=>{for(var r in e)EF(t,r,{get:e[r],enumerable:!0})},vPe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of RPe(e))!kPe.call(t,s)&&s!==r&&EF(t,s,{get:()=>e[s],enumerable:!(n=xPe(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?TPe(DPe(t)):{},vPe(e||!t||!t.__esModule?EF(r,"default",{value:t,enumerable:!0}):r,t));var eZ=m(ep=>{"use strict";var l9t=b("net"),PPe=b("tls"),yF=b("http"),XX=b("https"),OPe=b("events"),d9t=b("assert"),HPe=b("util");ep.httpOverHttp=GPe;ep.httpsOverHttp=qPe;ep.httpOverHttps=YPe;ep.httpsOverHttps=VPe;function GPe(t){var e=new qc(t);return e.request=yF.request,e}function qPe(t){var e=new qc(t);return e.request=yF.request,e.createSocket=ZX,e.defaultPort=443,e}function YPe(t){var e=new qc(t);return e.request=XX.request,e}function VPe(t){var e=new qc(t);return e.request=XX.request,e.createSocket=ZX,e.defaultPort=443,e}function qc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=$X(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}HPe.inherits(qc,OPe.EventEmitter);qc.prototype.addRequest=function(e,r,n,s){var i=this,o=BF({request:e},i.options,$X(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};qc.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=BF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),cl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){cl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){cl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return cl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),cl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};qc.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function ZX(t,e){var r=this;qc.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=BF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=PPe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function $X(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function BF(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var cl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?cl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:cl=function(){};ep.debug=cl});var bF=m((f9t,tZ)=>{tZ.exports=eZ()});var yr=m((g9t,rZ)=>{rZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Mt=m((p9t,NZ)=>{"use strict";var nZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nZ]===!0}[nZ]=!0},sZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),QF=class extends Br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[sZ]===!0}[sZ]=!0},iZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),wF=class extends Br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[iZ]===!0}[iZ]=!0},oZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),SF=class extends Br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[oZ]===!0}[oZ]=!0},aZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),NF=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[aZ]===!0}[aZ]=!0},AZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),TF=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function a8e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(V3e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function A8e(){return"allowed"}function c8e(){return"success"}function u8e(){return"success"}function l8e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function d8e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&CM(t.origin)&&!CM(_C(t))&&(e=null);break;case"same-origin":u1(t,_C(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function up(t,e){return t}function h8e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:up(t.domainLookupStartTime,r),domainLookupEndTime:up(t.domainLookupEndTime,r),connectionStartTime:up(t.connectionStartTime,r),connectionEndTime:up(t.connectionEndTime,r),secureConnectionStartTime:up(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function f8e(t){return up(K3e.now(),t)}function g8e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function H$(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function p8e(t){return{referrerPolicy:t.referrerPolicy}}function m8e(t){let e=t.referrerPolicy;fh(e);let r=null;if(t.referrer==="client"){let a=F$();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=EM(r),s=EM(r,!0);n.toString().length>4096&&(n=s);let i=u1(t,n),o=vC(n)&&!vC(t.url);switch(e){case"origin":return s??EM(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=_C(t);return u1(n,a)?n:vC(n)&&!vC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function EM(t,e){return fh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function vC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function E8e(t,e){if(c1===void 0)return!0;let r=G$(e);if(r==="no metadata"||r.length===0)return!0;let n=I8e(r),s=y8e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=c1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),B8e(A,a))return!0}return!1}var C8e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function G$(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=C8e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();L$.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function I8e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function y8e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function B8e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function b8e(t){}function u1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Q8e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function w8e(t){return t.controller.state==="aborted"}function S8e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function N8e(t){return $3e[t.toLowerCase()]??t}function T8e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return fh(typeof e=="string"),e}var x8e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function q$(t,e,r=0,n=1){class s{#e;#t; Line truncated
`);function i4e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function o4e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function a4e(t,e){d1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&h1(t,n4e,i)||i.position===t.length-4&&h1(t,s4e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=A4e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",i4e(u)||(u=""),h=new t4e([d],c,{type:u})):h=K8e(Buffer.from(d)),d1(tee(A)),d1(typeof h=="string"&&tee(h)||Z8e(h)),s.push($8e(A,h,c))}}function A4e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=dp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=SM(o,!0,!0,a=>a===9||a===32),!X8e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,dp(a=>a===32||a===9,t,e),j8e(o)){case"content-disposition":{if(r=n=null,!h1(t,r4e,e)||(e.position+=17,r=see(t,e),r===null))return"failure";if(h1(t,nee,e)){let a=e.position+nee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=see(t,e),n===null))return"failure"}break}case"content-type":{let a=dp(A=>A!==10&&A!==13,t,e);a=SM(a,!1,!0,A=>A===9||A===32),s=ree(a);break}case"content-transfer-encoding":{let a=dp(A=>A!==10&&A!==13,t,e);a=SM(a,!1,!0,A=>A===9||A===32),i=ree(a);break}default:dp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function see(t,e){d1(t[e.position-1]===34);let r=dp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function dp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function SM(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function h1(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}iee.exports={multipartFormDataParser:a4e,validateBoundary:o4e}});var gp=m((H9t,pee)=>{"use strict";var LC=dt(),{ReadableStreamFrom:c4e,isBlobLike:aee,isReadableStreamLike:u4e,readableStreamClose:l4e,createDeferredPromise:d4e,fullyReadBody:h4e,extractMimeType:f4e,utf8DecodeBytes:uee}=Qi(),{FormData:Aee}=MC(),{kState:fp}=ul(),{webidl:g4e}=Wn(),{Blob:p4e}=b("node:buffer"),NM=b("node:assert"),{isErrored:lee,isDisturbed:m4e}=b("node:stream"),{isArrayBuffer:E4e}=b("node:util/types"),{serializeAMimeType:C4e}=js(),{multipartFormDataParser:I4e}=oee(),TM;try{let t=b("node:crypto");TM=e=>t.randomInt(0,e)}catch{TM=t=>Math.floor(Math.random(t))}var f1=new TextEncoder;function y4e(){}var dee=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,hee;dee&&(hee=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!m4e(e)&&!lee(e)&&e.cancel("Response object has been garbage collected").catch(y4e)}));function fee(t,e=!1){let r=null;t instanceof ReadableStream?r=t:aee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?f1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>l4e(A))},start(){},type:"bytes"}),NM(u4e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(E4e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(LC.isFormDataLike(t)){let A=`----formdata-undici-0${`${TM(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var I3e=Object.create;var pM=Object.defineProperty;var y3e=Object.getOwnPropertyDescriptor;var B3e=Object.getOwnPropertyNames;var b3e=Object.getPrototypeOf,Q3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ba=(t,e)=>{for(var r in e)pM(t,r,{get:e[r],enumerable:!0})},w3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of B3e(e))!Q3e.call(t,s)&&s!==r&&pM(t,s,{get:()=>e[s],enumerable:!(n=y3e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?I3e(b3e(t)):{},w3e(e||!t||!t.__esModule?pM(r,"default",{value:t,enumerable:!0}):r,t));var tZ=E(Sp=>{"use strict";var NYt=b("net"),D3e=b("tls"),IM=b("http"),XX=b("https"),k3e=b("events"),TYt=b("assert"),v3e=b("util");Sp.httpOverHttp=_3e;Sp.httpsOverHttp=F3e;Sp.httpOverHttps=M3e;Sp.httpsOverHttps=L3e;function _3e(t){var e=new XA(t);return e.request=IM.request,e}function F3e(t){var e=new XA(t);return e.request=IM.request,e.createSocket=ZX,e.defaultPort=443,e}function M3e(t){var e=new XA(t);return e.request=XX.request,e}function L3e(t){var e=new XA(t);return e.request=XX.request,e.createSocket=ZX,e.defaultPort=443,e}function XA(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=eZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}v3e.inherits(XA,k3e.EventEmitter);XA.prototype.addRequest=function(e,r,n,s){var i=this,o=yM({request:e},i.options,eZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};XA.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Bl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Bl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Bl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Bl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Bl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};XA.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function ZX(t,e){var r=this;XA.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=D3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function eZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Bl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Bl=function(){};Sp.debug=Bl});var BM=E((RYt,rZ)=>{rZ.exports=tZ()});var Ir=E((DYt,nZ)=>{nZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((kYt,TZ)=>{"use strict";var sZ=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[sZ]===!0}[sZ]=!0},iZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bM=class extends yr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[iZ]===!0}[iZ]=!0},oZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QM=class extends yr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[oZ]===!0}[oZ]=!0},aZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wM=class extends yr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[aZ]===!0}[aZ]=!0},cZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SM=class extends yr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[cZ]===!0}[cZ]=!0},AZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NM=class extends yr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Z4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(L4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function e6e(){return"allowed"}function t6e(){return"success"}function r6e(){return"success"}function n6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function s6e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&EL(t.origin)&&!EL(fI(t))&&(e=null);break;case"same-origin":eS(t,fI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Mp(t,e){return t}function i6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Mp(t.domainLookupStartTime,r),domainLookupEndTime:Mp(t.domainLookupEndTime,r),connectionStartTime:Mp(t.connectionStartTime,r),connectionEndTime:Mp(t.connectionEndTime,r),secureConnectionStartTime:Mp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function o6e(t){return Mp(G4e.now(),t)}function a6e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Gee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function c6e(t){return{referrerPolicy:t.referrerPolicy}}function A6e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Mee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mL(r),s=mL(r,!0);n.toString().length>4096&&(n=s);let i=eS(t,n),o=hI(n)&&!hI(t.url);switch(e){case"origin":return s??mL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=fI(t);return eS(n,a)?n:hI(n)&&!hI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mL(t,e){return _h(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function hI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function u6e(t,e){if(Z1===void 0)return!0;let r=qee(e);if(r==="no metadata"||r.length===0)return!0;let n=d6e(r),s=h6e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=Z1.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),f6e(c,a))return!0}return!1}var l6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function qee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=l6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Uee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function d6e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function h6e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function f6e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function g6e(t){}function eS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function p6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function m6e(t){return t.controller.state==="aborted"}function E6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function C6e(t){return V4e[t.toLowerCase()]??t}function I6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return _h(typeof e=="string"),e}var y6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Yee(t,e,r=0,n=1){class s{ Line truncated
`);function $6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function X6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function Z6e(t,e){rS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&nS(t,j6e,i)||i.position===t.length-4&&nS(t,K6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=e5e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",$6e(u)||(u=""),h=new J6e([d],A,{type:u})):h=G6e(Buffer.from(d)),rS(rte(c)),rS(typeof h=="string"&&rte(h)||Y6e(h)),s.push(V6e(c,h,A))}}function e5e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Up(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wL(o,!0,!0,a=>a===9||a===32),!q6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Up(a=>a===32||a===9,t,e),H6e(o)){case"content-disposition":{if(r=n=null,!nS(t,z6e,e)||(e.position+=17,r=ite(t,e),r===null))return"failure";if(nS(t,ste,e)){let a=e.position+ste.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ite(t,e),n===null))return"failure"}break}case"content-type":{let a=Up(c=>c!==10&&c!==13,t,e);a=wL(a,!1,!0,c=>c===9||c===32),s=nte(a);break}case"content-transfer-encoding":{let a=Up(c=>c!==10&&c!==13,t,e);a=wL(a,!1,!0,c=>c===9||c===32),i=nte(a);break}default:Up(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ite(t,e){rS(t[e.position-1]===34);let r=Up(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Up(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function nS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}ote.exports={multipartFormDataParser:Z6e,validateBoundary:X6e}});var Hp=E((nVt,mte)=>{"use strict";var mI=lt(),{ReadableStreamFrom:t5e,isBlobLike:cte,isReadableStreamLike:r5e,readableStreamClose:n5e,createDeferredPromise:s5e,fullyReadBody:i5e,extractMimeType:o5e,utf8DecodeBytes:lte}=Si(),{FormData:Ate}=pI(),{kState:Op}=bl(),{webidl:a5e}=Jn(),{Blob:c5e}=b("node:buffer"),SL=b("node:assert"),{isErrored:dte,isDisturbed:A5e}=b("node:stream"),{isArrayBuffer:u5e}=b("node:util/types"),{serializeAMimeType:l5e}=Js(),{multipartFormDataParser:d5e}=ate(),NL;try{let t=b("node:crypto");NL=e=>t.randomInt(0,e)}catch{NL=t=>Math.floor(Math.random(t))}var sS=new TextEncoder;function h5e(){}var hte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,fte;hte&&(fte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!A5e(e)&&!dte(e)&&e.cancel("Response object has been garbage collected").catch(h5e)}));function gte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:cte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?sS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>n5e(c))},start(){},type:"bytes"}),SL(r5e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(u5e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(mI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=f1.encode(c+`; name="${u(l(I))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=sS.encode(A+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=f1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=sS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=f1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(aee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(LC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:c4e(t)}if((typeof s=="string"||LC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!lee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function B4e(t,e=!1){return t instanceof ReadableStream&&(NM(!LC.isDisturbed(t),"The body has already been consumed."),NM(!t.locked,"The stream is locked.")),fee(t,e)}function b4e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Q4e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function w4e(t){return{blob(){return hp(this,r=>{let n=cee(this);return n===null?n="":n&&(n=C4e(n)),new p4e([r],{type:n})},t)},arrayBuffer(){return hp(this,r=>new Uint8Array(r).buffer,t)},text(){return hp(this,uee,t)},json(){return hp(this,N4e,t)},formData(){return hp(this,r=>{let n=cee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=I4e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Aee;return i[fp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Aee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return hp(this,r=>new Uint8Array(r),t)}}}function S4e(t){Object.assign(t.prototype,w4e(t))}async function hp(t,e,r){if(g4e.brandCheck(t,r),gee(t))throw new TypeError("Body is unusable: Body has already been read");Q4e(t[fp]);let n=d4e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[fp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await h4e(t[fp].body,i,s),n.promise)}function gee(t){let e=t[fp].body;return e!=null&&(e.stream.locked||LC.isDisturbed(e.stream))}function N4e(t){return JSON.parse(uee(t))}function cee(t){let e=t[fp].headersList,r=f4e(e);return r==="failure"?null:r}pee.exports={extractBody:fee,safelyExtractBody:B4e,cloneBody:b4e,mixinBody:S4e,streamRegistry:hee,hasFinalizationRegistry:dee,bodyUnusable:gee}});var Nee=m((G9t,See)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:mee}=rp(),xM=uM(),{RequestContentLengthMismatchError:gh,ResponseContentLengthMismatchError:T4e,RequestAbortedError:bee,HeadersTimeoutError:x4e,HeadersOverflowError:R4e,SocketError:I1,InformationalError:pp,BodyTimeoutError:D4e,HTTPParserError:k4e,ResponseExceededMaxSizeError:v4e}=Mt(),{kUrl:Qee,kReset:Ks,kClient:vM,kParser:Fr,kBlocking:OC,kRunning:ns,kPending:_4e,kSize:Eee,kWriting:dl,kQueue:pa,kNoRef:UC,kKeepAliveDefaultTimeout:F4e,kHostHeader:M4e,kPendingIdx:L4e,kRunningIdx:fo,kError:go,kPipelining:E1,kSocket:mp,kKeepAliveTimeoutValue:y1,kMaxHeadersSize:RM,kKeepAliveMaxTimeout:U4e,kKeepAliveTimeoutThreshold:P4e,kHeadersTimeout:O4e,kBodyTimeout:H4e,kStrictContentLength:_M,kMaxRequests:Cee,kCounter:G4e,kMaxResponseSize:q4e,kOnError:Y4e,kResume:ll,kHTTPContext:wee}=yr(),aA=h$(),V4e=Buffer.alloc(0),g1=Buffer[Symbol.species],p1=Ze.addListener,W4e=Ze.removeAllListeners,DM;async function J4e(){let t=process.env.JEST_WORKER_ID?hM():void 0,e;try{e=await WebAssembly.compile(p$())}catch{e=await WebAssembly.compile(t||hM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onStatus(new g1(AA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(hn.ptr===r),hn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onHeaderField(new g1(AA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onHeaderValue(new g1(AA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(hn.ptr===r),hn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onBody(new g1(AA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(hn.ptr===r),hn.onMessageComplete()||0)}})}var kM=null,FM=J4e();FM.catch();var hn=null,AA=null,m1=0,cA=null,z4e=0,PC=1,Ep=2|PC,C1=4|PC,MM=8|z4e,LM=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[RM])&&e[RM]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(aA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this. Line truncated
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=sS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(cte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:t5e(t)}if((typeof s=="string"||mI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!dte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function f5e(t,e=!1){return t instanceof ReadableStream&&(SL(!mI.isDisturbed(t),"The body has already been consumed."),SL(!t.locked,"The stream is locked.")),gte(t,e)}function g5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function p5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function m5e(t){return{blob(){return Pp(this,r=>{let n=ute(this);return n===null?n="":n&&(n=l5e(n)),new c5e([r],{type:n})},t)},arrayBuffer(){return Pp(this,r=>new Uint8Array(r).buffer,t)},text(){return Pp(this,lte,t)},json(){return Pp(this,C5e,t)},formData(){return Pp(this,r=>{let n=ute(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=d5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Ate;return i[Op]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Ate;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Pp(this,r=>new Uint8Array(r),t)}}}function E5e(t){Object.assign(t.prototype,m5e(t))}async function Pp(t,e,r){if(a5e.brandCheck(t,r),pte(t))throw new TypeError("Body is unusable: Body has already been read");p5e(t[Op]);let n=s5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Op].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await i5e(t[Op].body,i,s),n.promise)}function pte(t){let e=t[Op].body;return e!=null&&(e.stream.locked||mI.isDisturbed(e.stream))}function C5e(t){return JSON.parse(lte(t))}function ute(t){let e=t[Op].headersList,r=o5e(e);return r==="failure"?null:r}mte.exports={extractBody:gte,safelyExtractBody:f5e,cloneBody:g5e,mixinBody:E5e,streamRegistry:fte,hasFinalizationRegistry:hte,bodyUnusable:pte}});var Tte=E((sVt,Nte)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:Ete}=Tp(),TL=AL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:I5e,RequestAbortedError:Qte,HeadersTimeoutError:y5e,HeadersOverflowError:B5e,SocketError:uS,InformationalError:Gp,BodyTimeoutError:b5e,HTTPParserError:Q5e,ResponseExceededMaxSizeError:w5e}=Lt(),{kUrl:wte,kReset:zs,kClient:kL,kParser:Fr,kBlocking:II,kRunning:os,kPending:S5e,kSize:Cte,kWriting:wl,kQueue:ba,kNoRef:EI,kKeepAliveDefaultTimeout:N5e,kHostHeader:T5e,kPendingIdx:x5e,kRunningIdx:Eo,kError:Co,kPipelining:cS,kSocket:qp,kKeepAliveTimeoutValue:lS,kMaxHeadersSize:xL,kKeepAliveMaxTimeout:R5e,kKeepAliveTimeoutThreshold:D5e,kHeadersTimeout:k5e,kBodyTimeout:v5e,kStrictContentLength:vL,kMaxRequests:Ite,kCounter:_5e,kMaxResponseSize:F5e,kOnError:M5e,kResume:Ql,kHTTPContext:Ste}=Ir(),pc=fee(),L5e=Buffer.alloc(0),iS=Buffer[Symbol.species],oS=$e.addListener,U5e=$e.removeAllListeners,RL;async function P5e(){let t=process.env.JEST_WORKER_ID?dL():void 0,e;try{e=await WebAssembly.compile(mee())}catch{e=await WebAssembly.compile(t||dL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onStatus(new iS(mc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderField(new iS(mc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderValue(new iS(mc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onBody(new iS(mc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var DL=null,_L=P5e();_L.catch();var fn=null,mc=null,aS=0,Ec=null,O5e=0,CI=1,Yp=2|CI,AS=4|CI,FL=8|O5e,ML=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[xL])&&e[xL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(pc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[M4e],i?p+=`connection: upgrade\r
`:p+=t[T5e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[E1]&&!h[Ks]?p+=`connection: keep-alive\r
`:t[cS]&&!h[zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return mee.sendHeaders.hasSubscribers&&mee.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?yee(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?yee(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?Bee(f,A.stream(),t,e,h,u,p,l):e6e(f,A,t,e,h,u,p,l):Ze.isStream(A)?$4e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?Bee(f,A,t,e,h,u,p,l):Ge(!1),!0}function $4e(t,e,r,n,s,i,o,a){Ge(i!==0||r[ns]===0,"stream body cannot be pipelined");let A=!1,c=new B1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new bee;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[dl]&&r[ns]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ze.destroy(e,f):Ze.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function yee(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return Ete.sendHeaders.hasSubscribers&&Ete.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Bte(f,null,t,e,h,u,p,l):$e.isBuffer(c)?Bte(f,c,t,e,h,u,p,l):$e.isBlobLike(c)?typeof c.stream=="function"?bte(f,c.stream(),t,e,h,u,p,l):W5e(f,c,t,e,h,u,p,l):$e.isStream(c)?V5e(f,c,t,e,h,u,p,l):$e.isIterable(c)?bte(f,c,t,e,h,u,p,l):Ge(!1),!0}function V5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"stream body cannot be pipelined");let c=!1,A=new dS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){$e.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Qte;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[wl]&&r[os]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Bte(t,e,r,n,s,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Ks]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[zs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ll]()}catch(A){t(A)}}async function e6e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new gh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Ql]()}catch(c){t(c)}}async function W5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Fh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ks]=!0),r[ll]()}catch(A){t(A)}}async function Bee(t,e,r,n,s,i,o,a){Ge(i!==0||r[ns]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[go]?h(s[go]):A=d});s.on("close",c).on("drain",c);let l=new B1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[go])throw s[go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var B1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[dl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[go])throw r[go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[_M])throw new gh;process.emitWarning(new gh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ks]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[zs]=!0),r[Ql]()}catch(c){t(c)}}async function bte(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[Co]?h(s[Co]):c=d});s.on("close",A).on("drain",A);let l=new dS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Co])throw s[Co];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var dS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[wl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Co])throw r[Co];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[vL])throw new Fh;process.emitWarning(new Fh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zs]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Ep&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[dl]=!1,e[go])throw e[go];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Yp&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[wl]=!1,e[Co])throw e[Co];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[_M])throw new gh;process.emitWarning(new gh)}e[Fr].timeout&&e[Fr].timeoutType===Ep&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[ll]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[dl]=!1,e&&(Ge(n[ns]<=1,"pipeline should only contain this request"),s(e))}};See.exports=j4e});var Fee=m((q9t,_ee)=>{"use strict";var po=b("node:assert"),{pipeline:t6e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:UM,RequestAbortedError:Tee,SocketError:HC,InformationalError:PM}=Mt(),{kUrl:b1,kReset:w1,kClient:Cp,kRunning:S1,kPending:r6e,kQueue:hl,kPendingIdx:OM,kRunningIdx:ma,kError:Ca,kSocket:Nn,kStrictContentLength:n6e,kOnError:HM,kMaxConcurrentStreams:vee,kHTTP2Session:Ea,kResume:fl,kSize:s6e,kHTTPContext:i6e}=yr(),jc=Symbol("open streams"),xee,Ree=!1,Q1;try{Q1=b("node:http2")}catch{Q1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:o6e,HTTP2_HEADER_METHOD:a6e,HTTP2_HEADER_PATH:A6e,HTTP2_HEADER_SCHEME:c6e,HTTP2_HEADER_CONTENT_LENGTH:u6e,HTTP2_HEADER_EXPECT:l6e,HTTP2_HEADER_STATUS:d6e}}=Q1;function h6e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function f6e(t,e){t[Nn]=e,Ree||(Ree=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Q1.connect(t[b1],{createConnection:()=>e,peerMaxConcurrentStreams:t[vee]});r[jc]=0,r[Cp]=t,r[Nn]=e,mt.addListener(r,"error",p6e),mt.addListener(r,"frameError",m6e),mt.addListener(r,"end",E6e),mt.addListener(r,"goaway",C6e),mt.addListener(r,"close",function(){let{[Cp]:s}=this,{[Nn]:i}=s,o=this[Nn][Ca]||this[Ca]||new HC("closed",mt.getSocketInfo(i));if(s[Ea]=null,s.destroyed){po(s[r6e]===0);let a=s[hl].splice(s[ma]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[Ea]=r,e[Ea]=r,mt.addListener(e,"error",function(s){po(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ca]=s,this[Cp][HM](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new HC("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ca]||new HC("closed",mt.getSocketInfo(this));t[Nn]=null,this[Ea]!=null&&this[Ea].destroy(s),t[OM]=t[ma],po(t[S1]===0),t.emit("disconnect",t[b1],[t],s),t[fl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return y6e(t,...s)},resume(){g6e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function g6e(t){let e=t[Nn];e?.destroyed===!1&&(t[s6e]===0&&t[vee]===0?(e.unref(),t[Ea].unref()):(e.ref(),t[Ea].ref()))}function p6e(t){po(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nn][Ca]=t,this[Cp][HM](t)}function m6e(t,e,r){if(r===0){let n=new PM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nn][Ca]=n,this[Cp][HM](n)}}function E6e(){let t=new HC("other side closed",mt.getSocketInfo(this[Nn]));this.destroy(t),mt.destroy(this[Nn],t)}function C6e(t){let e=this[Ca]||new HC(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Cp];if(r[Nn]=null,r[i6e]=null,this[Ea]!=null&&(this[Ea].destroy(e),this[Ea]=null),mt.destroy(this[Nn],e),r[ma]<r[hl].length){let n=r[hl][r[ma]];r[hl][r[ma]++]=null,mt.errorRequest(r,n,e),r[OM]=r[ma]}po(r[S1]===0),r.emit("disconnect",r[b1],[r],e),r[fl]()}function I6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function y6e(t,e){let r=t[Ea],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],q=c[R+1];if(Array.isArray(q))for(let v=0;v<q.length;v++)l[M]?l[M]+=`,${q[v]}`:l[M]=q[v];else l[M]=q}let d,{hostname:h,port:f}=t[b1];l[o6e]=i||`${h}${f?`:${f}`:""}`,l[a6e]=n;let p=R=>{e.aborted||e.completed||(R=R||new Tee,mt.errorRequest(t,e,R),d!=null&&mt.destroy(d,R),mt.destroy(u,R),t[hl][t[ma]++]=null,t[fl]())};try{e.onConnect(p)}catch(R){mt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[jc],t[hl][t[ma]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[jc],t[hl][t[ma]++]=null}),d.once("close",()=>{r[jc]-=1,r[jc]===0&&r.unref()}),!0;l[A6e]=s,l[c6e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=mt.bodyLength(u);if(mt.isFormDataLike(u)){xee??=gp().extractBody;let[R,M]=xee(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),I6e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[n6e])return mt.errorRequest(t,e,new UM),!1;process.emitWarning(new UM)}E!=null&&(po(u,"no body must not have content length"),l[u6e]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[l6e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[J6e]=A??3e5,this[W6e]=s??3e5,this[z6e]=C??!0,this[j6e]=R,this[VM]=q,this[pl]=null,this[e5e]=P>-1?P:-1,this[r5e]=$??100,this[zr]=null,this[Ia]=[],this[Xc]=0,this[ya]=0,this[VC]=Ae=>JM(this,Ae),this[t5e]=Ae=>Jee(this,Ae)}get pipelining(){return this[R1]}set pipelining(e){this[R1]=e,this[VC](!0)}get[zC](){return this[Ia].length-this[ya]}get[JC](){return this[ya]-this[Xc]}get[WC](){return this[Ia].length-this[Xc]}get[P6e](){return!!this[zr]&&!this[yp]&&!this[zr].destroyed}get[YM](){return!!(this[zr]?.busy(null)||this[WC]>=(Wee(this)||1)||this[zC]>0)}[U6e](e){zee(this),this.once("connect",e)}[$6e](e,r){let n=e.origin||this[lA].origin,s=new k6e(n,e,r);return this[Ia].push(s),this[mh]||(ph.bodyLength(s.body)==null&&ph.isIterable(s.body)?(this[mh]=1,queueMicrotask(()=>JM(this))):this[VC](!0)),this[mh]&&this[ml]!==2&&this[YM]&&(this[ml]=2),this[ml]<2}async[X6e](){return new Promise(e=>{this[WC]?this[pl]=e:e(null)})}async[Z6e](e){return new Promise(r=>{let n=this[Ia].splice(this[ya]);for(let i=0;i<n.length;i++){let o=n[i];ph.errorRequest(this,o,e)}let s=()=>{this[pl]&&(this[pl](),this[pl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[VC]()})}},i5e=x1();function Jee(t,e){if(t[JC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Kc(t[ya]===t[Xc]);let r=t[Ia].splice(t[Xc]);for(let n=0;n<r.length;n++){let s=r[n];ph.errorRequest(t,s,e)}Kc(t[WC]===0)}}async function zee(t){Kc(!t[yp]),Kc(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[lA];if(r[0]==="["){let i=r.indexOf("]");Kc(i!==-1);let o=r.substring(1,i);Kc(Vee.isIP(o)),r=o}t[yp]=!0,Ip.beforeConnect.hasSubscribers&&Ip.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[gl],localAddress:t[YC]},connector:t[qC]});try{let i=await new Promise((o,a)=>{t[qC]({host:e,hostname:r,protocol:n,port:s,servername:t[gl],localAddress:t[YC]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){ph.destroy(i.on("error",qee),new F6e);return}Kc(i);try{t[zr]=i.alpnProtocol==="h2"?await s5e(t,i):await n5e(t,i)}catch(o){throw i.destroy().on("error",qee),o}t[yp]=!1,i[K6e]=0,i[VM]=t[VM],i[L6e]=t,i[H6e]=null,Ip.connected.hasSubscribers&&Ip.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[gl],localAddress:t[YC]},connector:t[qC],socket:i}),t.emit("connect",t[lA],[t])}catch(i){if(t.destroyed)return;if(t[yp]=!1,Ip.connectError.hasSubscribers&&Ip.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[gl],localAddress:t[YC]},connector:t[qC],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Kc(t[JC]===0);t[zC]>0&&t[Ia][t[ya]].servername===t[gl];){let o=t[Ia][t[ya]++];ph.errorRequest(t,o,i)}else Jee(t,i);t.emit("connectionError",t[lA],[t],i)}t[VC]()}function Yee(t){t[ml]=0,t.emit("drain",t[lA],[t])}function JM(t,e){t[mh]!==2&&(t[mh]=2,o5e(t,e),t[mh]=0,t[Xc]>256&&(t[Ia].splice(0,t[Xc]),t[ya]-=t[Xc],t[Xc]=0))}function o5e(t,e){for(;;){if(t.destroyed){Kc(t[zC]===0);return}if(t[pl]&&!t[WC]){t[pl](),t[pl]=null;return}if(t[zr]&&t[zr].resume(),t[YM])t[ml]=2;else if(t[ml]===2){e?(t[ml]=1,queueMicrotask(()=>Yee(t))):Yee(t);continue}if(t[zC]===0||t[JC]>=(Wee(t)||1))return;let r=t[Ia][t[ya]];if(t[lA].protocol==="https:"&&t[gl]!==r.servername){if(t[JC]>0)return;t[gl]=r.servername,t[zr]?.destroy(new _6e("servername changed"),()=>{t[zr]=null,JM(t)})}if(t[yp])return;if(!t[zr]){zee(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[ya]++:t[Ia].splice(t[ya],1)}}jee.exports=WM});var zM=m((z9t,Kee)=>{"use strict";var D1=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Kee.exports=class{constructor(){this.head=this.tail=new D1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new D1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Zee=m((j9t,Xee)=>{var{kFree:a5e,kConnected:A5e,kPending:c5e,kQueued:u5e,kRunning:l5e,kSize:d5e}=yr(),Eh=Symbol("pool"),jM=class{constructor(e){this[Eh]=e}get connected(){return this[Eh][A5e]}get free(){return this[Eh][a5e]}get pending(){return this[Eh][c5e]}get queued(){return this[Eh][u5e]}get running(){return this[Eh][l5e]}get size(){return this[Eh][d5e]}};Xee.exports=jM});var tL=m((K9t,Ate)=>{"use strict";var h5e=op(),f5e=zM(),{kConnected:KM,kSize:$ee,kRunning:ete,kPending:tte,kQueued:jC,kBusy:g5e,kFree:p5e,kUrl:m5e,kClose:E5e,kDestroy:C5e,kDispatch:I5e}=yr(),y5e=Zee(),Xs=Symbol("clients"),Ss=Symbol("needDrain"),KC=Symbol("queue"),XM=Symbol("closed resolve"),ZM=Symbol("onDrain"),rte=Symbol("onConnect"),nte=Symbol("onDisconnect"),ste=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[vL])throw new Fh;process.emitWarning(new Fh)}e[Fr].timeout&&e[Fr].timeoutType===Yp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[Ql]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[wl]=!1,e&&(Ge(n[os]<=1,"pipeline should only contain this request"),s(e))}};Nte.exports=H5e});var Mte=E((iVt,Fte)=>{"use strict";var Io=b("node:assert"),{pipeline:J5e}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:LL,RequestAbortedError:xte,SocketError:yI,InformationalError:UL}=Lt(),{kUrl:hS,kReset:gS,kClient:Vp,kRunning:pS,kPending:z5e,kQueue:Sl,kPendingIdx:PL,kRunningIdx:Qa,kError:Sa,kSocket:Tn,kStrictContentLength:j5e,kOnError:OL,kMaxConcurrentStreams:_te,kHTTP2Session:wa,kResume:Nl,kSize:K5e,kHTTPContext:$5e}=Ir(),su=Symbol("open streams"),Rte,Dte=!1,fS;try{fS=b("node:http2")}catch{fS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:X5e,HTTP2_HEADER_METHOD:Z5e,HTTP2_HEADER_PATH:eHe,HTTP2_HEADER_SCHEME:tHe,HTTP2_HEADER_CONTENT_LENGTH:rHe,HTTP2_HEADER_EXPECT:nHe,HTTP2_HEADER_STATUS:sHe}}=fS;function iHe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function oHe(t,e){t[Tn]=e,Dte||(Dte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=fS.connect(t[hS],{createConnection:()=>e,peerMaxConcurrentStreams:t[_te]});r[su]=0,r[Vp]=t,r[Tn]=e,mt.addListener(r,"error",cHe),mt.addListener(r,"frameError",AHe),mt.addListener(r,"end",uHe),mt.addListener(r,"goaway",lHe),mt.addListener(r,"close",function(){let{[Vp]:s}=this,{[Tn]:i}=s,o=this[Tn][Sa]||this[Sa]||new yI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){Io(s[z5e]===0);let a=s[Sl].splice(s[Qa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){Io(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[Vp][OL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new yI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new yI("closed",mt.getSocketInfo(this));t[Tn]=null,this[wa]!=null&&this[wa].destroy(s),t[PL]=t[Qa],Io(t[pS]===0),t.emit("disconnect",t[hS],[t],s),t[Nl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return hHe(t,...s)},resume(){aHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function aHe(t){let e=t[Tn];e?.destroyed===!1&&(t[K5e]===0&&t[_te]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function cHe(t){Io(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn][Sa]=t,this[Vp][OL](t)}function AHe(t,e,r){if(r===0){let n=new UL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tn][Sa]=n,this[Vp][OL](n)}}function uHe(){let t=new yI("other side closed",mt.getSocketInfo(this[Tn]));this.destroy(t),mt.destroy(this[Tn],t)}function lHe(t){let e=this[Sa]||new yI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Vp];if(r[Tn]=null,r[$5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[Tn],e),r[Qa]<r[Sl].length){let n=r[Sl][r[Qa]];r[Sl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[PL]=r[Qa]}Io(r[pS]===0),r.emit("disconnect",r[hS],[r],e),r[Nl]()}function dHe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function hHe(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[hS];l[X5e]=i||`${h}${f?`:${f}`:""}`,l[Z5e]=n;let p=N=>{e.aborted||e.completed||(N=N||new xte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[Sl][t[Qa]++]=null,t[Nl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[su],t[Sl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Sl][t[Qa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[eHe]=s,l[tHe]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){Rte??=Hp().extractBody;let[N,M]=Rte(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),dHe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[j5e])return mt.errorRequest(t,e,new LL),!1;process.emitWarning(new LL)}m!=null&&(Io(u,"no body must not have content length"),l[rHe]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[nHe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[PHe]=c??3e5,this[UHe]=s??3e5,this[OHe]=C??!0,this[HHe]=N,this[YL]=O,this[xl]=null,this[WHe]=P>-1?P:-1,this[zHe]=Z??100,this[zr]=null,this[Na]=[],this[ou]=0,this[Ta]=0,this[wI]=ce=>WL(this,ce),this[JHe]=ce=>zte(this,ce)}get pipelining(){return this[IS]}set pipelining(e){this[IS]=e,this[wI](!0)}get[TI](){return this[Na].length-this[Ta]}get[NI](){return this[Ta]-this[ou]}get[SI](){return this[Na].length-this[ou]}get[DHe](){return!!this[zr]&&!this[Jp]&&!this[zr].destroyed}get[qL](){return!!(this[zr]?.busy(null)||this[SI]>=(Jte(this)||1)||this[TI]>0)}[RHe](e){jte(this),this.once("connect",e)}[VHe](e,r){let n=e.origin||this[Ic].origin,s=new QHe(n,e,r);return this[Na].push(s),this[Lh]||(Mh.bodyLength(s.body)==null&&Mh.isIterable(s.body)?(this[Lh]=1,queueMicrotask(()=>WL(this))):this[wI](!0)),this[Lh]&&this[Rl]!==2&&this[qL]&&(this[Rl]=2),this[Rl]<2}async[qHe](){return new Promise(e=>{this[SI]?this[xl]=e:e(null)})}async[YHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Mh.errorRequest(this,o,e)}let s=()=>{this[xl]&&(this[xl](),this[xl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[wI]()})}},$He=CS();function zte(t,e){if(t[NI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ta]===t[ou]);let r=t[Na].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Mh.errorRequest(t,s,e)}iu(t[SI]===0)}}async function jte(t){iu(!t[Jp]),iu(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[Ic];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Wte.isIP(o)),r=o}t[Jp]=!0,Wp.beforeConnect.hasSubscribers&&Wp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Tl],localAddress:t[QI]},connector:t[bI]});try{let i=await new Promise((o,a)=>{t[bI]({host:e,hostname:r,protocol:n,port:s,servername:t[Tl],localAddress:t[QI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Mh.destroy(i.on("error",Yte),new NHe);return}iu(i);try{t[zr]=i.alpnProtocol==="h2"?await KHe(t,i):await jHe(t,i)}catch(o){throw i.destroy().on("error",Yte),o}t[Jp]=!1,i[GHe]=0,i[YL]=t[YL],i[xHe]=t,i[vHe]=null,Wp.connected.hasSubscribers&&Wp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Tl],localAddress:t[QI]},connector:t[bI],socket:i}),t.emit("connect",t[Ic],[t])}catch(i){if(t.destroyed)return;if(t[Jp]=!1,Wp.connectError.hasSubscribers&&Wp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Tl],localAddress:t[QI]},connector:t[bI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[NI]===0);t[TI]>0&&t[Na][t[Ta]].servername===t[Tl];){let o=t[Na][t[Ta]++];Mh.errorRequest(t,o,i)}else zte(t,i);t.emit("connectionError",t[Ic],[t],i)}t[wI]()}function Vte(t){t[Rl]=0,t.emit("drain",t[Ic],[t])}function WL(t,e){t[Lh]!==2&&(t[Lh]=2,XHe(t,e),t[Lh]=0,t[ou]>256&&(t[Na].splice(0,t[ou]),t[Ta]-=t[ou],t[ou]=0))}function XHe(t,e){for(;;){if(t.destroyed){iu(t[TI]===0);return}if(t[xl]&&!t[SI]){t[xl](),t[xl]=null;return}if(t[zr]&&t[zr].resume(),t[qL])t[Rl]=2;else if(t[Rl]===2){e?(t[Rl]=1,queueMicrotask(()=>Vte(t))):Vte(t);continue}if(t[TI]===0||t[NI]>=(Jte(t)||1))return;let r=t[Na][t[Ta]];if(t[Ic].protocol==="https:"&&t[Tl]!==r.servername){if(t[NI]>0)return;t[Tl]=r.servername,t[zr]?.destroy(new SHe("servername changed"),()=>{t[zr]=null,WL(t)})}if(t[Jp])return;if(!t[zr]){jte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}Kte.exports=VL});var JL=E((uVt,$te)=>{"use strict";var yS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};$te.exports=class{constructor(){this.head=this.tail=new yS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new yS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Zte=E((lVt,Xte)=>{var{kFree:ZHe,kConnected:e9e,kPending:t9e,kQueued:r9e,kRunning:n9e,kSize:s9e}=Ir(),Uh=Symbol("pool"),zL=class{constructor(e){this[Uh]=e}get connected(){return this[Uh][e9e]}get free(){return this[Uh][ZHe]}get pending(){return this[Uh][t9e]}get queued(){return this[Uh][r9e]}get running(){return this[Uh][n9e]}get size(){return this[Uh][s9e]}};Xte.exports=zL});var eU=E((dVt,Are)=>{"use strict";var i9e=kp(),o9e=JL(),{kConnected:jL,kSize:ere,kRunning:tre,kPending:rre,kQueued:xI,kBusy:a9e,kFree:c9e,kUrl:A9e,kClose:u9e,kDestroy:l9e,kDispatch:d9e}=Ir(),h9e=Zte(),js=Symbol("clients"),bs=Symbol("needDrain"),RI=Symbol("queue"),KL=Symbol("closed resolve"),$L=Symbol("onDrain"),nre=Symbol("onConnect"),sre=Symbol("onDisconnect"),ire=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};fne.exports=tU});var j1=m((QGt,Cne)=>{"use strict";var pne=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:J9e}=Mt(),z9e=Qp();Ene()===void 0&&mne(new z9e);function mne(t){if(!t||typeof t.dispatch!="function")throw new J9e("Argument agent must implement Agent");Object.defineProperty(globalThis,pne,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ene(){return globalThis[pne]}Cne.exports={setGlobalDispatcher:mne,getGlobalDispatcher:Ene}});var K1=m((SGt,Ine)=>{"use strict";Ine.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Bne=m((NGt,yne)=>{"use strict";var j9e=T1();yne.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new j9e(r,o,s,i);return r(a,A)}}});var Qne=m((TGt,bne)=>{"use strict";var K9e=P1();bne.exports=t=>e=>function(n,s){return e(n,new K9e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Sne=m((xGt,wne)=>{"use strict";var X9e=dt(),{InvalidArgumentError:Z9e,RequestAbortedError:$9e}=Mt(),eGe=K1(),rU=class extends eGe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Z9e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=X9e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new $9e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function tGe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new rU({maxSize:i},s);return e(n,o)}}wne.exports=tGe});var xne=m((RGt,Tne)=>{"use strict";var{isIP:rGe}=b("node:net"),{lookup:nGe}=b("node:dns"),sGe=K1(),{InvalidArgumentError:_p,InformationalError:iGe}=Mt(),Nne=Math.pow(2,31)-1,nU=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new iGe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){nGe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Nne?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Nne?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new sU(this,e,r)}},sU=class extends sGe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Aoe(i)&&(r[s]=i);break;case"id":coe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Aoe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&coe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};uoe.exports={EventSourceStream:qU}});var Coe=m((aqt,Eoe)=>{"use strict";var{pipeline:g7e}=b("node:stream"),{fetching:p7e}=cI(),{makeRequest:m7e}=Lp(),{webidl:ru}=Wn(),{EventSourceStream:E7e}=loe(),{parseMIMEType:C7e}=js(),{createFastMessageEvent:I7e}=qp(),{isNetworkError:doe}=aI(),{delay:y7e}=HU(),{kEnumerableProperty:vh}=dt(),{environmentSettingsObject:hoe}=Qi(),foe=!1,goe=3e3,BI=0,poe=1,bI=2,B7e="anonymous",b7e="use-credentials",zp=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=BI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),ru.util.markAsUncloneable(this);let n="EventSource constructor";ru.argumentLengthCheck(arguments,1,n),foe||(foe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ru.converters.USVString(e,n,"url"),r=ru.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:goe};let s=hoe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=B7e;r.withCredentials&&(o=b7e,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hoe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=m7e(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===bI)return;this.#r=BI;let e={request:this.#s,dispatcher:this.#a},r=n=>{doe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(doe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?C7e(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=poe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new E7e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(I7e(A.type,A.options))}});g7e(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=p7e(e)}async#c(){this.#r!==bI&&(this.#r=BI,this.dispatchEvent(new Event("error")),await y7e(this.#o.reconnectionTime),this.#r===BI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){ru.brandCheck(this,t),this.#r!==bI&&(this.#r=bI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},moe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:BI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:poe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bI,writable:!1}};Object.defineProperties(zp,moe);Object.defineProperties(zp.prototype,moe);Object.defineProperties(zp.prototype,{close:vh,onerror:vh,onmessage:vh,onopen:vh,readyState:vh,url:vh,withCredentials:vh});ru.converters.EventSourceInitDict=ru.dictionaryConverter([{key:"withCredentials",converter:ru.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:ru.converters.any}]);Eoe.exports={EventSource:zp,defaultReconnectionTime:goe}});var US=m((Aqt,Ye)=>{"use strict";var Q7e=Bp(),Ioe=NC(),w7e=bp(),S7e=mte(),N7e=Qp(),T7e=fL(),x7e=Hte(),R7e=Jte(),yoe=Mt(),LS=dt(),{InvalidArgumentError:MS}=yoe,jp=vre(),D7e=xC(),k7e=jL(),v7e=gne(),_7e=ZL(),F7e=ML(),M7e=P1(),{getGlobalDispatcher:Boe,setGlobalDispatcher:L7e}=j1(),U7e=K1(),P7e=T1(),O7e=x1();Object.assign(Ioe.prototype,jp);Ye.exports.Dispatcher=Ioe;Ye.exports.Client=Q7e;Ye.exports.Pool=w7e;Ye.exports.BalancedPool=S7e;Ye.exports.Agent=N7e;Ye.exports.ProxyAgent=T7e;Ye.exports.EnvHttpProxyAgent=x7e;Ye.exports Line truncated
%s`,M,M,C,n);var q=C.type==="*"?UP:C.type==="?"?LP:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+q+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),$=n.slice(D.reStart,D.reEnd-8),re=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);re+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==oN&&(Ke="$");var it=z+$+Ae+Ke+re;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===oN)return[n,s];if(!s)return Fze(t);var Wt=r.nocase?"i":"";try{var kt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return kt._glob=t,kt._src=n,kt}vi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=_ze;function _ze(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?UP:e.dot?Sze:Nze,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Ph?r:typeof o=="string"?Mze(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}vi.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;_I.sep!=="/"&&(e=e.split(_I.sep).join("/")),e=e.split(AAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(Ph)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===Ph){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Ph){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===Ph?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var q=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[q--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Ph)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function Fze(t){return t.replace(/\\(.)/g,"$1")}function Mze(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var PI=m((tVt,IAe)=>{"use strict";var Yze="2.0.0",Vze=Number.MAX_SAFE_INTEGER||9007199254740991,Wze=16,Jze=250,zze=["major","premajor","minor","preminor","patch","prepatch","prerelease"];IAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Wze,MAX_SAFE_BUILD_LENGTH:Jze,MAX_SAFE_INTEGER:Vze,RELEASE_TYPES:zze,SEMVER_SPEC_VERSION:Yze,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var OI=m((rVt,yAe)=>{"use strict";var jze=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};yAe.exports=jze});var nm=m((CA,BAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:GP,MAX_SAFE_BUILD_LENGTH:Kze,MAX_LENGTH:Xze}=PI(),Zze=OI();CA=BAe.exports={};var $ze=CA.re=[],eje=CA.safeRe=[],me=CA.src=[],tje=CA.safeSrc=[],Ee=CA.t={},rje=0,qP="[a-zA-Z0-9-]",nje=[["\\s",1],["\\d",Xze],[qP,Kze]],sje=t=>{for(let[e,r]of nje)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};gse.exports=eP});var PS=E((OVt,Ise)=>{"use strict";var mse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Pqe}=Lt(),Oqe=Kp();Cse()===void 0&&Ese(new Oqe);function Ese(t){if(!t||typeof t.dispatch!="function")throw new Pqe("Argument agent must implement Agent");Object.defineProperty(globalThis,mse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Cse(){return globalThis[mse]}Ise.exports={setGlobalDispatcher:Ese,getGlobalDispatcher:Cse}});var OS=E((GVt,yse)=>{"use strict";yse.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var bse=E((qVt,Bse)=>{"use strict";var Hqe=ES();Bse.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new Hqe(r,o,s,i);return r(a,c)}}});var wse=E((YVt,Qse)=>{"use strict";var Gqe=xS();Qse.exports=t=>e=>function(n,s){return e(n,new Gqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Nse=E((VVt,Sse)=>{"use strict";var qqe=lt(),{InvalidArgumentError:Yqe,RequestAbortedError:Vqe}=Lt(),Wqe=OS(),tP=class extends Wqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Yqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=qqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Vqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Jqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tP({maxSize:i},s);return e(n,o)}}Sse.exports=Jqe});var Rse=E((WVt,xse)=>{"use strict";var{isIP:zqe}=b("node:net"),{lookup:jqe}=b("node:dns"),Kqe=OS(),{InvalidArgumentError:om,InformationalError:$qe}=Lt(),Tse=Math.pow(2,31)-1,rP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new $qe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){jqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Tse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Tse?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new nP(this,e,r)}},nP=class extends Kqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Aae(i)&&(r[s]=i);break;case"id":uae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Aae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&uae(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};lae.exports={EventSourceStream:GP}});var Iae=E((b7t,Cae)=>{"use strict";var{pipeline:aJe}=b("node:stream"),{fetching:cJe}=qI(),{makeRequest:AJe}=Am(),{webidl:lu}=Jn(),{EventSourceStream:uJe}=dae(),{parseMIMEType:lJe}=Js(),{createFastMessageEvent:dJe}=gm(),{isNetworkError:hae}=HI(),{delay:hJe}=OP(),{kEnumerableProperty:Zh}=lt(),{environmentSettingsObject:fae}=Si(),gae=!1,pae=3e3,ry=0,mae=1,ny=2,fJe="anonymous",gJe="use-credentials",Im=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=ry;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),gae||(gae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:pae};let s=fae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=fJe;r.withCredentials&&(o=gJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=fae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=AJe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===ny)return;this.#r=ry;let e={request:this.#s,dispatcher:this.#a},r=n=>{hae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(hae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?lJe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=mae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new uJe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(dJe(c.type,c.options))}});aJe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=cJe(e)}async#A(){this.#r!==ny&&(this.#r=ry,this.dispatchEvent(new Event("error")),await hJe(this.#o.reconnectionTime),this.#r===ry&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){lu.brandCheck(this,t),this.#r!==ny&&(this.#r=ny,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Eae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ry,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ny,writable:!1}};Object.defineProperties(Im,Eae);Object.defineProperties(Im.prototype,Eae);Object.defineProperties(Im.prototype,{close:Zh,onerror:Zh,onmessage:Zh,onopen:Zh,readyState:Zh,url:Zh,withCredentials:Zh});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);Cae.exports={EventSource:Im,defaultReconnectionTime:pae}});var TN=E((Q7t,Ye)=>{"use strict";var pJe=zp(),yae=aI(),mJe=jp(),EJe=Ere(),CJe=Kp(),IJe=hU(),yJe=Gre(),BJe=zre(),Bae=Lt(),NN=lt(),{InvalidArgumentError:SN}=Bae,ym=_ne(),bJe=AI(),QJe=zU(),wJe=pse(),SJe=$U(),NJe=FU(),TJe=xS(),{getGlobalDispatcher:bae,setGlobalDispatcher:xJe}=PS(),RJe=OS(),DJe=ES(),kJe=CS();Object.assign(yae.prototype,ym);Ye.exports.Dispatcher=yae;Ye.exports.Client=pJe;Ye.exports.Pool=mJe;Ye.exports.BalancedPool=EJe;Ye.exports.Agent=CJe;Ye.exports.ProxyAgent=IJe;Ye.exports.EnvHttpProxyAgent=yJe;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?vO:C.type==="?"?kO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),ee=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);ee+=ce;var fe=z.split("(").length-1,De=ce;for(p=0;p<fe;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var Ke="";ce===""&&e!==KN&&(Ke="$");var st=z+Z+ce+Ke+ee;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===KN)return[n,s];if(!s)return EKe(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Mi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=mKe;function mKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?vO:e.dot?AKe:uKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===af?r:typeof o=="string"?CKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Mi.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;fy.sep!=="/"&&(e=e.split(fy.sep).join("/")),e=e.split(lAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(af)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===af){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===af){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===af?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===af)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function EKe(t){return t.replace(/\\(.)/g,"$1")}function CKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var xm=E((wJt,EAe)=>{"use strict";var NKe="2.0.0",TKe=Number.MAX_SAFE_INTEGER||9007199254740991,xKe=16,RKe=250,DKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];EAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xKe,MAX_SAFE_BUILD_LENGTH:RKe,MAX_SAFE_INTEGER:TKe,RELEASE_TYPES:DKe,SEMVER_SPEC_VERSION:NKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ey=E((SJt,CAe)=>{"use strict";var kKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};CAe.exports=kKe});var Rm=E((Tc,IAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:FO,MAX_SAFE_BUILD_LENGTH:vKe,MAX_LENGTH:_Ke}=xm(),FKe=Ey();Tc=IAe.exports={};var MKe=Tc.re=[],LKe=Tc.safeRe=[],me=Tc.src=[],UKe=Tc.safeSrc=[],Ee=Tc.t={},PKe=0,MO="[a-zA-Z0-9-]",OKe=[["\\s",1],["\\d",_Ke],[MO,vKe]],HKe=t=>{for(let[e,r]of OKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+WN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=_Ze()+e+" "+t[0]}function _Ze(){return xn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function FZe(...t){return process.stderr.write(VN.formatWithOptions(xn.inspectOpts,...t)+`
`)}function MZe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function LZe(){return process.env.DEBUG}function UZe(t){t.inspectOpts={};let e=Object.keys(xn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xn.inspectOpts[e[r]]}WN.exports=xO()(xn);var{formatters:$ue}=WN.exports;$ue.o=function(t){return this.inspectOpts.colors=this.useColors,VN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};$ue.O=function(t){return this.inspectOpts.colors=this.useColors,VN.inspect(t,this.inspectOpts)}});var JN=m((SWt,kO)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kO.exports=Jue():kO.exports=ele()});var nle=m(ni=>{"use strict";var PZe=ni&&ni.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),OZe=ni&&ni.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tle=ni&&ni.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&PZe(e,t,r);return OZe(e,t),e};Object.defineProperty(ni,"__esModule",{value:!0});ni.req=ni.json=ni.toBuffer=void 0;var HZe=tle(b("http")),GZe=tle(b("https"));async function rle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ni.toBuffer=rle;async function qZe(t){let r=(await rle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ni.json=qZe;function YZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?GZe:HZe).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ni.req=YZe});var _O=m(Mi=>{"use strict";var ile=Mi&&Mi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VZe=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ole=Mi&&Mi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ile(e,t,r);return VZe(e,t),e},WZe=Mi&&Mi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ile(e,t,r)};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Agent=void 0;var JZe=ole(b("net")),sle=ole(b("http")),zZe=b("https");WZe(nle(),Mi);var BA=Symbol("AgentBaseInternalState"),vO=class extends sle.Agent{constructor(e){super(e),this[BA]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new JZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?zZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof sle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[BA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[BA].currentSocket;if(this[BA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[BA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[BA]&&(this[BA].defaultPort=e)}get protocol(){return this[BA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[BA]&&(this[BA].protocol=e)}};Mi.Agent=vO});var ale=m(dm=>{"use strict";var jZe=dm&&dm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dm,"__esModule",{value:!0});dm.parseProxyResponse=void 0;var KZe=jZe(JN()),zN=(0,KZe.default)("https-proxy-agent:parse-proxy-response");function XZe(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),zN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),zN("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+FT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=xet()+e+" "+t[0]}function xet(){return Rn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ret(...t){return process.stderr.write(_T.formatWithOptions(Rn.inspectOpts,...t)+`
`)}function Det(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ket(){return process.env.DEBUG}function vet(t){t.inspectOpts={};let e=Object.keys(Rn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Rn.inspectOpts[e[r]]}FT.exports=w3()(Rn);var{formatters:jle}=FT.exports;jle.o=function(t){return this.inspectOpts.colors=this.useColors,_T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};jle.O=function(t){return this.inspectOpts.colors=this.useColors,_T.inspect(t,this.inspectOpts)}});var MT=E((rKt,T3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T3.exports=qle():T3.exports=Kle()});var Zle=E(ni=>{"use strict";var _et=ni&&ni.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Fet=ni&&ni.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$le=ni&&ni.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&_et(e,t,r);return Fet(e,t),e};Object.defineProperty(ni,"__esModule",{value:!0});ni.req=ni.json=ni.toBuffer=void 0;var Met=$le(b("http")),Let=$le(b("https"));async function Xle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ni.toBuffer=Xle;async function Uet(t){let r=(await Xle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ni.json=Uet;function Pet(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Let:Met).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ni.req=Pet});var R3=E(Pi=>{"use strict";var tde=Pi&&Pi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Oet=Pi&&Pi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rde=Pi&&Pi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tde(e,t,r);return Oet(e,t),e},Het=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tde(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Agent=void 0;var Get=rde(b("net")),ede=rde(b("http")),qet=b("https");Het(Zle(),Pi);var Dc=Symbol("AgentBaseInternalState"),x3=class extends ede.Agent{constructor(e){super(e),this[Dc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Get.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?qet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof ede.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Dc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Dc].currentSocket;if(this[Dc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Dc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Dc]&&(this[Dc].defaultPort=e)}get protocol(){return this[Dc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Dc]&&(this[Dc].protocol=e)}};Pi.Agent=x3});var nde=E(Pm=>{"use strict";var Yet=Pm&&Pm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pm,"__esModule",{value:!0});Pm.parseProxyResponse=void 0;var Vet=Yet(MT()),LT=(0,Vet.default)("https-proxy-agent:parse-proxy-response");function Wet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),LT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),LT("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){zN("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),q=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,q]:Array.isArray(v)?v.push(q):C[M]=q}zN("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}dm.parseProxyResponse=XZe});var hle=m(So=>{"use strict";var ZZe=So&&So.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$Ze=So&&So.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lle=So&&So.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ZZe(e,t,r);return $Ze(e,t),e},dle=So&&So.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(So,"__esModule",{value:!0});So.HttpsProxyAgent=void 0;var jN=lle(b("net")),Ale=lle(b("tls")),e$e=dle(b("assert")),t$e=dle(JN()),r$e=_O(),n$e=b("url"),s$e=ale(),ey=(0,t$e.default)("https-proxy-agent"),cle=t=>t.servername===void 0&&t.host&&!jN.isIP(t.host)?{...t,servername:t.host}:t,KN=class extends r$e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new n$e.URL(e):e,this.proxyHeaders=r?.headers??{},ey("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ule(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(ey("Creating `tls.Socket`: %o",this.connectOpts),s=Ale.connect(cle(this.connectOpts))):(ey("Creating `net.Socket`: %o",this.connectOpts),s=jN.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=jN.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){LT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}LT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Pm.parseProxyResponse=Wet});var Ade=E(xo=>{"use strict";var Jet=xo&&xo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zet=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ade=xo&&xo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Jet(e,t,r);return zet(e,t),e},cde=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpsProxyAgent=void 0;var UT=ade(b("net")),sde=ade(b("tls")),jet=cde(b("assert")),Ket=cde(MT()),$et=R3(),Xet=b("url"),Zet=nde(),ky=(0,Ket.default)("https-proxy-agent"),ide=t=>t.servername===void 0&&t.host&&!UT.isIP(t.host)?{...t,servername:t.host}:t,PT=class extends $et.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Xet.URL(e):e,this.proxyHeaders=r?.headers??{},ky("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ode(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(ky("Creating `tls.Socket`: %o",this.connectOpts),s=sde.connect(ide(this.connectOpts))):(ky("Creating `net.Socket`: %o",this.connectOpts),s=UT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=UT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,s$e.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",i$e),r.secureEndpoint?(ey("Upgrading socket connection to TLS"),Ale.connect({...ule(cle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new jN.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{ey("Replaying proxy buffer for failed request"),(0,e$e.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};KN.protocols=["http","https"];So.HttpsProxyAgent=KN;function i$e(t){t.resume()}function ule(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ple=m(No=>{"use strict";var o$e=No&&No.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),a$e=No&&No.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gle=No&&No.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&o$e(e,t,r);return a$e(e,t),e},A$e=No&&No.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(No,"__esModule",{value:!0});No.HttpProxyAgent=void 0;var c$e=gle(b("net")),u$e=gle(b("tls")),l$e=A$e(JN()),d$e=b("events"),h$e=_O(),fle=b("url"),hm=(0,l$e.default)("http-proxy-agent"),XN=class extends h$e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new fle.URL(e):e,this.proxyHeaders=r?.headers??{},hm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?f$e(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new fle.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;hm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Zet.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",ett),r.secureEndpoint?(ky("Upgrading socket connection to TLS"),sde.connect({...ode(ide(r),"host","path","port"),socket:s})):s;s.destroy();let l=new UT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{ky("Replaying proxy buffer for failed request"),(0,jet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};PT.protocols=["http","https"];xo.HttpsProxyAgent=PT;function ett(t){t.resume()}function ode(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var dde=E(Ro=>{"use strict";var ttt=Ro&&Ro.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rtt=Ro&&Ro.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lde=Ro&&Ro.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ttt(e,t,r);return rtt(e,t),e},ntt=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.HttpProxyAgent=void 0;var stt=lde(b("net")),itt=lde(b("tls")),ott=ntt(MT()),att=b("events"),ctt=R3(),ude=b("url"),Om=(0,ott.default)("http-proxy-agent"),OT=class extends ctt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ude.URL(e):e,this.proxyHeaders=r?.headers??{},Om("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Att(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new ude.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Om("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Om("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),hm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hm("Creating `tls.Socket`: %o",this.connectOpts),i=u$e.connect(this.connectOpts)):(hm("Creating `net.Socket`: %o",this.connectOpts),i=c$e.connect(this.connectOpts)),await(0,d$e.once)(i,"connect"),i}};XN.protocols=["http","https"];No.HttpProxyAgent=XN;function f$e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var zle=m(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.state=void 0;lT.state={instrumenterImplementation:void 0}});var lde=m(pT=>{"use strict";Object.defineProperty(pT,"__esModule",{value:!0});pT.state=void 0;pT.state={operationRequestMap:new WeakMap}});var Qfe=m((ecr,lit)=>{lit.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Sfe=m((tcr,wfe)=>{var dit=Qfe();wfe.exports={version:dit.version}});var Ox=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.isJsonObject=Fm.typeofJsonValue=void 0;function yit(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Fm.typeofJsonValue=yit;function Bit(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Fm.isJsonObject=Bit});var Gx=m(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.base64encode=Mm.base64decode=void 0;var bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Hx=[];for(let t=0;t<bu.length;t++)Hx[bu[t].charCodeAt(0)]=t;Hx[45]=bu.indexOf("+");Hx[95]=bu.indexOf("/");function bit(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=Hx[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Mm.base64decode=bit;function Qit(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=bu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=bu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=bu[s|n>>6],e+=bu[n&63],r=0;break}return r&&(e+=bu[s],e+="=",r==1&&(e+="=")),e}Mm.base64encode=Qit});var Dfe=m(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});qx.utf8read=void 0;var N5=t=>String.fromCharCode.apply(String,t);function wit(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(N5(n)),s=0);return r.length?(s&&r.push(N5(n.slice(0,s))),r.join("")):N5(n.slice(0,s))}qx.utf8read=wit});var zy=m(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.WireType=JA.mergeBinaryOptions=JA.UnknownFieldHandler=void 0;var Sit;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Sit=JA.UnknownFieldHandler||(JA.UnknownFieldHandler={}));function Nit(t,e){return Object.assign(Object.assign({},t),e)}JA.mergeBinaryOptions=Nit;var Tit;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Tit=JA.WireType||(JA.WireType={}))});var Vx=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.varint32read=ci.varint32write=ci.int64toString=ci.int64fromString=ci.varint64write=ci.varint64read=void 0;function xit(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ci.varint64read=xit;function Rit(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}ci.varint64write=Rit;var Yx=65536*65536;function Dit(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=Yx&&(s=s+(n/Yx|0),n=n%Yx)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}ci.int64fromString=Dit;function kit(t,e){if(e>>>0<=2097151)return""+(Yx*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}ci.int64toString=kit;function vit(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ci.varint32write=vit;function _it(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}ci.varint32read=_it});var zl=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.PbLong=Jl.PbULong=Jl.detectBi=void 0;var jy=Vx(),or;function kfe(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Jl.detectBi=kfe;kfe();function vfe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var _fe=/^-?[0-9]+$/,Jx=4294967296,Wx=2147483648,zx=c Line truncated
`)}};ER.RpcError=eH});var rH=m(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.mergeRpcOptions=void 0;var uge=ct();function rat(t,e){if(!e)return t;let r={};CR(t,r),CR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=uge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=uge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},CR(t.meta,r.meta),CR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}IR.mergeRpcOptions=rat;function CR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var sH=m(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.Deferred=Cf.DeferredState=void 0;var KA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(KA=Cf.DeferredState||(Cf.DeferredState={}));var nH=class{constructor(e=!0){this._state=KA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==KA.PENDING)throw new Error(`cannot resolve ${KA[this.state].toLowerCase()}`);this._resolve(e),this._state=KA.RESOLVED}reject(e){if(this.state!==KA.PENDING)throw new Error(`cannot reject ${KA[this.state].toLowerCase()}`);this._reject(e),this._state=KA.REJECTED}resolvePending(e){this._state===KA.PENDING&&this.resolve(e)}rejectPending(e){this._state===KA.PENDING&&this.reject(e)}};Cf.Deferred=nH});var oH=m(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0});yR.RpcOutputStreamController=void 0;var lge=sH(),If=ct(),iH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){If.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){If.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){If.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){If.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;If.assert(e,"bad state"),If.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new lge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;If.assert(n.state==lge.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};yR.RpcOutputStreamController=iH});var AH=m(qm=>{"use strict";var nat=qm&&qm.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(qm,"__esModule",{value:!0});qm.UnaryCall=void 0;var aH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return nat(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};qm.UnaryCall=aH});var uH=m(Ym=>{"use strict";var sat=Ym&&Ym.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.ServerStreamingCall=void 0;var cH=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Om("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Om("Creating `tls.Socket`: %o",this.connectOpts),i=itt.connect(this.connectOpts)):(Om("Creating `net.Socket`: %o",this.connectOpts),i=stt.connect(this.connectOpts)),await(0,att.once)(i,"connect"),i}};OT.protocols=["http","https"];Ro.HttpProxyAgent=OT;function Att(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Mde=E(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.state=void 0;XT.state={instrumenterImplementation:void 0}});var Zde=E(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0});nx.state=void 0;nx.state={operationRequestMap:new WeakMap}});var vge=E((nhr,mat)=>{mat.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Fge=E((shr,_ge)=>{var Eat=vge();_ge.exports={version:Eat.version}});var FR=E(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.isJsonObject=u0.typeofJsonValue=void 0;function Nat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}u0.typeofJsonValue=Nat;function Tat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}u0.isJsonObject=Tat});var LR=E(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.base64encode=l0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),MR=[];for(let t=0;t<ku.length;t++)MR[ku[t].charCodeAt(0)]=t;MR[45]=ku.indexOf("+");MR[95]=ku.indexOf("/");function xat(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=MR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}l0.base64decode=xat;function Rat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ku[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=ku[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=ku[s|n>>6],e+=ku[n&63],r=0;break}return r&&(e+=ku[s],e+="=",r==1&&(e+="=")),e}l0.base64encode=Rat});var Oge=E(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0});UR.utf8read=void 0;var yH=t=>String.fromCharCode.apply(String,t);function Dat(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(yH(n)),s=0);return r.length?(s&&r.push(yH(n.slice(0,s))),r.join("")):yH(n.slice(0,s))}UR.utf8read=Dat});var TB=E(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.WireType=rA.mergeBinaryOptions=rA.UnknownFieldHandler=void 0;var kat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(kat=rA.UnknownFieldHandler||(rA.UnknownFieldHandler={}));function vat(t,e){return Object.assign(Object.assign({},t),e)}rA.mergeBinaryOptions=vat;var _at;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(_at=rA.WireType||(rA.WireType={}))});var OR=E(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.varint32read=ui.varint32write=ui.int64toString=ui.int64fromString=ui.varint64write=ui.varint64read=void 0;function Fat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ui.varint64read=Fat;function Mat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ui.varint64write=Mat;var PR=65536*65536;function Lat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=PR&&(s=s+(n/PR|0),n=n%PR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}ui.int64fromString=Lat;function Uat(t,e){if(e>>>0<=2097151)return""+(PR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}ui.int64toString=Uat;function Pat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ui.varint32write=Pat;function Oat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}ui.varint32read=Oat});var ld=E(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.PbLong=ud.PbULong=ud.detectBi=void 0;var xB=OR(),ir;function Hge(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}ud.detectBi=Hge;Hge();function Gge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var qge=/^-?[0-9]+$/,GR=4294967296,HR=2147483648,qR=c Line truncated
`)}};hD.RpcError=zH});var KH=E(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});gD.mergeRpcOptions=void 0;var Cpe=ct();function cAt(t,e){if(!e)return t;let r={};fD(t,r),fD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Cpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Cpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fD(t.meta,r.meta),fD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}gD.mergeRpcOptions=cAt;function fD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var XH=E(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.Deferred=Pf.DeferredState=void 0;var iA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(iA=Pf.DeferredState||(Pf.DeferredState={}));var $H=class{constructor(e=!0){this._state=iA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==iA.PENDING)throw new Error(`cannot resolve ${iA[this.state].toLowerCase()}`);this._resolve(e),this._state=iA.RESOLVED}reject(e){if(this.state!==iA.PENDING)throw new Error(`cannot reject ${iA[this.state].toLowerCase()}`);this._reject(e),this._state=iA.REJECTED}resolvePending(e){this._state===iA.PENDING&&this.resolve(e)}rejectPending(e){this._state===iA.PENDING&&this.reject(e)}};Pf.Deferred=$H});var e9=E(pD=>{"use strict";Object.defineProperty(pD,"__esModule",{value:!0});pD.RpcOutputStreamController=void 0;var Ipe=XH(),Of=ct(),ZH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Of.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Of.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Of.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Of.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Of.assert(e,"bad state"),Of.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Ipe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Of.assert(n.state==Ipe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};pD.RpcOutputStreamController=ZH});var r9=E(E0=>{"use strict";var AAt=E0&&E0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(E0,"__esModule",{value:!0});E0.UnaryCall=void 0;var t9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return AAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};E0.UnaryCall=t9});var s9=E(C0=>{"use strict";var uAt=C0&&C0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(C0,"__esModule",{value:!0});C0.ServerStreamingCall=void 0;var n9=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var J0e=m(W0e=>{"use strict";var WG=ku().Buffer;W0e._dbcs=vu;var zn=-1,V0e=-2,jo=-10,Us=-1e3,I0=new Array(256),HB=-1;for(VD=0;VD<256;VD++)I0[VD]=zn;var VD;function vu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=I0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(I0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(I0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],A=48;A<=57;A++){if(a[A]===zn)a[A]=Us-s;else if(a[A]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Us-a[A]],u=129;u<=254;u++){if(c[u]===zn)c[u]=Us-i;else{if(c[u]===Us-i)continue;if(c[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-c[u]],d=48;d<=57;d++)l[d]===zn&&(l[d]=V0e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function imt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(Ypt.has(s)){r=s;break}}return r}function omt(t,e){let r=imt(e);r!==""&&(t.referrerPolicy=r)}function amt(){return"allowed"}function Amt(){return"success"}function cmt(){return"success"}function umt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function lmt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&uY(t.origin)&&!uY(Yf(t))&&(e=null);break;case"same-origin":KB(t,Yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function w0(t,e){return t}function dmt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:w0(t.domainLookupStartTime,r),domainLookupEndTime:w0(t.domainLookupEndTime,r),connectionStartTime:w0(t.connectionStartTime,r),connectionEndTime:w0(t.connectionEndTime,r),secureConnectionStartTime:w0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function hmt(t){return w0(zpt.now(),t)}function fmt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function bIe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function gmt(t){return{referrerPolicy:t.referrerPolicy}}function pmt(t){let e=t.referrerPolicy;XB(e);let r=null;if(t.referrer==="client"){let i=EIe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else hd.is.URL(t.referrer)&&(r=t.referrer);let n=cY(r),s=cY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??cY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Yf(t);return qf(n)&&!qf(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Yf(t);return KB(n,i)?n:qf(n)&&!qf(i)?"no-referrer":s}case"same-origin":return KB(t,n)?n:"no-referrer";case"origin-when-cross-origin":return KB(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Yf(t);return qf(n)&&!qf(i)?"no-referrer":n}}}function cY(t,e=!1){return XB(hd.is.URL(t)),t=new URL(t),NIe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var mmt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Emt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function QIe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Emt(t)):mmt(t)}function Cmt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||QIe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function qf(t){return hd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Cmt(t.origin):!1}function Imt(t){}function KB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ymt(t){return t.controller.state==="aborted"}function Bmt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function bmt(t){return Kpt[t.toLowerCase()]??t}var Qmt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function wIe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Qmt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function wmt(t,e,r,n=0,s=1){let i=wIe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Zo(a=>CY(a)&&a!==59,t,e);i=mY.decode(o)}return{name:n,value:i}}function jmt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw pi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Zo(a=>a!==10&&a!==13&&a!==58,t,e);if(o=EY(o,!0,!0,a=>a===9||a===32),!Hmt.test(o.toString()))throw pi("header name does not match the field-name token production");if(t[e.position]!==58)throw pi("expected :");switch(e.position++,Zo(a=>a===32||a===9,t,e),Omt(o)){case"content-disposition":{if(r=n=null,Zo(A=>CY(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw pi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=zmt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw pi("name attribute is required in content-disposition header");break}case"content-type":{let a=Zo(A=>A!==10&&A!==13,t,e);a=EY(a,!1,!0,A=>A===9||A===32),s=vIe(a);break}case"content-transfer-encoding":{let a=Zo(A=>A!==10&&A!==13,t,e);a=EY(a,!1,!0,A=>A===9||A===32),i=vIe(a);break}default:Zo(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw pi("expected CRLF");e.position+=2}}function Zo(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function EY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function Kmt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function pi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Xmt(t){return t<=31||t===127}function Zmt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function CY(t){return t<=127&&t!==32&&t!==9&&!Xmt(t)&&!Zmt(t)}_Ie.exports={multipartFormDataParser:Jmt,validateBoundary:Wmt}});var ZB=m((Cpr,MIe)=>{"use strict";function $mt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}MIe.exports={createDeferredPromise:$mt}});var T0=m((Ipr,HIe)=>{"use strict";var BY=$e(),{ReadableStreamFrom:e0t,readableStreamClose:t0t,fullyReadBody:r0t,extractMimeType:n0t}=zi(),{FormData:LIe,setFormDataState:s0t}=p2(),{webidl:Ya}=jn(),IY=b("node:assert"),{isErrored:yY,isDisturbed:i0t}=b("node:stream"),{isUint8Array:o0t}=b("node:util/types"),{serializeAMimeType:a0t}=Xo(),{multipartFormDataParser:A0t}=FIe(),{createDeferredPromise:c0t}=ZB(),{parseJSONFromBytes:u0t}=Mu(),{utf8DecodeBytes:l0t}=u2(),{runtimeFeatures:d0t}=Lu(),h0t=d0t.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),m2=new TextEncoder;function f0t(){}var g0t=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!i0t(e)&&!yY(e)&&e.cancel("Response object has been garbage collected").catch(f0t)});function PIe(t,e=!1){let r=null,n=null;Ya.is.ReadableStream(t)?r=t:Ya.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),IY(Ya.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Ya.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ya.is.BufferSource(t))i=Ya.util.getCopyOfBytesHeldByBufferSource(t);else if(Ya.is.FormData(t)){let c=`----formdata-undici-0${`${h0t(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=m2.encode(u+`; name="${l(d(E))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var FCe=E(_Ce=>{"use strict";var Xq=Yu().Buffer;_Ce._dbcs=Vu;var $n=-1,vCe=-2,Zo=-10,Ms=-1e3,Z0=new Array(256),Db=-1;for(G2=0;G2<256;G2++)Z0[G2]=$n;var G2;function Vu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Z0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(Z0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Z0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ms-o[n]],c=48;c<=57;c++){if(a[c]===$n)a[c]=Ms-s;else if(a[c]>Ms)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ms-a[c]],u=129;u<=254;u++){if(A[u]===$n)A[u]=Ms-i;else{if(A[u]===Ms-i)continue;if(A[u]>Ms)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ms-A[u]],d=48;d<=57;d++)l[d]===$n&&(l[d]=vCe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function yCt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(oCt.has(s)){r=s;break}}return r}function BCt(t,e){let r=yCt(e);r!==""&&(t.referrerPolicy=r)}function bCt(){return"allowed"}function QCt(){return"success"}function wCt(){return"success"}function SCt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function NCt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&pV(t.origin)&&!pV(gg(t))&&(e=null);break;case"same-origin":Ob(t,gg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function sE(t,e){return t}function TCt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sE(t.domainLookupStartTime,r),domainLookupEndTime:sE(t.domainLookupEndTime,r),connectionStartTime:sE(t.connectionStartTime,r),connectionEndTime:sE(t.connectionEndTime,r),secureConnectionStartTime:sE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function xCt(t){return sE(uCt.now(),t)}function RCt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function lBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function DCt(t){return{referrerPolicy:t.referrerPolicy}}function kCt(t){let e=t.referrerPolicy;Hb(e);let r=null;if(t.referrer==="client"){let i=oBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else _d.is.URL(t.referrer)&&(r=t.referrer);let n=gV(r),s=gV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??gV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=gg(t);return Ob(n,i)?n:fg(n)&&!fg(i)?"no-referrer":s}case"same-origin":return Ob(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Ob(t,n)?n:s;case"no-referrer-when-downgrade":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":n}}}function gV(t,e=!1){return Hb(_d.is.URL(t)),t=new URL(t),gBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var vCt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),_Ct=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function dBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),_Ct(t)):vCt(t)}function FCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||dBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function fg(t){return _d.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:FCt(t.origin):!1}function MCt(t){}function Ob(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function LCt(t){return t.controller.state==="aborted"}function UCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function PCt(t){return dCt[t.toLowerCase()]??t}var OCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function hBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,OCt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function HCt(t,e,r,n=0,s=1){let i=hBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _d.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _d.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ra(a=>wV(a)&&a!==59,t,e);i=bV.decode(o)}return{name:n,value:i}}function lIt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ei("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ra(a=>a!==10&&a!==13&&a!==58,t,e);if(o=QV(o,!0,!0,a=>a===9||a===32),!nIt.test(o.toString()))throw Ei("header name does not match the field-name token production");if(t[e.position]!==58)throw Ei("expected :");switch(e.position++,ra(a=>a===32||a===9,t,e),rIt(o)){case"content-disposition":{if(r=n=null,ra(c=>wV(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ei("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=uIt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw Ei("name attribute is required in content-disposition header");break}case"content-type":{let a=ra(c=>c!==10&&c!==13,t,e);a=QV(a,!1,!0,c=>c===9||c===32),s=yBe(a);break}case"content-transfer-encoding":{let a=ra(c=>c!==10&&c!==13,t,e);a=QV(a,!1,!0,c=>c===9||c===32),i=yBe(a);break}default:ra(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ei("expected CRLF");e.position+=2}}function ra(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function QV(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function dIt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Ei(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function hIt(t){return t<=31||t===127}function fIt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function wV(t){return t<=127&&t!==32&&t!==9&&!hIt(t)&&!fIt(t)}BBe.exports={multipartFormDataParser:AIt,validateBoundary:cIt}});var Gb=E((aIr,QBe)=>{"use strict";function gIt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}QBe.exports={createDeferredPromise:gIt}});var aE=E((cIr,xBe)=>{"use strict";var TV=Ze(),{ReadableStreamFrom:pIt,readableStreamClose:mIt,fullyReadBody:EIt,extractMimeType:CIt}=$i(),{FormData:wBe,setFormDataState:IIt}=hk(),{webidl:Za}=Xn(),SV=b("node:assert"),{isErrored:NV,isDisturbed:yIt}=b("node:stream"),{isUint8Array:BIt}=b("node:util/types"),{serializeAMimeType:bIt}=ta(),{multipartFormDataParser:QIt}=bBe(),{createDeferredPromise:wIt}=Gb(),{parseJSONFromBytes:SIt}=zu(),{utf8DecodeBytes:NIt}=ak(),{runtimeFeatures:TIt}=ju(),xIt=TIt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),fk=new TextEncoder;function RIt(){}var DIt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!yIt(e)&&!NV(e)&&e.cancel("Response object has been garbage collected").catch(RIt)});function NBe(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),SV(Za.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let A=`----formdata-undici-0${`${xIt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=fk.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=m2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=fk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=m2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Ya.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(BY.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ya.is.ReadableStream(t)?t:e0t(t)}return(typeof i=="string"||o0t(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(yY(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!yY(r)&&n.enqueue(typeof c=="string"?m2.encode(c):new Uint8Array(c));queueMicrotask(()=>t0t(n))})(),[{stream:r,source:i,length:o},a]}function p0t(t,e=!1){return Ya.is.ReadableStream(t)&&(IY(!BY.isDisturbed(t),"The body has already been consumed."),IY(!t.locked,"The stream is locked.")),PIe(t,e)}function m0t(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function E0t(t,e){return{blob(){return N0(this,n=>{let s=UIe(e(this));return s===null?s="":s&&(s=a0t(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return N0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return N0(this,l0t,t,e)},json(){return N0(this,u0t,t,e)},formData(){return N0(this,n=>{let s=UIe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=A0t(n,s),o=new LIe;return s0t(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new LIe;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return N0(this,n=>new Uint8Array(n),t,e)}}}function C0t(t,e){Object.assign(t.prototype,E0t(t,e))}function N0(t,e,r,n){try{Ya.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),OIe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=c0t(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(r0t(t.body,o,i),s.promise)}function OIe(t){let e=t.body;return e!=null&&(e.stream.locked||BY.isDisturbed(e.stream))}function UIe(t){let e=t.headersList,r=n0t(e);return r==="failure"?null:r}HIe.exports={extractBody:PIe,safelyExtractBody:p0t,cloneBody:m0t,mixinBody:C0t,streamRegistry:g0t,bodyUnusable:OIe}});var ZIe=m((ypr,XIe)=>{"use strict";var Ve=b("node:assert"),We=$e(),{channels:GIe}=ld(),bY=sq(),{RequestContentLengthMismatchError:Vf,ResponseContentLengthMismatchError:I0t,RequestAbortedError:zIe,HeadersTimeoutError:y0t,HeadersOverflowError:B0t,SocketError:tb,InformationalError:x0,BodyTimeoutError:b0t,HTTPParserError:Q0t,ResponseExceededMaxSizeError:w0t}=je(),{kUrl:jIe,kReset:mi,kClient:RY,kParser:Yr,kBlocking:rb,kRunning:hs,kPending:S0t,kSize:qIe,kWriting:gd,kQueue:Va,kNoRef:$B,kKeepAliveDefaultTimeout:N0t,kHostHeader:T0t,kPendingIdx:x0t,kRunningIdx:$o,kError:ea,kPipelining:I2,kSocket:R0,kKeepAliveTimeoutValue:B2,kMaxHeadersSize:R0t,kKeepAliveMaxTimeout:D0t,kKeepAliveTimeoutThreshold:k0t,kHeadersTimeout:v0t,kBodyTimeout:_0t,kStrictContentLength:SY,kMaxRequests:YIe,kCounter:F0t,kMaxResponseSize:M0t,kOnError:L0t,kResume:fd,kHTTPContext:KIe,kClosed:NY}=Xt(),ic=HCe(),U0t=Buffer.alloc(0),E2=Buffer[Symbol.species],P0t=We.removeAllListeners,QY;function O0t(){let t=process.env.JEST_WORKER_ID?Kq():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(YCe())}catch{}return e||(e=new WebAssembly.Module(t||Kq())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onStatus(new E2(oc.buffer,o,i))},wasm_on_message_begin:n=>(Ve(In.ptr===n),In.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onHeaderField(new E2(oc.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onHeaderValue(new E2(oc.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(In.ptr===n),In.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onBody(new E2(oc.buffer,o,i))},wasm_on_message_complete:n=>(Ve(In.ptr===n),In.onMessageComplete())}})}var wY=null,In=null,oc=null,C2=0,ac=null,H0t=0,eb=1,D0=2|eb,y2=4|eb,TY=8|H0t,xY=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ic.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[R0t],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[M0t]}setTi Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=fk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(Za.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(TV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:pIt(t)}return(typeof i=="string"||BIt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(NV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!NV(r)&&n.enqueue(typeof A=="string"?fk.encode(A):new Uint8Array(A));queueMicrotask(()=>mIt(n))})(),[{stream:r,source:i,length:o},a]}function kIt(t,e=!1){return Za.is.ReadableStream(t)&&(SV(!TV.isDisturbed(t),"The body has already been consumed."),SV(!t.locked,"The stream is locked.")),NBe(t,e)}function vIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function _It(t,e){return{blob(){return oE(this,n=>{let s=SBe(e(this));return s===null?s="":s&&(s=bIt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return oE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return oE(this,NIt,t,e)},json(){return oE(this,SIt,t,e)},formData(){return oE(this,n=>{let s=SBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=QIt(n,s),o=new wBe;return IIt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new wBe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return oE(this,n=>new Uint8Array(n),t,e)}}}function FIt(t,e){Object.assign(t.prototype,_It(t,e))}function oE(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),TBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=wIt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(EIt(t.body,o,i),s.promise)}function TBe(t){let e=t.body;return e!=null&&(e.stream.locked||TV.isDisturbed(e.stream))}function SBe(t){let e=t.headersList,r=CIt(e);return r==="failure"?null:r}xBe.exports={extractBody:NBe,safelyExtractBody:kIt,cloneBody:vIt,mixinBody:FIt,streamRegistry:DIt,bodyUnusable:TBe}});var OBe=E((AIr,PBe)=>{"use strict";var Ve=b("node:assert"),We=Ze(),{channels:RBe}=kd(),xV=uY(),{RequestContentLengthMismatchError:pg,ResponseContentLengthMismatchError:MIt,RequestAbortedError:MBe,HeadersTimeoutError:LIt,HeadersOverflowError:UIt,SocketError:Vb,InformationalError:cE,BodyTimeoutError:PIt,HTTPParserError:OIt,ResponseExceededMaxSizeError:HIt}=je(),{kUrl:LBe,kReset:Ci,kClient:MV,kParser:Yr,kBlocking:Wb,kRunning:gs,kPending:GIt,kSize:DBe,kWriting:Md,kQueue:ec,kNoRef:qb,kKeepAliveDefaultTimeout:qIt,kHostHeader:YIt,kPendingIdx:VIt,kRunningIdx:na,kError:sa,kPipelining:mk,kSocket:AE,kKeepAliveTimeoutValue:Ck,kMaxHeadersSize:WIt,kKeepAliveMaxTimeout:JIt,kKeepAliveTimeoutThreshold:zIt,kHeadersTimeout:jIt,kBodyTimeout:KIt,kStrictContentLength:kV,kMaxRequests:kBe,kCounter:$It,kMaxResponseSize:XIt,kOnError:ZIt,kResume:Fd,kHTTPContext:UBe,kClosed:vV}=Kt(),fA=xye(),eyt=Buffer.alloc(0),gk=Buffer[Symbol.species],tyt=We.removeAllListeners,RV;function ryt(){let t=process.env.JEST_WORKER_ID?rV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(kye())}catch{}return e||(e=new WebAssembly.Module(t||rV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onStatus(new gk(gA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onHeaderField(new gk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onHeaderValue(new gk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onBody(new gk(gA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var DV=null,yn=null,gA=null,pk=0,pA=null,nyt=0,Yb=1,uE=2|Yb,Ek=4|Yb,_V=8|nyt,FV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(fA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[WIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[XIt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[T0t],i?p+=`connection: upgrade\r
`:p+=t[YIt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[I2]&&!h[mi]?p+=`connection: keep-alive\r
`:t[mk]&&!h[Ci]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return GIe.sendHeaders.hasSubscribers&&GIe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?WIe(f,null,t,e,h,u,p,l):We.isBuffer(A)?WIe(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?JIe(f,A.stream(),t,e,h,u,p,l):Z0t(f,A,t,e,h,u,p,l):We.isStream(A)?X0t(f,A,t,e,h,u,p,l):We.isIterable(A)?JIe(f,A,t,e,h,u,p,l):Ve(!1),!0}function X0t(t,e,r,n,s,i,o,a){Ve(i!==0||r[hs]===0,"stream body cannot be pipelined");let A=!1,c=new b2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new zIe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[gd]&&r[hs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function WIe(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return RBe.sendHeaders.hasSubscribers&&RBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?_Be(f,null,t,e,h,u,p,l):We.isBuffer(c)?_Be(f,c,t,e,h,u,p,l):We.isBlobLike(c)?typeof c.stream=="function"?FBe(f,c.stream(),t,e,h,u,p,l):fyt(f,c,t,e,h,u,p,l):We.isStream(c)?hyt(f,c,t,e,h,u,p,l):We.isIterable(c)?FBe(f,c,t,e,h,u,p,l):Ve(!1),!0}function hyt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,A=new Ik({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new MBe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Md]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function _Be(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[mi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Ci]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[fd]()}catch(A){t(A)}}async function Z0t(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vf;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Fd]()}catch(c){t(c)}}async function fyt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new pg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[mi]=!0),r[fd]()}catch(A){t(A)}}async function JIe(t,e,r,n,s,i,o,a){Ve(i!==0||r[hs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[ea]?h(s[ea]):A=d});s.on("close",c).on("drain",c);let l=new b2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ea])throw s[ea];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var b2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[gd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ea])throw r[ea];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[SY])throw new Vf;process.emitWarning(new Vf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[mi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ci]=!0),r[Fd]()}catch(c){t(c)}}async function FBe(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ve(c===null),s[sa]?h(s[sa]):c=d});s.on("close",A).on("drain",A);let l=new Ik({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[sa])throw s[sa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Ik=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Md]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[sa])throw r[sa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kV])throw new pg;process.emitWarning(new pg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ci]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===D0&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[gd]=!1,e[ea])throw e[ea];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===uE&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Md]=!1,e[sa])throw e[sa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[SY])throw new Vf;process.emitWarning(new Vf)}e[Yr].timeout&&e[Yr].timeoutType===D0&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[fd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[gd]=!1,e&&(Ve(n[hs]<=1,"pipeline should only contain this request"),s(e))}};XIe.exports=G0t});var aye=m((Bpr,oye)=>{"use strict";var ra=b("node:assert"),{pipeline:$0t}=b("node:stream"),ut=$e(),{RequestContentLengthMismatchError:_Y,RequestAbortedError:eEt,SocketError:ob,InformationalError:pd,InvalidArgumentError:tEt}=je(),{kUrl:ib,kReset:N2,kClient:ji,kRunning:ab,kPending:rEt,kQueue:md,kPendingIdx:MY,kRunningIdx:Wa,kError:Ki,kSocket:Dr,kStrictContentLength:nEt,kOnError:k0,kMaxConcurrentStreams:w2,kPingInterval:$Ie,kHTTP2Session:Pu,kHTTP2InitialWindowSize:sEt,kHTTP2ConnectionWindowSize:iEt,kResume:Ac,kSize:oEt,kHTTPContext:LY,kClosed:FY,kBodyTimeout:aEt,kEnableConnectProtocol:nb,kRemoteSettings:sb,kHTTP2Stream:Q2,kHTTP2SessionState:UY}=Xt(),{channels:eye}=ld(),ta=Symbol("open streams"),tye,S2;try{S2=b("node:http2")}catch{S2={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:AEt,HTTP2_HEADER_METHOD:rye,HTTP2_HEADER_PATH:nye,HTTP2_HEADER_SCHEME:DY,HTTP2_HEADER_CONTENT_LENGTH:cEt,HTTP2_HEADER_EXPECT:uEt,HTTP2_HEADER_STATUS:kY,HTTP2_HEADER_PROTOCOL:lEt,NGHTTP2_REFUSED_STREAM:dEt,NGHTTP2_CANCEL:hEt}}=S2;function vY(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function fEt(t,e){t[Dr]=e;let r=t[sEt],n=t[iEt],s=S2.connect(t[ib],{createConnection:()=>e,peerMaxConcurrentStreams:t[w2],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ta]=0,s[ji]=t,s[Dr]=e,s[UY]={ping:{interval:t[$Ie]===0?null:setInterval(EEt,t[$Ie],s).unref()}},s[nb]=!1,s[sb]=!1,n&&ut.addListener(s,"connect",pEt.bind(s,n)),ut.addListener(s,"error",CEt),ut.addListener(s,"frameError",IEt),ut.addListener(s,"end",yEt),ut.addListener(s,"goaway",BEt),ut.addListener(s,"close",bEt),ut.addListener(s,"remoteSettings",mEt),s.unref(),t[Pu]=s,e[Pu]=s,ut.addListener(e,"error",wEt),ut.addListener(e,"end",SEt),ut.addListener(e,"close",QEt),e[FY]=!1,e.on("close",NEt),{version:"h2",defaultPipelining:1/0,write(i){return xEt(t,i)},resume(){gEt(t)},destroy(i,o){e[FY]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[ab]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sb]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sb]===!1;return!1}}}function gEt(t){let e=t[Dr];e?.destroyed===!1&&(t[oEt]===0||t[w2]===0?(e.unref(),t[Pu].unref()):(e.ref(),t[Pu].ref()))}function pEt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function mEt(t){if(this[ji][w2]=t.maxConcurrentStreams??this[ji][w2],this[sb]===!0&&this[nb]===!0&&t.enableConnectProtocol===!1){let e=new pd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][Ki]=e,this[ji][k0](e);return}this[nb]=t.enableConnectProtocol??this[nb],this[sb]=!0,this[ji][Ac]()}function EEt(t){let e=t[UY];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[ji],o=this[ji];if(n!=null){let a=new pd(`HTTP/2: "PING" errored - type ${n.message}`);o[Ki]=a,i[k0](a)}else i.emit("ping",s)}}function CEt(t){ra(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][Ki]=t,this[ji][k0](t)}function IEt(t,e,r){if(r===0){let n=new pd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][Ki]=n,this[ji][k0](n)}}function yEt(){let t=new ob("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function BEt(t){let e=this[Ki]||new ob(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[ji];if(r[Dr]=null,r[LY]=null,this.close(),this[Pu]=null,ut.destroy(this[Dr],e),r[Wa]<r[md].length){let n=r[md][r[Wa]];r[md][r[Wa]++]=null,ut.errorRequest(r,n,e),r[MY]=r[Wa]}ra(r[ab]===0),r.emit("disconnect",r[ib],[r],e),r.emit("connectionError",r[ib],[r],e),r[Ac]()}function bEt(){let{[ji]:t,[UY]:e}=this,{[Dr]:r}=t,n=this[Dr][Ki]||this[Ki]||new ob("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[LY]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ra(t[rEt]===0);let s=t[md].splice(t[Wa]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function QEt(){let t=this[Ki]||new ob("closed",ut.getSocketInfo(this)),e=this[Pu][ji];e[Dr]=null,e[LY]=null,this[Pu]!==null&&this[Pu].destroy(t),e[MY]=e[Wa],ra(e[ab]===0),e.emit("disconnect",e[ib],[e],t),e[Ac]()}function wEt(t){ra(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ki]=t,this[ji][k0](t)}function SEt(){ut.destroy(this,new ob("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;eye.sendHeaders.publish({request:e,headers:v,socket:n[Dr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[uEt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[Q2]=!0,f.once("continue",q)):(f=n.request(h,{endStream:R,signal:c}),f[Q2]=!0,q()),++n[ta],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[kY]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),vY(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[md][t[Wa]++]=null,t[Ac]()):(E(new pd("HTTP/2: stream half-closed (remote)")),t[md][t[Wa]++]=null,t[MY]=t[Wa],t[Ac]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ta]-=1,n[ta]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new pd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new pd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ta]-=1,n[ta]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function q(){!d||y===0?sye(E,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?sye(E,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?iye(E,f,d.stream(),t,e,t[Dr],y,C):DEt(E,f,d,t,e,t[Dr],y,C):ut.isStream(d)?REt(E,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?iye(E,f,d,t,e,t[Dr],y,C):ra(!1)}}function sye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ra(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[N2]=!0),s.onRequestSent(),n[Ac]()}catch(A){t(A)}}function REt(t,e,r,n,s,i,o,a){ra(a!==0||i[ab]===0,"stream body cannot be pipelined");let A=$0t(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[N2]=!0),i[Ac]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function DEt(t,e,r,n,s,i,o,a){ra(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _Y;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[N2]=!0),n[Ac]()}catch(A){t(A)}}async function iye(t,e,r,n,s,i,o,a){ra(o!==0||n[ab]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{ra(A===null),i[Ki]?d(i[Ki]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Ki])throw i[Ki];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[N2]=!0),n[Ac]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}oye.exports=fEt});var Bd=m((bpr,pye)=>{"use strict";var Ou=b("node:assert"),dye=b("node:net"),Ab=b("node:http"),Wf=$e(),{ClientStats:kEt}=vq(),{channels:v0}=ld(),vEt=xCe(),_Et=Of(),{InvalidArgumentError:gr,InformationalError:FEt,ClientDestroyedError:MEt}=je(),LEt=Hf(),{kUrl:cc,kServerName:yd,kClient:UEt,kBusy:PY,kConnect:PEt,kResuming:Jf,kRunning:db,kPending:hb,kSize:cb,kQueue:Ja,kConnected:OEt,kConnecting:_0,kNeedDrain:Cd,kKeepAliveDefaultTimeout:Aye,kHostHeader:HEt,kPendingIdx:za,kRunningIdx:Hu,kError:GEt,kPipelining:T2,kKeepAliveTimeoutValue:qEt,kMaxHeadersSize:YEt,kKeepAliveMaxTimeout:VEt,kKeepAliveTimeoutThreshold:WEt,kHeadersTimeout:JEt,kBodyTimeout:zEt,kStrictContentLength:jEt,kConnector:ub,kMaxRequests:OY,kCounter:KEt,kClose:XEt,kDestroy:ZEt,kDispatch:$Et,kLocalAddress:lb,kMaxResponseSize:eCt,kOnError:tCt,kHTTPContext:rn,kMaxConcurrentStreams:rCt,kHTTP2InitialWindowSize:nCt,kHTTP2ConnectionWindowSize:sCt,kResume:Id,kPingInterval:iCt}=Xt(),oCt=ZIe(),aCt=aye(),Ed=Symbol("kClosedResolve"),ACt=Ab&&Ab.maxHeaderSize&&Number.isInteger(Ab.maxHeaderSize)&&Ab.maxHeaderSize>0?()=>Ab.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},cye=()=>{};function hye(t){return t[T2]??t[rn]?.defaultPipelining??1}var HY=class extends _Et{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:q,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:$,initialWindowSize:re,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("unsu Line truncated
`,this[zEt]=a??3e5,this[JEt]=n??3e5,this[jEt]=E??!0,this[OY]=R,this[Ed]=null,this[eCt]=q>-1?q:-1,this[rn]=null,this[rCt]=D??100,this[nCt]=re??262144,this[sCt]=Ae??524288,this[iCt]=ge??6e4,this[Ja]=[],this[Hu]=0,this[za]=0,this[Id]=De=>GY(this,De),this[tCt]=De=>fye(this,De)}get pipelining(){return this[T2]}set pipelining(e){this[T2]=e,this[Id](!0)}get stats(){return new kEt(this)}get[hb](){return this[Ja].length-this[za]}get[db](){return this[za]-this[Hu]}get[cb](){return this[Ja].length-this[Hu]}get[OEt](){return!!this[rn]&&!this[_0]&&!this[rn].destroyed}get[PY](){return!!(this[rn]?.busy(null)||this[cb]>=(hye(this)||1)||this[hb]>0)}[PEt](e){gye(this),this.once("connect",e)}[$Et](e,r){let n=new vEt(this[cc].origin,e,r);return this[Ja].push(n),this[Jf]||(Wf.bodyLength(n.body)==null&&Wf.isIterable(n.body)?(this[Jf]=1,queueMicrotask(()=>GY(this))):this[Id](!0)),this[Jf]&&this[Cd]!==2&&this[PY]&&(this[Cd]=2),this[Cd]<2}[XEt](){return new Promise(e=>{this[cb]?this[Ed]=e:e(null)})}[ZEt](e){return new Promise(r=>{let n=this[Ja].splice(this[za]);for(let i=0;i<n.length;i++){let o=n[i];Wf.errorRequest(this,o,e)}let s=()=>{this[Ed]&&(this[Ed](),this[Ed]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Id]()})}};function fye(t,e){if(t[db]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ou(t[za]===t[Hu]);let r=t[Ja].splice(t[Hu]);for(let n=0;n<r.length;n++){let s=r[n];Wf.errorRequest(t,s,e)}Ou(t[cb]===0)}}function gye(t){Ou(!t[_0]),Ou(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[cc];if(r[0]==="["){let i=r.indexOf("]");Ou(i!==-1);let o=r.substring(1,i);Ou(dye.isIPv6(o)),r=o}t[_0]=!0,v0.beforeConnect.hasSubscribers&&v0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[yd],localAddress:t[lb]},connector:t[ub]}),t[ub]({host:e,hostname:r,protocol:n,port:s,servername:t[yd],localAddress:t[lb]},(i,o)=>{if(i){uye(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Id]();return}if(t.destroyed){Wf.destroy(o.on("error",cye),new MEt),t[Id]();return}Ou(o);try{t[rn]=o.alpnProtocol==="h2"?aCt(t,o):oCt(t,o)}catch(a){o.destroy().on("error",cye),uye(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Id]();return}t[_0]=!1,o[KEt]=0,o[OY]=t[OY],o[UEt]=t,o[GEt]=null,v0.connected.hasSubscribers&&v0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[yd],localAddress:t[lb]},connector:t[ub],socket:o}),t.emit("connect",t[cc],[t]),t[Id]()})}function uye(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_0]=!1,v0.connectError.hasSubscribers&&v0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[yd],localAddress:t[lb]},connector:t[ub],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ou(t[db]===0);t[hb]>0&&t[Ja][t[za]].servername===t[yd];){let o=t[Ja][t[za]++];Wf.errorRequest(t,o,e)}else fye(t,e);t.emit("connectionError",t[cc],[t],e)}}function lye(t){t[Cd]=0,t.emit("drain",t[cc],[t])}function GY(t,e){t[Jf]!==2&&(t[Jf]=2,cCt(t,e),t[Jf]=0,t[Hu]>256&&(t[Ja].splice(0,t[Hu]),t[za]-=t[Hu],t[Hu]=0))}function cCt(t,e){for(;;){if(t.destroyed){Ou(t[hb]===0);return}if(t[Ed]&&!t[cb]){t[Ed](),t[Ed]=null;return}if(t[rn]&&t[rn].resume(),t[PY])t[Cd]=2;else if(t[Cd]===2){e?(t[Cd]=1,queueMicrotask(()=>lye(t))):lye(t);continue}if(t[hb]===0||t[db]>=(hye(t)||1))return;let r=t[Ja][t[za]];if(r===null)return;if(t[cc].protocol==="https:"&&t[yd]!==r.servername){if(t[db]>0)return;t[yd]=r.servername,t[rn]?.destroy(new FEt("servername changed"),()=>{t[rn]=null,GY(t)})}if(t[_0])return;if(!t[rn]){gye(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[za]++:t[Ja].splice(t[za],1)}}pye.exports=HY});var qY=m((wpr,mye)=>{"use strict";var x2=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};mye.exports=class{constructor(){this.head=this.tail=new x2}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new x2),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var R2=m((Spr,Sye)=>{"use strict";var{PoolStats:uCt}=vq(),lCt=Of(),dCt=qY(),{kConnected:YY,kSize:Eye,kRunning:Cye,kPending:Iye,kQueued:fb,kBusy:hCt,kFree:fCt,kUrl:gCt,kClose:pCt,kDestroy:mCt,kDispatch:ECt}=Xt(),Hn=Symbol("clients"),Ps=Symbol("needDrain"),gb=Symbol("queue"),VY=Symbol("closed resolve"),WY=Symbol("onDrain"),yye=Symbol("onConnect"),Bye=Symbol("onDisconnect"),bye=Symbol("onConnectionError"),JY=Symbol("get dispatcher"),Qye=Symbol("add client"),wye=Symbol("remove client"),zY=class extends lCt{[gb]=new dCt;[fb]=0;[Hn]=[];[Ps]=!1;[WY](e,r,n){let s=this[gb],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[kV])throw new pg;process.emitWarning(new pg)}e[Yr].timeout&&e[Yr].timeoutType===uE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[Fd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};PBe.exports=syt});var jBe=E((uIr,zBe)=>{"use strict";var oa=b("node:assert"),{pipeline:gyt}=b("node:stream"),At=Ze(),{RequestContentLengthMismatchError:OV,RequestAbortedError:pyt,SocketError:Kb,InformationalError:Ld,InvalidArgumentError:myt}=je(),{kUrl:jb,kReset:Qk,kClient:Xi,kRunning:$b,kPending:Eyt,kQueue:Ud,kPendingIdx:GV,kRunningIdx:tc,kError:Zi,kSocket:Rr,kStrictContentLength:Cyt,kOnError:lE,kMaxConcurrentStreams:Bk,kPingInterval:HBe,kHTTP2Session:$u,kHTTP2InitialWindowSize:Iyt,kHTTP2ConnectionWindowSize:yyt,kResume:mA,kSize:Byt,kHTTPContext:qV,kClosed:HV,kBodyTimeout:byt,kEnableConnectProtocol:Jb,kRemoteSettings:zb,kHTTP2Stream:yk,kHTTP2SessionState:YV}=Kt(),{channels:GBe}=kd(),ia=Symbol("open streams"),qBe,bk;try{bk=b("node:http2")}catch{bk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Qyt,HTTP2_HEADER_METHOD:YBe,HTTP2_HEADER_PATH:VBe,HTTP2_HEADER_SCHEME:LV,HTTP2_HEADER_CONTENT_LENGTH:wyt,HTTP2_HEADER_EXPECT:Syt,HTTP2_HEADER_STATUS:UV,HTTP2_HEADER_PROTOCOL:Nyt,NGHTTP2_REFUSED_STREAM:Tyt,NGHTTP2_CANCEL:xyt}}=bk;function PV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function Ryt(t,e){t[Rr]=e;let r=t[Iyt],n=t[yyt],s=bk.connect(t[jb],{createConnection:()=>e,peerMaxConcurrentStreams:t[Bk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[ia]=0,s[Xi]=t,s[Rr]=e,s[YV]={ping:{interval:t[HBe]===0?null:setInterval(_yt,t[HBe],s).unref()}},s[Jb]=!1,s[zb]=!1,n&&At.addListener(s,"connect",kyt.bind(s,n)),At.addListener(s,"error",Fyt),At.addListener(s,"frameError",Myt),At.addListener(s,"end",Lyt),At.addListener(s,"goaway",Uyt),At.addListener(s,"close",Pyt),At.addListener(s,"remoteSettings",vyt),s.unref(),t[$u]=s,e[$u]=s,At.addListener(e,"error",Hyt),At.addListener(e,"end",Gyt),At.addListener(e,"close",Oyt),e[HV]=!1,e.on("close",qyt),{version:"h2",defaultPipelining:1/0,write(i){return Vyt(t,i)},resume(){Dyt(t)},destroy(i,o){e[HV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[$b]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zb]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zb]===!1;return!1}}}function Dyt(t){let e=t[Rr];e?.destroyed===!1&&(t[Byt]===0||t[Bk]===0?(e.unref(),t[$u].unref()):(e.ref(),t[$u].ref()))}function kyt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function vyt(t){if(this[Xi][Bk]=t.maxConcurrentStreams??this[Xi][Bk],this[zb]===!0&&this[Jb]===!0&&t.enableConnectProtocol===!1){let e=new Ld("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Zi]=e,this[Xi][lE](e);return}this[Jb]=t.enableConnectProtocol??this[Jb],this[zb]=!0,this[Xi][mA]()}function _yt(t){let e=t[YV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Xi],o=this[Xi];if(n!=null){let a=new Ld(`HTTP/2: "PING" errored - type ${n.message}`);o[Zi]=a,i[lE](a)}else i.emit("ping",s)}}function Fyt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Zi]=t,this[Xi][lE](t)}function Myt(t,e,r){if(r===0){let n=new Ld(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Zi]=n,this[Xi][lE](n)}}function Lyt(){let t=new Kb("other side closed",At.getSocketInfo(this[Rr]));this.destroy(t),At.destroy(this[Rr],t)}function Uyt(t){let e=this[Zi]||new Kb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[Rr])),r=this[Xi];if(r[Rr]=null,r[qV]=null,this.close(),this[$u]=null,At.destroy(this[Rr],e),r[tc]<r[Ud].length){let n=r[Ud][r[tc]];r[Ud][r[tc]++]=null,At.errorRequest(r,n,e),r[GV]=r[tc]}oa(r[$b]===0),r.emit("disconnect",r[jb],[r],e),r.emit("connectionError",r[jb],[r],e),r[mA]()}function Pyt(){let{[Xi]:t,[YV]:e}=this,{[Rr]:r}=t,n=this[Rr][Zi]||this[Zi]||new Kb("closed",At.getSocketInfo(r));if(t[Rr]=null,t[qV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oa(t[Eyt]===0);let s=t[Ud].splice(t[tc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function Oyt(){let t=this[Zi]||new Kb("closed",At.getSocketInfo(this)),e=this[$u][Xi];e[Rr]=null,e[qV]=null,this[$u]!==null&&this[$u].destroy(t),e[GV]=e[tc],oa(e[$b]===0),e.emit("disconnect",e[jb],[e],t),e[mA]()}function Hyt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=t,this[Xi][lE](t)}function Gyt(){At.destroy(this,new Kb("other side closed",At.getSocketInfo(this)))}func Line truncated
`;GBe.sendHeaders.publish({request:e,headers:k,socket:n[Rr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[Syt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[yk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[yk]=!0,O()),++n[ia],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[UV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),PV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Ud][t[tc]++]=null,t[mA]()):(m(new Ld("HTTP/2: stream half-closed (remote)")),t[Ud][t[tc]++]=null,t[GV]=t[tc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Ld(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Ld(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?WBe(m,f,null,t,e,t[Rr],y,C):At.isBuffer(d)?WBe(m,f,d,t,e,t[Rr],y,C):At.isBlobLike(d)?typeof d.stream=="function"?JBe(m,f,d.stream(),t,e,t[Rr],y,C):Jyt(m,f,d,t,e,t[Rr],y,C):At.isStream(d)?Wyt(m,t[Rr],C,f,d,t,e,y):At.isIterable(d)?JBe(m,f,d,t,e,t[Rr],y,C):oa(!1)}}function WBe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(oa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Qk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function Wyt(t,e,r,n,s,i,o,a){oa(a!==0||i[$b]===0,"stream body cannot be pipelined");let c=gyt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[Qk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Jyt(t,e,r,n,s,i,o,a){oa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new OV;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Qk]=!0),n[mA]()}catch(c){t(c)}}async function JBe(t,e,r,n,s,i,o,a){oa(o!==0||n[$b]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{oa(c===null),i[Zi]?d(i[Zi]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[Zi])throw i[Zi];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Qk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}zBe.exports=Ryt});var qd=E((lIr,sbe)=>{"use strict";var Xu=b("node:assert"),ebe=b("node:net"),Xb=b("node:http"),mg=Ze(),{ClientStats:zyt}=PY(),{channels:dE}=kd(),jyt=mye(),Kyt=lg(),{InvalidArgumentError:fr,InformationalError:$yt,ClientDestroyedError:Xyt}=je(),Zyt=dg(),{kUrl:EA,kServerName:Gd,kClient:eBt,kBusy:VV,kConnect:tBt,kResuming:Eg,kRunning:rQ,kPending:nQ,kSize:Zb,kQueue:rc,kConnected:rBt,kConnecting:hE,kNeedDrain:Od,kKeepAliveDefaultTimeout:KBe,kHostHeader:nBt,kPendingIdx:nc,kRunningIdx:Zu,kError:sBt,kPipelining:wk,kKeepAliveTimeoutValue:iBt,kMaxHeadersSize:oBt,kKeepAliveMaxTimeout:aBt,kKeepAliveTimeoutThreshold:cBt,kHeadersTimeout:ABt,kBodyTimeout:uBt,kStrictContentLength:lBt,kConnector:eQ,kMaxRequests:WV,kCounter:dBt,kClose:hBt,kDestroy:fBt,kDispatch:gBt,kLocalAddress:tQ,kMaxResponseSize:pBt,kOnError:mBt,kHTTPContext:rn,kMaxConcurrentStreams:EBt,kHTTP2InitialWindowSize:CBt,kHTTP2ConnectionWindowSize:IBt,kResume:Hd,kPingInterval:yBt}=Kt(),BBt=OBe(),bBt=jBe(),Pd=Symbol("kClosedResolve"),QBt=Xb&&Xb.maxHeaderSize&&Number.isInteger(Xb.maxHeaderSize)&&Xb.maxHeaderSize>0?()=>Xb.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},$Be=()=>{};function tbe(t){return t[wk]??t[rn]?.defaultPipelining??1}var JV=class extends Kyt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:fe}={}){if(A!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[uBt]=a??3e5,this[ABt]=n??3e5,this[lBt]=m??!0,this[WV]=N,this[Pd]=null,this[pBt]=O>-1?O:-1,this[rn]=null,this[EBt]=D??100,this[CBt]=ee??262144,this[IBt]=ce??524288,this[yBt]=fe??6e4,this[rc]=[],this[Zu]=0,this[nc]=0,this[Hd]=De=>zV(this,De),this[mBt]=De=>rbe(this,De)}get pipelining(){return this[wk]}set pipelining(e){this[wk]=e,this[Hd](!0)}get stats(){return new zyt(this)}get[nQ](){return this[rc].length-this[nc]}get[rQ](){return this[nc]-this[Zu]}get[Zb](){return this[rc].length-this[Zu]}get[rBt](){return!!this[rn]&&!this[hE]&&!this[rn].destroyed}get[VV](){return!!(this[rn]?.busy(null)||this[Zb]>=(tbe(this)||1)||this[nQ]>0)}[tBt](e){nbe(this),this.once("connect",e)}[gBt](e,r){let n=new jyt(this[EA].origin,e,r);return this[rc].push(n),this[Eg]||(mg.bodyLength(n.body)==null&&mg.isIterable(n.body)?(this[Eg]=1,queueMicrotask(()=>zV(this))):this[Hd](!0)),this[Eg]&&this[Od]!==2&&this[VV]&&(this[Od]=2),this[Od]<2}[hBt](){return new Promise(e=>{this[Zb]?this[Pd]=e:e(null)})}[fBt](e){return new Promise(r=>{let n=this[rc].splice(this[nc]);for(let i=0;i<n.length;i++){let o=n[i];mg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Hd]()})}};function rbe(t,e){if(t[rQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Xu(t[nc]===t[Zu]);let r=t[rc].splice(t[Zu]);for(let n=0;n<r.length;n++){let s=r[n];mg.errorRequest(t,s,e)}Xu(t[Zb]===0)}}function nbe(t){Xu(!t[hE]),Xu(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");Xu(i!==-1);let o=r.substring(1,i);Xu(ebe.isIPv6(o)),r=o}t[hE]=!0,dE.beforeConnect.hasSubscribers&&dE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Gd],localAddress:t[tQ]},connector:t[eQ]}),t[eQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Gd],localAddress:t[tQ]},(i,o)=>{if(i){XBe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Hd]();return}if(t.destroyed){mg.destroy(o.on("error",$Be),new Xyt),t[Hd]();return}Xu(o);try{t[rn]=o.alpnProtocol==="h2"?bBt(t,o):BBt(t,o)}catch(a){o.destroy().on("error",$Be),XBe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Hd]();return}t[hE]=!1,o[dBt]=0,o[WV]=t[WV],o[eBt]=t,o[sBt]=null,dE.connected.hasSubscribers&&dE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Gd],localAddress:t[tQ]},connector:t[eQ],socket:o}),t.emit("connect",t[EA],[t]),t[Hd]()})}function XBe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[hE]=!1,dE.connectError.hasSubscribers&&dE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Gd],localAddress:t[tQ]},connector:t[eQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Xu(t[rQ]===0);t[nQ]>0&&t[rc][t[nc]].servername===t[Gd];){let o=t[rc][t[nc]++];mg.errorRequest(t,o,e)}else rbe(t,e);t.emit("connectionError",t[EA],[t],e)}}function ZBe(t){t[Od]=0,t.emit("drain",t[EA],[t])}function zV(t,e){t[Eg]!==2&&(t[Eg]=2,wBt(t,e),t[Eg]=0,t[Zu]>256&&(t[rc].splice(0,t[Zu]),t[nc]-=t[Zu],t[Zu]=0))}function wBt(t,e){for(;;){if(t.destroyed){Xu(t[nQ]===0);return}if(t[Pd]&&!t[Zb]){t[Pd](),t[Pd]=null;return}if(t[rn]&&t[rn].resume(),t[VV])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>ZBe(t))):ZBe(t);continue}if(t[nQ]===0||t[rQ]>=(tbe(t)||1))return;let r=t[rc][t[nc]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Gd]!==r.servername){if(t[rQ]>0)return;t[Gd]=r.servername,t[rn]?.destroy(new $yt("servername changed"),()=>{t[rn]=null,zV(t)})}if(t[hE])return;if(!t[rn]){nbe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[nc]++:t[rc].splice(t[nc],1)}}sbe.exports=JV});var jV=E((hIr,ibe)=>{"use strict";var Sk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};ibe.exports=class{constructor(){this.head=this.tail=new Sk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Sk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Nk=E((fIr,fbe)=>{"use strict";var{PoolStats:SBt}=PY(),NBt=lg(),TBt=jV(),{kConnected:KV,kSize:obe,kRunning:abe,kPending:cbe,kQueued:sQ,kBusy:xBt,kFree:RBt,kUrl:DBt,kClose:kBt,kDestroy:vBt,kDispatch:_Bt}=Kt(),Gn=Symbol("clients"),Ls=Symbol("needDrain"),iQ=Symbol("queue"),$V=Symbol("closed resolve"),XV=Symbol("onDrain"),Abe=Symbol("onConnect"),ube=Symbol("onDisconnect"),lbe=Symbol("onConnectionError"),ZV=Symbol("get dispatcher"),dbe=Symbol("add client"),hbe=Symbol("remove client"),e7=class extends NBt{[iQ]=new TBt;[sQ]=0;[Gn]=[];[Ls]=!1;[XV](e,r,n){let s=this[iQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};zbe.exports=c7});var l7=m((nmr,Zbe)=>{"use strict";var{InvalidArgumentError:gBt}=je(),{runtimeFeatures:pBt}=Lu();function mBt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var jbe=pBt.has("crypto")?b("node:crypto"):null,EBt=jbe?.hash?t=>jbe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Xbe(t){return Array.isArray(t)&&(t.length&1)===0}function CBt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function IBt(t){let e={};if(!t)return e;if(Xbe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Kbe=["record","playback","update"];function yBt(t){if(!Kbe.includes(t))throw new gBt(`Invalid snapshot mode: ${t}. Must be one of: ${Kbe.join(", ")}`)}Zbe.exports={createHeaderFilters:mBt,hashId:EBt,isUndiciHeaders:Xbe,normalizeHeaders:IBt,isUrlExcludedFactory:CBt,validateSnapshotMode:yBt}});var aQe=m((smr,oQe)=>{"use strict";var{writeFile:BBt,readFile:bBt,mkdir:QBt}=b("node:fs/promises"),{dirname:wBt,resolve:$be}=b("node:path"),{setTimeout:SBt,clearTimeout:eQe}=b("node:timers"),{InvalidArgumentError:tQe,UndiciError:NBt}=je(),{hashId:TBt,isUrlExcludedFactory:xBt,normalizeHeaders:rQe,createHeaderFilters:nQe}=l7();function xb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||rQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:sQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function sQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function iQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Rb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return TBt(r)}var d7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=nQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=xBt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=xb(e,this.#a,this.matchOptions),s=Rb(n),i=rQe(r.headers),o={statusCode:r.statusCode,headers:iQe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=xb(e,this.#a,this.matchOptions),n=Rb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new tQe("Snapshot path is required");try{let n=await bBt($be(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new NBt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new tQe("Snapshot path is required");let n=$be(r);await QBt(wBt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await BBt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};Mwe.exports=gW});var mW=E((VIr,Owe)=>{"use strict";var{InvalidArgumentError:Dwt}=je(),{runtimeFeatures:kwt}=ju();function vwt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var Lwe=kwt.has("crypto")?b("node:crypto"):null,_wt=Lwe?.hash?t=>Lwe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Pwe(t){return Array.isArray(t)&&(t.length&1)===0}function Fwt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Mwt(t){let e={};if(!t)return e;if(Pwe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Uwe=["record","playback","update"];function Lwt(t){if(!Uwe.includes(t))throw new Dwt(`Invalid snapshot mode: ${t}. Must be one of: ${Uwe.join(", ")}`)}Owe.exports={createHeaderFilters:vwt,hashId:_wt,isUndiciHeaders:Pwe,normalizeHeaders:Mwt,isUrlExcludedFactory:Fwt,validateSnapshotMode:Lwt}});var jwe=E((WIr,zwe)=>{"use strict";var{writeFile:Uwt,readFile:Pwt,mkdir:Owt}=b("node:fs/promises"),{dirname:Hwt,resolve:Hwe}=b("node:path"),{setTimeout:Gwt,clearTimeout:Gwe}=b("node:timers"),{InvalidArgumentError:qwe,UndiciError:qwt}=je(),{hashId:Ywt,isUrlExcludedFactory:Vwt,normalizeHeaders:Ywe,createHeaderFilters:Vwe}=mW();function CQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Ywe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Wwe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Wwe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function Jwe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function IQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Ywt(r)}var EW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Vwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Vwt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=CQ(e,this.#a,this.matchOptions),s=IQ(n),i=Ywe(r.headers),o={statusCode:r.statusCode,headers:Jwe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=CQ(e,this.#a,this.matchOptions),n=IQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new qwe("Snapshot path is required");try{let n=await Pwt(Hwe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new qwt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new qwe("Snapshot path is required");let n=Hwe(r);await Owt(Hwt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Uwt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${$i} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ro} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};zbe.exports=c7});var l7=m((nmr,Zbe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${$i}_getValuesQuery ON cacheInterceptorV${$i}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${$i}_deleteByUrlQuery ON cacheInterceptorV${$i}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_getValuesQuery ON cacheInterceptorV${ro}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_deleteByUrlQuery ON cacheInterceptorV${ro}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};zbe.exports=c7});var l7=m((nmr,Zbe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${$i}
FROM cacheInterceptorV${ro}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${$i} SET
UPDATE cacheInterceptorV${ro} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +168,7 @@ ${e.format(r)}`.trim())}};zbe.exports=c7});var l7=m((nmr,Zbe)=>{"use strict";var
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${$i} (
INSERT INTO cacheInterceptorV${ro} (
url,
method,
body,
@@ -182,88 +182,125 @@ ${e.format(r)}`.trim())}};zbe.exports=c7});var l7=m((nmr,Zbe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${$i} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${$i}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${$i} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${$i}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ro}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ro}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${$i}
FROM cacheInterceptorV${ro}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){_7(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){_7(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){_7(e),gQt(r);let n=0,s=[],i=this;return new fQt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!pQt(s[l],u[l])){c=!1;break}}if(c)return A}}};function pQt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var ag=m((Smr,fwe)=>{"use strict";var{kConstruct:mQt}=Xt(),{kEnumerableProperty:j0}=$e(),{iteratorMixin:EQt,isValidHeaderName:_b,isValidHeaderValue:cwe}=zi(),{webidl:Qt}=jn(),M7=b("node:assert"),ak=b("node:util");function Awe(t){return t===10||t===13||t===9||t===32}function uwe(t){let e=0,r=t.length;for(;r>e&&Awe(t.charCodeAt(r-1));)--r;for(;r>e&&Awe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function lwe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Qt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});L7(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)L7(t,r[n],e[r[n]])}else throw Qt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function L7(t,e,r){if(r=uwe(r),_b(e)){if(!cwe(r))throw Qt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Qt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(hwe(t)==="immutable")throw new TypeError("immutable");return ck(t).append(e,r,!1)}function CQt(t){let e=ck(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function dwe(t,e){return t[0]<e[0]?-1:1}var Ak=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":ySe(i)&&(r[s]=i);break;case"id":BSe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&ySe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&BSe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};bSe.exports={EventSourceStream:IW}});var kSe=m((Xmr,DSe)=>{"use strict";var{pipeline:MNt}=b("node:stream"),{fetching:LNt}=Pb(),{makeRequest:UNt}=X0(),{webidl:Hs}=jn(),{EventSourceStream:PNt}=QSe(),{parseMIMEType:ONt}=Xo(),{createFastMessageEvent:HNt}=_k(),{isNetworkError:wSe}=Mb(),{kEnumerableProperty:gg}=$e(),{environmentSettingsObject:SSe}=zi(),NSe=!1,TSe=3e3,Wb=0,xSe=1,Jb=2,GNt="anonymous",qNt="use-credentials",aE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Wb;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),NSe||(NSe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=SSe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=GNt;r.withCredentials===!0&&(o=qNt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=SSe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=UNt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===Jb)return;this.#r=Wb;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!wSe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(wSe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?ONt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=xSe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new PNt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(HNt(A.type,A.options))}});MNt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=LNt(e)}#c(){this.#r!==Jb&&(this.#r=Wb,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===Wb&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==Jb&&(this.#r=Jb,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},RSe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Wb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:xSe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Jb,writable:!1}};Object.defineProperties(aE,RSe);Object.defineProperties(aE.prototype,RSe);Object.defineProperties(aE.prototype,{close:gg,onerror:gg,onmessage:gg,onopen:gg,readyState:gg,url:gg,withCredentials:gg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>TSe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);DSe.exports={EventSource:aE,defaultReconnectionTime:TSe}});var USe=m((Zmr,pe)=>{"use strict";var YNt=Bd(),_Se=VB(),VNt=zf(),WNt=_ye(),JNt=Uye(),zNt=Xf(),jNt=fV(),KNt=uV(),XNt=yBe(),ZNt=NBe(),$Nt=RBe(),FSe=je(),Jk=$e(),{InvalidArgumentError:Wk}=FSe,AE=lbe(),eTt=Hf(),tTt=ZV(),{MockCallHistory:rT Line truncated
`)}close(){this.#n.close()}get(e){OW(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){OW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){OW(e),DSt(r);let n=0,s=[],i=this;return new RSt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!kSt(s[l],u[l])){A=!1;break}}if(A)return c}}};function kSt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var kg=E((fyr,rSe)=>{"use strict";var{kConstruct:vSt}=Kt(),{kEnumerableProperty:TE}=Ze(),{iteratorMixin:_St,isValidHeaderName:QQ,isValidHeaderValue:$1e}=$i(),{webidl:wt}=Xn(),GW=b("node:assert"),sv=b("node:util");function K1e(t){return t===10||t===13||t===9||t===32}function X1e(t){let e=0,r=t.length;for(;r>e&&K1e(t.charCodeAt(r-1));)--r;for(;r>e&&K1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Z1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});qW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)qW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function qW(t,e,r){if(r=X1e(r),QQ(e)){if(!$1e(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(tSe(t)==="immutable")throw new TypeError("immutable");return ov(t).append(e,r,!1)}function FSt(t){let e=ov(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function eSe(t,e){return t[0]<e[0]?-1:1}var iv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":ATe(i)&&(r[s]=i);break;case"id":uTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&ATe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&uTe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};lTe.exports={EventSourceStream:SJ}});var ITe=E((Pyr,CTe)=>{"use strict";var{pipeline:XRt}=b("node:stream"),{fetching:ZRt}=xQ(),{makeRequest:eDt}=RE(),{webidl:Ps}=Xn(),{EventSourceStream:tDt}=dTe(),{parseMIMEType:rDt}=ta(),{createFastMessageEvent:nDt}=Dv(),{isNetworkError:hTe}=SQ(),{kEnumerableProperty:Og}=Ze(),{environmentSettingsObject:fTe}=$i(),gTe=!1,pTe=3e3,MQ=0,mTe=1,LQ=2,sDt="anonymous",iDt="use-credentials",OE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=MQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),gTe||(gTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ps.converters.USVString(e),r=Ps.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=fTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=sDt;r.withCredentials===!0&&(o=iDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=fTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=eDt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===LQ)return;this.#r=MQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!hTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(hTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?rDt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=mTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new tDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(nDt(c.type,c.options))}});XRt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=ZRt(e)}#A(){this.#r!==LQ&&(this.#r=MQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===MQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Ps.brandCheck(this,t),this.#r!==LQ&&(this.#r=LQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},ETe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:MQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:LQ,writable:!1}};Object.defineProperties(OE,ETe);Object.defineProperties(OE.prototype,ETe);Object.defineProperties(OE.prototype,{close:Og,onerror:Og,onmessage:Og,onopen:Og,readyState:Og,url:Og,withCredentials:Og});Ps.converters.EventSourceInitDict=Ps.dictionaryConverter([{key:"withCredentials",converter:Ps.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ps.converters.any},{key:"node",converter:Ps.dictionaryConverter([{key:"reconnectionTime",converter:Ps.converters["unsigned long"],defaultValue:()=>pTe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);CTe.exports={EventSource:OE,defaultReconnectionTime:pTe}});var STe=E((Oyr,ge)=>{"use strict";var oDt=qd(),BTe=Fb(),aDt=Cg(),cDt=Bbe(),ADt=Sbe(),uDt=Bg(),lDt=I7(),dDt=p7(),hDt=AQe(),fDt=gQe(),gDt=EQe(),bTe=je(),Yv=Ze(),{InvalidArgumentError:qv}=bTe,HE=ZQe(),pDt=dg(),mDt=sW(),{MockCallHistory:ED Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return hTt(e,r).catch(n=>{throw vSe?LSe(n,vSe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=ag().Headers;pe.exports.Response=Mb().Response;pe.exports.Request=X0().Request;pe.exports.FormData=p2().FormData;var{setGlobalOrigin:fTt,getGlobalOrigin:gTt}=$q();pe.exports.setGlobalOrigin=fTt;pe.exports.getGlobalOrigin=gTt;var{CacheStorage:pTt}=m1e(),{kConstruct:mTt}=Xt();pe.exports.caches=new pTt(mTt);var{deleteCookie:ETt,getCookies:CTt,getSetCookies:ITt,setCookie:yTt,parseCookie:BTt}=R1e();pe.exports.deleteCookie=ETt;pe.exports.getCookies=CTt;pe.exports.getSetCookies=ITt;pe.exports.setCookie=yTt;pe.exports.parseCookie=BTt;var{parseMIMEType:bTt,serializeAMimeType:QTt}=Xo();pe.exports.parseMIMEType=bTt;pe.exports.serializeAMimeType=QTt;var{CloseEvent:wTt,ErrorEvent:STt,MessageEvent:NTt}=_k(),{WebSocket:TTt,ping:xTt}=uSe();pe.exports.WebSocket=TTt;pe.exports.CloseEvent=wTt;pe.exports.ErrorEvent=STt;pe.exports.MessageEvent=NTt;pe.exports.ping=xTt;pe.exports.WebSocketStream=ESe().WebSocketStream;pe.exports.WebSocketError=gW().WebSocketError;pe.exports.request=zb(AE.request);pe.exports.stream=zb(AE.stream);pe.exports.pipeline=zb(AE.pipeline);pe.exports.connect=zb(AE.connect);pe.exports.upgrade=zb(AE.upgrade);pe.exports.MockClient=tTt;pe.exports.MockCallHistory=rTt;pe.exports.MockCallHistoryLog=nTt;pe.exports.MockPool=iTt;pe.exports.MockAgent=sTt;pe.exports.SnapshotAgent=oTt;pe.exports.mockErrors=aTt;var{EventSource:RTt}=kSe();pe.exports.EventSource=RTt;function DTt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=DTt});var jb=m(Fd=>{"use strict";Fd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Fd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Fd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Fd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Fd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Fd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Fd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var OSe=m((t0r,PSe)=>{"use strict";var{asciiLowercase:zk,solelyContainsHTTPTokenCodePoints:kTt,soleyContainsHTTPQuotedStringTokenCodePoints:vTt}=jb();PSe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=zk(String(e)),this._map.get(e)}has(e){return e=zk(String(e)),this._map.has(e)}set(e,r){if(e=zk(String(e)),r=String(r),!kTt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!vTt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=zk(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var qSe=m((r0r,GSe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:_Tt,removeTrailingHTTPWhitespace:HSe,isHTTPWhitespaceChar:FTt,solelyContainsHTTPTokenCodePoints:yW,soleyContainsHTTPQuotedStringTokenCodePoints:MTt,asciiLowercase:BW,collectAnHTTPQuotedString:LTt}=jb();GSe.exports=t=>{t=_Tt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!yW(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=HSe(n),n.length===0||!yW(n))return null;let s={type:BW(r),subtype:BW(n),parameters:new Map};for(;e<t.length;){for(++e;FTt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=BW(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=LTt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=HSe(o),o==="")continue}i.length>0&&yW(i)&&MTt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var VSe=m((n0r,YSe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:UTt}=jb();YSe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!UTt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var jSe=m((i0r,zSe)=>{"use strict";var PTt=OSe(),OTt=qSe(),HTt=VSe(),{asciiLowercase:WSe,solelyContainsHTTPTokenCodePoints:JSe}=jb();zSe.exports=class{constructor(e){e=String(e);let r=OTt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new PTt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=WSe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!JSe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=WSe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!JSe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return HTt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var lNe=m((EEr,oxt)=>{oxt.exports={name:"@actions/artifact",version:"6.1.0",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},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/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,v,v,f,s);let P=f.type==="*"?pJ:f.type==="?"?CJ:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=yxt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),$=s.slice(P.reEnd),re=s.slice(P.reEnd-8,P.reEnd)+$,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=$;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");$=De;let Ke=$===""&&r!==mJ?"(?:$|\\/)":"";s=D+z+$+Ke+re}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===mJ)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return bxt(e);let q=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",q),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?pJ:r.dot?Cxt:Ixt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?wxt(a):a===Gs?Gs:a._src).reduce((a,A)=>(a[a.length-1]===Gs&&A===Gs||a.push(A),a),[]),o.forEach((a,A)=>{a!==Gs||o[A-1]===Gs||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Gs))}),o.filter(a=>a!==Gs).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;EJ.sep!=="/"&&(e=e.split(EJ.sep).join("/")),e=e.split(UNe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return so.defaults(e).Minimatch}};so.Minimatch=fE});var WNe=m((zEr,VNe)=>{VNe.exports=YNe;var BJ=b("fs"),{EventEmitter:Nxt}=b("events"),{Minimatch:yJ}=HNe(),{resolve:Txt}=b("path");function xxt(t,e){return new Promise((r,n)=>{BJ.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function GNe(t,e){return new Promise((r,n)=>{(e?BJ.stat:BJ.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?GNe(t,!1):null):r(null):r(o)})})}async function*qNe(t,e,r,n,s,i){let o=await xxt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await GNe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*qNe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Rxt(t,e,r,n){yield*qNe("",t,e,r,n,!0)}function Dxt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var tv=class extends Nxt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Dxt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new yJ(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new yJ(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new yJ(i,{dot:!0}))}this.iterator=Rxt(Txt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function gC(Q){let B=fC(Q.toString()),w=B.match(cF);if(w||(w=B.match(uF)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return xDt(e,r).catch(n=>{throw yTe?wTe(n,yTe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=kg().Headers;ge.exports.Response=SQ().Response;ge.exports.Request=RE().Request;ge.exports.FormData=hk().FormData;var{setGlobalOrigin:RDt,getGlobalOrigin:DDt}=iV();ge.exports.setGlobalOrigin=RDt;ge.exports.getGlobalOrigin=DDt;var{CacheStorage:kDt}=iNe(),{kConstruct:vDt}=Kt();ge.exports.caches=new kDt(vDt);var{deleteCookie:_Dt,getCookies:FDt,getSetCookies:MDt,setCookie:LDt,parseCookie:UDt}=ENe();ge.exports.deleteCookie=_Dt;ge.exports.getCookies=FDt;ge.exports.getSetCookies=MDt;ge.exports.setCookie=LDt;ge.exports.parseCookie=UDt;var{parseMIMEType:PDt,serializeAMimeType:ODt}=ta();ge.exports.parseMIMEType=PDt;ge.exports.serializeAMimeType=ODt;var{CloseEvent:HDt,ErrorEvent:GDt,MessageEvent:qDt}=Dv(),{WebSocket:YDt,ping:VDt}=XNe();ge.exports.WebSocket=YDt;ge.exports.CloseEvent=HDt;ge.exports.ErrorEvent=GDt;ge.exports.MessageEvent=qDt;ge.exports.ping=VDt;ge.exports.WebSocketStream=oTe().WebSocketStream;ge.exports.WebSocketError=yJ().WebSocketError;ge.exports.request=UQ(HE.request);ge.exports.stream=UQ(HE.stream);ge.exports.pipeline=UQ(HE.pipeline);ge.exports.connect=UQ(HE.connect);ge.exports.upgrade=UQ(HE.upgrade);ge.exports.MockClient=mDt;ge.exports.MockCallHistory=EDt;ge.exports.MockCallHistoryLog=CDt;ge.exports.MockPool=yDt;ge.exports.MockAgent=IDt;ge.exports.SnapshotAgent=BDt;ge.exports.mockErrors=bDt;var{EventSource:WDt}=ITe();ge.exports.EventSource=WDt;function JDt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=JDt});var PQ=E(rh=>{"use strict";rh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");rh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");rh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";rh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);rh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);rh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());rh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var TTe=E((qyr,NTe)=>{"use strict";var{asciiLowercase:Vv,solelyContainsHTTPTokenCodePoints:zDt,soleyContainsHTTPQuotedStringTokenCodePoints:jDt}=PQ();NTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Vv(String(e)),this._map.get(e)}has(e){return e=Vv(String(e)),this._map.has(e)}set(e,r){if(e=Vv(String(e)),r=String(r),!zDt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!jDt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Vv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var DTe=E((Yyr,RTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:KDt,removeTrailingHTTPWhitespace:xTe,isHTTPWhitespaceChar:$Dt,solelyContainsHTTPTokenCodePoints:NJ,soleyContainsHTTPQuotedStringTokenCodePoints:XDt,asciiLowercase:TJ,collectAnHTTPQuotedString:ZDt}=PQ();RTe.exports=t=>{t=KDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!NJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=xTe(n),n.length===0||!NJ(n))return null;let s={type:TJ(r),subtype:TJ(n),parameters:new Map};for(;e<t.length;){for(++e;$Dt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=TJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=ZDt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=xTe(o),o==="")continue}i.length>0&&NJ(i)&&XDt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var vTe=E((Vyr,kTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:e2t}=PQ();kTe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!e2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var LTe=E((Jyr,MTe)=>{"use strict";var t2t=TTe(),r2t=DTe(),n2t=vTe(),{asciiLowercase:_Te,solelyContainsHTTPTokenCodePoints:FTe}=PQ();MTe.exports=class{constructor(e){e=String(e);let r=r2t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new t2t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=_Te(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!FTe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=_Te(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!FTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return n2t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var ZTe=E((cbr,C2t)=>{C2t.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},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/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Ez:f.type==="?"?yz:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=_2t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+Z,ce=D.split(")").length,fe=D.split("(").length-ce,De=Z;for(let st=0;st<fe;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==Cz?"(?:$|\\/)":"";s=D+z+Z+Ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Cz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return M2t(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Ez:r.dot?k2t:v2t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?U2t(a):a===Os?Os:a._src).reduce((a,c)=>(a[a.length-1]===Os&&c===Os||a.push(c),a),[]),o.forEach((a,c)=>{a!==Os||o[c-1]===Os||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Os))}),o.filter(a=>a!==Os).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Iz.sep!=="/"&&(e=e.split(Iz.sep).join("/")),e=e.split(Sxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return co.defaults(e).Minimatch}};co.Minimatch=zE});var _xe=E((Ubr,vxe)=>{vxe.exports=kxe;var Qz=b("fs"),{EventEmitter:O2t}=b("events"),{Minimatch:bz}=xxe(),{resolve:H2t}=b("path");function G2t(t,e){return new Promise((r,n)=>{Qz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Rxe(t,e){return new Promise((r,n)=>{(e?Qz.stat:Qz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Rxe(t,!1):null):r(null):r(o)})})}async function*Dxe(t,e,r,n,s,i){let o=await G2t(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Rxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Dxe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*q2t(t,e,r,n){yield*Dxe("",t,e,r,n,!0)}function Y2t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var $v=class extends O2t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Y2t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new bz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new bz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new bz(i,{dot:!0}))}this.iterator=q2t(H2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,w);w=G===-1?Q.length:G}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let G=Q.indexOf("*/",w);G!==-1?(w=G+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function jC(Q){let B=zC(Q.toString()),w=B.match(aM);if(w||(w=B.match(cM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Ew).map(H=>H.replace(Cw,"").trim())}function pC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),w[F]=Y.concat(Y.length>0?ee:H);else if(j)w[F]=H;else{if(Y=gC(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(ee)}function ee(Se,yt){var _t=Y.map(wt=>Se[wt]);_t.push(yt),I(H)(..._t)}}),hC(w,B)}class mC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):EC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):EC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function EC(Q,B){Q.length=1,Q.head=Q.tail=B}function jg(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function ee(Ue,be){let Pe=(...St)=>{Se(Ue,Pe),be(...St)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var _t=!1;function wt(Ue,be,Pe,St){if(St!=null&&typeof St!="function")throw new Error("task callback must be a function");Ft.started=!0;var Ir,wn;function lo(ch,...wC){if(ch)return Pe?wn(ch):Ir();if(wC.length<=1)return Ir(wC[0]);Ir(wC)}var $g=Ft._createTaskItem(Ue,Pe?lo:St||lo);if(be?Ft._tasks.unshift($g):Ft._tasks.push($g),_t||(_t=!0,c(()=>{_t=!1,Ft.process()})),Pe||!St)return new Promise((ch,wC)=>{Ir=ch,wn=wC})}function uo(Ue){return function(be,...Pe){H-=1;for(var St=0,Ir=Ue.length;St<Ir;St++){var wn=Ue[St],lo=Y.indexOf(wn);lo===0?Y.shift():lo>0&&Y.splice(lo,1),wn.callback(be,...Pe),be!=null&&yt("error",be,wn.data)}H<=Ft.concurrency-Ft.buffer&&yt("unsaturated"),Ft.idle()&&yt("drain"),Ft.process()}}function Zg(Ue){return Ue.length===0&&Ft.idle()?(c(()=>yt("drain")),!0):!1}let Ah=Ue=>be=>{if(!be)return new Promise((Pe,St)=>{ee(Ue,(Ir,wn)=>{if(Ir)return St(Ir);Pe(wn)})});Se(Ue),j(Ue,be)};var QC=!1,Ft={_tasks:new mC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Ft._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!1,!1,be)):wt(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!1,!0,be)):wt(Ue,!1,!0,be)},kill(){Se(),Ft._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!0,!1,be)):wt(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!0,!0,be)):wt(Ue,!0,!0,be)},remove(Ue){Ft._tasks.remove(Ue)},process(){if(!QC){for(QC=!0;!Ft.paused&&H<Ft.concurrency&&Ft._tasks.length;){var Ue=[],be=[],Pe=Ft._tasks.length;Ft.payload&&(Pe=Math.min(Pe,Ft.payload));for(var St=0;St<Pe;St++){var Ir=Ft._tasks.shift();Ue.push(Ir),Y.push(Ir),be.push(Ir.data)}H+=1,Ft._tasks.length===0&&yt("empty"),H===Ft.concurrency&&yt("saturated");var wn=re(uo(Ue));F(be,wn)}QC=!1}},length(){return Ft._tasks.length},running(){return H},workersList(){return Y},idle(){return Ft._tasks.length+H===0},pause(){Ft.paused=!0},resume(){Ft.paused!==!1&&(Ft.paused=!1,c(Ft.process))}};return Object.defineProperties(Ft,{saturated:{writable:!1,value:Ah("saturated")},unsaturated:{writable:!1,value:Ah("unsaturated")},empty:{writable:!1,value:Ah("empty")},drain:{writable:!1,value:Ah("drain")},error:{writable:!1,value:Ah("error")}}),Ft}function CC(Q,B){return jg(Q,1,B)}function Kg(Q,B,w){return jg(Q,B,w)}function co(Q,B,w,F){F=q(F);var H=I(w);return zs(Q,(Y,J,j)=>{H(B,Y,(ee,Se)=>{B=Se,j(ee)})},Y=>F(Y,B))}var fa=E(co,4);function Xg(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=Gc(),fa(B,w,(Y,J,j)=>{J.apply(F,Y.concat((ee,...Se)=>{j(ee,Se)}))},(Y,J)=>H(Y,...J)),H[Hc]}}function Iw(...Q){return Xg(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(Y,J)=>{H(Y,(j,...ee)=>j?J(j):J(j,ee))},(Y,J)=>{for(var j=[],ee=0;ee<J.length;ee++)J[ee]&&(j=j.concat(...J[ee]));return F(Y,j)})}var G=E(N,4);function K(Q,B,w){return G(Q,1/0,B,w)}var X=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[Xn]||(rTe=global[Xn]||[],sTe(kr,rTe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||nTe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,ov,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),nTe()}return Object.defineProperty(e,ov,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Eg(kr[Xn]),b("assert").equal(kr[Xn].length,0)}));var rTe;global[Xn]||sTe(global,kr[Xn]);SJ.exports=QJ(Oxt(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(SJ.exports=QJ(kr),kr.__patched=!0);function QJ(t){Uxt(t),t.gracefulify=QJ,t.createReadStream=M,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(D,z,$){return typeof z=="function"&&($=z,z=null),re(D,z,$);function re(Ae,ge,De,Ke){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?gE([re,[Ae,ge,De],it,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,$,re){return typeof $=="function"&&(re=$,$=null),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return n(ge,De,Ke,function(kt){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,$,re){return typeof $=="function"&&(re=$,$=null),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return i(ge,De,Ke,function(kt){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,$,re){return typeof $=="function"&&(re=$,$=0),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return a(ge,De,Ke,function(kt){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,$){typeof z=="function"&&($=z,z=null);var re=u.test(process.version)?function(De,Ke,it,Wt){return c(De,Ae(De,Ke,it,Wt))}:function(De,Ke,it,Wt){return c(De,Ke,Ae(De,Ke,it,Wt))};return re(D,z,$);function Ae(ge,De,Ke,it){return function(Wt,kt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?gE([re,[ge,De,Ke],Wt,it||Date.now(),Date.now()]):(kt&&kt.sort&&kt.sort(),typeof Ke=="function"&&Ke.call(this,Wt,kt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Pxt(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,$){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=$,D.emit("open",$),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,$){z?(D.destroy(),D.emit("error",z)):(D.fd=$,D.emit("open",$))})}function M(D,z){return new t.ReadStream(D,z)}function q(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,$,re){return typeof $=="function"&&(re=$,$=null),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return v(ge,De,Ke,function(kt,dn){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function gE(t){Eg("ENQUEUE",t[0].name,t[1]),kr[Xn].push(t),wJ()}var iv;function nTe(){for(var t=Date.now(),e=0;e<kr[Xn].length;++e)kr[Xn][e].length>2&&(kr[Xn][e][3]=t,kr[Xn][e][4]=t);wJ()}function wJ(){if(clearTimeout(iv),iv=void 0,kr[Xn].length!==0){var t=kr[Xn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Eg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Eg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Eg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[Xn].push(t)}iv===void 0&&(iv=setTimeout(wJ,0))}}});var av=m(($Er,iTe)=>{"use strict";var Nc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Nc.writable=t=>Nc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Nc.readable=t=>Nc(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};LRe.exports={AggregateError:Az,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var cz=m((cIr,URe)=>{"use strict";URe.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var ys=m((uIr,HRe)=>{"use strict";var{format:cvt,inspect:Sv}=cz(),{AggregateError:uvt}=Tr(),lvt=globalThis.AggregateError||uvt,dvt=Symbol("kIsNodeError"),hvt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],fvt=/^([A-Z][a-z0-9]*)+$/,gvt="__node_internal_",Nv={};function yg(t,e){if(!t)throw new Nv.ERR_INTERNAL_ASSERTION(e)}function PRe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function pvt(t,e,r){if(typeof e=="function")return yg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return yg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:cvt(e,...r)}function $n(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(pvt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[dvt]=!0,Nv[t]=n}function ORe(t){let e=gvt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function mvt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new lvt([e,t],e.message);return r.code=e.code,r}return t||e}var uz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Nv.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};$n("ERR_ASSERTION","%s",Error);$n("ERR_INVALID_ARG_TYPE",(t,e,r)=>{yg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)yg(typeof A=="string","All expected entries have to be of type string"),hvt.includes(A)?s.push(A.toLowerCase()):fvt.test(A)?i.push(A):(yg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=GK(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=GK(" "+s+"="+n[s]+`
`);return Dt.from(r)};rC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Dt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Dt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};rC.encode=function(e){let r=Dt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Dt.byteLength(n)!==n.length)return null;for(;Dt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return Dt.byteLength(n)>100||Dt.byteLength(s)>155||e.linkname&&Dt.byteLength(e.linkname)>100?null:(Dt.write(r,n),Dt.write(r,eh(e.mode&T5t,6),100),Dt.write(r,eh(e.uid,6),108),Dt.write(r,eh(e.gid,6),116),F5t(e.size,r,124),Dt.write(r,eh(e.mtime.getTime()/1e3|0,11),136),r[156]=tF+v5t(e.type),e.linkname&&Dt.write(r,e.linkname,157),Dt.copy(cLe,r,uw),Dt.copy(w5t,r,qK),e.uname&&Dt.write(r,e.uname,265),e.gname&&Dt.write(r,e.gname,297),Dt.write(r,eh(e.devmajor||0,6),329),Dt.write(r,eh(e.devminor||0,6),337),s&&Dt.write(r,s,345),Dt.write(r,eh(lLe(r),6),148),r)};rC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-tF,i=tC(e,0,100,r),o=$d(e,100,8),a=$d(e,108,8),A=$d(e,116,8),c=$d(e,124,12),u=$d(e,136,12),l=k5t(s),d=e[157]===0?null:tC(e,157,100,r),h=tC(e,265,32),f=tC(e,297,32),p=$d(e,329,8),I=$d(e,337,8),E=lLe(e);if(E===256)return null;if(E!==$d(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(x5t(e))e[345]&&(i=tC(e,345,155,r)+"/"+i);else if(!R5t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function x5t(t){return Dt.equals(cLe,t.subarray(uw,uw+6))}function R5t(t){return Dt.equals(S5t,t.subarray(uw,uw+6))&&Dt.equals(N5t,t.subarray(qK,qK+2))}function D5t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function k5t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function v5t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function uLe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function lLe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function eh(t,e){return t=t.toString(8),t.length>e?Q5t.slice(0,e)+" ":b5t.slice(0,e-t.length)+t+" "}function _5t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function F5t(t,e,r){t.toString(8).length>11?_5t(t,e,r):Dt.write(e,eh(t,11),r)}function M5t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function $d(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return M5t(t);{for(;e<t.length&&t[e]===32;)e++;let n=D5t(uLe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Dt.toString(t.subarray(e,n)),8)}}function tC(t,e,r,n){return Dt.toString(t.subarray(e,uLe(t,0,e,e+r)),n)}function GK(t){let e=Dt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var pLe=m((MBr,gLe)=>{var{Writable:L5t,Readable:U5t,getStreamError:dLe}=HK(),P5t=SK(),hLe=KE(),nC=YK(),O5t=hLe.alloc(0),WK=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new P5t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return O5t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return hLe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},JK=class extends U5t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(dLe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=fLe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},zK=class extends L5t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function sP(t){process.exitCode=rP.Failure,ou(t)}function Rl(){return process.env.RUNNER_DEBUG==="1"}function W(t){uh("debug",{},t)}function ou(t,e={}){uh("error",Ow(e),t instanceof Error?t.toString():t)}function et(t,e={}){uh("warning",Ow(e),t instanceof Error?t.toString():t)}function Loe(t,e={}){uh("notice",Ow(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+Moe.EOL)}function TI(t,e){if(process.env.GITHUB_STATE||"")return jX("STATE",KX(t,e));uh("save-state",{name:t},Al(e))}function EA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as xWe,existsSync as RWe}from"fs";import{EOL as DWe}from"os";var Kp=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(RWe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(xWe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${DWe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var AP=fe(Goe(),1),qoe=fe(US(),1),YWe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Yoe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Voe(t){return new AP.HttpClient().getAgent(t)}function VWe(t){return new AP.HttpClient().getAgentDispatcher(t)}function Woe(t){let e=VWe(t);return(n,s)=>YWe(this,void 0,void 0,function*(){return(0,qoe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Joe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ZS(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function $S(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>$S.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function zoe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function joe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Koe=Function.bind,Xoe=Koe.bind(Koe);function Zoe(t,e,r){let n=Xoe(joe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Xoe(zoe,null).apply(null,i)})}function JWe(){let t=Symbol("Singular"),e={registry:{}},r=$S.bind(null,e,t);return Zoe(r,e,t),r}function zWe(){let t={registry:{}},e=$S.bind(null,t);return Zoe(e,t),e}var $oe={Singular:JWe,Collection:zWe};var wP=fe(yP(),1);var wae=fe(yP(),1);var HJe="0.0.0-development";function GJe(t){return`Request failed due to following response errors:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(c1).map(G=>G.replace(A1,"").trim())}function KC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var G=Q[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),w[F]=Y.concat(Y.length>0?te:G);else if(j)w[F]=G;else{if(Y=jC(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(G)(...Ft)}}),JC(w,B)}class $C{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):XC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):XC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function XC(Q,B){Q.length=1,Q.head=Q.tail=B}function yp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,Sn;function po(Rh,...iI){if(Rh)return Pe?Sn(Rh):Cr();if(iI.length<=1)return Cr(iI[0]);Cr(iI)}var wp=Mt._createTaskItem(Ue,Pe?po:Nt||po);if(be?Mt._tasks.unshift(wp):Mt._tasks.push(wp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Rh,iI)=>{Cr=Rh,Sn=iI})}function go(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var Sn=Ue[Nt],po=Y.indexOf(Sn);po===0?Y.shift():po>0&&Y.splice(po,1),Sn.callback(be,...Pe),be!=null&&yt("error",be,Sn.data)}G<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function Qp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>yt("drain")),!0):!1}let xh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,Sn)=>{if(Cr)return Nt(Cr);Pe(Sn)})});Se(Ue),j(Ue,be)};var sI=!1,Mt={_tasks:new $C,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!sI){for(sI=!0;!Mt.paused&&G<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}G+=1,Mt._tasks.length===0&&yt("empty"),G===Mt.concurrency&&yt("saturated");var Sn=ee(go(Ue));F(be,Sn)}sI=!1}},length(){return Mt._tasks.length},running(){return G},workersList(){return Y},idle(){return Mt._tasks.length+G===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:xh("saturated")},unsaturated:{writable:!1,value:xh("unsaturated")},empty:{writable:!1,value:xh("empty")},drain:{writable:!1,value:xh("drain")},error:{writable:!1,value:xh("error")}}),Mt}function ZC(Q,B){return yp(Q,1,B)}function Bp(Q,B,w){return yp(Q,B,w)}function fo(Q,B,w,F){F=O(F);var G=I(w);return Ws(Q,(Y,J,j)=>{G(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var ya=m(fo,4);function bp(...Q){var B=Q.map(I);return function(...w){var F=this,G=w[w.length-1];return typeof G=="function"?w.pop():G=$A(),ya(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>G(Y,...J)),G[KA]}}function u1(...Q){return bp(...Q.reverse())}function we(Q,B,w,F){return y(fe(B),Q,w,F)}var H=m(we,4);function T(Q,B,w,F){var G=I(w);return H(Q,B,(Y,J)=>{G(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[es]||(Yxe=global[es]||[],Wxe(kr,Yxe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||Vxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,r_,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),Vxe()}return Object.defineProperty(e,r_,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Yg(kr[es]),b("assert").equal(kr[es].length,0)}));var Yxe;global[es]||Wxe(global,kr[es]);Tz.exports=Sz(Z2t(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(Tz.exports=Sz(kr),kr.__patched=!0);function Sz(t){$2t(t),t.gracefulify=Sz,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(ce,fe,De,Ke){return e(ce,fe,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?jE([ee,[ce,fe,De],st,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return n(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return i(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return a(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,st,Yt){return A(De,ce(De,Ke,st,Yt))}:function(De,Ke,st,Yt){return A(De,Ke,ce(De,Ke,st,Yt))};return ee(D,z,Z);function ce(fe,De,Ke,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?jE([ee,[fe,De,Ke],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=X2t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return k(fe,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function jE(t){Yg("ENQUEUE",t[0].name,t[1]),kr[es].push(t),Nz()}var t_;function Vxe(){for(var t=Date.now(),e=0;e<kr[es].length;++e)kr[es][e].length>2&&(kr[es][e][3]=t,kr[es][e][4]=t);Nz()}function Nz(){if(clearTimeout(t_),t_=void 0,kr[es].length!==0){var t=kr[es].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Yg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Yg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(Yg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[es].push(t)}t_===void 0&&(t_=setTimeout(Nz,0))}}});var n_=E((qbr,Jxe)=>{"use strict";var MA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";MA.writable=t=>MA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";MA.readable=t=>MA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};w2e.exports={AggregateError:uj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var lj=E((ZQr,S2e)=>{"use strict";S2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Es=E((ewr,x2e)=>{"use strict";var{format:BMt,inspect:B_}=lj(),{AggregateError:bMt}=Nr(),QMt=globalThis.AggregateError||bMt,wMt=Symbol("kIsNodeError"),SMt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],NMt=/^([A-Z][a-z0-9]*)+$/,TMt="__node_internal_",b_={};function Jg(t,e){if(!t)throw new b_.ERR_INTERNAL_ASSERTION(e)}function N2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function xMt(t,e,r){if(typeof e=="function")return Jg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Jg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:BMt(e,...r)}function rs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(xMt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[wMt]=!0,b_[t]=n}function T2e(t){let e=TMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function RMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new QMt([e,t],e.message);return r.code=e.code,r}return t||e}var dj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new b_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};rs("ERR_ASSERTION","%s",Error);rs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Jg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)Jg(typeof c=="string","All expected entries have to be of type string"),SMt.includes(c)?s.push(c.toLowerCase()):NMt.test(c)?i.push(c):(Jg(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=Y$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=Y$(" "+s+"="+n[s]+`
`);return kt.from(r)};MC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};MC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,yh(e.mode&HGt,6),100),kt.write(r,yh(e.uid,6),108),kt.write(r,yh(e.gid,6),116),zGt(e.size,r,124),kt.write(r,yh(e.mtime.getTime()/1e3|0,11),136),r[156]=$F+WGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy($Ue,r,Zw),kt.copy(UGt,r,V$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,yh(e.devmajor||0,6),329),kt.write(r,yh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,yh(ZUe(r),6),148),r)};MC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-$F,i=FC(e,0,100,r),o=Ih(e,100,8),a=Ih(e,108,8),c=Ih(e,116,8),A=Ih(e,124,12),u=Ih(e,136,12),l=VGt(s),d=e[157]===0?null:FC(e,157,100,r),h=FC(e,265,32),f=FC(e,297,32),p=Ih(e,329,8),I=Ih(e,337,8),m=ZUe(e);if(m===256)return null;if(m!==Ih(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(GGt(e))e[345]&&(i=FC(e,345,155,r)+"/"+i);else if(!qGt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function GGt(t){return kt.equals($Ue,t.subarray(Zw,Zw+6))}function qGt(t){return kt.equals(PGt,t.subarray(Zw,Zw+6))&&kt.equals(OGt,t.subarray(V$,V$+2))}function YGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function VGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function WGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function XUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function ZUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function yh(t,e){return t=t.toString(8),t.length>e?LGt.slice(0,e)+" ":MGt.slice(0,e-t.length)+t+" "}function JGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function zGt(t,e,r){t.toString(8).length>11?JGt(t,e,r):kt.write(e,yh(t,11),r)}function jGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Ih(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return jGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=YGt(XUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function FC(t,e,r,n){return kt.toString(t.subarray(e,XUe(t,0,e,e+r)),n)}function Y$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var sPe=E((SSr,nPe)=>{var{Writable:KGt,Readable:$Gt,getStreamError:ePe}=q$(),XGt=T$(),tPe=RC(),LC=W$(),ZGt=tPe.alloc(0),z$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new XGt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return ZGt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return tPe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},j$=class extends $Gt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(ePe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=rPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},K$=class extends KGt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function nO(t){process.exitCode=tO.Failure,Qo(t)}function ql(){return process.env.RUNNER_DEBUG==="1"}function V(t){yl("debug",{},t)}function Qo(t,e={}){yl("error",R1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){yl("warning",R1(e),t instanceof Error?t.toString():t)}function Uae(t,e={}){yl("notice",R1(e),t instanceof Error?t.toString():t)}function ne(t){process.stdout.write(t+Lae.EOL)}function Pae(t){EM("group",t)}function Oae(){EM("endgroup")}function cy(t,e){if(process.env.GITHUB_STATE||"")return KX("STATE",$X(t,e));yl("save-state",{name:t},Il(e))}function Nc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as yze,existsSync as Bze}from"fs";import{EOL as bze}from"os";var Bm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Bze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(yze(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${bze}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var aO=pe(Vae(),1),Wae=pe(TN(),1),Mze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Jae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function zae(t){return new aO.HttpClient().getAgent(t)}function Lze(t){return new aO.HttpClient().getAgentDispatcher(t)}function jae(t){let e=Lze(t);return(n,s)=>Mze(this,void 0,void 0,function*(){return(0,Wae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Kae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function cO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Yl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function GN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>GN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function $ae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Xae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Zae=Function.bind,ece=Zae.bind(Zae);function tce(t,e,r){let n=ece(Xae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=ece($ae,null).apply(null,i)})}function Pze(){let t=Symbol("Singular"),e={registry:{}},r=GN.bind(null,e,t);return tce(r,e,t),r}function Oze(){let t={registry:{}},e=GN.bind(null,t);return tce(e,t),e}var rce={Singular:Pze,Collection:Oze};var Hze="0.0.0-development",Gze=`octokit-endpoint.js/${Hze} ${Yl()}`,qze={method:"GET",baseUrl:"ht Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var qJe=class extends Error{constructor(t,e,r){super(GJe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},YJe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],VJe=["query","method","url"],Qae=/\/api\/v3\/?$/;function WJe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(VJe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>YJe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Qae.test(i)&&(s.url=i.replace(Qae,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new qJe(s,a,o.data)}return o.data.data})}function BP(t,e){let r=t.defaults(e);return Object.assign((s,i)=>WJe(r,s,i),{defaults:BP.bind(null,r),endpoint:r.endpoint})}var AYt=BP(wae.request,{headers:{"user-agent":`octokit-graphql.js/${HJe} ${ZS()}`},method:"POST",url:"/graphql"});function Sae(t){return BP(t,{method:"POST",url:"/graphql"})}var bP="(?:[a-zA-Z0-9_-]+)",Nae="\\.",Tae=new RegExp(`^${bP}${Nae}${bP}${Nae}${bP}$`),JJe=Tae.test.bind(Tae);async function zJe(t){let e=JJe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function jJe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function KJe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=jJe(t),e(s)}var xae=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(zJe.bind(null,e),{hook:KJe.bind(null,e)})};var QP="7.0.6";var Rae=()=>{},XJe=console.warn.bind(console),ZJe=console.error.bind(console);function $Je(t={}){return typeof t.debug!="function"&&(t.debug=Rae),typeof t.info!="function"&&(t.info=Rae),typeof t.warn!="function"&&(t.warn=XJe),typeof t.error!="function"&&(t.error=ZJe),t}var Dae=`octokit-core.js/${QP} ${ZS()}`,rN=class{static VERSION=QP;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new $oe.Collection,n={baseUrl:wP.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Dae}`:Dae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=wP.request.defaults(n),this.graphql=Sae(this.request).defaults(n),this.log=$Je(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=xae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var SP="17.0.0";var eze={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`)}var wje=class extends Error{constructor(t,e,r){super(Qje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Sje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Nje=["query","method","url"],Sce=/\/api\/v3\/?$/;function Tje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Nje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Sje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Sce.test(i)&&(s.url=i.replace(Sce,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new wje(s,a,o.data)}return o.data.data})}function mO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Tje(r,s,i),{defaults:mO.bind(null,r),endpoint:r.endpoint})}var SWt=mO(ly,{headers:{"user-agent":`octokit-graphql.js/${bje} ${Yl()}`},method:"POST",url:"/graphql"});function Nce(t){return mO(t,{method:"POST",url:"/graphql"})}var EO="(?:[a-zA-Z0-9_-]+)",Tce="\\.",xce=new RegExp(`^${EO}${Tce}${EO}${Tce}${EO}$`),xje=xce.test.bind(xce);async function Rje(t){let e=xje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function Dje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function kje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Dje(t),e(s)}var Rce=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Rje.bind(null,e),{hook:kje.bind(null,e)})};var CO="7.0.6";var Dce=()=>{},vje=console.warn.bind(console),_je=console.error.bind(console);function Fje(t={}){return typeof t.debug!="function"&&(t.debug=Dce),typeof t.info!="function"&&(t.info=Dce),typeof t.warn!="function"&&(t.warn=vje),typeof t.error!="function"&&(t.error=_je),t}var kce=`octokit-core.js/${CO} ${Yl()}`,VN=class{static VERSION=CO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new rce.Collection,n={baseUrl:ly.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${kce}`:kce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=ly.defaults(n),this.graphql=Nce(this.request).defaults(n),this.log=Fje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Rce(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var IO="17.0.0";var Mje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`)}
`:`${Uce(t.status,e)}
${SO[t.status]}
`}function Yce(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Uce(t,e){if(!Yce(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function Vje(t){return t?qje[t]:void 0}function Wje(t){return t?Yje[t]:void 0}function Jje(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Zs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Gje}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Zs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Zs}#enhanced-caching)** provider.`}function zje(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=Vce(e)?`Entries: ${r} restored (${JN(e,u=>u.restoredSize)}Mb), ${n} saved (${JN(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?Vje(t.cleanup):void 0,o=Wje(t.projectCache),a=jje(t.entries),c=`<pre>
${Kje(t.entries)}</pre>`,A=[SO[t.status],i,o,a,c].filter(Boolean).join(`
`);return`<details>
<summary>${s}</summary>
${A}
</details>`}function Vce(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function jje(t){return Vce(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${Pce(t,e=>e.restoredSize)}</td>
<td>${JN(t,e=>e.restoredSize)}</td>
<td>${Oce(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${Pce(t,e=>e.savedSize)}</td>
<td>${JN(t,e=>e.savedSize)}</td>
<td>${Oce(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function Kje(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Hce(e.restoredSize)}
Time: ${Gce(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Hce(e.savedSize)}
Time: ${Gce(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function Pce(t,e){return t.filter(r=>e(r)).length}function JN(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function Oce(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function Hce(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Gce(t){return t===void 0||t===0?"":`${t} ms`}import*as qB from"path";import*as Tm from"fs";function NO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as ZN from"path";import*as wm from"path";import of from"assert";var Vl=process.platform==="win32";function Eu(t){if(t=mu(t),Vl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=wm.dirname(t);return Vl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function zN(t,e){if(of(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),of(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),dy(e))return e;if(Vl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return of(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(va(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return of(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return of(dy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Vl&&t.endsWith("\\")||(t+=wm.sep),t+e}function dy(t){return of(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=va(t),Vl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function hy(t){return of(t,"isRooted parameter 'itemPath' must not be empty"),t=va(t),Vl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function va(t){return t=t||"",Vl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=va(t),!t.endsWith(wm.sep)||t===wm.sep||Vl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var _a;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(_a||(_a={}));var Wce=process.platform==="win32";function xO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Wce?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=Wce?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Eu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Eu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function Jce(t,e){let r=_a.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function zce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as gAe from"os";import*as Nm from"path";var pAe=pe(fAe(),1);import uf from"assert";import*as cf from"path";import gy from"assert";var IKe=process.platform==="win32",Af=class{constructor(e){if(this.segments=[],typeof e=="string")if(gy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!hy(e))this.segments=e.split(cf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=cf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{gy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];gy(n,"Parameter 'itemPath' must not contain any empty segments"),n=va(e[r]),r===0&&hy(n)?(n=mu(n),gy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(gy(!n.includes(cf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(cf.sep)||IKe&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=cf.sep,e+=this.segments[n];return e}};var{Minimatch:yKe}=pAe.default,Cu=process.platform==="win32",py=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],uf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);uf(A&&dy(A),"Parameter 'segments' first element must be a root path"),i=new Af(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new MI(i));return n.searchPaths.push(..._P(n.patterns)),n})}static stat(e,r,n){return PP(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield rm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){W(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield rm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield rm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){W(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as OP from"crypto";import*as uN from"fs";import*as fAe from"stream";import*as gAe from"util";import*as pAe from"path";var Gze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},qze=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function mAe(t,e){return Gze(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?se:W,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=OP.createHash("sha256"),f=0;try{for(var p=!0,I=qze(r.globGenerator()),E;E=yield I.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${pAe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(uN.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=OP.createHash("sha256");yield gAe.promisify(fAe.pipeline)(uN.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var EAe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function UI(t,e){return EAe(this,void 0,void 0,function*(){return yield AN.create(t,e)})}function CAe(t){return EAe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield UI(e,{followSymbolicLinks:i});return mAe(o,r,s)})}var uue=fe(Aue(),1);import*as wN from"crypto";import*as im from"fs";import*as Yh from"path";import*as lue from"util";var WI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(WI||(WI={}));var Ds;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ds||(Ds={}));var _i;(function(t){t.GNU="gnu",t.BSD="bsd"})(_i||(_i={}));var bN=2,QN=5e3,aO=5e3,AO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,JI="cache.tar",cO="manifest.txt",VVt=10*Math.pow(1024,3);var sm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},PXe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},OXe="1.0";function zI(){return sm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Yh.join(n,"actions","temp")}let r=Yh.join(e,wN.randomUUID());return yield GS(r),r})}function IA(t){return im.statSync(t).size}function uO(t){return sm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield UI(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=PXe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=Yh.relative(a,s).replace(new RegExp(`\\${Yh.sep}`,"g"),"/");W(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function jI(t){return sm(this,void 0,void 0,function*(){return lue.promisify(im.unlink)(t)})}function due(t){return sm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),W(`Checking ${e} ${r.join(" ")}`);try{yield VS(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){W(s.message)}return n=n.trim(),W(n),n})}function KI(){return sm(this,void 0,void 0,function*(){let t=yield due("zstd",["--quiet"]),e=uue.clean(t);return W(`zstd version: ${e}`),t===""?Ds.Gzip:Ds.ZstdWithoutLong})}function Fl(t){return t===Ds.Gzip?WI.Gzip:WI.Zstd}function hue(){return sm(this,void 0,void 0,function*(){return im.existsSync(AO)?AO:(yield due("tar")).toLowerCase().includes("gnu tar")?iu("tar"):""})}function lO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function om(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(OXe),wN.createHash("sha256").update(n.join("|")).digest("hex")}function fue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as _m from"fs";import{URL as hit}from"url";var yA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as HXe}from"node:os";import GXe from"node:util";import qXe from"node:process";function gue(t,...e){qXe.stderr.write(`${GXe.format(t,...e)}${HXe}`)}var pue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Eue,dO=[],hO=[],NN=[];pue&&fO(pue);var Cue=Object.assign(t=>Iue(t),{enable:fO,enabled:gO,disable:YXe,log:gue});function fO(t){Eue=t,dO=[],hO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?hO.push(r.substring(1)):dO.push(r);for(let r of NN)r.enabled=gO(r.namespace)}function gO(t){if(t.endsWith("*"))return!0;for(let e of hO)if(mue(t,e))return!1;for(let e of dO)if(mue(t,e))return!0;return!1}function mue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function YXe(){let t=Eue||"";return fO(""),t}function Iue(t){let e=Object.assign(r,{enabled:gO(t),destroy:VXe,log:Cue.log,namespace:t,extend:WXe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return NN.push(e),e}function VXe(){let t=NN.indexOf(this);return t>=0?(NN.splice(t,1),!0):!1}function WXe(t){let e=Iue(`${this.namespace}:${t}`);return e.log=this.log,e}var am=Cue;var pO=["verbose","info","warning","error"],yue={verbose:400,info:300,warning:200,error:100};function Bue(t,e){e.log=(...r)=>{t.log(...r)}}function bue(t){return pO.includes(t)}function JXe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=am(t.namespace);s.log=(...u)=>{am.log(...u)};function i(u){if(u&&!bue(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${pO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);am.enable(l.join(","))}r&&(bue(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${pO.join(", ")}.`));function o(u){return!!(n&&yue[u.level]<=yue[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Bue(u,d),o(d)){let h=am.disable();am.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return Bue(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var Que=JXe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),zXe=Que.logger;function XI(t){return Que.createClientLogger(t)}function TN(t){return t.toLowerCase()}function*jXe(t){for(let e of t.values())yield[e.name,e.value]}var mO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(TN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(TN(e))?.value}has(e){return this._headersMap.has(TN(e))}delete(e){this._headersMap.delete(TN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${$Xe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function DN(t){return t instanceof ks?!0:Wh(t)&&t.name==="RestError"}function ti(t,e){return Buffer.from(t,e)}import yO from"node:http";import BO from"node:https";import Nue from"node:zlib";import{Transform as eZe}from"node:stream";var Qo=XI("ts-http-runtime");var tZe={};function ZI(t){return t&&typeof t.pipe=="function"}function Tue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function xue(t){return t&&typeof t.byteLength=="number"}var kN=class extends eZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},bO=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new yA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Ta;Qo.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=iZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new kN(f);p.on("error",I=>{Qo.error("Error in upload progress",I)}),ZI(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=rZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?nZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new kN(h);f.on("error",p=>{Qo.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await sZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();ZI(a)&&(c=Tue(a));let u=Promise.resolve();ZI(A)&&(u=Tue(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Qo.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?yO.request(a,A):BO.request(a,A);u.once("error",l=>{c(new ks(l.message,{code:l.code??ks.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new yA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&ZI(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):xue(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Qo.error("Unrecognized body type",n),c(new ks("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?yO.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new yO.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return BO.globalAgent;let s=e.tlsSettings??tZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Qo.info("No cached TLS Agent exist, creating a new Agent"),i=new BO.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function rZe(t){let e=Fi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function nZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Nue.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Nue.createInflate();return t.pipe(n),n}return t}function sZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new ks(`Error reading response as text: ${s.message}`,{code:ks.PARSE_ERROR}))})})}function iZe(t){return t?Buffer.isBuffer(t)?t.length:ZI(t)?null:xue(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Rue(){return new bO}function vN(){return Rue()}var QO="logPolicy";function _N(t={}){let e=t.logger??Qo.info,r=new Ta({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:QO,async sendRequest(n,s){if(!e. Line truncated
`;return e}function N$e(t){return t instanceof Uint8Array?t.byteLength:rT(t)?t.size===-1?void 0:t.size:void 0}function T$e(t){let e=0;for(let r of t){let n=N$e(r);if(n===void 0)return;e+=n}return e}async function x$e(t,e,r){let n=[ti(`--${r}`,"utf-8"),...e.flatMap(i=>[ti(`\r
`,"utf-8"),ti(S$e(i.headers),"utf-8"),ti(`\r
`,"utf-8"),i.body,ti(`\r
--${r}`,"utf-8")]),ti(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new py(i));return n.searchPaths.push(...xO(n.patterns)),n})}static stat(e,r,n){return _O(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Tm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Tm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Tm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var wKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function mAe(t,e){return wKe(this,void 0,void 0,function*(){return yield XN.create(t,e)})}var ule=pe(cle(),1);import*as fT from"crypto";import*as km from"fs";import*as lf from"path";import*as lle from"util";var by;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(by||(by={}));var Ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ts||(Ts={}));var Li;(function(t){t.GNU="gnu",t.BSD="bsd"})(Li||(Li={}));var dT=2,hT=5e3,t3=5e3,r3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Ale=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qy="cache.tar",n3="manifest.txt",pzt=10*Math.pow(1024,3);var Dm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},vZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},_Ze="1.0";function wy(){return Dm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=lf.join(n,"actions","temp")}let r=lf.join(e,fT.randomUUID());return yield kN(r),r})}function xc(t){return km.statSync(t).size}function s3(t){return Dm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield mAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=vZe(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=lf.relative(a,s).replace(new RegExp(`\\${lf.sep}`,"g"),"/");V(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Sy(t){return Dm(this,void 0,void 0,function*(){return lle.promisify(km.unlink)(t)})}function dle(t){return Dm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield FN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){V(s.message)}return n=n.trim(),V(n),n})}function Ny(){return Dm(this,void 0,void 0,function*(){let t=yield dle("zstd",["--quiet"]),e=ule.clean(t);return V(`zstd version: ${e}`),t===""?Ts.Gzip:Ts.ZstdWithoutLong})}function jl(t){return t===Ts.Gzip?by.Gzip:by.Zstd}function hle(){return Dm(this,void 0,void 0,function*(){return km.existsSync(r3)?r3:(yield dle("tar")).toLowerCase().includes("gnu tar")?fu("tar"):""})}function i3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function vm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(_Ze),fT.createHash("sha256").update(n.join("|")).digest("hex")}function fle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as A0 from"fs";import{URL as Cat}from"url";var Rc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as FZe}from"node:os";import MZe from"node:util";import LZe from"node:process";function gle(t,...e){LZe.stderr.write(`${MZe.format(t,...e)}${FZe}`)}import Ty from"node:process";function pT(t){return Ty.env[t]}var ple=typeof Ty.versions.deno=="string"&&Ty.versions.deno.length>0,mle=typeof Ty.versions.bun=="string"&&Ty.versions.bun.length>0,mT=!0;var Ele=pT("DEBUG"),Ile,o3=[],a3=[],ET=[];Ele&&c3(Ele);var yle=Object.assign(t=>Ble(t),{enable:c3,enabled:A3,disable:UZe,log:gle});function c3(t){Ile=t,o3=[],a3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a3.push(r.substring(1)):o3.push(r);for(let r of ET)r.enabled=A3(r.namespace)}function A3(t){if(t.endsWith("*"))return!0;for(let e of a3)if(Cle(t,e))return!1;for(let e of o3)if(Cle(t,e))return!0;return!1}function Cle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function UZe(){let t=Ile||"";return c3(""),t}function Ble(t){let e=Object.assign(r,{enabled:A3(t),destroy:PZe,log:yle.log,namespace:t,extend:OZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ET.push(e),e}function PZe(){let t=ET.indexOf(this);return t>=0?(ET.splice(t,1),!0):!1}function OZe(t){let e=Ble(`${this.namespace}:${t}`);return e.log=this.log,e}var _m=yle;var u3=["verbose","info","warning","error"],ble={verbose:400,info:300,warning:200,error:100};function Qle(t,e){e.log=(...r)=>{t.log(...r)}}function wle(t){return u3.includes(t)}function CT(t){let e=new Set,r=pT(t.logLevelEnvVarName),n,s=_m(t.namespace);s.log=(...u)=>{_m.log(...u)};function i(u){if(u&&!wle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);_m.enable(l.join(","))}r&&(wle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u3.join(", ")}.`));function o(u){return!!(n&&ble[u.level]<=ble[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Qle(u,d),o(d)){let h=_m.disable();_m.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Qle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Sle=CT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),HZe=Sle.logger;function xy(t){return Sle.createClientLogger(t)}function IT(t){return t.toLowerCase()}function GZe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*qZe(t){for(let e of t.values())yield[e.name,e.value]}var l3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(IT(e),{name:e,value:GZe(r)})}get(e){return this._headersMap.get(IT(e))?.value}has(e){return this._ Line truncated
${JZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Fm(t){return t instanceof xs?!0:hf(t)&&t.name==="RestError"}function ei(t,e){return Buffer.from(t,e)}import g3 from"node:http";import p3 from"node:https";import xle from"node:zlib";import{Transform as zZe}from"node:stream";var ti=xy("ts-http-runtime");var jZe={};function Ry(t){return t&&typeof t.pipe=="function"}function Rle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Dle(t){return t&&typeof t.byteLength=="number"}var bT=class extends zZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},m3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Rc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Fa;ti.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=ZZe(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new bT(f);p.on("error",I=>{ti.error("Error in upload progress",I)}),Ry(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=KZe(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?$Ze(A,u):A;let h=e.onDownloadProgress;if(h){let f=new bT(h);f.on("error",p=>{ti.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await XZe(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ry(a)&&(A=Rle(a));let u=Promise.resolve();Ry(c)&&(u=Rle(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ti.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?g3.request(a,c):p3.request(a,c);u.once("error",l=>{A(new xs(l.message,{code:l.code??xs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Rc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Ry(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Dle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ti.error("Unrecognized body type",n),A(new xs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p3.globalAgent;let s=e.tlsSettings??jZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ti.info("No cached TLS Agent exist, creating a new Agent"),i=new p3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function KZe(t){let e=Ui();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function $Ze(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=xle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=xle.createInflate();return t.pipe(n),n}return t}function XZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new xs(`Error reading response as text: ${s.message}`,{code:xs.PARSE_ERROR}))})})}function ZZe(t){return t?Buffer.isBuffer(t)?t.length:Ry(t)?null:Dle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function kle(){return new m3}function QT(){return kle()}var E3="logPolicy";function wT(t={}){let e=t.logger??ti.info,r=new Fa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E3,asy Line truncated
`;return e}function Btt(t){return t instanceof Uint8Array?t.byteLength:vy(t)?t.size===-1?void 0:t.size:void 0}function btt(t){let e=0;for(let r of t){let n=Btt(r);if(n===void 0)return;e+=n}return e}async function Qtt(t,e,r){let n=[ei(`--${r}`,"utf-8"),...e.flatMap(i=>[ei(`\r
`,"utf-8"),ei(ytt(i.headers),"utf-8"),ei(`\r
`,"utf-8"),i.body,ei(`\r
--${r}`,"utf-8")]),ei(`--\r
\r
`,"utf-8")],s=T$e(n);s&&t.headers.set("Content-Length",s),t.body=await Sle(n)}var ty="multipartPolicy",R$e=70,D$e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function k$e(t){if(t.length>R$e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!D$e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function nT(){return{name:ty,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?k$e(r):r=w$e(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await x$e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function sT(){return RN()}import{EOL as _$e}from"node:os";import F$e from"node:util";import*as Nle from"node:process";function Tle(t,...e){Nle.stderr.write(`${F$e.format(t,...e)}${_$e}`)}var xle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Rle,GO=[],qO=[],iT=[];xle&&YO(xle);var Dle=Object.assign(t=>kle(t),{enable:YO,enabled:VO,disable:M$e,log:Tle});function YO(t){Rle=t,GO=[],qO=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?qO.push(new RegExp(`^${n.substr(1)}$`)):GO.push(new RegExp(`^${n}$`));for(let n of iT)n.enabled=VO(n.namespace)}function VO(t){if(t.endsWith("*"))return!0;for(let e of qO)if(e.test(t))return!1;for(let e of GO)if(e.test(t))return!0;return!1}function M$e(){let t=Rle||"";return YO(""),t}function kle(t){let e=Object.assign(r,{enabled:VO(t),destroy:L$e,log:Dle.log,namespace:t,extend:U$e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return iT.push(e),e}function L$e(){let t=iT.indexOf(this);return t>=0?(iT.splice(t,1),!0):!1}function U$e(t){let e=kle(`${this.namespace}:${t}`);return e.log=this.log,e}var fm=Dle;var _le=new Set,oT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,WO,JO=fm("azure");JO.log=(...t)=>{fm.log(...t)};var zO=["verbose","info","warning","error"];oT&&(Lle(oT)?P$e(oT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${oT}'; logging is not enabled. Acceptable values: ${zO.join(", ")}.`));function P$e(t){if(t&&!Lle(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${zO.join(",")}`);WO=t;let e=[];for(let r of _le)Mle(r)&&e.push(r.namespace);fm.enable(e.join(","))}var vle={verbose:400,info:300,warning:200,error:100};function To(t){let e=JO.extend(t);return Fle(JO,e),{error:aT(e,"error"),warning:aT(e,"warning"),info:aT(e,"info"),verbose:aT(e,"verbose")}}function Fle(t,e){e.log=(...r)=>{t.log(...r)}}function aT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Fle(t,r),Mle(r)){let n=fm.disable();fm.enable(n+","+r.namespace)}return _le.add(r),r}function Mle(t){return!!(WO&&vle[t.level]<=vle[WO])}function Lle(t){return zO.includes(t)}var bA=To("core-rest-pipeline");function jO(t={}){return _N({logger:bA.info,...t})}var KO=FN;function XO(t={}){return MN(t)}import ZO from"node:os";import $O from"node:process";function Ule(){return"User-Agent"}async function Ple(t){if($O&&$O.versions){let e=`${ZO.type()} ${ZO.release()}; ${ZO.arch()}`,r=$O.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var AT="1.22.2";function W$e(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Ole(){return Ule()}async function cT(t){let e=new Map;e.set("core-rest-pipeline",AT),await Ple(e);let r=W$e(e);return t?`${t} ${r}`:r}var Hle=Ole(),Gle="userAgentPolicy";function e3(t={}){let e=cT(t.userAgentPrefix);return{name:Gle,async sendRequest(r,n){return r.headers.has(Hle)||r.headers.set(Hle,await e),n(r)}}}var ry=class extends Error{constructor(e){super(e),this.name="AbortError"}};function t3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new ry(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var X$e="The delay was aborted.";function gm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return t3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??X$e})}function Ll(t){if(Wh(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function qle(t){return Wh(t)}function pm(){return Vh()}var Ot=jh;var Yle=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!btt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,vs(t,i))}let c=Ett(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",vs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Rde(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,vs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",vs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",vs(t,o));{let l=r.pop();if(A!==l.tagName){let d=vs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",vs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",vs(t,i));else{let l=Rde(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,vs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",vs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=xde(t,i);continue}else if(t[i+1]==="?"){if(i=Tde(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ytt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",vs(t,i));i=l}else if(s===!0&&!Nde(t[i]))return Zr("InvalidXml","Extra text at the end",vs(t,i));t[i]==="<"&&i--}}else{if(Nde(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",vs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",vs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Nde(t){return t===" "||t===" "||t===`
`||t==="\r"}function Tde(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",vs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function xde(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var ptt='"',mtt="'";function Ett(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===ptt||t[e]===mtt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Ctt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Rde(t,e){let r=yT(t,Ctt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",fy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",fy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",fy(r[s]));let i=r[s][2];if(!Btt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",fy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",fy(r[s]))}return!0}function Itt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function ytt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Itt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Btt(t){return Im(t)}function btt(t){return Im(t)}function vs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function fy(t){return t.startIndex+t[1].length}var Dde=t=>hy.includes(t)?"__"+t:t,Qtt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Dde};function wtt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(hy.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(BT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function kde(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:kde(!0)}var vde=function(t){let e=Object.assign({},Qtt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&wtt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=Dde),e.processEntities=kde(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var QT;typeof Symbol!="function"?QT="@@xmlMetadata":QT=Symbol("XML Node Metadata");var si=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new si("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new py(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=ef(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=v3(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=_3(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new si(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=ef(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=ef(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=_3(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=v3(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=Mtt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=Ftt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new si(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=v3(this.options.transformTagName,A,u,this.options));let y=new si(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new si(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new si(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function qtt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Ytt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function P3(t,e){let r="";e.format&&e.indentBy.length>0&&(r=$tt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Pi(o)):o instanceof Pi&&n.push(o)}let s=new SA;return Ude(t,e,r,s,n)}function Ude(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=U3(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Ode(A);if(c===void 0)continue;let u=ert(A[":@"],e);n.push(c,u);let l=rrt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=U3(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=Lde(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=Lde(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=Pde(A[c],e):p=Ude(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function ert(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function Pde(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Ode(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=trt(s[":@"],e),a=Pde(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function trt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Ode(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Lde(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=U3(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function rrt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function U3(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function O3(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var nrt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function oi(t){if(this.options=Object.assign({},nrt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Pi(r)):r instanceof Pi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=O3(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ort),this.processTextOrObjNode=srt,this.options.format?(this.indentate=irt,this.tagEndChar=`>
`,"utf-8")],s=btt(n);s&&t.headers.set("Content-Length",s),t.body=await Qde(n)}var _y="multipartPolicy",wtt=70,Stt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ntt(t){if(t.length>wtt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Stt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function JT(){return{name:_y,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Ntt(r):r=Itt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Qtt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function zT(){return BT()}var wde=CT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),EXt=wde.logger;function Do(t){return wde.createClientLogger(t)}var kc=Do("core-rest-pipeline");function M3(t={}){return wT({logger:kc.info,...t})}var L3=VT;function U3(t={}){return WT(t)}import P3 from"node:os";import Xl from"node:process";function Sde(){return"User-Agent"}async function Nde(t){if(Xl&&Xl.versions){let e=`${P3.type()} ${P3.release()}; ${P3.arch()}`;Xl.versions.bun?t.set("Bun",`${Xl.versions.bun} (${e})`):Xl.versions.deno?t.set("Deno",`${Xl.versions.deno} (${e})`):Xl.versions.node&&t.set("Node",`${Xl.versions.node} (${e})`)}}var jT="1.24.0";function Ftt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Tde(){return Sde()}async function KT(t){let e=new Map;e.set("core-rest-pipeline",jT),await Nde(e);let r=Ftt(e);return t?`${t} ${r}`:r}var xde=Tde(),Rde="userAgentPolicy";function O3(t={}){let e=KT(t.userAgentPrefix);return{name:Rde,async sendRequest(r,n){return r.headers.has(xde)||r.headers.set(xde,await e),n(r)}}}var Dde=Symbol("rawContent");function H3(t){return typeof t[Dde]=="function"}function kde(t){return H3(t)?t[Dde]():t}var $T=_y;function G3(){let t=JT();return{name:$T,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H3(n.body)&&(n.body=kde(n.body));return t.sendRequest(e,r)}}}var q3=qT;function Y3(){return YT()}function V3(t={}){return TT(t)}function W3(){return xT()}var Fy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Fy(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Ytt="The delay was aborted.";function Hm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Ytt})}function Zl(t){if(hf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function vde(t){return hf(t)}function Gm(){return df()}var Wt=mT;function ed(t){return k3(t)}function j3(t,e){return GT(t,e)}var _de="setClientRequestIdPolicy";function K3(t="x-ms-client-request-id"){return{name:_de,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $3(t){return RT(t)}function X3(t){return DT(t)}var qm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Fde(t={}){let e=new Z3(t.parentContext);return t.span&&(e=e.setValue(qm.span,t.span)),t.namespace&&(e=e.setValue(qm.namespace,t.namespace)),e}var Z3=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Lde=pe(Mde(),1),ZT=Lde.state;function Vtt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Wtt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Vtt(),tracingContext:Fde({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function My(){return ZT.instrumenterImplementation||(ZT.instrumenterImplementation=Wtt()),ZT.instrumenterImplementation}function Ly(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=My().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!fnt(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Xr("InvalidTag",l,Rs(t,i))}let A=Ant(t,i);if(A===!1)return Xr("InvalidAttr","Attributes for '"+c+"' have open quote.",Rs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Ehe(u,e);if(d===!0)n=!0;else return Xr(d.err.code,d.err.msg,Rs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Rs(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+c+"' has not been opened.",Rs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Rs(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Rs(t,o))}r.length==0&&(s=!0)}}else return Xr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Rs(t,i));else{let l=Ehe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rs(t,i-u.length+l.err.line));if(s===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=mhe(t,i);continue}else if(t[i+1]==="?"){if(i=phe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=dnt(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rs(t,i));i=l}else if(s===!0&&!ghe(t[i]))return Xr("InvalidXml","Extra text at the end",Rs(t,i));t[i]==="<"&&i--}}else{if(ghe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rs(t,i))}if(n){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rs(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function ghe(t){return t===" "||t===" "||t===`
`||t==="\r"}function phe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function mhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var ant='"',cnt="'";function Ant(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===ant||t[e]===cnt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var unt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ehe(t,e){let r=cx(t,unt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Jy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Jy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Jy(r[s]));let i=r[s][2];if(!hnt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Jy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Jy(r[s]))}return!0}function lnt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function dnt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lnt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function hnt(t){return m8(t)}function fnt(t){return m8(t)}function Rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Jy(t){return t.startIndex+t[1].length}var Che={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Ihe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},yhe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ii("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Ky(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=jm(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=w8(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=S8(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ii(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=jm(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=jm(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=S8(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=w8(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=Ont(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Pnt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ii(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w8(s.transformTagName,l,h,s));let O=new ii(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ii(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ii(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Wnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Jnt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function znt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function jnt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Knt(t,e,r=">"){Line truncated
`;function sst(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k8(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Jhe(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D8(t,e){let r="";e.format&&(r=nst);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Gi(a)):a instanceof Gi&&n.push(a)}let s=sst(t,e),i=new Fc;return zhe(t,e,r,i,n,s)}function zhe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=R8(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k8(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Jhe(u,!1,e,n,i),h=ist(A[":@"],e);n.push(d,h);let f=ast(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R8(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=Cx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Ex(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Whe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Whe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=jhe(A[u],e):C=zhe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function ist(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=nd(t[s]),n=!0}return n?r:null}function jhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=k8(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=ost(s[":@"],e),a=jhe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function ost(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${nd(s)}"`}return r}function k8(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Whe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Jhe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R8(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${nd(A)}"`}return i}function ast(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function R8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function v8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var cst={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ai(t){if(this.options=Object.assign({},cst,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Gi(r)):r instanceof Gi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}oi.prototype.build=function(t){if(this.options.preserveOrder)return P3(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new SA;return this.j2x(t,0,e).val}};oi.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};oi.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function srt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}oi.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};oi.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};oi.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Ast(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function _8(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ai.prototype.build=function(t){if(this.options.preserveOrder)return D8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Fc,r=Ast(t,this.options);return this.j2x(t,0,e,r).val}};ai.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:_8(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=_8(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_8(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ai.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+nd(e)+'"'};function ust(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}ai.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=nd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=nd(t[n]),r=!0)}return r?e:null};ai.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>FT(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=kT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=vT(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Mr=class extends rf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new yy(e,r,this)}computeHMACSHA256(e){return prt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var gn=To("storage-common");var xo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(xo||(xo={}));var Gl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mrt=new nf("The operation was aborted."),By=class extends NA{retryOptions;constructor(e,r,n=Gl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Gl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Gl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Gl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Gl.maxRetryDelayInMs):Gl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Gl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Gl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=DT(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Hl(s.url,fu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(gn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return gn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return gn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return gn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(gn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case xo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case xo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return gn.info(`RetryPolicy: Delay for ${s}ms`),_T(s,n,mrt)}};var by=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new By(e,r,this.retryOptions)}};var Ert="storageBrowserPolicy";function Vde(){return{name:Ert,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=Hl(t.url,fu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Crt="StorageCorrectContentLengthPolicy";function Wde(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Crt,async sendRequest(e,r){return t(e),r(e)}}}var Irt="storageRetryPolicy",Bm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},yrt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Brt=new nf("The operation was aborted.");function Jde(t={}){let e=t.retryPolicyType??Bm.retryPolicyType,r=t.maxTries??Bm.maxTries,n=t.retryDelayInMs??Bm.retryDelayInMs,s=t.maxRetryDelayInMs??Bm.maxRetryDelayInMs,i=t.secondaryHost??Bm.secondaryHost,o=t.tryTimeoutInMs??Bm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return gn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of yrt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>Rx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Nx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Tx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Mr=class extends bf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new tB(e,r,this)}computeHMACSHA256(e){return Bst("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Qf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=Do("storage-common");var ko;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ko||(ko={}));var id={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bst=new Qf("The operation was aborted."),rB=class extends Mc{retryOptions;constructor(e,r,n=id){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:id.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):id.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:id.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:id.maxRetryDelayInMs):id.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:id.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:id.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Sx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=sd(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(pn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return pn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return pn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case ko.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ko.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),xx(s,n,bst)}};var nB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new rB(e,r,this.retryOptions)}};var Qst="storageBrowserPolicy";function efe(){return{name:Qst,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=sd(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var wst="StorageCorrectContentLengthPolicy";function tfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:wst,async sendRequest(e,r){return t(e),r(e)}}}var Sst="storageRetryPolicy",$m={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Nst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Tst=new Qf("The operation was aborted.");function rfe(t={}){let e=t.retryPolicyType??$m.retryPolicyType,r=t.maxTries??$m.maxTries,n=t.retryDelayInMs??$m.retryDelayInMs,s=t.maxRetryDelayInMs??$m.maxRetryDelayInMs,i=t.secondaryHost??$m.secondaryHost,o=t.tryTimeoutInMs??$m.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Nst)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=brt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>FT(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=kT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=vT(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:Qrt,async sendRequest(i,o){return e(i),o(i)}}}var wrt="storageRequestFailureDetailsParserPolicy";function zde(){return{name:wrt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as Srt}from"node:crypto";var MT=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Srt("sha256",this.key).update(e,"utf8").digest("base64")}};var LT="12.31.0",UT="2026-02-06";var PT="https://storage.azure.com/.default",gu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var xa="",W3="*",Nrt=1*1024*1024;var Trt=4*Nrt;var jde="AES256",Kde="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Xde=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Zde=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],$de="BlobUsesCustomerSpecifiedEncryption",ehe="BlobDoesNotUseCustomerSpecifiedEncryption",the=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Qy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function $r(t,e={}){t||(t=new wr);let r=new Qy([],e);return r._credential=t,r}function xrt(t){let e=[Rrt,rhe,Drt,krt,vrt,_rt,Mrt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Frt(s));return{wrappedPolicies:x3(r),afterRetry:n}}}}function J3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?R3(e):Y3(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${LT}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=ay({...r,loggingOptions:{additionalAllowedHeaderNames:Xde,additionalAllowedQueryParameters:Zde,logger:ST.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:wT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:G3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:i3}),s.addPolicy(Wde()),s.addPolicy(Jde(r.retryOptions),{phase:"Retry"}),s.addPolicy(zde()),s.addPolicy(Vde());let a=xrt(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=z3(t);Li(A)?s.addPolicy(Em({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new _a(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Rst(t,e){if(t=hf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Dst(t,e){if(t=hf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function kst(t,e){if(t=hf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function vst(t,e){if(t=hf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function _st(t,e){if(t=hf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Fst(t,e){if(t=hf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _a(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function df(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function hf(t){let e=t.version?t.version:UT;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var My=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=pm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==xa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==xa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==xa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==xa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==xa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==xa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==xa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==xa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};km.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Yy=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var sit=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},y5=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);se(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function gfe(t,e,r){return sit(this,void 0,void 0,function*(){var n;let s=new Fa(t),i=s.getBlockBlobClient(),o=new y5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),W(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new vx(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as mfe from"buffer";import*as WA from"fs";import*as Efe from"stream";import*as Cfe from"util";var _x=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Fx(t){return t?t>=200&&t<300:!1}function iit(t){return t?t>=500:!0}function oit(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function ait(t){return _x(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function pfe(t,e,r){return _x(this,arguments,void 0,function*(n,s,i,o=bN,a=QN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!iit(d)))return l;if(d&&(h=oit(d),c=`Cache service responded with ${d}`),W(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){W(`${n} - Error is not retryable`);break}yield ait(a),u++}throw Error(`${n} failed: ${c}`)})}function Vy(t,e){return _x(this,arguments,void 0,function*(r,n,s=bN,i=QN){return yield pfe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof gA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function vm(t,e){return _x(this,arguments,void 0,function*(r,n,s=bN,i=QN){return yield pfe(r,n,o=>o.message.statusCode,s,i)})}var _o=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Ait(t,e){return _o(this,void 0,void 0,function*(){yield Cfe.promisify(Efe.pipeline)(t.message,e)})}var Mx=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,W(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);se(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])W(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function w5(t,e,r){return Ai(this,void 0,void 0,function*(){let n=new hit(t),s=bfe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield yfe(t,e,s):s.concurrentBlobDownloads?yield Ife(t,e,s):yield Lx(t,e):yield Lx(t,e)})}function Rfe(t,e,r){return Ai(this,void 0,void 0,function*(){let n=Q5(),s=om(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield Vy("reserveCache",()=>Ai(this,void 0,void 0,function*(){return n.postJson(Jy("caches"),i)}))})}function Tfe(t,e){return`bytes ${t}-${e}/*`}function mit(t,e,r,n,s){return Ai(this,void 0,void 0,function*(){W(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Tfe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Tfe(n,s)},o=yield vm(`uploadChunk (start: ${n}, end: ${s})`,()=>Ai(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Fx(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Eit(t,e,r,n){return Ai(this,void 0,void 0,function*(){let s=IA(r),i=Jy(`caches/${e.toString()}`),o=_m.openSync(r,"r"),a=B5(n),A=lO("uploadConcurrency",a.uploadConcurrency),c=lO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];W("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Ai(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield mit(t,i,()=>_m.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{_m.closeSync(o)}})}function Cit(t,e,r){return Ai(this,void 0,void 0,function*(){let n={size:r};return yield Vy("commitCache",()=>Ai(this,void 0,void 0,function*(){return t.postJson(Jy(`caches/${e.toString()}`),n)}))})}function S5(t,e,r,n){return Ai(this,void 0,void 0,function*(){if(B5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield gfe(r,e,n)}else{let i=Q5();W("Upload cache"),yield Eit(i,t,e,n),W("Commiting cache");let o=IA(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Cit(i,t,o);if(!Fx(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var bge=fe(mH(),1),tn=fe(ct(),1),Gi=fe(ct(),1),yf=fe(ct(),1),Bf=fe(ct(),1),bf=fe(ct(),1);var yH=fe(ct(),1),BH=fe(ct(),1),Ige=fe(ct(),1),yge=fe(ct(),1),Bge=fe(ct(),1);var EH=fe(ct(),1),CH=fe(ct(),1),mge=fe(ct(),1),Ege=fe(ct(),1),Cge=fe(ct(),1),IH=class extends Cge.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Ege.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,mge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?CH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,EH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,EH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?CH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},QR=new IH;var bH=class extends Bge.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>QR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,yge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ige.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(QR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?BH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,yH.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)QR.internalBinaryWrite(e.scope[i],r.tag(2,yH.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?BH.UnknownFieldHandler.onWrite Line truncated
`));let n=yield UH(r,"create");yield PH(n,t)})}var Xm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Ua=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Km=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},NR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Nge(t){if(!t||t.length===0)throw new Ua("Path Validation Error: At least one directory or file path is required")}function GH(t){if(t.length>512)throw new Ua(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ua(`Key Validation Error: ${t} cannot contain commas.`)}function Tge(){return Wy()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function xge(t,e,r,n){return Xm(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=Wy();return W(`Cache service version: ${c}`),Nge(s),c==="v2"?yield Mat(s,i,o,a,A):yield Fat(s,i,o,a,A)})}function Fat(t,e,r,n){return Xm(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(W("Resolved Keys:"),W(JSON.stringify(c)),c.length>10)throw new Ua("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)GH(d);let u=yield KI(),l="";try{let d=yield xfe(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),d.cacheKey;l=cB.join(yield zI(),Fl(u)),W(`Archive Path: ${l}`),yield w5(d.archiveLocation,l,a),Rl()&&(yield AB(l,u));let h=IA(l);return se(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield OH(l,u),se("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Ua.name)throw d;h instanceof gA&&typeof h.statusCode=="number"&&h.statusCode>=500?ou(`Failed to restore: ${d.message}`):et(`Failed to restore: ${d.message}`)}finally{try{yield jI(l)}catch(d){W(`Failed to delete archive: ${d}`)}}})}function Mat(t,e,r,n){return Xm(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(W("Resolved Keys:"),W(JSON.stringify(c)),c.length>10)throw new Ua("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)GH(l);let u="";try{let l=LH(),d=yield KI(),h={key:i,restoreKeys:o,version:om(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){W(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?se(`Cache hit for restore-key: ${f.matchedKey}`):se(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return se("Lookup only - skipping download"),f.matchedKey;u=cB.join(yield zI(),Fl(d)),W(`Archive path: ${u}`),W(`Starting download of archive to: ${u}`),yield w5(f.signedDownloadUrl,u,a);let I=IA(u);return se(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Rl()&&(yield AB(u,d)),yield OH(u,d),se("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Ua.name)throw l;d instanceof gA&&typeof d.statusCode=="number"&&d.statusCode>=500?ou(`Failed to restore: ${l.message}`):et(`Failed to restore: ${l.message}`)}finally{try{u&&(yield jI(u))}catch(l){W(`Failed to delete archive: ${l}`)}}})}function Rge(t,e,r){return Xm(this,arguments,void 0,function*(n,s,i,o=!1){let a=Wy();return W(`Cache service version: ${a}`),Nge(n),GH(s),a==="v2"?yield Uat(n,s,i,o):yield Lat(n,s,i,o)})}function Lat(t,e,r){return Xm(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield KI(),h=-1,f=yield uO(n);if(W("Cache Paths:"),W(`${JSON.stringify(f)}`),f.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.");let p=yield zI(),I=cB.join(p,Fl(d));W(`Archive Path: ${I}`);try{yield HH(p,f,d),Rl()&&(yield AB(I,d));let E=10*1024*1024*1024,C=IA(I);if(W(`File Size: ${C}`),C>E&&!b5())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);W("Reserving Cache");let y=yield Rfe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Km(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);W(`Saving Cache (ID: ${h})`),yield S5(h,I,"",i)}catch(E){let C=E;if(C.name===Ua.name)throw E;C.name Line truncated
`+n(i)+s(i),a=xst("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Rx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Nx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Tx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Rst,async sendRequest(i,o){return e(i),o(i)}}}var Dst="storageRequestFailureDetailsParserPolicy";function nfe(){return{name:Dst,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as kst}from"node:crypto";var Dx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return kst("sha256",this.key).update(e,"utf8").digest("base64")}};var kx="12.31.0",vx="2026-02-06";var _x="https://storage.azure.com/.default",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ma="",O8="*",vst=1*1024*1024;var _st=4*vst;var sfe="AES256",ife="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",ofe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],afe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],cfe="BlobUsesCustomerSpecifiedEncryption",Afe="BlobDoesNotUseCustomerSpecifiedEncryption",ufe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var sB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new sB([],e);return r._credential=t,r}function Fst(t){let e=[Mst,lfe,Lst,Ust,Pst,Ost,Gst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Hst(s));return{wrappedPolicies:g8(r),afterRetry:n}}}}function H8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p8(e):U8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${kx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Oy({...r,loggingOptions:{additionalAllowedHeaderNames:ofe,additionalAllowedQueryParameters:afe,logger:yx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ix,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q3}),s.addPolicy(tfe()),s.addPolicy(rfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(nfe()),s.addPolicy(efe());let a=Fst(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G8(t);Oi(c)?s.addPolicy(Ym({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ha(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Mot(t,e){if(t=vf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Lot(t,e){if(t=vf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Uot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Pot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Oot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Hot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function kf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vf(t){let e=t.version?t.version:vx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var pB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Gm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};a0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Mf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More 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`),this.name="UsageError"}};Mf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var uat=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},gH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ne(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Qge(t,e,r){return uat(this,void 0,void 0,function*(){var n;let s=new Ga(t),i=s.getBlockBlobClient(),o=new gH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),V(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new TR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Sge from"buffer";import*as tA from"fs";import*as Nge from"stream";import*as Tge from"util";var xR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function RR(t){return t?t>=200&&t<300:!1}function lat(t){return t?t>=500:!0}function dat(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function hat(t){return xR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function wge(t,e,r){return xR(this,arguments,void 0,function*(n,s,i,o=dT,a=hT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!lat(d)))return l;if(d&&(h=dat(d),A=`Cache service responded with ${d}`),V(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){V(`${n} - Error is not retryable`);break}yield hat(a),u++}throw Error(`${n} failed: ${A}`)})}function wB(t,e){return xR(this,arguments,void 0,function*(r,n,s=dT,i=hT){return yield wge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Qc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function c0(t,e){return xR(this,arguments,void 0,function*(r,n,s=dT,i=hT){return yield wge(r,n,o=>o.message.statusCode,s,i)})}var Lo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function fat(t,e){return Lo(this,void 0,void 0,function*(){yield Tge.promisify(Nge.pipeline)(t.message,e)})}var DR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,V(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ne(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function CH(t,e,r){return Ai(this,void 0,void 0,function*(){let n=new Cat(t),s=kge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Rge(t,e,s):s.concurrentBlobDownloads?yield xge(t,e,s):yield kR(t,e):yield kR(t,e)})}function Pge(t,e,r){return Ai(this,void 0,void 0,function*(){let n=EH(),s=vm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield wB("reserveCache",()=>Ai(this,void 0,void 0,function*(){return n.postJson(NB("caches"),i)}))})}function Lge(t,e){return`bytes ${t}-${e}/*`}function bat(t,e,r,n,s){return Ai(this,void 0,void 0,function*(){V(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Lge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Lge(n,s)},o=yield c0(`uploadChunk (start: ${n}, end: ${s})`,()=>Ai(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!RR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Qat(t,e,r,n){return Ai(this,void 0,void 0,function*(){let s=xc(r),i=NB(`caches/${e.toString()}`),o=A0.openSync(r,"r"),a=pH(n),c=i3("uploadConcurrency",a.uploadConcurrency),A=i3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Ai(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield bat(t,i,()=>A0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{A0.closeSync(o)}})}function wat(t,e,r){return Ai(this,void 0,void 0,function*(){let n={size:r};return yield wB("commitCache",()=>Ai(this,void 0,void 0,function*(){return t.postJson(NB(`caches/${e.toString()}`),n)}))})}function IH(t,e,r,n){return Ai(this,void 0,void 0,function*(){if(pH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Qge(r,e,n)}else{let i=EH();V("Upload cache"),yield Qat(i,t,e,n),V("Commiting cache");let o=xc(e);ne(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield wat(i,t,o);if(!RR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ne("Cache saved successfully")}})}var kpe=pe(l9(),1),tn=pe(ct(),1),Vi=pe(ct(),1),Hf=pe(ct(),1),Gf=pe(ct(),1),qf=pe(ct(),1);var g9=pe(ct(),1),p9=pe(ct(),1),xpe=pe(ct(),1),Rpe=pe(ct(),1),Dpe=pe(ct(),1);var d9=pe(ct(),1),h9=pe(ct(),1),Spe=pe(ct(),1),Npe=pe(ct(),1),Tpe=pe(ct(),1),f9=class extends Tpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Npe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Spe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?h9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,d9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,d9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?h9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},CD=new f9;var m9=class extends Dpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>CD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Rpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(CD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?p9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,g9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)CD.internalBinaryWrite(e.scope[i],r.tag(2,g9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?p9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield k9(r,"create");yield v9(n,t)})}var S0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Va=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},w0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},BD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Mpe(t){if(!t||t.length===0)throw new Va("Path Validation Error: At least one directory or file path is required")}function M9(t){if(t.length>512)throw new Va(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Va(`Key Validation Error: ${t} cannot contain commas.`)}function Lpe(){return SB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Upe(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=SB();return V(`Cache service version: ${A}`),Mpe(s),A==="v2"?yield GAt(s,i,o,a,c):yield HAt(s,i,o,a,c)})}function HAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)M9(d);let u=yield Ny(),l="";try{let d=yield Uge(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ne("Lookup only - skipping download"),d.cacheKey;l=qB.join(yield wy(),jl(u)),V(`Archive Path: ${l}`),yield CH(d.archiveLocation,l,a),ql()&&(yield GB(l,u));let h=xc(l);return ne(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield _9(l,u),ne("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Va.name)throw d;h instanceof Qc&&typeof h.statusCode=="number"&&h.statusCode>=500?Qo(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{yield Sy(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function GAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)M9(l);let u="";try{let l=D9(),d=yield Ny(),h={key:i,restoreKeys:o,version:vm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?ne(`Cache hit for restore-key: ${f.matchedKey}`):ne(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ne("Lookup only - skipping download"),f.matchedKey;u=qB.join(yield wy(),jl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield CH(f.signedDownloadUrl,u,a);let I=xc(u);return ne(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),ql()&&(yield GB(u,d)),yield _9(u,d),ne("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Va.name)throw l;d instanceof Qc&&typeof d.statusCode=="number"&&d.statusCode>=500?Qo(`Failed to restore: ${l.message}`):Xe(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Sy(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function Ppe(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){let a=SB();return V(`Cache service version: ${a}`),Mpe(n),M9(s),a==="v2"?yield YAt(n,s,i,o):yield qAt(n,s,i,o)})}function qAt(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Ny(),h=-1,f=yield s3(n);if(V("Cache Paths:"),V(`${JSON.stringify(f)}`),f.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.");let p=yield wy(),I=qB.join(p,jl(d));V(`Archive Path: ${I}`);try{yield F9(p,f,d),ql()&&(yield GB(I,d));let m=10*1024*1024*1024,C=xc(I);if(V(`File Size: ${C}`),C>m&&!mH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield Pge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new w0(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield IH(h,I,"",i)}catch(m){let C=m;if(C.name===Va.name)throw m;C.name Line truncated
<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,s=FR(),i=yo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")et(Wat(o));else throw o}}function Wat(t){let e=`Failed to generate PR comment.
${t}`,s=JB(),i=Fi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe($At(o));else throw o}}function $At(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function Jat(t){return`${jat()}
${Xat(t)}`}function zat(){let t=_ge();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function jat(){let t=vge();return t.length===0?"":`
`:e}function XAt(t){return`${eut()}
${rut(t)}`}function ZAt(){let t=qpe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function eut(){let t=Gpe();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${xR()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${QD()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${Kat(e)}</li>`).join("")}
${t.map(e=>`<li>${tut(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function Kat(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Xat(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function tut(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function rut(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -271,80 +308,85 @@ This job uses deprecated functionality from the <code>${xR()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>$at(e)).join("")}
</tr>${t.map(e=>sut(e)).join("")}
</table>
`}function Zat(t){return t.some(e=>e.buildFailed)}function $at(t){return`
`}function nut(t){return t.some(e=>e.buildFailed)}function sut(t){return`
<tr>
<td>${Uge(t.rootProjectName,30)}</td>
<td>${Uge(t.requestedTasks,60)}</td>
<td>${Jpe(t.rootProjectName,30)}</td>
<td>${Jpe(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${eAt(t)}</td>
<td>${tAt(t)}</td>
</tr>`}function eAt(t){return t.buildFailed?":x:":":white_check_mark:"}function tAt(t){return t.buildScanFailed?YH({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?YH({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):YH({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function YH({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Uge(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var Oge=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Uo from"fs";import*as wu from"path";function Hge(){return qge().map(e=>{let r=Uo.readFileSync(e,"utf8"),n=JSON.parse(r);return sAt(e,n),n})}function Gge(){qge().forEach(oAt)}function qge(){let t=wu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Uo.existsSync(t)?Uo.readdirSync(t).map(e=>wu.resolve(t,e)).filter(e=>wu.extname(e)===".json"&&!iAt(e)):[]}function sAt(t,e){let r=wu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Uo.existsSync(r))return;let n=wu.resolve(r,wu.basename(t));if(Uo.existsSync(n)){let s=Uo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function iAt(t){let e=`${t}.processed`;return Uo.existsSync(e)}function oAt(t){let e=`${t}.processed`;Uo.writeFileSync(e,"")}import*as Jge from"fs";import*as zge from"path";import{pathToFileURL as cAt}from"url";import*as WH from"path";var Yge="BASIC_CACHE_PRIMARY_KEY",VH="BASIC_CACHE_RESTORED_KEY",aAt="setup-java",Vge=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],MR=class{async restore(e,r){let n=Wge(e),s=await AAt();TI(Yge,s);try{let i=await xge(n,s);i?(TI(VH,i),se(`Basic caching restored from cache key: ${i}`)):se("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){et(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=EA(VH);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=EA(Yge);if(EA(VH)===s)return se(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=Wge(e);try{return await Rge(o,s),se(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return et(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Wge(t){return[WH.join(t,"caches"),WH.join(t,"wrapper")]}async function AAt(){let t=await CAe(Vge.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Vge}], make sure you have checked out the target repository`);return`${aAt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var uAt=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,lAt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",dAt=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,hAt="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",fAt=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,zH=class{async restore(e,r){}async save(e,r,n){return uAt}},LR=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function jge(t){if(t.isCacheDisabled())return JH("Cache is disabled: will not restore state from previous builds."),new zH;if(t.getCacheProvider()==="basic")return JH(hAt),new LR(new MR,fAt);JH(lAt);let e=await gAt();return t.isCacheLicenseAccepted()?e:new LR(e,dAt)}async function gAt(){let t=pAt();return await import(cAt(t).href)}function pAt(){let t=import.meta.dirname,e=zge.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Jge.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function JH(t){console.info(t)}import*as epe from"util";var bAt=fe($ge(),1);import*as jH from"fs";var Kur=epe.promisify(jH.readdir);var wAt={_useHtmlParser2:!1};function $m(t,e){if(!t)return e??wAt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var C9={};ga(C9,{contains:()=>ZR,extract:()=>Cct,html:()=>gct,merge:()=>bpe,parseHTML:()=>mct,root:()=>Ect,text:()=>Rf,xml:()=>pct});var td={};ga(td,{DocumentPosition:()=>Ho,append:()=>XAt,appendChild:()=>KAt,compareDocumentPosition:()=>Cpe,existsOne:()=>mpe,filter:()=>s0,find:()=>zR,findAll:()=>tct,findOne:()=>jR,findOneChild:()=>ect,getAttributeValue:()=>WAt,getChildren:()=>n0,getElementById:()=>ict,getElements:()=>sct,getElementsByClassName:()=>oct,getElementsByTagName:()=>xf,getElementsByTagType:()=>act,getFeed:()=>E9,getInnerHTML:()=>VAt,getName:()=>zAt,getOuterHTML:()=>gpe,getParent:()=>ppe,getSiblings:()=>p9,getText:()=>VR,hasAttrib:()=>JAt,hasChildren:()=>rr,innerText:()=>mB,isCDATA:()=>e0,isComment:()=>Tf,isDocument:()=>Oo,isTag:()=>Qe,isText:()=>li,nextElementSibling:()=>WR,prepend:()=>$At,prependChild:()=>ZAt,prevElementSibling:()=>JR,removeElement:()=>Tu,removeSubsets:()=>Act,replaceElement:()=>jAt,testElement:()=>nct,textContent:()=>Nu,uniqueSort:()=>$l});var Po={};ga(Po,{CDATA:()=>s9,Comment:()=>e9,Directive:()=>$H,Doctype:()=>i9,ElementType:()=>Bt,Root:()=>XH,Script:()=>t9,Style:()=>r9,Tag:()=>n9,Text:()=>ZH,isTag:()=>KH});var Bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Bt||(Bt={}));function KH(t){return t.type===Bt.Tag||t.type===Bt.Script||t.type===Bt.Style}var XH=Bt.Root,ZH=Bt.Text,$H=Bt.Directive,e9=Bt.Comment,t9=Bt.Script,r9=Bt.Style,n9=Bt.Tag,s9=Bt.CDATA,i9=Bt.Doctype;var UR=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return t0(this,e)}},hB=class extends UR{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},ZA=class extends hB{constructor(){super(...arguments),this.type=Bt.Text}get nodeType(){return 3}},wf=class extends hB{constructor(){super(...arguments),this.type=Bt.Comment}get nodeType(){return 8}},Sf=class extends hB{constructor(e,r){super(r),this.name=e,this.type=Bt.Directive}get nodeType(){return 1}},fB=class extends UR{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},gB=class extends fB{constructor(){super(...arguments),this.type=Bt.CDATA}get nodeType(){return 4}},Yi=class extends fB{constructor(){super(...arguments),this.type=Bt.Root}get nodeType(){return 9}},Nf=class extends fB{constructor(e,r,n=[],s=e==="script"?Bt.Script:e==="style"?Bt.Style:Bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}})}};function Qe(t){return KH(t)}function e0(t){return t.type===Bt.CDATA}function li(t){return t.type===Bt.Text}function Tf(t){return t.type===Bt.Comment}function PR(t){return t.type===Bt.Directive}function Oo(t){return t.type===Bt.Root}function rr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function t0(t,e=!1){let r;if(li(t))r=new ZA(t.data);else if(Tf(t))r=new wf(t.data);else if(Qe(t)){let n=e?o9(t.children):[],s=new Nf(t.name,{...t.attribs},n);n.forEach(i=>i.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=s}else if(e0(t)){let n=e?o9(t.children):[],s=new gB(n);n.forEach(i=>i.parent=s),r=s}else i Line truncated
`:VR(t.children):e0(t)?VR(t.children):li(t)?t.data:""}function Nu(t){return Array.isArray(t)?t.map(Nu).join(""):rr(t)&&!Tf(t)?Nu(t.children):li(t)?t.data:""}function mB(t){return Array.isArray(t)?t.map(mB).join(""):rr(t)&&(t.type===Bt.Tag||e0(t))?mB(t.children):li(t)?t.data:""}function n0(t){return rr(t)?t.children:[]}function ppe(t){return t.parent||null}function p9(t){let e=ppe(t);if(e!=null)return n0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function WAt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function JAt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function zAt(t){return t.name}function WR(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function JR(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Tu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function jAt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function KAt(t,e){if(Tu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function XAt(t,e){Tu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function ZAt(t,e){if(Tu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function $At(t,e){Tu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function s0(t,e,r=!0,n=1/0){return zR(t,Array.isArray(e)?e:[e],r,n)}function zR(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function ect(t,e){return e.find(t)}function jR(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=jR(t,i.children,!0);if(o)return o}}return null}function mpe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&mpe(t,r.children))}function tct(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var KR={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>li(e)&&t(e.data):e=>li(e)&&e.data===t}};function m9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function rct(t,e){return r=>t(r)||e(r)}function Epe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(KR,r)?KR[r](n):m9(r,n)});return e.length===0?null:e.reduce(rct)}function nct(t,e){let r=Epe(t);return r?r(e):!0}function sct(t,e,r,n=1/0){let s=Epe(t);return s?s0(s,e,r,n):[]}function ict(t,e,r=!0){return Array.isArray(e)||(e=[e]),jR(m9("id",t),e,r)}function xf(t,e,r=!0,n=1/0){return s0(KR.tag_name(t),e,r,n)}function oct(t,e,r=!0,n=1/0){return s0(m9("class",t),e,r,n)}function act(t,e,r=!0,n=1/0){return s0(KR.tag_type(t),e,r,n)}function Act(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ho;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ho||(Ho={}));function Cpe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Ho.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ho.FOLLOWING|Ho.CONTAINED_BY:Ho.FOLLOWING:a===t?Ho.PRECEDING|Ho.CONTAINS:Ho.PRECEDING}function $l(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Cpe(e,r);return n&Ho.PRECEDING?-1:n&Ho.FOLLOWING?1:0}),t}function E9(t){let e=XR(hct,t);return e?e.name==="feed"?cct(e):uct(e):null}function cct(t){var e;let r=t.children,n={type:"atom",items:xf("entry",r).map(o=>{var a;let{children:A}=o,c={media:Ipe(A)};di(c,"id","id",A),di(c,"title","title",A);let u=(a=XR("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ed("summary",A)||ed("conten Line truncated
<td align='center'>${iut(t)}</td>
<td>${out(t)}</td>
</tr>`}function iut(t){return t.buildFailed?":x:":":white_check_mark:"}function out(t){return t.buildScanFailed?P9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?P9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):P9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function P9({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Jpe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function aut(){let t=pu;if(t.payload.pull_request==null){ne("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;ne(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=jpe(t),n=Fi(JB()),{owner:s,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
comments(last: 100) {
nodes { id body isMinimized url }
}
}
}
}
`,a;try{let{repository:u}=await n.graphql(o,{owner:s,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return Xe(`Failed to fetch comments: ${u}`)}let c=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>ne(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>Xe(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function jpe(t){return`<!-- gradle-job-summary: ${T0.constructJobCorrelator(t.workflow,t.job,U9())} -->`}var Kpe=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Ho from"fs";import*as _u from"path";function $pe(){return Zpe().map(e=>{let r=Ho.readFileSync(e,"utf8"),n=JSON.parse(r);return uut(e,n),n})}function Xpe(){Zpe().forEach(dut)}function Zpe(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Ho.existsSync(t)?Ho.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!lut(e)):[]}function uut(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Ho.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Ho.existsSync(n)){let s=Ho.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function lut(t){let e=`${t}.processed`;return Ho.existsSync(e)}function dut(t){let e=`${t}.processed`;Ho.writeFileSync(e,"")}import*as _me from"fs";import*as Fme from"path";import{pathToFileURL as Tlt}from"url";import*as D0 from"fs";function O9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as DD from"path";import*as x0 from"path";import Vf from"assert";var gd=process.platform==="win32";function Mu(t){if(t=Fu(t),gd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=x0.dirname(t);return gd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function TD(t,e){if(Vf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Vf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),jB(e))return e;if(gd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Vf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Wa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Vf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Vf(jB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||gd&&t.endsWith("\\")||(t+=x0.sep),t+e}function jB(t){return Vf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Wa(t),gd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function KB(t){return Vf(t,"isRooted parameter 'itemPath' must not be empty"),t=Wa(t),gd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Wa(t){return t=t||"",gd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=Wa(t),!t.endsWith(x0.sep)||t===x0.sep||gd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ja;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ja||(Ja={}));var eme=process.platform==="win32";function G9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=eme?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=eme?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Mu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Mu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function tme(t,e){let r=Ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function rme(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Bme from"os";import*as Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new tb(i));return n.searchPaths.push(...G9(n.patterns)),n})}static stat(e,r,n){return j9(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield D0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield D0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield D0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as K9 from"crypto";import*as kD from"fs";import*as bme from"stream";import*as Qme from"util";import*as wme from"path";var blt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Qlt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function Sme(t,e){return blt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ne:V,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=K9.createHash("sha256"),f=0;try{for(var p=!0,I=Qlt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${wme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(kD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=K9.createHash("sha256");yield Qme.promisify(bme.pipeline)(kD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Nme=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function $9(t,e){return Nme(this,void 0,void 0,function*(){return yield RD.create(t,e)})}function Tme(t){return Nme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield $9(e,{followSymbolicLinks:i});return Sme(o,r,s)})}import*as X9 from"path";var wlt="Gradle User Home",Rme="BASIC_CACHE_PRIMARY_KEY",Dme="BASIC_CACHE_RESTORED_KEY",Slt="setup-java",kme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],_D=class{async restore(e,r){let n=vme(e),s=await Nlt();cy(Rme,s);try{let i=await Upe(n,s);i?(cy(Dme,i),ne(`Basic caching restored from cache key: ${i}`)):ne("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Xe(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=Nc(Rme),i=Nc(Dme);if(n.readOnly)return{status:"read-only",entries:[vD({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return ne(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[vD({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=vme(e);try{return await Ppe(o,s),ne(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[vD({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return Xe(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[vD({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function vD(t){return{entryName:wlt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcomLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${kme}], make sure you have checked out the target repository`);return`${Slt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var xlt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Rlt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",eG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function Mme(t){return t.isCacheDisabled()?(Z9("Cache is disabled: will not restore state from previous builds."),new eG):t.getCacheProvider()==="basic"?(Z9(Rlt),new _D):(Z9(xlt),Dlt())}function Lme(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function Dlt(){let t=klt();return await import(Tlt(t).href)}function klt(){let t=import.meta.dirname,e=Fme.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(_me.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function Z9(t){console.info(t)}import*as Gme from"util";var Plt=pe(Hme(),1);import*as tG from"fs";var Ugr=Gme.promisify(tG.readdir);var Hlt={_useHtmlParser2:!1};function k0(t,e){if(!t)return e??Hlt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var wG={};Ba(wG,{contains:()=>jD,extract:()=>Fdt,html:()=>Ddt,merge:()=>l0e,parseHTML:()=>vdt,root:()=>_dt,text:()=>tg,xml:()=>kdt});var Bd={};Ba(Bd,{DocumentPosition:()=>Vo,append:()=>hdt,appendChild:()=>ddt,compareDocumentPosition:()=>a0e,existsOne:()=>i0e,filter:()=>L0,find:()=>VD,findAll:()=>mdt,findOne:()=>WD,findOneChild:()=>pdt,getAttributeValue:()=>cdt,getChildren:()=>M0,getElementById:()=>ydt,getElements:()=>Idt,getElementsByClassName:()=>Bdt,getElementsByTagName:()=>eg,getElementsByTagType:()=>bdt,getFeed:()=>QG,getInnerHTML:()=>adt,getName:()=>udt,getOuterHTML:()=>n0e,getParent:()=>s0e,getSiblings:()=>BG,getText:()=>GD,hasAttrib:()=>Adt,hasChildren:()=>tr,innerText:()=>ab,isCDATA:()=>v0,isComment:()=>Zf,isDocument:()=>Yo,isTag:()=>Qe,isText:()=>hi,nextElementSibling:()=>qD,prepend:()=>gdt,prependChild:()=>fdt,prevElementSibling:()=>YD,removeElement:()=>Ou,removeSubsets:()=>Qdt,replaceElement:()=>ldt,testElement:()=>Cdt,textContent:()=>Pu,uniqueSort:()=>Id});var qo={};Ba(qo,{CDATA:()=>uG,Comment:()=>oG,Directive:()=>iG,Doctype:()=>lG,ElementType:()=>bt,Root:()=>nG,Script:()=>aG,Style:()=>cG,Tag:()=>AG,Text:()=>sG,isTag:()=>rG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function rG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var nG=bt.Root,sG=bt.Text,iG=bt.Directive,oG=bt.Comment,aG=bt.Script,cG=bt.Style,AG=bt.Tag,uG=bt.CDATA,lG=bt.Doctype;var FD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _0(this,e)}},nb=class extends FD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},aA=class extends nb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Kf=class extends nb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},$f=class extends nb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},sb=class extends FD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},ib=class extends sb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ji=class extends sb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Xf=class extends sb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}} Line truncated
`:GD(t.children):v0(t)?GD(t.children):hi(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):tr(t)&&!Zf(t)?Pu(t.children):hi(t)?t.data:""}function ab(t){return Array.isArray(t)?t.map(ab).join(""):tr(t)&&(t.type===bt.Tag||v0(t))?ab(t.children):hi(t)?t.data:""}function M0(t){return tr(t)?t.children:[]}function s0e(t){return t.parent||null}function BG(t){let e=s0e(t);if(e!=null)return M0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function cdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Adt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function udt(t){return t.name}function qD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function YD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ou(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function ldt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function ddt(t,e){if(Ou(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function hdt(t,e){Ou(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function fdt(t,e){if(Ou(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function gdt(t,e){Ou(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function L0(t,e,r=!0,n=1/0){return VD(t,Array.isArray(e)?e:[e],r,n)}function VD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function pdt(t,e){return e.find(t)}function WD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=WD(t,i.children,!0);if(o)return o}}return null}function i0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&i0e(t,r.children))}function mdt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var JD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>hi(e)&&t(e.data):e=>hi(e)&&e.data===t}};function bG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Edt(t,e){return r=>t(r)||e(r)}function o0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(JD,r)?JD[r](n):bG(r,n)});return e.length===0?null:e.reduce(Edt)}function Cdt(t,e){let r=o0e(t);return r?r(e):!0}function Idt(t,e,r,n=1/0){let s=o0e(t);return s?L0(s,e,r,n):[]}function ydt(t,e,r=!0){return Array.isArray(e)||(e=[e]),WD(bG("id",t),e,r)}function eg(t,e,r=!0,n=1/0){return L0(JD.tag_name(t),e,r,n)}function Bdt(t,e,r=!0,n=1/0){return L0(bG("class",t),e,r,n)}function bdt(t,e,r=!0,n=1/0){return L0(JD.tag_type(t),e,r,n)}function Qdt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Vo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Vo||(Vo={}));function a0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Vo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Vo.FOLLOWING|Vo.CONTAINED_BY:Vo.FOLLOWING:a===t?Vo.PRECEDING|Vo.CONTAINS:Vo.PRECEDING}function Id(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=a0e(e,r);return n&Vo.PRECEDING?-1:n&Vo.FOLLOWING?1:0}),t}function QG(t){let e=zD(xdt,t);return e?e.name==="feed"?wdt(e):Sdt(e):null}function wdt(t){var e;let r=t.children,n={type:"atom",items:eg("entry",r).map(o=>{var a;let{children:c}=o,A={media:c0e(c)};fi(A,"id","id",c),fi(A,"title","title",c);let u=(a=zD("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=yd("summary",c)||yd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Yo=fe(rd(),1);var F9={};function M9(t,e){return t===Yo.default.falseFunc?Yo.default.falseFunc:r=>e.isTag(r)&&t(r)}function L9(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function _9(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var v9=(t,e,r,n,s)=>{let i=s(e,_9(r),n);return i===Yo.default.trueFunc?t:i===Yo.default.falseFunc?Yo.default.falseFunc:o=>i(o)&&t(o)},uD={is:v9,matches:v9,where:v9,not(t,e,r,n,s){let i=s(e,_9(r),n);return i===Yo.default.falseFunc?t:i===Yo.default.trueFunc?Yo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=_9(r);o.relativeSelector=!0;let a=e.some(u=>u.some(QB))?[F9]:void 0,A=s(e,o,a);if(A===Yo.default.falseFunc)return Yo.default.falseFunc;let c=M9(A,i);if(a&&A!==Yo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...L9(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Ame(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in uD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return uD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:cD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ame.parse)(c);return uD.is(t,u,r,n,s)}if(typeof A=="function")return k9(A,o,a,1),u=>A(u,a)&&t(u);if(o in h0)return h0[o](t,a,r,n);if(o in SB){let u=SB[o];return k9(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Vo=fe(l0(),1);function U9(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function cme(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Vo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Vo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Vo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),nme[e.action](t,e,r)}case Vo.SelectorType.Pseudo:return Ame(t,e,r,n,s);case Vo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Vo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=U9(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=U9(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=U9(c,i));return!1};case Vo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Vo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Vo.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Vo.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Vo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ume(t,e,r){let n=lD(t,e,r);return M9(n,e.adapter)}function lD(t,e,r){let n=typeof t=="string"?(0,Oa.parse)(t):t;return dD(n,e,r)}function lme(t){return t.type===Oa.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(lme)))}var sut={type:Oa.SelectorType.Descendant},iut={type:"_flexibleDescendant"},out={type:Oa.SelectorType.Pseudo,name:"scope",data:null};function aut(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===F9||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(Nme,`\r
`)}}).toArray()}var eG={};ga(eG,{extract:()=>Blt});function ylt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Blt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=ylt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var id=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};id.prototype.cheerio="[cheerio object]";id.prototype.splice=Array.prototype.splice;id.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(id.prototype,N9,K9,X9,Z9,$9,eG);function Tme(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=$m(s),a=t(n,o,i,null);class A extends id{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Go(u))return u;let f=$m(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Go(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&EB(u)?t(u,f,!1,null).children:blt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?EB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Go(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,C9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function blt(t){return!!t.name||t.type===Po.Root||t.type===Po.Text||t.type===Po.Comment}var Qlt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ED(t){return t>=55296&&t<=57343}function xme(t){return t>=56320&&t<=57343}function Rme(t,e){return(t-55296)*1024+9216+e}function CD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function ID(t){return t>=64976&&t<=65007||Qlt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),cNe=new Map([...lJ,["\\"," Backslash \\"],["/"," Forward slash /"]]);function uNe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of cNe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var zo=pe(bd(),1);var HG={};function GG(t,e){return t===zo.default.falseFunc?zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function qG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function OG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var PG=(t,e,r,n,s)=>{let i=s(e,OG(r),n);return i===zo.default.trueFunc?t:i===zo.default.falseFunc?zo.default.falseFunc:o=>i(o)&&t(o)},a2={is:PG,matches:PG,where:PG,not(t,e,r,n,s){let i=s(e,OG(r),n);return i===zo.default.falseFunc?t:i===zo.default.trueFunc?zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=OG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(fb))?[HG]:void 0,c=s(e,o,a);if(c===zo.default.falseFunc)return zo.default.falseFunc;let A=GG(c,i);if(a&&c!==zo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...qG(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function K0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in a2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return a2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:o2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,j0e.parse)(A);return a2.is(t,u,r,n,s)}if(typeof c=="function")return UG(c,o,a,1),u=>c(u,a)&&t(u);if(o in W0)return W0[o](t,a,r,n);if(o in pb){let u=pb[o];return UG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var jo=pe(Y0(),1);function YG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $0e(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case jo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),V0e[e.action](t,e,r)}case jo.SelectorType.Pseudo:return K0e(t,e,r,n,s);case jo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=YG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=YG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=YG(A,i));return!1};case jo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case jo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case jo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case jo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function X0e(t,e,r){let n=c2(t,e,r);return GG(n,e.adapter)}function c2(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return A2(n,e,r)}function Z0e(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Z0e)))}var Iht={type:ja.SelectorType.Descendant},yht={type:"_flexibleDescendant"},Bht={type:ja.SelectorType.Pseudo,name:"scope",data:null};function bht(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===HG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(gEe,`\r
`)}}).toArray()}var oq={};Ba(oq,{extract:()=>Uft});function Lft(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Uft(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Lft(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Sd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Sd.prototype.cheerio="[cheerio object]";Sd.prototype.splice=Array.prototype.splice;Sd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Sd.prototype,vG,rq,nq,sq,iq,oq);function pEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=k0(s),a=t(n,o,i,null);class c extends Sd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&Wo(u))return u;let f=k0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Wo(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&cb(u)?t(u,f,!1,null).children:Pft(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?cb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Wo(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,wG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Pft(t){return!!t.name||t.type===qo.Root||t.type===qo.Text||t.type===qo.Comment}var Oft=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Fs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function g2(t){return t>=55296&&t<=57343}function mEe(t){return t>=56320&&t<=57343}function EEe(t,e){return(t-55296)*1024+9216+e}function p2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function m2(t){return t>=64976&&t<=65007||Oft.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),$Te=new Map([...hz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function XTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of $Te)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(cNe.values()).toString()}
Invalid characters include: ${Array.from($Te.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);se("Artifact name is valid!")}function dJ(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of lJ)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ne("Artifact name is valid!")}function fz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of hz)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(lJ.values()).toString()}
Invalid characters include: ${Array.from(hz.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var fNe=fe(hNe(),1);function Qc(){return`@actions/artifact-${fNe.version}`}var Xk=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},zu=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ju=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Md=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Ku=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If 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(r),this.code=e,this.name="NetworkError"}};Ku.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};pg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var mg=class extends Error{};mg.prototype.name="InvalidTokenError";function Axt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function cxt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Axt(e)}catch{return atob(e)}}function gNe(t,e){if(typeof t!="string")throw new mg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new mg(`Invalid token specified: missing part #${r+1}`);let s;try{s=cxt(n)}catch(i){throw new mg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new mg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Zk=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function wc(){let t=jk(),e=gNe(t);if(!e.scp)throw Zk;let r=e.scp.split(" ");if(r.length===0)throw Zk;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Zk;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return W(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),W(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Zk}function pNe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(pA(r),pA(encodeURIComponent(r)))}catch(e){W(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function mNe(t){if(typeof t!="object"||t===null){W("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&pNe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&pNe(t.signed_url)}var $k=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},hJ=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=jk();this.baseUrl=ZSe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Jn(e,[new su(i)])}request(e,r,n,s){return $k(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;W(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>$k(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return $k(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),W(`[Response] - ${a.message.statusCode}`),W(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(mNe(c),W(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(pg.isUsageErrorMessage(c.msg))throw new pg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&W(`Raw Body: ${s}`),a instanceof pg)throw a;if(Ku.isNetworkErrorCode(a?.code))throw new Ku(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);se(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return $k(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Sc(t){let e=new hJ(Qc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Kk(e)}import*as hE from"fs";import{normalize as ENe,resolve as CNe}from"path";function INe(t){if(!hE.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&et("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${SUe(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield NUe(u,r,e?.skipDecompress);se("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,W(`Computed digest: ${l.sha256Digest}`),W(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function RUe(){return aC(this,arguments,void 0,function*(t=$Se()){return(yield LHt(t))?W(`Artifact destination folder already exists: ${t}`):(W(`Artifact destination folder does not exist, creating: ${t}`),yield yUe.mkdir(t,{recursive:!0})),t})}var PHt=5,OHt=[400,401,403,404,422];function AC(t,e=PHt,r=OHt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return W(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var DUe="6.0.0";function Wg(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Wg.VERSION=DUe;var _Ue=fe(kUe(),1),FUe=fe(mP(),1),HHt="0.0.0-development";async function vUe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function GHt(t,e,r,n){let s=new _Ue.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(qHt.bind(null,t,e,r),n)}async function qHt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new FUe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return vUe(t,e,i,n)}return s}function Jg(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",vUe.bind(null,r,t)),t.hook.wrap("request",GHt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Jg.VERSION=HHt;var MUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function iF(t,e,r,n,s){return MUe(this,void 0,void 0,function*(){var i;let[o,a]=AC(Lh),A={log:void 0,userAgent:Qc(),previews:void 0,retry:o,request:a},u=yield yo(s,A,Jg,Wg).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new zu(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new ju(`Artifact not found for name: ${t}
`)}var rxe=pe(txe(),1);function vA(){return`@actions/artifact-${rxe.version}`}var WE=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},ol=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},al=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},nh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},cl=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If 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(r),this.code=e,this.name="NetworkError"}};cl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Gg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More 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`),this.name="UsageError"}};Gg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var qg=class extends Error{};qg.prototype.name="InvalidTokenError";function y2t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function B2t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return y2t(e)}catch{return atob(e)}}function nxe(t,e){if(typeof t!="string")throw new qg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new qg(`Invalid token specified: missing part #${r+1}`);let s;try{s=B2t(n)}catch(i){throw new qg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new qg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var zv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function _A(){let t=Wv(),e=nxe(t);if(!e.scp)throw zv;let r=e.scp.split(" ");if(r.length===0)throw zv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw zv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw zv}function sxe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(wc(r),wc(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function ixe(t){if(typeof t!="object"||t===null){V("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&sxe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&sxe(t.signed_url)}var jv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},gz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Wv();this.baseUrl=OTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new zn(e,[new hu(i)])}request(e,r,n,s){return jv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>jv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return jv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(ixe(A),V(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Gg.isUsageErrorMessage(A.msg))throw new Gg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof Gg)throw a;if(cl.isNetworkErrorCode(a?.code))throw new cl(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);ne(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return jv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function FA(t){let e=new gz(vA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Jv(e)}import*as JE from"fs";import{normalize as oxe,resolve as axe}from"path";function cxe(t){if(!JE.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Xe("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);ne(`Redirecting to blob download url: ${COe(u)}`);try{ne(`Starting download of artifact to: ${r}`);let l=yield IOe(u,r,e?.skipDecompress);ne("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function bOe(){return HC(this,arguments,void 0,function*(t=HTe()){return(yield Zqt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield fOe.mkdir(t,{recursive:!0})),t})}var tYt=5,rYt=[400,401,403,404,422];function GC(t,e=tYt,r=rYt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return V(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var QOe="6.0.0";function Ep(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Ep.VERSION=QOe;var NOe=pe(wOe(),1);var rM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var nYt="0.0.0-development";async function SOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function sYt(t,e,r,n){let s=new NOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(iYt.bind(null,t,e,r),n)}async function iYt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new rM(s.data.errors[0].message,500,{request:n,response:s});return SOe(t,e,i,n)}return s}function Cp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",SOe.bind(null,r,t)),t.hook.wrap("request",sYt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Cp.VERSION=nYt;var TOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function nM(t,e,r,n,s){return TOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:vA(),previews:void 0,retry:o,request:a},u=yield Fi(s,c,Cp,Ep).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new ol(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new al(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],W(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function LUe(t){return MUe(this,void 0,void 0,function*(){var e;let r=Sc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=wc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ps.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ju(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],V(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function xOe(t){return TOe(this,void 0,void 0,function*(){var e;let r=FA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=_A(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ln.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new al(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],W(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?gs.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var UUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function PUe(t,e,r,n,s){return UUe(this,void 0,void 0,function*(){var i;let[o,a]=AC(Lh),A={log:void 0,userAgent:Qc(),previews:void 0,retry:o,request:a},c=yo(s,A,Jg,Wg),u=yield iF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new zu(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function OUe(t){return UUe(this,void 0,void 0,function*(){let e=Sc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=wc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ps.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ju(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],W(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return se(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var HUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},oF=rNe(),aF=100,YHt=Math.ceil(oF/aF);function GUe(t,e,r,n){return HUe(this,arguments,void 0,function*(s,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=AC(Lh),d={log:void 0,userAgent:Qc(),previews:void 0,retry:u,request:l},h=yo(a,d,Jg,Wg),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:aF,page:f}),I=Math.ceil(p.total_count/aF),E=p.total_count;E>oF&&(et(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${oF}. Results will be incomplete as only the first ${oF} artifacts will be returned`),I=YHt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){W(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:aF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=YUe(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function qUe(){return HUe(this,arguments,void 0,function*(t=!1){let e=Sc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=wc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?gs.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=YUe(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function YUe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var pw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},VHt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},cC=class{uploadArtifact(e,r,n,s){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;return OLe(e,r,n,s)}catch(i){throw et(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ao.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var ROe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function DOe(t,e,r,n,s){return ROe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:vA(),previews:void 0,retry:o,request:a},A=Fi(s,c,Cp,Ep),u=yield nM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new ol(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function kOe(t){return ROe(this,void 0,void 0,function*(){let e=FA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=_A(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ln.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new al(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return ne(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var vOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},sM=YTe(),iM=100,oYt=Math.ceil(sM/iM);function _Oe(t,e,r,n){return vOe(this,arguments,void 0,function*(s,i,o,a,c=!1){ne(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=GC(sf),d={log:void 0,userAgent:vA(),previews:void 0,retry:u,request:l},h=Fi(a,d,Cp,Ep),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iM,page:f}),I=Math.ceil(p.total_count/iM),m=p.total_count;m>sM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${sM}. Results will be incomplete as only the first ${sM} artifacts will be returned`),I=oYt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=MOe(A)),ne(`Found ${A.length} artifact(s)`),{artifacts:A}})}function FOe(){return vOe(this,arguments,void 0,function*(t=!1){let e=FA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=_A(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ao.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=MOe(o)),ne(`Found ${o.length} artifact(s)`),{artifacts:o}})}function MOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var o1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},aYt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},qC=class{uploadArtifact(e,r,n,s){return o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;return vPe(e,r,n,s)}catch(i){throw Xe(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=VHt(r,["findBy"]);return TUe(e,n,s,i,o)}return xUe(e,r)}catch(n){throw et(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=aYt(r,["findBy"]);return yOe(e,n,s,i,o)}return BOe(e,r)}catch(n){throw Xe(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return GUe(r,n,s,i,e?.latest)}return qUe(e?.latest)}catch(r){throw et(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return _Oe(r,n,s,i,e?.latest)}return FOe(e?.latest)}catch(r){throw Xe(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return iF(e,n,s,i,o)}return LUe(e)}catch(n){throw et(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return nM(e,n,s,i,o)}return xOe(e)}catch(n){throw Xe(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return PUe(e,i,n,s,o)}return OUe(e)}catch(n){throw et(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return DOe(e,i,n,s,o)}return kOe(e)}catch(n){throw Xe(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var NQr=new cC;import*as AF from"path";import uX from"fs";var WHt="dependency-graph_";async function WUe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await VUe(t,!1);return;case"generate-submit-and-upload":await VUe(t,!0);return;case"generate-and-upload":await JHt(t)}}catch(r){e9t(t,e,r)}}async function VUe(t,e){if(zUe()){se("Dependency graph not supported in the ACT environment.");return}let r=await JUe();try{await zHt(r)}catch(n){try{await cX(r,t)}catch(s){se(String(s))}throw n}e&&await cX(r,t)}async function JHt(t){if(zUe()){se("Dependency graph not supported in the ACT environment.");return}await cX(await JUe(),t)}async function JUe(){let r=(await(await UI(`${XHt()}/**/*.json`)).glob()).filter(n=>!ZHt(n));return r.forEach($Ht),se(`Found dependency graph files: ${r.join(", ")}`),r}async function cX(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=dB(),n=new cC;for(let s of t){let i=lX(s);se(`Uploading dependency graph file: ${i}`);let o=`${WHt}${AF.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zHt(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await KHt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jHt(e,r)),r}}function jHt(t,e){let n=`Dependency submission failed for ${lX(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var STr=new qC;import*as oM from"path";import lX from"fs";var cYt="dependency-graph_";async function UOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await LOe(t,!1);return;case"generate-submit-and-upload":await LOe(t,!0);return;case"generate-and-upload":await AYt(t)}}catch(r){pYt(t,e,r)}}async function LOe(t,e){if(OOe()){ne("Dependency graph not supported in the ACT environment.");return}let r=await POe();try{await uYt(r)}catch(n){try{await uX(r,t)}catch(s){ne(String(s))}throw n}e&&await uX(r,t)}async function AYt(t){if(OOe()){ne("Dependency graph not supported in the ACT environment.");return}await uX(await POe(),t)}async function POe(){let r=(await(await $9(`${hYt()}/**/*.json`)).glob()).filter(n=>!fYt(n));return r.forEach(gYt),ne(`Found dependency graph files: ${r.join(", ")}`),r}async function uX(t,e){if(t.length===0){ne("No dependency graph files found to upload.");return}let r=zB(),n=new qC;for(let s of t){let i=dX(s);ne(`Uploading dependency graph file: ${i}`);let o=`${cYt}${oM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function uYt(t){if(t.length===0){ne("No dependency graph files found to submit.");return}for(let e of t)try{await dYt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=lYt(e,r)),r}}function lYt(t,e){let n=`Dependency submission failed for ${dX(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function KHt(t){let e=t9t(),r=uX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Dl.repo.owner,n.repo=Dl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=lX(t);Loe(`Submitted ${i}: ${s.data.message}`)}function XHt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ZHt(t){let e=`${t}.processed`;return uX.existsSync(e)}function $Ht(t){let e=`${t}.processed`;uX.writeFileSync(e,"")}function e9t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new cE(r);et(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function t9t(){return yo(FR())}function lX(t){let e=dB();return AF.relative(e,t)}function zUe(){return process.env.ACT!==void 0}function n9t(t=process.platform){return t==="win32"?50:0}async function jUe(t=process.platform){let e=n9t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>wW(t));async function s9t(){try{Mge(),Fge(),await XSe(new DR,new kR)&&await WUe(new RR)}catch(t){wW(t)}await jUe()}s9t();export{s9t as run};
`:n}async function dYt(t){let e=mYt(),r=lX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=pu.repo.owner,n.repo=pu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=dX(t);Uae(`Submitted ${i}: ${s.data.message}`)}function hYt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function fYt(t){let e=`${t}.processed`;return lX.existsSync(e)}function gYt(t){let e=`${t}.processed`;lX.writeFileSync(e,"")}function pYt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new GE(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function mYt(){return Fi(JB())}function dX(t){let e=zB();return oM.relative(e,t)}function OOe(){return process.env.ACT!==void 0}function CYt(t=process.platform){return t==="win32"?50:0}async function HOe(t=process.platform){let e=CYt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>DJ(t));async function IYt(){try{Vpe(),Ype(),await PTe(new wD,new VB,new SD)&&await UOe(new T0)}catch(t){DJ(t)}await HOe()}IYt();export{IYt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -355,6 +397,13 @@ undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -423,5 +472,13 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+76 -62
View File
@@ -1,98 +1,98 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var Gse=Object.create;var BB=Object.defineProperty;var Yse=Object.getOwnPropertyDescriptor;var qse=Object.getOwnPropertyNames;var Vse=Object.getPrototypeOf,Jse=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nn=(t,e)=>{for(var r in e)BB(t,r,{get:e[r],enumerable:!0})},Wse=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qse(e))!Jse.call(t,n)&&n!==r&&BB(t,n,{get:()=>e[n],enumerable:!(s=Yse(e,n))||s.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?Gse(Vse(t)):{},Wse(e||!t||!t.__esModule?BB(r,"default",{value:t,enumerable:!0}):r,t));var mF=m(KA=>{"use strict";var $Ye=Q("net"),$se=Q("tls"),SB=Q("http"),gF=Q("https"),ene=Q("events"),eqe=Q("assert"),tne=Q("util");KA.httpOverHttp=rne;KA.httpsOverHttp=sne;KA.httpOverHttps=nne;KA.httpsOverHttps=ine;function rne(t){var e=new Ei(t);return e.request=SB.request,e}function sne(t){var e=new Ei(t);return e.request=SB.request,e.createSocket=hF,e.defaultPort=443,e}function nne(t){var e=new Ei(t);return e.request=gF.request,e}function ine(t){var e=new Ei(t);return e.request=gF.request,e.createSocket=hF,e.defaultPort=443,e}function Ei(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||SB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=fF(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}tne.inherits(Ei,ene.EventEmitter);Ei.prototype.addRequest=function(e,r,s,n){var i=this,o=TB({request:e},i.options,fF(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ei.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=TB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),no("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(d){d.upgrade=!0}function A(d,g,h){process.nextTick(function(){c(d,g,h)})}function c(d,g,h){if(o.removeAllListeners(),g.removeAllListeners(),d.statusCode!==200){no("tunneling socket could not be established, statusCode=%d",d.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){no("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return no("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(d){o.removeAllListeners(),no(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var g=new Error("tunneling socket could not be established, cause="+d.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ei.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function hF(t,e){var r=this;Ei.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=TB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=$se.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function fF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function TB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var no;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?no=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:no=function(){};KA.debug=no});var DB=m((rqe,pF)=>{pF.exports=mF()});var je=m((sqe,EF)=>{EF.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Se=m((nqe,YF)=>{"use strict";var CF=Symbol.for("undici.error.UND_ERR"),Ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[CF]===!0}[CF]=!0},IF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),xB=class extends Ze{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[IF]===!0}[IF]=!0},BF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),RB=class extends Ze{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[BF]===!0}[BF]=!0},QF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),kB=class extends Ze{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[QF]===!0}[QF]=!0},yF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),FB=class extends Ze{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[yF]===!0}[yF]=!0},bF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),MB=class extends Ze{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Boe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(ioe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Qoe(){return"allowed"}function yoe(){return"success"}function boe(){return"success"}function woe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Noe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&wQ(t.origin)&&!wQ(Wl(t))&&(e=null);break;case"same-origin":Ff(t,Wl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ic(t,e){return t}function Soe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ic(t.domainLookupStartTime,r),domainLookupEndTime:ic(t.domainLookupEndTime,r),connectionStartTime:ic(t.connectionStartTime,r),connectionEndTime:ic(t.connectionEndTime,r),secureConnectionStartTime:ic(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Toe(t){return ic(uoe.now(),t)}function Doe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function sU(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function xoe(t){return{referrerPolicy:t.referrerPolicy}}function Roe(t){let e=t.referrerPolicy;ya(e);let r=null;if(t.referrer==="client"){let a=jM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=bQ(r),n=bQ(r,!0);s.toString().length>4096&&(s=n);let i=Ff(t,s),o=Jl(s)&&!Jl(t.url);switch(e){case"origin":return n??bQ(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Wl(t);return Ff(s,a)?s:Jl(s)&&!Jl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function bQ(t,e){return ya(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Jl(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function koe(t,e){if(kf===void 0)return!0;let r=nU(e);if(r==="no metadata"||r.length===0)return!0;let s=Moe(r),n=Uoe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=kf.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),Loe(A,a))return!0}return!1}var Foe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function nU(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Foe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();$M.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Moe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function Uoe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function Loe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Poe(t){}function Ff(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function voe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Ooe(t){return t.controller.state==="aborted"}function _oe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Hoe(t){return goe[t.toLowerCase()]??t}function Goe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ya(typeof e=="string"),e}var Yoe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function iU(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Cae(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Iae(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Bae(t,e){Uf(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Lf(t,pae,i)||i.position===t.length-4&&Lf(t,Eae,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Qae(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:d}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,d==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Cae(u)||(u=""),h=new fae([g],c,{type:u})):h=uae(Buffer.from(g)),Uf(pU(A)),Uf(typeof h=="string"&&pU(h)||dae(h)),n.push(gae(A,h,c))}}function Qae(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=ac(a=>a!==10&&a!==13&&a!==58,t,e);if(o=kQ(o,!0,!0,a=>a===9||a===32),!lae.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,ac(a=>a===32||a===9,t,e),cae(o)){case"content-disposition":{if(r=s=null,!Lf(t,mae,e)||(e.position+=17,r=IU(t,e),r===null))return"failure";if(Lf(t,CU,e)){let a=e.position+CU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=IU(t,e),s===null))return"failure"}break}case"content-type":{let a=ac(A=>A!==10&&A!==13,t,e);a=kQ(a,!1,!0,A=>A===9||A===32),n=EU(a);break}case"content-transfer-encoding":{let a=ac(A=>A!==10&&A!==13,t,e);a=kQ(a,!1,!0,A=>A===9||A===32),i=EU(a);break}default:ac(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function IU(t,e){Uf(t[e.position-1]===34);let r=ac(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function ac(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function kQ(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Lf(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}BU.exports={multipartFormDataParser:Bae,validateBoundary:Iae}});var uc=m((Dqe,kU)=>{"use strict";var Xl=me(),{ReadableStreamFrom:yae,isBlobLike:yU,isReadableStreamLike:bae,readableStreamClose:wae,createDeferredPromise:Nae,fullyReadBody:Sae,extractMimeType:Tae,utf8DecodeBytes:NU}=Gr(),{FormData:bU}=Kl(),{kState:cc}=io(),{webidl:Dae}=Ht(),{Blob:xae}=Q("node:buffer"),FQ=Q("node:assert"),{isErrored:SU,isDisturbed:Rae}=Q("node:stream"),{isArrayBuffer:kae}=Q("node:util/types"),{serializeAMimeType:Fae}=Cr(),{multipartFormDataParser:Mae}=QU(),MQ;try{let t=Q("node:crypto");MQ=e=>t.randomInt(0,e)}catch{MQ=t=>Math.floor(Math.random(t))}var Pf=new TextEncoder;function Uae(){}var TU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,DU;TU&&(DU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Rae(e)&&!SU(e)&&e.cancel("Response object has been garbage collected").catch(Uae)}));function xU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:yU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?Pf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>wae(A))},start(){},type:"bytes"}),FQ(bae(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(kae(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Xl.isFormDataLike(t)){let A=`----formdata-undici-0${`${MQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var lse=Object.create;var CB=Object.defineProperty;var dse=Object.getOwnPropertyDescriptor;var gse=Object.getOwnPropertyNames;var hse=Object.getPrototypeOf,fse=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nn=(t,e)=>{for(var r in e)CB(t,r,{get:e[r],enumerable:!0})},mse=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of gse(e))!fse.call(t,n)&&n!==r&&CB(t,n,{get:()=>e[n],enumerable:!(s=dse(e,n))||s.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?lse(hse(t)):{},mse(e||!t||!t.__esModule?CB(r,"default",{value:t,enumerable:!0}):r,t));var nF=m(ZA=>{"use strict";var dYe=Q("net"),Qse=Q("tls"),wB=Q("http"),tF=Q("https"),yse=Q("events"),gYe=Q("assert"),bse=Q("util");ZA.httpOverHttp=wse;ZA.httpsOverHttp=Nse;ZA.httpOverHttps=Sse;ZA.httpsOverHttps=Tse;function wse(t){var e=new Ei(t);return e.request=wB.request,e}function Nse(t){var e=new Ei(t);return e.request=wB.request,e.createSocket=rF,e.defaultPort=443,e}function Sse(t){var e=new Ei(t);return e.request=tF.request,e}function Tse(t){var e=new Ei(t);return e.request=tF.request,e.createSocket=rF,e.defaultPort=443,e}function Ei(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||wB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=sF(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}bse.inherits(Ei,yse.EventEmitter);Ei.prototype.addRequest=function(e,r,s,n){var i=this,o=NB({request:e},i.options,sF(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ei.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=NB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),no("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(d){d.upgrade=!0}function A(d,g,h){process.nextTick(function(){c(d,g,h)})}function c(d,g,h){if(o.removeAllListeners(),g.removeAllListeners(),d.statusCode!==200){no("tunneling socket could not be established, statusCode=%d",d.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){no("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return no("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(d){o.removeAllListeners(),no(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var g=new Error("tunneling socket could not be established, cause="+d.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ei.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function rF(t,e){var r=this;Ei.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=NB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Qse.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function sF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function NB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var no;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?no=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:no=function(){};ZA.debug=no});var SB=m((fYe,iF)=>{iF.exports=nF()});var je=m((mYe,oF)=>{oF.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Se=m((pYe,RF)=>{"use strict";var aF=Symbol.for("undici.error.UND_ERR"),Ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[aF]===!0}[aF]=!0},AF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TB=class extends Ze{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[AF]===!0}[AF]=!0},cF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),DB=class extends Ze{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[cF]===!0}[cF]=!0},uF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xB=class extends Ze{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[uF]===!0}[uF]=!0},lF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),RB=class extends Ze{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[lF]===!0}[lF]=!0},dF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),kB=class extends Ze{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function qie(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(Tie.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Vie(){return"allowed"}function Jie(){return"success"}function Wie(){return"success"}function zie(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Kie(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&yQ(t.origin)&&!yQ(Xl(t))&&(e=null);break;case"same-origin":Mf(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ac(t,e){return t}function Xie(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ac(t.domainLookupStartTime,r),domainLookupEndTime:Ac(t.domainLookupEndTime,r),connectionStartTime:Ac(t.connectionStartTime,r),connectionEndTime:Ac(t.connectionEndTime,r),secureConnectionStartTime:Ac(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function jie(t){return Ac(Fie.now(),t)}function Zie(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function VM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function $ie(t){return{referrerPolicy:t.referrerPolicy}}function eoe(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=OM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=QQ(r),n=QQ(r,!0);s.toString().length>4096&&(s=n);let i=Mf(t,s),o=Kl(s)&&!Kl(t.url);switch(e){case"origin":return n??QQ(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Xl(t);return Mf(s,a)?s:Kl(s)&&!Kl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function QQ(t,e){return wa(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Kl(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function toe(t,e){if(Ff===void 0)return!0;let r=JM(e);if(r==="no metadata"||r.length===0)return!0;let s=soe(r),n=noe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Ff.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),ioe(A,a))return!0}return!1}var roe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function JM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=roe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();HM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function soe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function noe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function ioe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function ooe(t){}function Mf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function aoe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Aoe(t){return t.controller.state==="aborted"}function coe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uoe(t){return Lie[t.toLowerCase()]??t}function loe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wa(typeof e=="string"),e}var doe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function WM(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Goe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Yoe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function qoe(t,e){Lf(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Pf(t,_oe,i)||i.position===t.length-4&&Pf(t,Hoe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Voe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:d}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,d==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Goe(u)||(u=""),h=new voe([g],c,{type:u})):h=Foe(Buffer.from(g)),Lf(iU(A)),Lf(typeof h=="string"&&iU(h)||Uoe(h)),n.push(Loe(A,h,c))}}function Voe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=uc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xQ(o,!0,!0,a=>a===9||a===32),!Moe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,uc(a=>a===32||a===9,t,e),koe(o)){case"content-disposition":{if(r=s=null,!Pf(t,Ooe,e)||(e.position+=17,r=AU(t,e),r===null))return"failure";if(Pf(t,aU,e)){let a=e.position+aU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=AU(t,e),s===null))return"failure"}break}case"content-type":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),n=oU(a);break}case"content-transfer-encoding":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),i=oU(a);break}default:uc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function AU(t,e){Lf(t[e.position-1]===34);let r=uc(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function uc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xQ(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Pf(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}cU.exports={multipartFormDataParser:qoe,validateBoundary:Yoe}});var gc=m((GYe,IU)=>{"use strict";var $l=me(),{ReadableStreamFrom:Joe,isBlobLike:lU,isReadableStreamLike:Woe,readableStreamClose:zoe,createDeferredPromise:Koe,fullyReadBody:Xoe,extractMimeType:joe,utf8DecodeBytes:hU}=Gr(),{FormData:dU}=Zl(),{kState:dc}=io(),{webidl:Zoe}=Ht(),{Blob:$oe}=Q("node:buffer"),RQ=Q("node:assert"),{isErrored:fU,isDisturbed:eae}=Q("node:stream"),{isArrayBuffer:tae}=Q("node:util/types"),{serializeAMimeType:rae}=Cr(),{multipartFormDataParser:sae}=uU(),kQ;try{let t=Q("node:crypto");kQ=e=>t.randomInt(0,e)}catch{kQ=t=>Math.floor(Math.random(t))}var vf=new TextEncoder;function nae(){}var mU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,pU;mU&&(pU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eae(e)&&!fU(e)&&e.cancel("Response object has been garbage collected").catch(nae)}));function EU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:lU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?vf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>zoe(A))},start(){},type:"bytes"}),RQ(Woe(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(tae(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if($l.isFormDataLike(t)){let A=`----formdata-undici-0${`${kQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=w=>w.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[w,p]of t)if(typeof p=="string"){let y=Pf.encode(c+`; name="${u(d(w))}"\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[w,p]of t)if(typeof p=="string"){let y=vf.encode(c+`; name="${u(d(w))}"\r
\r
${d(p)}\r
`);g.push(y),i+=y.byteLength}else{let y=Pf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
`);g.push(y),i+=y.byteLength}else{let y=vf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
\r
`);g.push(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=Pf.encode(`--${A}--\r
`);g.push(E),i+=E.byteLength,f&&(i=null),n=t,s=async function*(){for(let w of g)w.stream?yield*w.stream():yield w},o=`multipart/form-data; boundary=${A}`}else if(yU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Xl.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yae(t)}if((typeof n=="string"||Xl.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:d}=await A.next();if(d)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!SU(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function Lae(t,e=!1){return t instanceof ReadableStream&&(FQ(!Xl.isDisturbed(t),"The body has already been consumed."),FQ(!t.locked,"The stream is locked.")),xU(t,e)}function Pae(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function vae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Oae(t){return{blob(){return Ac(this,r=>{let s=wU(this);return s===null?s="":s&&(s=Fae(s)),new xae([r],{type:s})},t)},arrayBuffer(){return Ac(this,r=>new Uint8Array(r).buffer,t)},text(){return Ac(this,NU,t)},json(){return Ac(this,Hae,t)},formData(){return Ac(this,r=>{let s=wU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Mae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new bU;return i[cc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new bU;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Ac(this,r=>new Uint8Array(r),t)}}}function _ae(t){Object.assign(t.prototype,Oae(t))}async function Ac(t,e,r){if(Dae.brandCheck(t,r),RU(t))throw new TypeError("Body is unusable: Body has already been read");vae(t[cc]);let s=Nae(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[cc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Sae(t[cc].body,i,n),s.promise)}function RU(t){let e=t[cc].body;return e!=null&&(e.stream.locked||Xl.isDisturbed(e.stream))}function Hae(t){return JSON.parse(NU(t))}function wU(t){let e=t[cc].headersList,r=Tae(e);return r==="failure"?null:r}kU.exports={extractBody:xU,safelyExtractBody:Lae,cloneBody:Pae,mixinBody:_ae,streamRegistry:DU,hasFinalizationRegistry:TU,bodyUnusable:RU}});var YU=m((xqe,GU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:FU}=jA(),UQ=mQ(),{RequestContentLengthMismatchError:ba,ResponseContentLengthMismatchError:Gae,RequestAbortedError:OU,HeadersTimeoutError:Yae,HeadersOverflowError:qae,SocketError:Yf,InformationalError:lc,BodyTimeoutError:Vae,HTTPParserError:Jae,ResponseExceededMaxSizeError:Wae}=Se(),{kUrl:_U,kReset:Ir,kClient:OQ,kParser:nt,kBlocking:$l,kRunning:Jt,kPending:zae,kSize:MU,kWriting:ao,kQueue:on,kNoRef:jl,kKeepAliveDefaultTimeout:Kae,kHostHeader:Xae,kPendingIdx:jae,kRunningIdx:Is,kError:Bs,kPipelining:Hf,kSocket:dc,kKeepAliveTimeoutValue:qf,kMaxHeadersSize:LQ,kKeepAliveMaxTimeout:Zae,kKeepAliveTimeoutThreshold:$ae,kHeadersTimeout:eAe,kBodyTimeout:tAe,kStrictContentLength:_Q,kMaxRequests:UU,kCounter:rAe,kMaxResponseSize:sAe,kOnError:nAe,kResume:oo,kHTTPContext:HU}=je(),Mn=DM(),iAe=Buffer.alloc(0),vf=Buffer[Symbol.species],Of=Ae.addListener,oAe=Ae.removeAllListeners,PQ;async function aAe(){let t=process.env.JEST_WORKER_ID?CQ():void 0,e;try{e=await WebAssembly.compile(kM())}catch{e=await WebAssembly.compile(t||CQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(wt.ptr===r);let i=s-Ln+Un.byteOffset;return wt.onStatus(new vf(Un.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(wt.ptr===r),wt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(wt.ptr===r);let i=s-Ln+Un.byteOffset;return wt.onHeaderField(new vf(Un.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(wt.ptr===r);let i=s-Ln+Un.byteOffset;return wt.onHeaderValue(new vf(Un.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(wt.ptr===r),wt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(wt.ptr===r);let i=s-Ln+Un.byteOffset;return wt.onBody(new vf(Un.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(wt.ptr===r),wt.onMessageComplete()||0)}})}var vQ=null,HQ=aAe();HQ.catch();var wt=null,Un=null,_f=0,Ln=null,AAe=0,Zl=1,gc=2|Zl,Gf=4|Zl,GQ=8|AAe,YQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[LQ])&&e[LQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Mn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`);g.push(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=vf.encode(`--${A}--\r
`);g.push(E),i+=E.byteLength,f&&(i=null),n=t,s=async function*(){for(let w of g)w.stream?yield*w.stream():yield w},o=`multipart/form-data; boundary=${A}`}else if(lU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($l.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Joe(t)}if((typeof n=="string"||$l.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:d}=await A.next();if(d)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!fU(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function iae(t,e=!1){return t instanceof ReadableStream&&(RQ(!$l.isDisturbed(t),"The body has already been consumed."),RQ(!t.locked,"The stream is locked.")),EU(t,e)}function oae(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function aae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aae(t){return{blob(){return lc(this,r=>{let s=gU(this);return s===null?s="":s&&(s=rae(s)),new $oe([r],{type:s})},t)},arrayBuffer(){return lc(this,r=>new Uint8Array(r).buffer,t)},text(){return lc(this,hU,t)},json(){return lc(this,uae,t)},formData(){return lc(this,r=>{let s=gU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=sae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new dU;return i[dc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new dU;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return lc(this,r=>new Uint8Array(r),t)}}}function cae(t){Object.assign(t.prototype,Aae(t))}async function lc(t,e,r){if(Zoe.brandCheck(t,r),CU(t))throw new TypeError("Body is unusable: Body has already been read");aae(t[dc]);let s=Koe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[dc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Xoe(t[dc].body,i,n),s.promise)}function CU(t){let e=t[dc].body;return e!=null&&(e.stream.locked||$l.isDisturbed(e.stream))}function uae(t){return JSON.parse(hU(t))}function gU(t){let e=t[dc].headersList,r=joe(e);return r==="failure"?null:r}IU.exports={extractBody:EU,safelyExtractBody:iae,cloneBody:oae,mixinBody:cae,streamRegistry:pU,hasFinalizationRegistry:mU,bodyUnusable:CU}});var RU=m((YYe,xU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:BU}=ec(),FQ=hQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:lae,RequestAbortedError:SU,HeadersTimeoutError:dae,HeadersOverflowError:gae,SocketError:qf,InformationalError:hc,BodyTimeoutError:hae,HTTPParserError:fae,ResponseExceededMaxSizeError:mae}=Se(),{kUrl:TU,kReset:Ir,kClient:PQ,kParser:nt,kBlocking:rd,kRunning:zt,kPending:pae,kSize:QU,kWriting:ao,kQueue:on,kNoRef:ed,kKeepAliveDefaultTimeout:Eae,kHostHeader:Cae,kPendingIdx:Iae,kRunningIdx:Is,kError:Bs,kPipelining:Gf,kSocket:fc,kKeepAliveTimeoutValue:Vf,kMaxHeadersSize:MQ,kKeepAliveMaxTimeout:Bae,kKeepAliveTimeoutThreshold:Qae,kHeadersTimeout:yae,kBodyTimeout:bae,kStrictContentLength:vQ,kMaxRequests:yU,kCounter:wae,kMaxResponseSize:Nae,kOnError:Sae,kResume:oo,kHTTPContext:DU}=je(),Fn=pM(),Tae=Buffer.alloc(0),Of=Buffer[Symbol.species],_f=Ae.addListener,Dae=Ae.removeAllListeners,UQ;async function xae(){let t=process.env.JEST_WORKER_ID?pQ():void 0,e;try{e=await WebAssembly.compile(IM())}catch{e=await WebAssembly.compile(t||pQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onStatus(new Of(Mn.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(wt.ptr===r),wt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderField(new Of(Mn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderValue(new Of(Mn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(wt.ptr===r),wt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onBody(new Of(Mn.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(wt.ptr===r),wt.onMessageComplete()||0)}})}var LQ=null,OQ=xae();OQ.catch();var wt=null,Mn=null,Hf=0,Un=null,Rae=0,td=1,mc=2|td,Yf=4|td,_Q=8|Rae,HQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[MQ])&&e[MQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Fn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Xae],i?E+=`connection: upgrade\r
`:E+=t[Cae],i?E+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Hf]&&!h[Ir]?E+=`connection: keep-alive\r
`:t[Gf]&&!h[Ir]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return FU.sendHeaders.hasSubscribers&&FU.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?PU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?PU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?vU(f,A.stream(),t,e,h,u,E,d):hAe(f,A,t,e,h,u,E,d):Ae.isStream(A)?gAe(f,A,t,e,h,u,E,d):Ae.isIterable(A)?vU(f,A,t,e,h,u,E,d):ee(!1),!0}function gAe(t,e,r,s,n,i,o,a){ee(i!==0||r[Jt]===0,"stream body cannot be pipelined");let A=!1,c=new Vf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){Ae.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new OU;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[ao]&&r[Jt]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ae.destroy(e,f):Ae.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function PU(t,e,r,s,n,i,o,a){try{e?Ae.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return BU.sendHeaders.hasSubscribers&&BU.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?wU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?wU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?NU(f,A.stream(),t,e,h,u,E,d):Pae(f,A,t,e,h,u,E,d):Ae.isStream(A)?Lae(f,A,t,e,h,u,E,d):Ae.isIterable(A)?NU(f,A,t,e,h,u,E,d):ee(!1),!0}function Lae(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"stream body cannot be pipelined");let A=!1,c=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){Ae.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SU;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[ao]&&r[zt]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ae.destroy(e,f):Ae.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function wU(t,e,r,s,n,i,o,a){try{e?Ae.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Ir]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(ee(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[oo]()}catch(A){t(A)}}async function hAe(t,e,r,s,n,i,o,a){ee(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ba;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[oo]()}catch(A){t(A)}}async function Pae(t,e,r,s,n,i,o,a){ee(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Na;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ir]=!0),r[oo]()}catch(A){t(A)}}async function vU(t,e,r,s,n,i,o,a){ee(i!==0||r[Jt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ee(A===null),n[Bs]?h(n[Bs]):A=g});n.on("close",c).on("drain",c);let d=new Vf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Bs])throw n[Bs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Vf=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[ao]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bs])throw r[Bs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[_Q])throw new ba;process.emitWarning(new ba)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ir]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ir]=!0),r[oo]()}catch(A){t(A)}}async function NU(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ee(A===null),n[Bs]?h(n[Bs]):A=g});n.on("close",c).on("drain",c);let d=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Bs])throw n[Bs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Jf=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[ao]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bs])throw r[Bs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[vQ])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ir]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[nt].timeout&&r[nt].timeoutType===gc&&r[nt].timeout.refresh&&r[nt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[ao]=!1,e[Bs])throw e[Bs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[nt].timeout&&r[nt].timeoutType===mc&&r[nt].timeout.refresh&&r[nt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[ao]=!1,e[Bs])throw e[Bs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[_Q])throw new ba;process.emitWarning(new ba)}e[nt].timeout&&e[nt].timeoutType===gc&&e[nt].timeout.refresh&&e[nt].timeout.refresh(),s[oo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ao]=!1,e&&(ee(s[Jt]<=1,"pipeline should only contain this request"),n(e))}};GU.exports=cAe});var jU=m((Rqe,XU)=>{"use strict";var Qs=Q("node:assert"),{pipeline:fAe}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:qQ,RequestAbortedError:qU,SocketError:ed,InformationalError:VQ}=Se(),{kUrl:Jf,kReset:zf,kClient:hc,kRunning:Kf,kPending:mAe,kQueue:Ao,kPendingIdx:JQ,kRunningIdx:an,kError:cn,kSocket:xt,kStrictContentLength:pAe,kOnError:WQ,kMaxConcurrentStreams:KU,kHTTP2Session:An,kResume:co,kSize:EAe,kHTTPContext:CAe}=je(),bi=Symbol("open streams"),VU,JU=!1,Wf;try{Wf=Q("node:http2")}catch{Wf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:IAe,HTTP2_HEADER_METHOD:BAe,HTTP2_HEADER_PATH:QAe,HTTP2_HEADER_SCHEME:yAe,HTTP2_HEADER_CONTENT_LENGTH:bAe,HTTP2_HEADER_EXPECT:wAe,HTTP2_HEADER_STATUS:NAe}}=Wf;function SAe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function TAe(t,e){t[xt]=e,JU||(JU=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Wf.connect(t[Jf],{createConnection:()=>e,peerMaxConcurrentStreams:t[KU]});r[bi]=0,r[hc]=t,r[xt]=e,Ee.addListener(r,"error",xAe),Ee.addListener(r,"frameError",RAe),Ee.addListener(r,"end",kAe),Ee.addListener(r,"goaway",FAe),Ee.addListener(r,"close",function(){let{[hc]:n}=this,{[xt]:i}=n,o=this[xt][cn]||this[cn]||new ed("closed",Ee.getSocketInfo(i));if(n[An]=null,n.destroyed){Qs(n[mAe]===0);let a=n[Ao].splice(n[an]);for(let A=0;A<a.length;A++){let c=a[A];Ee.errorRequest(n,c,o)}}}),r.unref(),t[An]=r,e[An]=r,Ee.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=n,this[hc][WQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new ed("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[cn]||new ed("closed",Ee.getSocketInfo(this));t[xt]=null,this[An]!=null&&this[An].destroy(n),t[JQ]=t[an],Qs(t[Kf]===0),t.emit("disconnect",t[Jf],[t],n),t[co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return UAe(t,...n)},resume(){DAe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function DAe(t){let e=t[xt];e?.destroyed===!1&&(t[EAe]===0&&t[KU]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}function xAe(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][cn]=t,this[hc][WQ](t)}function RAe(t,e,r){if(r===0){let s=new VQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][cn]=s,this[hc][WQ](s)}}function kAe(){let t=new ed("other side closed",Ee.getSocketInfo(this[xt]));this.destroy(t),Ee.destroy(this[xt],t)}function FAe(t){let e=this[cn]||new ed(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[hc];if(r[xt]=null,r[CAe]=null,this[An]!=null&&(this[An].destroy(e),this[An]=null),Ee.destroy(this[xt],e),r[an]<r[Ao].length){let s=r[Ao][r[an]];r[Ao][r[an]++]=null,Ee.errorRequest(r,s,e),r[JQ]=r[an]}Qs(r[Kf]===0),r.emit("disconnect",r[Jf],[r],e),r[co]()}function MAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function UAe(t,e){let r=t[An],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ee.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let D=0;D<c.length;D+=2){let U=c[D+0],v=c[D+1];if(Array.isArray(v))for(let k=0;k<v.length;k++)d[U]?d[U]+=`,${v[k]}`:d[U]=v[k];else d[U]=v}let g,{hostname:h,port:f}=t[Jf];d[IAe]=i||`${h}${f?`:${f}`:""}`,d[BAe]=s;let E=D=>{e.aborted||e.completed||(D=D||new qU,Ee.errorRequest(t,e,D),g!=null&&Ee.destroy(g,D),Ee.destroy(u,D),t[Ao][t[an]++]=null,t[co]())};try{e.onConnect(E)}catch(D){Ee.errorRequest(t,e,D)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(d,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null}),g.once("close",()=>{r[bi]-=1,r[bi]===0&&r.unref()}),!0;d[QAe]=n,d[yAe]="https";let w=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let p=Ee.bodyLength(u);if(Ee.isFormDataLike(u)){VU??=uc().extractBody;let[D,U]=VU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),MAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[pAe])return Ee.errorRequest(t,e,new qQ),!1;process.emitWarning(new qQ)}p!=null&&(Qs(u,"no body must not have content length"),d[bAe]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[wAe]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[ace]=A??3e5,this[oce]=n??3e5,this[Ace]=y??!0,this[cce]=D,this[jQ]=v,this[lo]=null,this[hce]=O>-1?O:-1,this[mce]=Ge??100,this[gt]=null,this[un]=[],this[Ni]=0,this[ln]=0,this[nd]=fe=>$Q(this,fe),this[fce]=fe=>cL(this,fe)}get pipelining(){return this[$f]}set pipelining(e){this[$f]=e,this[nd](!0)}get[ad](){return this[un].length-this[ln]}get[od](){return this[ln]-this[Ni]}get[id](){return this[un].length-this[Ni]}get[$Ae](){return!!this[gt]&&!this[mc]&&!this[gt].destroyed}get[XQ](){return!!(this[gt]?.busy(null)||this[id]>=(AL(this)||1)||this[ad]>0)}[ZAe](e){uL(this),this.once("connect",e)}[gce](e,r){let s=e.origin||this[vn].origin,n=new JAe(s,e,r);return this[un].push(n),this[Na]||(wa.bodyLength(n.body)==null&&wa.isIterable(n.body)?(this[Na]=1,queueMicrotask(()=>$Q(this))):this[nd](!0)),this[Na]&&this[go]!==2&&this[XQ]&&(this[go]=2),this[go]<2}async[lce](){return new Promise(e=>{this[id]?this[lo]=e:e(null)})}async[dce](e){return new Promise(r=>{let s=this[un].splice(this[ln]);for(let i=0;i<s.length;i++){let o=s[i];wa.errorRequest(this,o,e)}let n=()=>{this[lo]&&(this[lo](),this[lo]=null),r(null)};this[gt]?(this[gt].destroy(e,n),this[gt]=null):queueMicrotask(n),this[nd]()})}},Cce=Zf();function cL(t,e){if(t[od]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wi(t[ln]===t[Ni]);let r=t[un].splice(t[Ni]);for(let s=0;s<r.length;s++){let n=r[s];wa.errorRequest(t,n,e)}wi(t[id]===0)}}async function uL(t){wi(!t[mc]),wi(!t[gt]);let{host:e,hostname:r,protocol:s,port:n}=t[vn];if(r[0]==="["){let i=r.indexOf("]");wi(i!==-1);let o=r.substring(1,i);wi(aL.isIP(o)),r=o}t[mc]=!0,fc.beforeConnect.hasSubscribers&&fc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[sd]},connector:t[rd]});try{let i=await new Promise((o,a)=>{t[rd]({host:e,hostname:r,protocol:s,port:n,servername:t[uo],localAddress:t[sd]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){wa.destroy(i.on("error",iL),new KAe);return}wi(i);try{t[gt]=i.alpnProtocol==="h2"?await Ece(t,i):await pce(t,i)}catch(o){throw i.destroy().on("error",iL),o}t[mc]=!1,i[uce]=0,i[jQ]=t[jQ],i[jAe]=t,i[tce]=null,fc.connected.hasSubscribers&&fc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[sd]},connector:t[rd],socket:i}),t.emit("connect",t[vn],[t])}catch(i){if(t.destroyed)return;if(t[mc]=!1,fc.connectError.hasSubscribers&&fc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[sd]},connector:t[rd],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wi(t[od]===0);t[ad]>0&&t[un][t[ln]].servername===t[uo];){let o=t[un][t[ln]++];wa.errorRequest(t,o,i)}else cL(t,i);t.emit("connectionError",t[vn],[t],i)}t[nd]()}function oL(t){t[go]=0,t.emit("drain",t[vn],[t])}function $Q(t,e){t[Na]!==2&&(t[Na]=2,Ice(t,e),t[Na]=0,t[Ni]>256&&(t[un].splice(0,t[Ni]),t[ln]-=t[Ni],t[Ni]=0))}function Ice(t,e){for(;;){if(t.destroyed){wi(t[ad]===0);return}if(t[lo]&&!t[id]){t[lo](),t[lo]=null;return}if(t[gt]&&t[gt].resume(),t[XQ])t[go]=2;else if(t[go]===2){e?(t[go]=1,queueMicrotask(()=>oL(t))):oL(t);continue}if(t[ad]===0||t[od]>=(AL(t)||1))return;let r=t[un][t[ln]];if(t[vn].protocol==="https:"&&t[uo]!==r.servername){if(t[od]>0)return;t[uo]=r.servername,t[gt]?.destroy(new zAe("servername changed"),()=>{t[gt]=null,$Q(t)})}if(t[mc])return;if(!t[gt]){uL(t);return}if(t[gt].destroyed||t[gt].busy(r))return;!r.aborted&&t[gt].write(r)?t[ln]++:t[un].splice(t[ln],1)}}lL.exports=ZQ});var ey=m((Lqe,dL)=>{"use strict";var em=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};dL.exports=class{constructor(){this.head=this.tail=new em}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new em),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var hL=m((Pqe,gL)=>{var{kFree:Bce,kConnected:Qce,kPending:yce,kQueued:bce,kRunning:wce,kSize:Nce}=je(),Sa=Symbol("pool"),ty=class{constructor(e){this[Sa]=e}get connected(){return this[Sa][Qce]}get free(){return this[Sa][Bce]}get pending(){return this[Sa][yce]}get queued(){return this[Sa][bce]}get running(){return this[Sa][wce]}get size(){return this[Sa][Nce]}};gL.exports=ty});var ay=m((vqe,bL)=>{"use strict";var Sce=tc(),Tce=ey(),{kConnected:ry,kSize:fL,kRunning:mL,kPending:pL,kQueued:Ad,kBusy:Dce,kFree:xce,kUrl:Rce,kClose:kce,kDestroy:Fce,kDispatch:Mce}=je(),Uce=hL(),Br=Symbol("clients"),ir=Symbol("needDrain"),cd=Symbol("queue"),sy=Symbol("closed resolve"),ny=Symbol("onDrain"),EL=Symbol("onConnect"),CL=Symbol("onDisconnect"),IL=Symbol("onConnectionError"),iy=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[vQ])throw new Na;process.emitWarning(new Na)}e[nt].timeout&&e[nt].timeoutType===mc&&e[nt].timeout.refresh&&e[nt].timeout.refresh(),s[oo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ao]=!1,e&&(ee(s[zt]<=1,"pipeline should only contain this request"),n(e))}};xU.exports=kae});var OU=m((qYe,vU)=>{"use strict";var Qs=Q("node:assert"),{pipeline:vae}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:GQ,RequestAbortedError:kU,SocketError:sd,InformationalError:YQ}=Se(),{kUrl:Wf,kReset:Kf,kClient:pc,kRunning:Xf,kPending:Oae,kQueue:Ao,kPendingIdx:qQ,kRunningIdx:an,kError:cn,kSocket:xt,kStrictContentLength:_ae,kOnError:VQ,kMaxConcurrentStreams:PU,kHTTP2Session:An,kResume:co,kSize:Hae,kHTTPContext:Gae}=je(),bi=Symbol("open streams"),FU,MU=!1,zf;try{zf=Q("node:http2")}catch{zf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Yae,HTTP2_HEADER_METHOD:qae,HTTP2_HEADER_PATH:Vae,HTTP2_HEADER_SCHEME:Jae,HTTP2_HEADER_CONTENT_LENGTH:Wae,HTTP2_HEADER_EXPECT:zae,HTTP2_HEADER_STATUS:Kae}}=zf;function Xae(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function jae(t,e){t[xt]=e,MU||(MU=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zf.connect(t[Wf],{createConnection:()=>e,peerMaxConcurrentStreams:t[PU]});r[bi]=0,r[pc]=t,r[xt]=e,Ee.addListener(r,"error",$ae),Ee.addListener(r,"frameError",eAe),Ee.addListener(r,"end",tAe),Ee.addListener(r,"goaway",rAe),Ee.addListener(r,"close",function(){let{[pc]:n}=this,{[xt]:i}=n,o=this[xt][cn]||this[cn]||new sd("closed",Ee.getSocketInfo(i));if(n[An]=null,n.destroyed){Qs(n[Oae]===0);let a=n[Ao].splice(n[an]);for(let A=0;A<a.length;A++){let c=a[A];Ee.errorRequest(n,c,o)}}}),r.unref(),t[An]=r,e[An]=r,Ee.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=n,this[pc][VQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new sd("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[cn]||new sd("closed",Ee.getSocketInfo(this));t[xt]=null,this[An]!=null&&this[An].destroy(n),t[qQ]=t[an],Qs(t[Xf]===0),t.emit("disconnect",t[Wf],[t],n),t[co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return nAe(t,...n)},resume(){Zae(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Zae(t){let e=t[xt];e?.destroyed===!1&&(t[Hae]===0&&t[PU]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}function $ae(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][cn]=t,this[pc][VQ](t)}function eAe(t,e,r){if(r===0){let s=new YQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][cn]=s,this[pc][VQ](s)}}function tAe(){let t=new sd("other side closed",Ee.getSocketInfo(this[xt]));this.destroy(t),Ee.destroy(this[xt],t)}function rAe(t){let e=this[cn]||new sd(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[pc];if(r[xt]=null,r[Gae]=null,this[An]!=null&&(this[An].destroy(e),this[An]=null),Ee.destroy(this[xt],e),r[an]<r[Ao].length){let s=r[Ao][r[an]];r[Ao][r[an]++]=null,Ee.errorRequest(r,s,e),r[qQ]=r[an]}Qs(r[Xf]===0),r.emit("disconnect",r[Wf],[r],e),r[co]()}function sAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function nAe(t,e){let r=t[An],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ee.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let D=0;D<c.length;D+=2){let U=c[D+0],v=c[D+1];if(Array.isArray(v))for(let k=0;k<v.length;k++)d[U]?d[U]+=`,${v[k]}`:d[U]=v[k];else d[U]=v}let g,{hostname:h,port:f}=t[Wf];d[Yae]=i||`${h}${f?`:${f}`:""}`,d[qae]=s;let E=D=>{e.aborted||e.completed||(D=D||new kU,Ee.errorRequest(t,e,D),g!=null&&Ee.destroy(g,D),Ee.destroy(u,D),t[Ao][t[an]++]=null,t[co]())};try{e.onConnect(E)}catch(D){Ee.errorRequest(t,e,D)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(d,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null}),g.once("close",()=>{r[bi]-=1,r[bi]===0&&r.unref()}),!0;d[Vae]=n,d[Jae]="https";let w=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let p=Ee.bodyLength(u);if(Ee.isFormDataLike(u)){FU??=gc().extractBody;let[D,U]=FU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),sAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[_ae])return Ee.errorRequest(t,e,new GQ),!1;process.emitWarning(new GQ)}p!=null&&(Qs(u,"no body must not have content length"),d[Wae]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[zae]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[xAe]=A??3e5,this[DAe]=n??3e5,this[RAe]=y??!0,this[kAe]=D,this[KQ]=v,this[lo]=null,this[PAe]=O>-1?O:-1,this[OAe]=Ge??100,this[gt]=null,this[un]=[],this[Ni]=0,this[ln]=0,this[ad]=fe=>jQ(this,fe),this[vAe]=fe=>jU(this,fe)}get pipelining(){return this[em]}set pipelining(e){this[em]=e,this[ad](!0)}get[ud](){return this[un].length-this[ln]}get[cd](){return this[ln]-this[Ni]}get[Ad](){return this[un].length-this[Ni]}get[QAe](){return!!this[gt]&&!this[Cc]&&!this[gt].destroyed}get[zQ](){return!!(this[gt]?.busy(null)||this[Ad]>=(XU(this)||1)||this[ud]>0)}[BAe](e){ZU(this),this.once("connect",e)}[LAe](e,r){let s=e.origin||this[Pn].origin,n=new fAe(s,e,r);return this[un].push(n),this[Ta]||(Sa.bodyLength(n.body)==null&&Sa.isIterable(n.body)?(this[Ta]=1,queueMicrotask(()=>jQ(this))):this[ad](!0)),this[Ta]&&this[go]!==2&&this[zQ]&&(this[go]=2),this[go]<2}async[MAe](){return new Promise(e=>{this[Ad]?this[lo]=e:e(null)})}async[UAe](e){return new Promise(r=>{let s=this[un].splice(this[ln]);for(let i=0;i<s.length;i++){let o=s[i];Sa.errorRequest(this,o,e)}let n=()=>{this[lo]&&(this[lo](),this[lo]=null),r(null)};this[gt]?(this[gt].destroy(e,n),this[gt]=null):queueMicrotask(n),this[ad]()})}},GAe=$f();function jU(t,e){if(t[cd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wi(t[ln]===t[Ni]);let r=t[un].splice(t[Ni]);for(let s=0;s<r.length;s++){let n=r[s];Sa.errorRequest(t,n,e)}wi(t[Ad]===0)}}async function ZU(t){wi(!t[Cc]),wi(!t[gt]);let{host:e,hostname:r,protocol:s,port:n}=t[Pn];if(r[0]==="["){let i=r.indexOf("]");wi(i!==-1);let o=r.substring(1,i);wi(KU.isIP(o)),r=o}t[Cc]=!0,Ec.beforeConnect.hasSubscribers&&Ec.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id]});try{let i=await new Promise((o,a)=>{t[id]({host:e,hostname:r,protocol:s,port:n,servername:t[uo],localAddress:t[od]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sa.destroy(i.on("error",WU),new EAe);return}wi(i);try{t[gt]=i.alpnProtocol==="h2"?await HAe(t,i):await _Ae(t,i)}catch(o){throw i.destroy().on("error",WU),o}t[Cc]=!1,i[FAe]=0,i[KQ]=t[KQ],i[IAe]=t,i[bAe]=null,Ec.connected.hasSubscribers&&Ec.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],socket:i}),t.emit("connect",t[Pn],[t])}catch(i){if(t.destroyed)return;if(t[Cc]=!1,Ec.connectError.hasSubscribers&&Ec.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wi(t[cd]===0);t[ud]>0&&t[un][t[ln]].servername===t[uo];){let o=t[un][t[ln]++];Sa.errorRequest(t,o,i)}else jU(t,i);t.emit("connectionError",t[Pn],[t],i)}t[ad]()}function zU(t){t[go]=0,t.emit("drain",t[Pn],[t])}function jQ(t,e){t[Ta]!==2&&(t[Ta]=2,YAe(t,e),t[Ta]=0,t[Ni]>256&&(t[un].splice(0,t[Ni]),t[ln]-=t[Ni],t[Ni]=0))}function YAe(t,e){for(;;){if(t.destroyed){wi(t[ud]===0);return}if(t[lo]&&!t[Ad]){t[lo](),t[lo]=null;return}if(t[gt]&&t[gt].resume(),t[zQ])t[go]=2;else if(t[go]===2){e?(t[go]=1,queueMicrotask(()=>zU(t))):zU(t);continue}if(t[ud]===0||t[cd]>=(XU(t)||1))return;let r=t[un][t[ln]];if(t[Pn].protocol==="https:"&&t[uo]!==r.servername){if(t[cd]>0)return;t[uo]=r.servername,t[gt]?.destroy(new pAe("servername changed"),()=>{t[gt]=null,jQ(t)})}if(t[Cc])return;if(!t[gt]){ZU(t);return}if(t[gt].destroyed||t[gt].busy(r))return;!r.aborted&&t[gt].write(r)?t[ln]++:t[un].splice(t[ln],1)}}$U.exports=XQ});var ZQ=m((KYe,eL)=>{"use strict";var tm=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};eL.exports=class{constructor(){this.head=this.tail=new tm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var rL=m((XYe,tL)=>{var{kFree:qAe,kConnected:VAe,kPending:JAe,kQueued:WAe,kRunning:zAe,kSize:KAe}=je(),Da=Symbol("pool"),$Q=class{constructor(e){this[Da]=e}get connected(){return this[Da][VAe]}get free(){return this[Da][qAe]}get pending(){return this[Da][JAe]}get queued(){return this[Da][WAe]}get running(){return this[Da][zAe]}get size(){return this[Da][KAe]}};tL.exports=$Q});var iy=m((jYe,dL)=>{"use strict";var XAe=nc(),jAe=ZQ(),{kConnected:ey,kSize:sL,kRunning:nL,kPending:iL,kQueued:ld,kBusy:ZAe,kFree:$Ae,kUrl:ece,kClose:tce,kDestroy:rce,kDispatch:sce}=je(),nce=rL(),Br=Symbol("clients"),ir=Symbol("needDrain"),dd=Symbol("queue"),ty=Symbol("closed resolve"),ry=Symbol("onDrain"),oL=Symbol("onConnect"),aL=Symbol("onDisconnect"),AL=Symbol("onConnectionError"),sy=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};xv.exports=ab});var Em=m((dVe,Uv)=>{"use strict";var kv=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ade}=Se(),Ade=Cc();Mv()===void 0&&Fv(new Ade);function Fv(t){if(!t||typeof t.dispatch!="function")throw new ade("Argument agent must implement Agent");Object.defineProperty(globalThis,kv,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Mv(){return globalThis[kv]}Uv.exports={setGlobalDispatcher:Fv,getGlobalDispatcher:Mv}});var Cm=m((hVe,Lv)=>{"use strict";Lv.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var vv=m((fVe,Pv)=>{"use strict";var cde=jf();Pv.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new cde(r,o,n,i);return r(a,A)}}});var _v=m((mVe,Ov)=>{"use strict";var ude=Am();Ov.exports=t=>e=>function(s,n){return e(s,new ude({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var Gv=m((pVe,Hv)=>{"use strict";var lde=me(),{InvalidArgumentError:dde,RequestAbortedError:gde}=Se(),hde=Cm(),Ab=class extends hde{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new dde("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=lde.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new gde(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function fde({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Ab({maxSize:i},n);return e(s,o)}}Hv.exports=fde});var Vv=m((EVe,qv)=>{"use strict";var{isIP:mde}=Q("node:net"),{lookup:pde}=Q("node:dns"),Ede=Cm(),{InvalidArgumentError:Dc,InformationalError:Cde}=Se(),Yv=Math.pow(2,31)-1,cb=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Cde("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#s(e,r,s){pde(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===Yv?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===Yv?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new ub(this,e,r)}},ub=class extends Ede{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#s.onError(r);le Line truncated
${i}`;break;case"retry":b4(i)&&(r[n]=i);break;case"id":w4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&b4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&w4(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};N4.exports={EventSourceStream:Kb}});var U4=m((KVe,M4)=>{"use strict";var{pipeline:Dme}=Q("node:stream"),{fetching:xme}=Qd(),{makeRequest:Rme}=kc(),{webidl:Ri}=Ht(),{EventSourceStream:kme}=S4(),{parseMIMEType:Fme}=Cr(),{createFastMessageEvent:Mme}=vc(),{isNetworkError:T4}=Id(),{delay:Ume}=Wb(),{kEnumerableProperty:Ga}=me(),{environmentSettingsObject:D4}=Gr(),x4=!1,R4=3e3,Ud=0,k4=1,Ld=2,Lme="anonymous",Pme="use-credentials",Yc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=Ud;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),x4||(x4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ri.converters.USVString(e,s,"url"),r=Ri.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:R4};let n=D4,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Lme;r.withCredentials&&(o=Pme,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=D4.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Rme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Ld)return;this.#s=Ud;let e={request:this.#i,dispatcher:this.#a},r=s=>{T4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(T4(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Fme(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=k4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new kme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Mme(A.type,A.options))}});Dme(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=xme(e)}async#c(){this.#s!==Ld&&(this.#s=Ud,this.dispatchEvent(new Event("error")),await Ume(this.#o.reconnectionTime),this.#s===Ud&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ri.brandCheck(this,t),this.#s!==Ld&&(this.#s=Ld,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},F4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ud,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:k4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ld,writable:!1}};Object.defineProperties(Yc,F4);Object.defineProperties(Yc.prototype,F4);Object.defineProperties(Yc.prototype,{close:Ga,onerror:Ga,onmessage:Ga,onopen:Ga,readyState:Ga,url:Ga,withCredentials:Ga});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any}]);M4.exports={EventSource:Yc,defaultReconnectionTime:R4}});var ap=m((XVe,re)=>{"use strict";var vme=pc(),L4=_l(),Ome=Ec(),_me=FL(),Hme=Cc(),Gme=Iy(),Yme=sP(),qme=cP(),P4=Se(),op=me(),{InvalidArgumentError:ip}=P4,qc=KP(),Vme=Gl(),Jme=tb(),Wme=Rv(),zme=nb(),Kme=Gy(),Xme=Am(),{getGlobalDispatcher:v4,setGlobalDispatcher:jme}=Em(),Zme=Cm(),$me=jf(),epe=Zf();Object.assign(L4.prototype,qc);re.exports.Dispatcher=L4;re.exports.Client=vme;re.exports.Pool=Ome;re.exports.BalancedPool=_me;re.exports.Agent=Hme;re.exports.ProxyAgent=Gme;re.exports.EnvHttpProxyAgent=Yme;re.exports.RetryAgent=qme;re.exports.RetryHandle Line truncated
`.trim())}};E3.exports=ib});var Cm=m((wqe,y3)=>{"use strict";var I3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:xle}=Se(),Rle=Qc();Q3()===void 0&&B3(new Rle);function B3(t){if(!t||typeof t.dispatch!="function")throw new xle("Argument agent must implement Agent");Object.defineProperty(globalThis,I3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Q3(){return globalThis[I3]}y3.exports={setGlobalDispatcher:B3,getGlobalDispatcher:Q3}});var Im=m((Sqe,b3)=>{"use strict";b3.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var N3=m((Tqe,w3)=>{"use strict";var kle=Zf();w3.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new kle(r,o,n,i);return r(a,A)}}});var T3=m((Dqe,S3)=>{"use strict";var Fle=cm();S3.exports=t=>e=>function(s,n){return e(s,new Fle({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var x3=m((xqe,D3)=>{"use strict";var Mle=me(),{InvalidArgumentError:Ule,RequestAbortedError:Lle}=Se(),Ple=Im(),ob=class extends Ple{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ule("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=Mle.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Lle(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function vle({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new ob({maxSize:i},n);return e(s,o)}}D3.exports=vle});var F3=m((Rqe,k3)=>{"use strict";var{isIP:Ole}=Q("node:net"),{lookup:_le}=Q("node:dns"),Hle=Im(),{InvalidArgumentError:kc,InformationalError:Gle}=Se(),R3=Math.pow(2,31)-1,ab=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Gle("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#s(e,r,s){_le(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===R3?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===R3?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new Ab(this,e,r)}},Ab=class extends Hle{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#s.onError(r);le Line truncated
${i}`;break;case"retry":d4(i)&&(r[n]=i);break;case"id":g4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&d4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&g4(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};h4.exports={EventSourceStream:Wb}});var y4=m((AVe,Q4)=>{"use strict";var{pipeline:Zfe}=Q("node:stream"),{fetching:$fe}=wd(),{makeRequest:eme}=Uc(),{webidl:Ri}=Ht(),{EventSourceStream:tme}=f4(),{parseMIMEType:rme}=Cr(),{createFastMessageEvent:sme}=Hc(),{isNetworkError:m4}=yd(),{delay:nme}=Vb(),{kEnumerableProperty:qa}=me(),{environmentSettingsObject:p4}=Gr(),E4=!1,C4=3e3,vd=0,I4=1,Od=2,ime="anonymous",ome="use-credentials",Jc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=vd;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),E4||(E4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ri.converters.USVString(e,s,"url"),r=Ri.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:C4};let n=p4,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=ime;r.withCredentials&&(o=ome,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=p4.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=eme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Od)return;this.#s=vd;let e={request:this.#i,dispatcher:this.#a},r=s=>{m4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(m4(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?rme(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=I4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new tme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(sme(A.type,A.options))}});Zfe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=$fe(e)}async#c(){this.#s!==Od&&(this.#s=vd,this.dispatchEvent(new Event("error")),await nme(this.#o.reconnectionTime),this.#s===vd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ri.brandCheck(this,t),this.#s!==Od&&(this.#s=Od,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},B4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:vd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:I4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Od,writable:!1}};Object.defineProperties(Jc,B4);Object.defineProperties(Jc.prototype,B4);Object.defineProperties(Jc.prototype,{close:qa,onerror:qa,onmessage:qa,onopen:qa,readyState:qa,url:qa,withCredentials:qa});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any}]);Q4.exports={EventSource:Jc,defaultReconnectionTime:C4}});var Ap=m((cVe,re)=>{"use strict";var ame=Ic(),b4=Yl(),Ame=Bc(),cme=BL(),ume=Qc(),lme=Ey(),dme=VL(),gme=jL(),w4=Se(),ap=me(),{InvalidArgumentError:op}=w4,Wc=PP(),hme=Vl(),fme=$y(),mme=C3(),pme=rb(),Eme=_y(),Cme=cm(),{getGlobalDispatcher:N4,setGlobalDispatcher:Ime}=Cm(),Bme=Im(),Qme=Zf(),yme=$f();Object.assign(b4.prototype,Wc);re.exports.Dispatcher=b4;re.exports.Client=ame;re.exports.Pool=Ame;re.exports.BalancedPool=cme;re.exports.Agent=ume;re.exports.ProxyAgent=lme;re.exports.EnvHttpProxyAgent=dme;re.exports.RetryAgent=gme;re.exports.RetryHandle Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var K_=m(z_=>{"use strict";var eN=_i().Buffer;z_._dbcs=Hi;var Gt=-1,W_=-2,Ls=-10,lr=-1e3,du=new Array(256),fg=-1;for(C0=0;C0<256;C0++)du[C0]=Gt;var C0;function Hi(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=du.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(du.slice(0));var i=this.decodeTables.length;this.decodeTables.push(du.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[lr-o[s]],A=48;A<=57;A++){if(a[A]===Gt)a[A]=lr-n;else if(a[A]>lr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[lr-a[A]],u=129;u<=254;u++){if(c[u]===Gt)c[u]=lr-i;else{if(c[u]===lr-i)continue;if(c[u]>lr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[lr-c[u]],g=48;g<=57;g++)d[g]===Gt&&(d[g]=W_)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function D1e(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(h1e.has(n)){r=n;break}}return r}function x1e(t,e){let r=D1e(e);r!==""&&(t.referrerPolicy=r)}function R1e(){return"allowed"}function k1e(){return"success"}function F1e(){return"success"}function M1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function U1e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ES(t.origin)&&!ES(AA(t))&&(e=null);break;case"same-origin":bg(t,AA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pu(t,e){return t}function L1e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pu(t.domainLookupStartTime,r),domainLookupEndTime:pu(t.domainLookupEndTime,r),connectionStartTime:pu(t.connectionStartTime,r),connectionEndTime:pu(t.connectionEndTime,r),secureConnectionStartTime:pu(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function P1e(t){return pu(E1e.now(),t)}function v1e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function w9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function O1e(t){return{referrerPolicy:t.referrerPolicy}}function _1e(t){let e=t.referrerPolicy;wg(e);let r=null;if(t.referrer==="client"){let i=I9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Go.is.URL(t.referrer)&&(r=t.referrer);let s=pS(r),n=pS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??pS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=AA(t);return aA(s)&&!aA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=AA(t);return bg(s,i)?s:aA(s)&&!aA(i)?"no-referrer":n}case"same-origin":return bg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return bg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=AA(t);return aA(s)&&!aA(i)?"no-referrer":s}}}function pS(t,e=!1){return wg(Go.is.URL(t)),t=new URL(t),D9(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var H1e=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),G1e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function N9(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),G1e(t)):H1e(t)}function Y1e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||N9(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function aA(t){return Go.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Y1e(t.origin):!1}function q1e(t){}function bg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function V1e(t){return t.controller.state==="aborted"}function J1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function W1e(t){return I1e[t.toLowerCase()]??t}var z1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function S9(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let d;switch(this.#t){case"key":d=c;break;case"value":d=u;break;case"key+value":d=[c,u];break}return{value:d,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,z1e),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function K1e(t,e,r,s=0,n=1){let i=S9(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Os(a=>SS(a)&&a!==59,t,e);i=wS.decode(o)}return{name:s,value:i}}function Cwe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Rr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Os(a=>a!==10&&a!==13&&a!==58,t,e);if(o=NS(o,!0,!0,a=>a===9||a===32),!lwe.test(o.toString()))throw Rr("header name does not match the field-name token production");if(t[e.position]!==58)throw Rr("expected :");switch(e.position++,Os(a=>a===32||a===9,t,e),uwe(o)){case"content-disposition":{if(r=s=null,Os(A=>SS(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Rr("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=Ewe(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Rr("name attribute is required in content-disposition header");break}case"content-type":{let a=Os(A=>A!==10&&A!==13,t,e);a=NS(a,!1,!0,A=>A===9||A===32),n=U9(a);break}case"content-transfer-encoding":{let a=Os(A=>A!==10&&A!==13,t,e);a=NS(a,!1,!0,A=>A===9||A===32),i=U9(a);break}default:Os(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Rr("expected CRLF");e.position+=2}}function Os(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function NS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Iwe(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Rr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Bwe(t){return t<=31||t===127}function Qwe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function SS(t){return t<=127&&t!==32&&t!==9&&!Bwe(t)&&!Qwe(t)}L9.exports={multipartFormDataParser:pwe,validateBoundary:mwe}});var Ng=m((nje,v9)=>{"use strict";function ywe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}v9.exports={createDeferredPromise:ywe}});var Iu=m((ije,Y9)=>{"use strict";var xS=ce(),{ReadableStreamFrom:bwe,readableStreamClose:wwe,fullyReadBody:Nwe,extractMimeType:Swe}=rs(),{FormData:O9,setFormDataState:Twe}=q0(),{webidl:Bn}=Yt(),TS=Q("node:assert"),{isErrored:DS,isDisturbed:Dwe}=Q("node:stream"),{isUint8Array:xwe}=Q("node:util/types"),{serializeAMimeType:Rwe}=vs(),{multipartFormDataParser:kwe}=P9(),{createDeferredPromise:Fwe}=Ng(),{parseJSONFromBytes:Mwe}=qi(),{utf8DecodeBytes:Uwe}=v0(),{runtimeFeatures:Lwe}=Vi(),Pwe=Lwe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),V0=new TextEncoder;function vwe(){}var Owe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Dwe(e)&&!DS(e)&&e.cancel("Response object has been garbage collected").catch(vwe)});function H9(t,e=!1){let r=null,s=null;Bn.is.ReadableStream(t)?r=t:Bn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),TS(Bn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Bn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Bn.is.BufferSource(t))i=Bn.util.getCopyOfBytesHeldByBufferSource(t);else if(Bn.is.FormData(t)){let c=`----formdata-undici-0${`${Pwe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var P_=m(L_=>{"use strict";var Zw=_i().Buffer;L_._dbcs=Hi;var Gt=-1,U_=-2,Ls=-10,lr=-1e3,fu=new Array(256),Eg=-1;for(I0=0;I0<256;I0++)fu[I0]=Gt;var I0;function Hi(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=fu.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(fu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[lr-o[s]],A=48;A<=57;A++){if(a[A]===Gt)a[A]=lr-n;else if(a[A]>lr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[lr-a[A]],u=129;u<=254;u++){if(c[u]===Gt)c[u]=lr-i;else{if(c[u]===lr-i)continue;if(c[u]>lr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[lr-c[u]],g=48;g<=57;g++)d[g]===Gt&&(d[g]=U_)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Zbe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(Pbe.has(n)){r=n;break}}return r}function $be(t,e){let r=Zbe(e);r!==""&&(t.referrerPolicy=r)}function e1e(){return"allowed"}function t1e(){return"success"}function r1e(){return"success"}function s1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n1e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&mS(t.origin)&&!mS(uA(t))&&(e=null);break;case"same-origin":Sg(t,uA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Iu(t,e){return t}function i1e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Iu(t.domainLookupStartTime,r),domainLookupEndTime:Iu(t.domainLookupEndTime,r),connectionStartTime:Iu(t.connectionStartTime,r),connectionEndTime:Iu(t.connectionEndTime,r),secureConnectionStartTime:Iu(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function o1e(t){return Iu(Hbe.now(),t)}function a1e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function g9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function A1e(t){return{referrerPolicy:t.referrerPolicy}}function c1e(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let i=A9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Go.is.URL(t.referrer)&&(r=t.referrer);let s=fS(r),n=fS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??fS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=uA(t);return Sg(s,i)?s:cA(s)&&!cA(i)?"no-referrer":n}case"same-origin":return Sg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Sg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":s}}}function fS(t,e=!1){return Tg(Go.is.URL(t)),t=new URL(t),p9(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var u1e=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),l1e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function h9(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),l1e(t)):u1e(t)}function d1e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||h9(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function cA(t){return Go.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:d1e(t.origin):!1}function g1e(t){}function Sg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function h1e(t){return t.controller.state==="aborted"}function f1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function m1e(t){return Ybe[t.toLowerCase()]??t}var p1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function f9(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let d;switch(this.#t){case"key":d=c;break;case"value":d=u;break;case"key+value":d=[c,u];break}return{value:d,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,p1e),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function E1e(t,e,r,s=0,n=1){let i=f9(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Os(a=>wS(a)&&a!==59,t,e);i=yS.decode(o)}return{name:s,value:i}}function G1e(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Rr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Os(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bS(o,!0,!0,a=>a===9||a===32),!M1e.test(o.toString()))throw Rr("header name does not match the field-name token production");if(t[e.position]!==58)throw Rr("expected :");switch(e.position++,Os(a=>a===32||a===9,t,e),F1e(o)){case"content-disposition":{if(r=s=null,Os(A=>wS(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Rr("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=H1e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Rr("name attribute is required in content-disposition header");break}case"content-type":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),n=y9(a);break}case"content-transfer-encoding":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),i=y9(a);break}default:Os(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Rr("expected CRLF");e.position+=2}}function Os(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function bS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Y1e(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Rr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function q1e(t){return t<=31||t===127}function V1e(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function wS(t){return t<=127&&t!==32&&t!==9&&!q1e(t)&&!V1e(t)}b9.exports={multipartFormDataParser:_1e,validateBoundary:O1e}});var Dg=m((pXe,N9)=>{"use strict";function J1e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}N9.exports={createDeferredPromise:J1e}});var yu=m((EXe,R9)=>{"use strict";var TS=ce(),{ReadableStreamFrom:W1e,readableStreamClose:z1e,fullyReadBody:K1e,extractMimeType:X1e}=rs(),{FormData:S9,setFormDataState:j1e}=V0(),{webidl:Bn}=Yt(),NS=Q("node:assert"),{isErrored:SS,isDisturbed:Z1e}=Q("node:stream"),{isUint8Array:$1e}=Q("node:util/types"),{serializeAMimeType:ewe}=vs(),{multipartFormDataParser:twe}=w9(),{createDeferredPromise:rwe}=Dg(),{parseJSONFromBytes:swe}=qi(),{utf8DecodeBytes:nwe}=O0(),{runtimeFeatures:iwe}=Vi(),owe=iwe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),J0=new TextEncoder;function awe(){}var Awe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Z1e(e)&&!SS(e)&&e.cancel("Response object has been garbage collected").catch(awe)});function D9(t,e=!1){let r=null,s=null;Bn.is.ReadableStream(t)?r=t:Bn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),NS(Bn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Bn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Bn.is.BufferSource(t))i=Bn.util.getCopyOfBytesHeldByBufferSource(t);else if(Bn.is.FormData(t)){let c=`----formdata-undici-0${`${owe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let d=p=>p.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=p=>p.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let E=!1;for(let[p,y]of t)if(typeof y=="string"){let N=V0.encode(u+`; name="${d(g(p))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let E=!1;for(let[p,y]of t)if(typeof y=="string"){let N=J0.encode(u+`; name="${d(g(p))}"\r
\r
${g(y)}\r
`);h.push(N),o+=N.byteLength}else{let N=V0.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
`);h.push(N),o+=N.byteLength}else{let N=J0.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);h.push(N,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=V0.encode(`--${c}--\r
`);h.push(w),o+=w.byteLength,E&&(o=null),i=t,n=async function*(){for(let p of h)p.stream?yield*p.stream():yield p},a=`multipart/form-data; boundary=${c}`}else if(Bn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(xS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Bn.is.ReadableStream(t)?t:bwe(t)}return(typeof i=="string"||xwe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let d of u){if(DS(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!DS(r)&&s.enqueue(typeof c=="string"?V0.encode(c):new Uint8Array(c));queueMicrotask(()=>wwe(s))})(),[{stream:r,source:i,length:o},a]}function _we(t,e=!1){return Bn.is.ReadableStream(t)&&(TS(!xS.isDisturbed(t),"The body has already been consumed."),TS(!t.locked,"The stream is locked.")),H9(t,e)}function Hwe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Gwe(t,e){return{blob(){return Cu(this,s=>{let n=_9(e(this));return n===null?n="":n&&(n=Rwe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Cu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Cu(this,Uwe,t,e)},json(){return Cu(this,Mwe,t,e)},formData(){return Cu(this,s=>{let n=_9(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=kwe(s,n),o=new O9;return Twe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new O9;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Cu(this,s=>new Uint8Array(s),t,e)}}}function Ywe(t,e){Object.assign(t.prototype,Gwe(t,e))}function Cu(t,e,r,s){try{Bn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),G9(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=Fwe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(Nwe(t.body,o,i),n.promise)}function G9(t){let e=t.body;return e!=null&&(e.stream.locked||xS.isDisturbed(e.stream))}function _9(t){let e=t.headersList,r=Swe(e);return r==="failure"?null:r}Y9.exports={extractBody:H9,safelyExtractBody:_we,cloneBody:Hwe,mixinBody:Ywe,streamRegistry:Owe,bodyUnusable:G9}});var eG=m((oje,$9)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:q9}=_o(),RS=dN(),{RequestContentLengthMismatchError:cA,ResponseContentLengthMismatchError:qwe,RequestAbortedError:X9,HeadersTimeoutError:Vwe,HeadersOverflowError:Jwe,SocketError:Dg,InformationalError:Bu,BodyTimeoutError:Wwe,HTTPParserError:zwe,ResponseExceededMaxSizeError:Kwe}=ae(),{kUrl:j9,kReset:kr,kClient:vS,kParser:at,kBlocking:xg,kRunning:er,kPending:Xwe,kSize:V9,kWriting:qo,kQueue:Qn,kNoRef:Sg,kKeepAliveDefaultTimeout:jwe,kHostHeader:Zwe,kPendingIdx:$we,kRunningIdx:_s,kError:Hs,kPipelining:z0,kSocket:Qu,kKeepAliveTimeoutValue:X0,kMaxHeadersSize:eNe,kKeepAliveMaxTimeout:tNe,kKeepAliveTimeoutThreshold:rNe,kHeadersTimeout:sNe,kBodyTimeout:nNe,kStrictContentLength:MS,kMaxRequests:J9,kCounter:iNe,kMaxResponseSize:oNe,kOnError:aNe,kResume:Yo,kHTTPContext:Z9,kClosed:US}=Me(),Kn=YH(),ANe=Buffer.alloc(0),J0=Buffer[Symbol.species],cNe=ne.removeAllListeners,kS;function uNe(){let t=process.env.JEST_WORKER_ID?nS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(JH())}catch{}return e||(e=new WebAssembly.Module(t||nS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{se(Nt.ptr===s);let o=n-jn+Xn.byteOffset;return Nt.onStatus(new J0(Xn.buffer,o,i))},wasm_on_message_begin:s=>(se(Nt.ptr===s),Nt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{se(Nt.ptr===s);let o=n-jn+Xn.byteOffset;return Nt.onHeaderField(new J0(Xn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{se(Nt.ptr===s);let o=n-jn+Xn.byteOffset;return Nt.onHeaderValue(new J0(Xn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(se(Nt.ptr===s),Nt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{se(Nt.ptr===s);let o=n-jn+Xn.byteOffset;return Nt.onBody(new J0(Xn.buffer,o,i))},wasm_on_message_complete:s=>(se(Nt.ptr===s),Nt.onMessageComplete())}})}var FS=null,Nt=null,Xn=null,W0=0,jn=null,lNe=0,Tg=1,yu=2|Tg,K0=4|Tg,LS=8|lNe,PS=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Kn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[eNe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[oNe]}setTimeout(e,r){e!==this.t Line truncated
`);h.push(N,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=J0.encode(`--${c}--\r
`);h.push(w),o+=w.byteLength,E&&(o=null),i=t,n=async function*(){for(let p of h)p.stream?yield*p.stream():yield p},a=`multipart/form-data; boundary=${c}`}else if(Bn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(TS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Bn.is.ReadableStream(t)?t:W1e(t)}return(typeof i=="string"||$1e(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let d of u){if(SS(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!SS(r)&&s.enqueue(typeof c=="string"?J0.encode(c):new Uint8Array(c));queueMicrotask(()=>z1e(s))})(),[{stream:r,source:i,length:o},a]}function cwe(t,e=!1){return Bn.is.ReadableStream(t)&&(NS(!TS.isDisturbed(t),"The body has already been consumed."),NS(!t.locked,"The stream is locked.")),D9(t,e)}function uwe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function lwe(t,e){return{blob(){return Qu(this,s=>{let n=T9(e(this));return n===null?n="":n&&(n=ewe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Qu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Qu(this,nwe,t,e)},json(){return Qu(this,swe,t,e)},formData(){return Qu(this,s=>{let n=T9(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=twe(s,n),o=new S9;return j1e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new S9;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Qu(this,s=>new Uint8Array(s),t,e)}}}function dwe(t,e){Object.assign(t.prototype,lwe(t,e))}function Qu(t,e,r,s){try{Bn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),x9(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=rwe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(K1e(t.body,o,i),n.promise)}function x9(t){let e=t.body;return e!=null&&(e.stream.locked||TS.isDisturbed(e.stream))}function T9(t){let e=t.headersList,r=X1e(e);return r==="failure"?null:r}R9.exports={extractBody:D9,safelyExtractBody:cwe,cloneBody:uwe,mixinBody:dwe,streamRegistry:Awe,bodyUnusable:x9}});var G9=m((CXe,H9)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:k9}=_o(),DS=uN(),{RequestContentLengthMismatchError:lA,ResponseContentLengthMismatchError:gwe,RequestAbortedError:v9,HeadersTimeoutError:hwe,HeadersOverflowError:fwe,SocketError:kg,InformationalError:bu,BodyTimeoutError:mwe,HTTPParserError:pwe,ResponseExceededMaxSizeError:Ewe}=oe(),{kUrl:O9,kReset:kr,kClient:LS,kParser:at,kBlocking:Fg,kRunning:rr,kPending:Cwe,kSize:F9,kWriting:qo,kQueue:Qn,kNoRef:xg,kKeepAliveDefaultTimeout:Iwe,kHostHeader:Bwe,kPendingIdx:Qwe,kRunningIdx:_s,kError:Hs,kPipelining:K0,kSocket:wu,kKeepAliveTimeoutValue:j0,kMaxHeadersSize:ywe,kKeepAliveMaxTimeout:bwe,kKeepAliveTimeoutThreshold:wwe,kHeadersTimeout:Nwe,kBodyTimeout:Swe,kStrictContentLength:kS,kMaxRequests:M9,kCounter:Twe,kMaxResponseSize:Dwe,kOnError:xwe,kResume:Yo,kHTTPContext:_9,kClosed:FS}=Me(),zn=RH(),Rwe=Buffer.alloc(0),W0=Buffer[Symbol.species],kwe=ne.removeAllListeners,xS;function Fwe(){let t=process.env.JEST_WORKER_ID?rS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(MH())}catch{}return e||(e=new WebAssembly.Module(t||rS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onStatus(new W0(Kn.buffer,o,i))},wasm_on_message_begin:s=>(se(Nt.ptr===s),Nt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderField(new W0(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderValue(new W0(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(se(Nt.ptr===s),Nt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onBody(new W0(Kn.buffer,o,i))},wasm_on_message_complete:s=>(se(Nt.ptr===s),Nt.onMessageComplete())}})}var RS=null,Nt=null,Kn=null,z0=0,Xn=null,Mwe=0,Rg=1,Nu=2|Rg,X0=4|Rg,MS=8|Mwe,US=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ywe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Dwe]}setTimeout(e,r){e!==this.t Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Zwe],i?E+=`connection: upgrade\r
`:E+=t[Bwe],i?E+=`connection: upgrade\r
upgrade: ${i}\r
`:t[z0]&&!h[kr]?E+=`connection: keep-alive\r
`:t[K0]&&!h[kr]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return q9.sendHeaders.hasSubscribers&&q9.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?z9(f,null,t,e,h,u,E,d):ne.isBuffer(A)?z9(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?K9(f,A.stream(),t,e,h,u,E,d):QNe(f,A,t,e,h,u,E,d):ne.isStream(A)?BNe(f,A,t,e,h,u,E,d):ne.isIterable(A)?K9(f,A,t,e,h,u,E,d):se(!1),!0}function BNe(t,e,r,s,n,i,o,a){se(i!==0||r[er]===0,"stream body cannot be pipelined");let A=!1,c=new j0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){ne.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new X9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,se(n.destroyed||n[qo]&&r[er]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ne.destroy(e,f):ne.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function z9(t,e,r,s,n,i,o,a){try{e?ne.isBuffer(e)&&(se(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return k9.sendHeaders.hasSubscribers&&k9.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?L9(f,null,t,e,h,u,E,d):ne.isBuffer(A)?L9(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?P9(f,A.stream(),t,e,h,u,E,d):Vwe(f,A,t,e,h,u,E,d):ne.isStream(A)?qwe(f,A,t,e,h,u,E,d):ne.isIterable(A)?P9(f,A,t,e,h,u,E,d):se(!1),!0}function qwe(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"stream body cannot be pipelined");let A=!1,c=new Z0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){ne.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new v9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,se(n.destroyed||n[qo]&&r[rr]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ne.destroy(e,f):ne.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function L9(t,e,r,s,n,i,o,a){try{e?ne.isBuffer(e)&&(se(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[kr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(se(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Yo]()}catch(A){t(A)}}async function QNe(t,e,r,s,n,i,o,a){se(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new cA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Yo]()}catch(A){t(A)}}async function Vwe(t,e,r,s,n,i,o,a){se(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new lA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[kr]=!0),r[Yo]()}catch(A){t(A)}}async function K9(t,e,r,s,n,i,o,a){se(i!==0||r[er]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{se(A===null),n[Hs]?h(n[Hs]):A=g});n.on("close",c).on("drain",c);let d=new j0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Hs])throw n[Hs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var j0=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[MS])throw new cA;process.emitWarning(new cA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[kr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[kr]=!0),r[Yo]()}catch(A){t(A)}}async function P9(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{se(A===null),n[Hs]?h(n[Hs]):A=g});n.on("close",c).on("drain",c);let d=new Z0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Hs])throw n[Hs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Z0=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[kS])throw new lA;process.emitWarning(new lA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[kr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[at].timeout&&r[at].timeoutType===yu&&r[at].timeout.refresh&&r[at].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qo]=!1,e[Hs])throw e[Hs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[at].timeout&&r[at].timeoutType===Nu&&r[at].timeout.refresh&&r[at].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qo]=!1,e[Hs])throw e[Hs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[MS])throw new cA;process.emitWarning(new cA)}e[at].timeout&&e[at].timeoutType===yu&&e[at].timeout.refresh&&e[at].timeout.refresh(),s[Yo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[qo]=!1,e&&(se(s[er]<=1,"pipeline should only contain this request"),n(e))}};$9.exports=dNe});var cG=m((aje,AG)=>{"use strict";var Ys=Q("node:assert"),{pipeline:yNe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:GS,RequestAbortedError:bNe,SocketError:Mg,InformationalError:Vo,InvalidArgumentError:wNe}=ae(),{kUrl:Fg,kReset:tE,kClient:ss,kRunning:Ug,kPending:NNe,kQueue:Jo,kPendingIdx:qS,kRunningIdx:yn,kError:ns,kSocket:st,kStrictContentLength:SNe,kOnError:bu,kMaxConcurrentStreams:$0,kPingInterval:tG,kHTTP2Session:Wi,kHTTP2InitialWindowSize:TNe,kHTTP2ConnectionWindowSize:DNe,kResume:Zn,kSize:xNe,kHTTPContext:VS,kClosed:YS,kBodyTimeout:RNe,kEnableConnectProtocol:Rg,kRemoteSettings:kg,kHTTP2Stream:Z0,kHTTP2SessionState:JS}=Me(),{channels:rG}=_o(),Gs=Symbol("open streams"),sG,eE;try{eE=Q("node:http2")}catch{eE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kNe,HTTP2_HEADER_METHOD:nG,HTTP2_HEADER_PATH:iG,HTTP2_HEADER_SCHEME:OS,HTTP2_HEADER_CONTENT_LENGTH:FNe,HTTP2_HEADER_EXPECT:MNe,HTTP2_HEADER_STATUS:_S,HTTP2_HEADER_PROTOCOL:UNe,NGHTTP2_REFUSED_STREAM:LNe,NGHTTP2_CANCEL:PNe}}=eE;function HS(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function vNe(t,e){t[st]=e;let r=t[TNe],s=t[DNe],n=eE.connect(t[Fg],{createConnection:()=>e,peerMaxConcurrentStreams:t[$0],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[st]=e,n[Gs]=0,n[ss]=t,n[st]=e,n[JS]={ping:{interval:t[tG]===0?null:setInterval(GNe,t[tG],n).unref()}},n[Rg]=!1,n[kg]=!1,s&&he.addListener(n,"connect",_Ne.bind(n,s)),he.addListener(n,"error",YNe),he.addListener(n,"frameError",qNe),he.addListener(n,"end",VNe),he.addListener(n,"goaway",JNe),he.addListener(n,"close",WNe),he.addListener(n,"remoteSettings",HNe),n.unref(),t[Wi]=n,e[Wi]=n,he.addListener(e,"error",KNe),he.addListener(e,"end",XNe),he.addListener(e,"close",zNe),e[YS]=!1,e.on("close",jNe),{version:"h2",defaultPipelining:1/0,write(i){return $Ne(t,i)},resume(){ONe(t)},destroy(i,o){e[YS]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Ug]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[kg]===!1||he.bodyLength(i.body)!==0&&(he.isStream(i.body)||he.isAsyncIterable(i.body)||he.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[kg]===!1;return!1}}}function ONe(t){let e=t[st];e?.destroyed===!1&&(t[xNe]===0||t[$0]===0?(e.unref(),t[Wi].unref()):(e.ref(),t[Wi].ref()))}function _Ne(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function HNe(t){if(this[ss][$0]=t.maxConcurrentStreams??this[ss][$0],this[kg]===!0&&this[Rg]===!0&&t.enableConnectProtocol===!1){let e=new Vo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[st][ns]=e,this[ss][bu](e);return}this[Rg]=t.enableConnectProtocol??this[Rg],this[kg]=!0,this[ss][Zn]()}function GNe(t){let e=t[JS];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[ss],o=this[ss];if(s!=null){let a=new Vo(`HTTP/2: "PING" errored - type ${s.message}`);o[ns]=a,i[bu](a)}else i.emit("ping",n)}}function YNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[st][ns]=t,this[ss][bu](t)}function qNe(t,e,r){if(r===0){let s=new Vo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[st][ns]=s,this[ss][bu](s)}}function VNe(){let t=new Mg("other side closed",he.getSocketInfo(this[st]));this.destroy(t),he.destroy(this[st],t)}function JNe(t){let e=this[ns]||new Mg(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[st])),r=this[ss];if(r[st]=null,r[VS]=null,this.close(),this[Wi]=null,he.destroy(this[st],e),r[yn]<r[Jo].length){let s=r[Jo][r[yn]];r[Jo][r[yn]++]=null,he.errorRequest(r,s,e),r[qS]=r[yn]}Ys(r[Ug]===0),r.emit("disconnect",r[Fg],[r],e),r.emit("connectionError",r[Fg],[r],e),r[Zn]()}function WNe(){let{[ss]:t,[JS]:e}=this,{[st]:r}=t,s=this[st][ns]||this[ns]||new Mg("closed",he.getSocketInfo(r));if(t[st]=null,t[VS]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Ys(t[NNe]===0);let n=t[Jo].splice(t[yn]);for(let i=0;i<n.length;i++){let o=n[i];he.errorRequest(t,o,s)}}}function zNe(){let t=this[ns]||new Mg("closed",he.getSocketInfo(this)),e=this[Wi][ss];e[st]=null,e[VS]=null,this[Wi]!==null&&this[Wi].destroy(t),e[qS]=e[yn],Ys(e[Ug]===0),e.emit("disconnect",e[Fg],[e],t),e[Zn]()}function KNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns]=t,this[ss][bu](t)}function XNe(){he.destroy(this,new Mg("other side closed",he.getSocketInfo(this)))}function jNe() Line truncated
`;rG.sendHeaders.publish({request:e,headers:k,socket:s[st]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[MNe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[Z0]=!0,f.once("continue",v)):(f=s.request(h,{endStream:D,signal:c}),f[Z0]=!0,v()),++s[Gs],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[_S]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),HS(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ne=>{e.aborted||e.completed||e.onData(Ne)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jo][t[yn]++]=null,t[Zn]()):(p(new Vo("HTTP/2: stream half-closed (remote)")),t[Jo][t[yn]++]=null,t[qS]=t[yn],t[Zn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),p(k)}),f.once("frameError",(k,O)=>{f.removeAllListeners("data"),p(new Vo(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref(),p(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function v(){!g||N===0?oG(p,f,null,t,e,t[st],N,y):he.isBuffer(g)?oG(p,f,g,t,e,t[st],N,y):he.isBlobLike(g)?typeof g.stream=="function"?aG(p,f,g.stream(),t,e,t[st],N,y):tSe(p,f,g,t,e,t[st],N,y):he.isStream(g)?eSe(p,t[st],y,f,g,t,e,N):he.isIterable(g)?aG(p,f,g,t,e,t[st],N,y):Ys(!1)}}function oG(t,e,r,s,n,i,o,a){try{r!=null&&he.isBuffer(r)&&(Ys(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[tE]=!0),n.onRequestSent(),s[Zn]()}catch(A){t(A)}}function eSe(t,e,r,s,n,i,o,a){Ys(a!==0||i[Ug]===0,"stream body cannot be pipelined");let A=yNe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[tE]=!0),i[Zn]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function tSe(t,e,r,s,n,i,o,a){Ys(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new GS;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[tE]=!0),s[Zn]()}catch(A){t(A)}}async function aG(t,e,r,s,n,i,o,a){Ys(o!==0||s[Ug]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{Ys(A===null),i[ns]?g(i[ns]):A=d});e.on("close",c).on("drain",c);try{for await(let d of r){if(i[ns])throw i[ns];let g=e.write(d);n.onBodySent(d),g||await u()}e.end(),n.onRequestSent(),a||(i[tE]=!0),s[Zn]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}AG.exports=vNe});var jo=m((Aje,EG)=>{"use strict";var zi=Q("node:assert"),hG=Q("node:net"),Lg=Q("node:http"),uA=ce(),{ClientStats:rSe}=HN(),{channels:wu}=_o(),sSe=RH(),nSe=nA(),{InvalidArgumentError:Ke,InformationalError:iSe,ClientDestroyedError:oSe}=ae(),aSe=iA(),{kUrl:$n,kServerName:Xo,kClient:ASe,kBusy:WS,kConnect:cSe,kResuming:lA,kRunning:_g,kPending:Hg,kSize:Pg,kQueue:bn,kConnected:uSe,kConnecting:Nu,kNeedDrain:zo,kKeepAliveDefaultTimeout:uG,kHostHeader:lSe,kPendingIdx:wn,kRunningIdx:Ki,kError:dSe,kPipelining:rE,kKeepAliveTimeoutValue:gSe,kMaxHeadersSize:hSe,kKeepAliveMaxTimeout:fSe,kKeepAliveTimeoutThreshold:mSe,kHeadersTimeout:pSe,kBodyTimeout:ESe,kStrictContentLength:CSe,kConnector:vg,kMaxRequests:zS,kCounter:ISe,kClose:BSe,kDestroy:QSe,kDispatch:ySe,kLocalAddress:Og,kMaxResponseSize:bSe,kOnError:wSe,kHTTPContext:ft,kMaxConcurrentStreams:NSe,kHTTP2InitialWindowSize:SSe,kHTTP2ConnectionWindowSize:TSe,kResume:Ko,kPingInterval:DSe}=Me(),xSe=eG(),RSe=cG(),Wo=Symbol("kClosedResolve"),kSe=Lg&&Lg.maxHeaderSize&&Number.isInteger(Lg.maxHeaderSize)&&Lg.maxHeaderSize>0?()=>Lg.maxHeaderSize:()=>{throw new Ke("http module not available or http.maxHeaderSize invalid")},lG=()=>{};function fG(t){return t[rE]??t[ft]?.defaultPipelining??1}var KS=class extends nSe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:d,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:E,tls:w,strictContentLength:p,maxCachedSessions:y,connect:N,maxRequestsPerClient:D,localAddress:U,maxResponseSize:v,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:_,allowH2:Ne,useH2c:Ge,initialWindowSize:ue,connectionWindowSize:fe,pingInterval:Ie}={}){if(c!==void 0)throw new Ke("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ke("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ke("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ke("unsupported idleTimeout, use keepAliveTimeout instead");if(d!==void 0)throw new Ke("unsupported maxK Line truncated
`,this[ESe]=a??3e5,this[pSe]=s??3e5,this[CSe]=p??!0,this[zS]=D,this[Wo]=null,this[bSe]=v>-1?v:-1,this[ft]=null,this[NSe]=_??100,this[SSe]=ue??262144,this[TSe]=fe??524288,this[DSe]=Ie??6e4,this[bn]=[],this[Ki]=0,this[wn]=0,this[Ko]=lt=>XS(this,lt),this[wSe]=lt=>mG(this,lt)}get pipelining(){return this[rE]}set pipelining(e){this[rE]=e,this[Ko](!0)}get stats(){return new rSe(this)}get[Hg](){return this[bn].length-this[wn]}get[_g](){return this[wn]-this[Ki]}get[Pg](){return this[bn].length-this[Ki]}get[uSe](){return!!this[ft]&&!this[Nu]&&!this[ft].destroyed}get[WS](){return!!(this[ft]?.busy(null)||this[Pg]>=(fG(this)||1)||this[Hg]>0)}[cSe](e){pG(this),this.once("connect",e)}[ySe](e,r){let s=new sSe(this[$n].origin,e,r);return this[bn].push(s),this[lA]||(uA.bodyLength(s.body)==null&&uA.isIterable(s.body)?(this[lA]=1,queueMicrotask(()=>XS(this))):this[Ko](!0)),this[lA]&&this[zo]!==2&&this[WS]&&(this[zo]=2),this[zo]<2}[BSe](){return new Promise(e=>{this[Pg]?this[Wo]=e:e(null)})}[QSe](e){return new Promise(r=>{let s=this[bn].splice(this[wn]);for(let i=0;i<s.length;i++){let o=s[i];uA.errorRequest(this,o,e)}let n=()=>{this[Wo]&&(this[Wo](),this[Wo]=null),r(null)};this[ft]?(this[ft].destroy(e,n),this[ft]=null):queueMicrotask(n),this[Ko]()})}};function mG(t,e){if(t[_g]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zi(t[wn]===t[Ki]);let r=t[bn].splice(t[Ki]);for(let s=0;s<r.length;s++){let n=r[s];uA.errorRequest(t,n,e)}zi(t[Pg]===0)}}function pG(t){zi(!t[Nu]),zi(!t[ft]);let{host:e,hostname:r,protocol:s,port:n}=t[$n];if(r[0]==="["){let i=r.indexOf("]");zi(i!==-1);let o=r.substring(1,i);zi(hG.isIPv6(o)),r=o}t[Nu]=!0,wu.beforeConnect.hasSubscribers&&wu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Og]},connector:t[vg]}),t[vg]({host:e,hostname:r,protocol:s,port:n,servername:t[Xo],localAddress:t[Og]},(i,o)=>{if(i){dG(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}if(t.destroyed){uA.destroy(o.on("error",lG),new oSe),t[Ko]();return}zi(o);try{t[ft]=o.alpnProtocol==="h2"?RSe(t,o):xSe(t,o)}catch(a){o.destroy().on("error",lG),dG(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}t[Nu]=!1,o[ISe]=0,o[zS]=t[zS],o[ASe]=t,o[dSe]=null,wu.connected.hasSubscribers&&wu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Og]},connector:t[vg],socket:o}),t.emit("connect",t[$n],[t]),t[Ko]()})}function dG(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Nu]=!1,wu.connectError.hasSubscribers&&wu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ft]?.version,servername:t[Xo],localAddress:t[Og]},connector:t[vg],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[_g]===0);t[Hg]>0&&t[bn][t[wn]].servername===t[Xo];){let o=t[bn][t[wn]++];uA.errorRequest(t,o,e)}else mG(t,e);t.emit("connectionError",t[$n],[t],e)}}function gG(t){t[zo]=0,t.emit("drain",t[$n],[t])}function XS(t,e){t[lA]!==2&&(t[lA]=2,FSe(t,e),t[lA]=0,t[Ki]>256&&(t[bn].splice(0,t[Ki]),t[wn]-=t[Ki],t[Ki]=0))}function FSe(t,e){for(;;){if(t.destroyed){zi(t[Hg]===0);return}if(t[Wo]&&!t[Pg]){t[Wo](),t[Wo]=null;return}if(t[ft]&&t[ft].resume(),t[WS])t[zo]=2;else if(t[zo]===2){e?(t[zo]=1,queueMicrotask(()=>gG(t))):gG(t);continue}if(t[Hg]===0||t[_g]>=(fG(t)||1))return;let r=t[bn][t[wn]];if(r===null)return;if(t[$n].protocol==="https:"&&t[Xo]!==r.servername){if(t[_g]>0)return;t[Xo]=r.servername,t[ft]?.destroy(new iSe("servername changed"),()=>{t[ft]=null,XS(t)})}if(t[Nu])return;if(!t[ft]){pG(t);return}if(t[ft].destroyed||t[ft].busy(r))return;!r.aborted&&t[ft].write(r)?t[wn]++:t[bn].splice(t[wn],1)}}EG.exports=KS});var jS=m((uje,CG)=>{"use strict";var sE=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};CG.exports=class{constructor(){this.head=this.tail=new sE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var nE=m((lje,TG)=>{"use strict";var{PoolStats:MSe}=HN(),USe=nA(),LSe=jS(),{kConnected:ZS,kSize:IG,kRunning:BG,kPending:QG,kQueued:Gg,kBusy:PSe,kFree:vSe,kUrl:OSe,kClose:_Se,kDestroy:HSe,kDispatch:GSe}=Me(),Pt=Symbol("clients"),dr=Symbol("needDrain"),Yg=Symbol("queue"),$S=Symbol("closed resolve"),eT=Symbol("onDrain"),yG=Symbol("onConnect"),bG=Symbol("onDisconnect"),wG=Symbol("onConnectionError"),tT=Symbol("get dispatcher"),NG=Symbol("add client"),SG=Symbol("remove client"),rT=class extends USe{[Yg]=new LSe;[Gg]=0;[Pt]=[];[dr]=!1;[eT](e,r,s){let n=this[Yg],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[Gg]--,i Line truncated
`,"latin1"),r!==null&&n!==r){if(s[kS])throw new lA;process.emitWarning(new lA)}e[at].timeout&&e[at].timeoutType===Nu&&e[at].timeout.refresh&&e[at].timeout.refresh(),s[Yo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[qo]=!1,e&&(se(s[rr]<=1,"pipeline should only contain this request"),n(e))}};H9.exports=Uwe});var j9=m((IXe,X9)=>{"use strict";var Ys=Q("node:assert"),{pipeline:Jwe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:_S,RequestAbortedError:Wwe,SocketError:Pg,InformationalError:Vo,InvalidArgumentError:zwe}=oe(),{kUrl:Lg,kReset:rE,kClient:ss,kRunning:vg,kPending:Kwe,kQueue:Jo,kPendingIdx:GS,kRunningIdx:yn,kError:ns,kSocket:st,kStrictContentLength:Xwe,kOnError:Su,kMaxConcurrentStreams:eE,kPingInterval:Y9,kHTTP2Session:Wi,kHTTP2InitialWindowSize:jwe,kHTTP2ConnectionWindowSize:Zwe,kResume:jn,kSize:$we,kHTTPContext:YS,kClosed:HS,kBodyTimeout:eNe,kEnableConnectProtocol:Mg,kRemoteSettings:Ug,kHTTP2Stream:$0,kHTTP2SessionState:qS}=Me(),{channels:q9}=_o(),Gs=Symbol("open streams"),V9,tE;try{tE=Q("node:http2")}catch{tE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tNe,HTTP2_HEADER_METHOD:J9,HTTP2_HEADER_PATH:W9,HTTP2_HEADER_SCHEME:PS,HTTP2_HEADER_CONTENT_LENGTH:rNe,HTTP2_HEADER_EXPECT:sNe,HTTP2_HEADER_STATUS:vS,HTTP2_HEADER_PROTOCOL:nNe,NGHTTP2_REFUSED_STREAM:iNe,NGHTTP2_CANCEL:oNe}}=tE;function OS(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function aNe(t,e){t[st]=e;let r=t[jwe],s=t[Zwe],n=tE.connect(t[Lg],{createConnection:()=>e,peerMaxConcurrentStreams:t[eE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[st]=e,n[Gs]=0,n[ss]=t,n[st]=e,n[qS]={ping:{interval:t[Y9]===0?null:setInterval(lNe,t[Y9],n).unref()}},n[Mg]=!1,n[Ug]=!1,s&&he.addListener(n,"connect",cNe.bind(n,s)),he.addListener(n,"error",dNe),he.addListener(n,"frameError",gNe),he.addListener(n,"end",hNe),he.addListener(n,"goaway",fNe),he.addListener(n,"close",mNe),he.addListener(n,"remoteSettings",uNe),n.unref(),t[Wi]=n,e[Wi]=n,he.addListener(e,"error",ENe),he.addListener(e,"end",CNe),he.addListener(e,"close",pNe),e[HS]=!1,e.on("close",INe),{version:"h2",defaultPipelining:1/0,write(i){return QNe(t,i)},resume(){ANe(t)},destroy(i,o){e[HS]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[vg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1||he.bodyLength(i.body)!==0&&(he.isStream(i.body)||he.isAsyncIterable(i.body)||he.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1;return!1}}}function ANe(t){let e=t[st];e?.destroyed===!1&&(t[$we]===0||t[eE]===0?(e.unref(),t[Wi].unref()):(e.ref(),t[Wi].ref()))}function cNe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uNe(t){if(this[ss][eE]=t.maxConcurrentStreams??this[ss][eE],this[Ug]===!0&&this[Mg]===!0&&t.enableConnectProtocol===!1){let e=new Vo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[st][ns]=e,this[ss][Su](e);return}this[Mg]=t.enableConnectProtocol??this[Mg],this[Ug]=!0,this[ss][jn]()}function lNe(t){let e=t[qS];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[ss],o=this[ss];if(s!=null){let a=new Vo(`HTTP/2: "PING" errored - type ${s.message}`);o[ns]=a,i[Su](a)}else i.emit("ping",n)}}function dNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[st][ns]=t,this[ss][Su](t)}function gNe(t,e,r){if(r===0){let s=new Vo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[st][ns]=s,this[ss][Su](s)}}function hNe(){let t=new Pg("other side closed",he.getSocketInfo(this[st]));this.destroy(t),he.destroy(this[st],t)}function fNe(t){let e=this[ns]||new Pg(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[st])),r=this[ss];if(r[st]=null,r[YS]=null,this.close(),this[Wi]=null,he.destroy(this[st],e),r[yn]<r[Jo].length){let s=r[Jo][r[yn]];r[Jo][r[yn]++]=null,he.errorRequest(r,s,e),r[GS]=r[yn]}Ys(r[vg]===0),r.emit("disconnect",r[Lg],[r],e),r.emit("connectionError",r[Lg],[r],e),r[jn]()}function mNe(){let{[ss]:t,[qS]:e}=this,{[st]:r}=t,s=this[st][ns]||this[ns]||new Pg("closed",he.getSocketInfo(r));if(t[st]=null,t[YS]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Ys(t[Kwe]===0);let n=t[Jo].splice(t[yn]);for(let i=0;i<n.length;i++){let o=n[i];he.errorRequest(t,o,s)}}}function pNe(){let t=this[ns]||new Pg("closed",he.getSocketInfo(this)),e=this[Wi][ss];e[st]=null,e[YS]=null,this[Wi]!==null&&this[Wi].destroy(t),e[GS]=e[yn],Ys(e[vg]===0),e.emit("disconnect",e[Lg],[e],t),e[jn]()}function ENe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns]=t,this[ss][Su](t)}function CNe(){he.destroy(this,new Pg("other side closed",he.getSocketInfo(this)))}function INe() Line truncated
`;q9.sendHeaders.publish({request:e,headers:k,socket:s[st]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[sNe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,f.once("continue",v)):(f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,v()),++s[Gs],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[vS]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),OS(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ne=>{e.aborted||e.completed||e.onData(Ne)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jo][t[yn]++]=null,t[jn]()):(p(new Vo("HTTP/2: stream half-closed (remote)")),t[Jo][t[yn]++]=null,t[GS]=t[yn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),p(k)}),f.once("frameError",(k,O)=>{f.removeAllListeners("data"),p(new Vo(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref(),p(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function v(){!g||N===0?z9(p,f,null,t,e,t[st],N,y):he.isBuffer(g)?z9(p,f,g,t,e,t[st],N,y):he.isBlobLike(g)?typeof g.stream=="function"?K9(p,f,g.stream(),t,e,t[st],N,y):bNe(p,f,g,t,e,t[st],N,y):he.isStream(g)?yNe(p,t[st],y,f,g,t,e,N):he.isIterable(g)?K9(p,f,g,t,e,t[st],N,y):Ys(!1)}}function z9(t,e,r,s,n,i,o,a){try{r!=null&&he.isBuffer(r)&&(Ys(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[rE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function yNe(t,e,r,s,n,i,o,a){Ys(a!==0||i[vg]===0,"stream body cannot be pipelined");let A=Jwe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[rE]=!0),i[jn]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bNe(t,e,r,s,n,i,o,a){Ys(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _S;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(A){t(A)}}async function K9(t,e,r,s,n,i,o,a){Ys(o!==0||s[vg]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{Ys(A===null),i[ns]?g(i[ns]):A=d});e.on("close",c).on("drain",c);try{for await(let d of r){if(i[ns])throw i[ns];let g=e.write(d);n.onBodySent(d),g||await u()}e.end(),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}X9.exports=aNe});var jo=m((BXe,oG)=>{"use strict";var zi=Q("node:assert"),rG=Q("node:net"),Og=Q("node:http"),dA=ce(),{ClientStats:wNe}=ON(),{channels:Tu}=_o(),NNe=CH(),SNe=oA(),{InvalidArgumentError:Ke,InformationalError:TNe,ClientDestroyedError:DNe}=oe(),xNe=aA(),{kUrl:Zn,kServerName:Xo,kClient:RNe,kBusy:VS,kConnect:kNe,kResuming:gA,kRunning:Yg,kPending:qg,kSize:_g,kQueue:bn,kConnected:FNe,kConnecting:Du,kNeedDrain:zo,kKeepAliveDefaultTimeout:Z9,kHostHeader:MNe,kPendingIdx:wn,kRunningIdx:Ki,kError:UNe,kPipelining:sE,kKeepAliveTimeoutValue:LNe,kMaxHeadersSize:PNe,kKeepAliveMaxTimeout:vNe,kKeepAliveTimeoutThreshold:ONe,kHeadersTimeout:_Ne,kBodyTimeout:HNe,kStrictContentLength:GNe,kConnector:Hg,kMaxRequests:JS,kCounter:YNe,kClose:qNe,kDestroy:VNe,kDispatch:JNe,kLocalAddress:Gg,kMaxResponseSize:WNe,kOnError:zNe,kHTTPContext:ft,kMaxConcurrentStreams:KNe,kHTTP2InitialWindowSize:XNe,kHTTP2ConnectionWindowSize:jNe,kResume:Ko,kPingInterval:ZNe}=Me(),$Ne=G9(),eSe=j9(),Wo=Symbol("kClosedResolve"),tSe=Og&&Og.maxHeaderSize&&Number.isInteger(Og.maxHeaderSize)&&Og.maxHeaderSize>0?()=>Og.maxHeaderSize:()=>{throw new Ke("http module not available or http.maxHeaderSize invalid")},$9=()=>{};function sG(t){return t[sE]??t[ft]?.defaultPipelining??1}var WS=class extends SNe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:d,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:E,tls:w,strictContentLength:p,maxCachedSessions:y,connect:N,maxRequestsPerClient:D,localAddress:U,maxResponseSize:v,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:_,allowH2:Ne,useH2c:Ge,initialWindowSize:ue,connectionWindowSize:fe,pingInterval:Ie}={}){if(c!==void 0)throw new Ke("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ke("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ke("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ke("unsupported idleTimeout, use keepAliveTimeout instead");if(d!==void 0)throw new Ke("unsupported maxK Line truncated
`,this[HNe]=a??3e5,this[_Ne]=s??3e5,this[GNe]=p??!0,this[JS]=D,this[Wo]=null,this[WNe]=v>-1?v:-1,this[ft]=null,this[KNe]=_??100,this[XNe]=ue??262144,this[jNe]=fe??524288,this[ZNe]=Ie??6e4,this[bn]=[],this[Ki]=0,this[wn]=0,this[Ko]=lt=>zS(this,lt),this[zNe]=lt=>nG(this,lt)}get pipelining(){return this[sE]}set pipelining(e){this[sE]=e,this[Ko](!0)}get stats(){return new wNe(this)}get[qg](){return this[bn].length-this[wn]}get[Yg](){return this[wn]-this[Ki]}get[_g](){return this[bn].length-this[Ki]}get[FNe](){return!!this[ft]&&!this[Du]&&!this[ft].destroyed}get[VS](){return!!(this[ft]?.busy(null)||this[_g]>=(sG(this)||1)||this[qg]>0)}[kNe](e){iG(this),this.once("connect",e)}[JNe](e,r){let s=new NNe(this[Zn].origin,e,r);return this[bn].push(s),this[gA]||(dA.bodyLength(s.body)==null&&dA.isIterable(s.body)?(this[gA]=1,queueMicrotask(()=>zS(this))):this[Ko](!0)),this[gA]&&this[zo]!==2&&this[VS]&&(this[zo]=2),this[zo]<2}[qNe](){return new Promise(e=>{this[_g]?this[Wo]=e:e(null)})}[VNe](e){return new Promise(r=>{let s=this[bn].splice(this[wn]);for(let i=0;i<s.length;i++){let o=s[i];dA.errorRequest(this,o,e)}let n=()=>{this[Wo]&&(this[Wo](),this[Wo]=null),r(null)};this[ft]?(this[ft].destroy(e,n),this[ft]=null):queueMicrotask(n),this[Ko]()})}};function nG(t,e){if(t[Yg]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zi(t[wn]===t[Ki]);let r=t[bn].splice(t[Ki]);for(let s=0;s<r.length;s++){let n=r[s];dA.errorRequest(t,n,e)}zi(t[_g]===0)}}function iG(t){zi(!t[Du]),zi(!t[ft]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");zi(i!==-1);let o=r.substring(1,i);zi(rG.isIPv6(o)),r=o}t[Du]=!0,Tu.beforeConnect.hasSubscribers&&Tu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg]}),t[Hg]({host:e,hostname:r,protocol:s,port:n,servername:t[Xo],localAddress:t[Gg]},(i,o)=>{if(i){eG(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}if(t.destroyed){dA.destroy(o.on("error",$9),new DNe),t[Ko]();return}zi(o);try{t[ft]=o.alpnProtocol==="h2"?eSe(t,o):$Ne(t,o)}catch(a){o.destroy().on("error",$9),eG(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}t[Du]=!1,o[YNe]=0,o[JS]=t[JS],o[RNe]=t,o[UNe]=null,Tu.connected.hasSubscribers&&Tu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],socket:o}),t.emit("connect",t[Zn],[t]),t[Ko]()})}function eG(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Du]=!1,Tu.connectError.hasSubscribers&&Tu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[Yg]===0);t[qg]>0&&t[bn][t[wn]].servername===t[Xo];){let o=t[bn][t[wn]++];dA.errorRequest(t,o,e)}else nG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function tG(t){t[zo]=0,t.emit("drain",t[Zn],[t])}function zS(t,e){t[gA]!==2&&(t[gA]=2,rSe(t,e),t[gA]=0,t[Ki]>256&&(t[bn].splice(0,t[Ki]),t[wn]-=t[Ki],t[Ki]=0))}function rSe(t,e){for(;;){if(t.destroyed){zi(t[qg]===0);return}if(t[Wo]&&!t[_g]){t[Wo](),t[Wo]=null;return}if(t[ft]&&t[ft].resume(),t[VS])t[zo]=2;else if(t[zo]===2){e?(t[zo]=1,queueMicrotask(()=>tG(t))):tG(t);continue}if(t[qg]===0||t[Yg]>=(sG(t)||1))return;let r=t[bn][t[wn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[Xo]!==r.servername){if(t[Yg]>0)return;t[Xo]=r.servername,t[ft]?.destroy(new TNe("servername changed"),()=>{t[ft]=null,zS(t)})}if(t[Du])return;if(!t[ft]){iG(t);return}if(t[ft].destroyed||t[ft].busy(r))return;!r.aborted&&t[ft].write(r)?t[wn]++:t[bn].splice(t[wn],1)}}oG.exports=WS});var KS=m((yXe,aG)=>{"use strict";var nE=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aG.exports=class{constructor(){this.head=this.tail=new nE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var iE=m((bXe,mG)=>{"use strict";var{PoolStats:sSe}=ON(),nSe=oA(),iSe=KS(),{kConnected:XS,kSize:AG,kRunning:cG,kPending:uG,kQueued:Vg,kBusy:oSe,kFree:aSe,kUrl:ASe,kClose:cSe,kDestroy:uSe,kDispatch:lSe}=Me(),Pt=Symbol("clients"),dr=Symbol("needDrain"),Jg=Symbol("queue"),jS=Symbol("closed resolve"),ZS=Symbol("onDrain"),lG=Symbol("onConnect"),dG=Symbol("onDisconnect"),gG=Symbol("onConnectionError"),$S=Symbol("get dispatcher"),hG=Symbol("add client"),fG=Symbol("remove client"),eT=class extends nSe{[Jg]=new iSe;[Vg]=0;[Pt]=[];[dr]=!1;[ZS](e,r,s){let n=this[Jg],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[Vg]--,i Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Xq.exports=p2});var C2=m((Gje,eV)=>{"use strict";var{InvalidArgumentError:ODe}=ae(),{runtimeFeatures:_De}=Vi();function HDe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var jq=_De.has("crypto")?Q("node:crypto"):null,GDe=jq?.hash?t=>jq.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function $q(t){return Array.isArray(t)&&(t.length&1)===0}function YDe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function qDe(t){let e={};if(!t)return e;if($q(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Zq=["record","playback","update"];function VDe(t){if(!Zq.includes(t))throw new ODe(`Invalid snapshot mode: ${t}. Must be one of: ${Zq.join(", ")}`)}eV.exports={createHeaderFilters:HDe,hashId:GDe,isUndiciHeaders:$q,normalizeHeaders:qDe,isUrlExcludedFactory:YDe,validateSnapshotMode:VDe}});var cV=m((Yje,AV)=>{"use strict";var{writeFile:JDe,readFile:WDe,mkdir:zDe}=Q("node:fs/promises"),{dirname:KDe,resolve:tV}=Q("node:path"),{setTimeout:XDe,clearTimeout:rV}=Q("node:timers"),{InvalidArgumentError:sV,UndiciError:jDe}=ae(),{hashId:ZDe,isUrlExcludedFactory:$De,normalizeHeaders:nV,createHeaderFilters:iV}=C2();function sh(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||nV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:oV(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function oV(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function aV(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function nh(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return ZDe(r)}var I2=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=iV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=$De(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=sh(e,this.#a,this.matchOptions),n=nh(s),i=nV(r.headers),o={statusCode:r.statusCode,headers:aV(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#s&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=sh(e,this.#a,this.matchOptions),s=nh(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#s;if(!r)throw new sV("Snapshot path is required");try{let s=await WDe(tV(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new jDe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new sV("Snapshot path is required");let s=tV(r);await zDe(KDe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await JDe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{InvalidArgumentError:ADe}=oe(),{runtimeFeatures:cDe}=Vi();function uDe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Oq=cDe.has("crypto")?Q("node:crypto"):null,lDe=Oq?.hash?t=>Oq.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Hq(t){return Array.isArray(t)&&(t.length&1)===0}function dDe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function gDe(t){let e={};if(!t)return e;if(Hq(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var _q=["record","playback","update"];function hDe(t){if(!_q.includes(t))throw new ADe(`Invalid snapshot mode: ${t}. Must be one of: ${_q.join(", ")}`)}Gq.exports={createHeaderFilters:uDe,hashId:lDe,isUndiciHeaders:Hq,normalizeHeaders:gDe,isUrlExcludedFactory:dDe,validateSnapshotMode:hDe}});var jq=m((rje,Xq)=>{"use strict";var{writeFile:fDe,readFile:mDe,mkdir:pDe}=Q("node:fs/promises"),{dirname:EDe,resolve:Yq}=Q("node:path"),{setTimeout:CDe,clearTimeout:qq}=Q("node:timers"),{InvalidArgumentError:Vq,UndiciError:IDe}=oe(),{hashId:BDe,isUrlExcludedFactory:QDe,normalizeHeaders:Jq,createHeaderFilters:Wq}=p2();function oh(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Jq(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:zq(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function zq(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Kq(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function ah(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return BDe(r)}var E2=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Wq(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=QDe(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=oh(e,this.#a,this.matchOptions),n=ah(s),i=Jq(r.headers),o={statusCode:r.statusCode,headers:Kq(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#s&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=oh(e,this.#a,this.matchOptions),s=ah(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#s;if(!r)throw new Vq("Snapshot path is required");try{let s=await mDe(Yq(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new IDe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new Vq("Snapshot path is required");let s=Yq(r);await pDe(EDe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fDe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
@@ -175,46 +175,46 @@ ${e.format(r)}`.trim())}};Xq.exports=p2});var C2=m((Gje,eV)=>{"use strict";var{I
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){G2(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){G2(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){G2(e),ORe(r);let s=0,n=[],i=this;return new vRe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let d in u)if(!_Re(n[d],u[d])){c=!1;break}}if(c)return A}}};function _Re(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var wA=m((lZe,mJ)=>{"use strict";var{kConstruct:HRe}=Me(),{kEnumerableProperty:Hu}=ce(),{iteratorMixin:GRe,isValidHeaderName:Ah,isValidHeaderValue:lJ}=rs(),{webidl:ye}=Yt(),q2=Q("node:assert"),UE=Q("node:util");function uJ(t){return t===10||t===13||t===9||t===32}function dJ(t){let e=0,r=t.length;for(;r>e&&uJ(t.charCodeAt(r-1));)--r;for(;r>e&&uJ(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function gJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ye.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});V2(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)V2(t,r[s],e[r[s]])}else throw ye.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function V2(t,e,r){if(r=dJ(r),Ah(e)){if(!lJ(r))throw ye.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ye.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(fJ(t)==="immutable")throw new TypeError("immutable");return PE(t).append(e,r,!1)}function YRe(t){let e=PE(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function hJ(t,e){return t[0]<e[0]?-1:1}var LE=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!==0)for(let Line truncated
${i}`;break;case"retry":yW(i)&&(r[n]=i);break;case"id":bW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&yW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&bW(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};wW.exports={EventSourceStream:TD}});var MW=m((LZe,FW)=>{"use strict";var{pipeline:oLe}=Q("node:stream"),{fetching:aLe}=gh(),{makeRequest:ALe}=Yu(),{webidl:hr}=Yt(),{EventSourceStream:cLe}=NW(),{parseMIMEType:uLe}=vs(),{createFastMessageEvent:lLe}=AC(),{isNetworkError:SW}=uh(),{kEnumerableProperty:FA}=ce(),{environmentSettingsObject:TW}=rs(),DW=!1,xW=3e3,Ih=0,RW=1,Bh=2,dLe="anonymous",gLe="use-credentials",$u=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=Ih;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hr.util.markAsUncloneable(this);let s="EventSource constructor";hr.argumentLengthCheck(arguments,1,s),DW||(DW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hr.converters.USVString(e),r=hr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=TW,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=dLe;r.withCredentials===!0&&(o=gLe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=TW.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=ALe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Bh)return;this.#s=Ih;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!SW(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(SW(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?uLe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=RW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new cLe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(lLe(A.type,A.options))}});oLe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=aLe(e)}#c(){this.#s!==Bh&&(this.#s=Ih,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===Ih&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hr.brandCheck(this,t),this.#s!==Bh&&(this.#s=Bh,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},kW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ih,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:RW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Bh,writable:!1}};Object.defineProperties($u,kW);Object.defineProperties($u.prototype,kW);Object.defineProperties($u.prototype,{close:FA,onerror:FA,onmessage:FA,onopen:FA,readyState:FA,url:FA,withCredentials:FA});hr.converters.EventSourceInitDict=hr.dictionaryConverter([{key:"withCredentials",converter:hr.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hr.converters.any},{key:"node",converter:hr.dictionaryConverter([{key:"reconnectionTime",converter:hr.converters["unsigned long"],defaultValue:()=>xW},{key:"dispatcher",converter:hr.converters.any}]),defaultValue:()=>({})}]);FW.exports={EventSource:$u,defaultReconnectionTime:xW}});var _W=m((PZe,H)=>{"use strict";var hLe=jo(),LW=Cg(),fLe=dA(),mLe=LG(),pLe=_G(),ELe=fA(),CLe=QT(),ILe=ET(),BLe=yY(),QLe=DY(),yLe=kY(),PW=ae(),BC=ce(),{InvalidArgumentError:IC}=PW,el=gq(),bLe=iA(),wLe=o2(),{MockCallHistory:NLe,MockCallHistoryLog:SLe}=c2(),TLe=E2( Line truncated
`)}close(){this.#r.close()}get(e){_2(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){_2(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){_2(e),ARe(r);let s=0,n=[],i=this;return new aRe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let d in u)if(!cRe(n[d],u[d])){c=!1;break}}if(c)return A}}};function cRe(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var SA=m((bje,nJ)=>{"use strict";var{kConstruct:uRe}=Me(),{kEnumerableProperty:qu}=ce(),{iteratorMixin:lRe,isValidHeaderName:lh,isValidHeaderValue:$V}=rs(),{webidl:ye}=Yt(),G2=Q("node:assert"),LE=Q("node:util");function ZV(t){return t===10||t===13||t===9||t===32}function eJ(t){let e=0,r=t.length;for(;r>e&&ZV(t.charCodeAt(r-1));)--r;for(;r>e&&ZV(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function tJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ye.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y2(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)Y2(t,r[s],e[r[s]])}else throw ye.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y2(t,e,r){if(r=eJ(r),lh(e)){if(!$V(r))throw ye.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ye.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sJ(t)==="immutable")throw new TypeError("immutable");return vE(t).append(e,r,!1)}function dRe(t){let e=vE(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function rJ(t,e){return t[0]<e[0]?-1:1}var PE=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!==0)for(let Line truncated
${i}`;break;case"retry":lW(i)&&(r[n]=i);break;case"id":dW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&lW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&dW(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};gW.exports={EventSourceStream:ND}});var QW=m((Kje,BW)=>{"use strict";var{pipeline:DUe}=Q("node:stream"),{fetching:xUe}=mh(),{makeRequest:RUe}=Ju(),{webidl:hr}=Yt(),{EventSourceStream:kUe}=hW(),{parseMIMEType:FUe}=vs(),{createFastMessageEvent:MUe}=cC(),{isNetworkError:fW}=gh(),{kEnumerableProperty:UA}=ce(),{environmentSettingsObject:mW}=rs(),pW=!1,EW=3e3,yh=0,CW=1,bh=2,UUe="anonymous",LUe="use-credentials",rl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=yh;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hr.util.markAsUncloneable(this);let s="EventSource constructor";hr.argumentLengthCheck(arguments,1,s),pW||(pW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hr.converters.USVString(e),r=hr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=mW,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=UUe;r.withCredentials===!0&&(o=LUe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mW.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=RUe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===bh)return;this.#s=yh;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!fW(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(fW(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?FUe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=CW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new kUe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(MUe(A.type,A.options))}});DUe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=xUe(e)}#c(){this.#s!==bh&&(this.#s=yh,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===yh&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hr.brandCheck(this,t),this.#s!==bh&&(this.#s=bh,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},IW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:yh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:CW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bh,writable:!1}};Object.defineProperties(rl,IW);Object.defineProperties(rl.prototype,IW);Object.defineProperties(rl.prototype,{close:UA,onerror:UA,onmessage:UA,onopen:UA,readyState:UA,url:UA,withCredentials:UA});hr.converters.EventSourceInitDict=hr.dictionaryConverter([{key:"withCredentials",converter:hr.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hr.converters.any},{key:"node",converter:hr.dictionaryConverter([{key:"reconnectionTime",converter:hr.converters["unsigned long"],defaultValue:()=>EW},{key:"dispatcher",converter:hr.converters.any}]),defaultValue:()=>({})}]);BW.exports={EventSource:rl,defaultReconnectionTime:EW}});var TW=m((Xje,H)=>{"use strict";var PUe=jo(),bW=Qg(),vUe=hA(),OUe=bG(),_Ue=TG(),HUe=pA(),GUe=IT(),YUe=mT(),qUe=lY(),VUe=pY(),JUe=IY(),wW=oe(),QC=ce(),{InvalidArgumentError:BC}=wW,sl=tq(),WUe=aA(),zUe=n2(),{MockCallHistory:KUe,MockCallHistoryLog:XUe}=a2(),jUe=m2( Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return PLe(e,r).catch(s=>{throw UW?OW(s,UW):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=wA().Headers;H.exports.Response=uh().Response;H.exports.Request=Yu().Request;H.exports.FormData=q0().FormData;var{setGlobalOrigin:vLe,getGlobalOrigin:OLe}=aS();H.exports.setGlobalOrigin=vLe;H.exports.getGlobalOrigin=OLe;var{CacheStorage:_Le}=C7(),{kConstruct:HLe}=Me();H.exports.caches=new _Le(HLe);var{deleteCookie:GLe,getCookies:YLe,getSetCookies:qLe,setCookie:VLe,parseCookie:JLe}=k7();H.exports.deleteCookie=GLe;H.exports.getCookies=YLe;H.exports.getSetCookies=qLe;H.exports.setCookie=VLe;H.exports.parseCookie=JLe;var{parseMIMEType:WLe,serializeAMimeType:zLe}=vs();H.exports.parseMIMEType=WLe;H.exports.serializeAMimeType=zLe;var{CloseEvent:KLe,ErrorEvent:XLe,MessageEvent:jLe}=AC(),{WebSocket:ZLe,ping:$Le}=dW();H.exports.WebSocket=ZLe;H.exports.CloseEvent=KLe;H.exports.ErrorEvent=XLe;H.exports.MessageEvent=jLe;H.exports.ping=$Le;H.exports.WebSocketStream=IW().WebSocketStream;H.exports.WebSocketError=yD().WebSocketError;H.exports.request=Qh(el.request);H.exports.stream=Qh(el.stream);H.exports.pipeline=Qh(el.pipeline);H.exports.connect=Qh(el.connect);H.exports.upgrade=Qh(el.upgrade);H.exports.MockClient=wLe;H.exports.MockCallHistory=NLe;H.exports.MockCallHistoryLog=SLe;H.exports.MockPool=DLe;H.exports.MockAgent=TLe;H.exports.SnapshotAgent=xLe;H.exports.mockErrors=RLe;var{EventSource:ePe}=MW();H.exports.EventSource=ePe;function tPe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=tPe});var yh=m(ua=>{"use strict";ua.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ua.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ua.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ua.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ua.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ua.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ua.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var GW=m((_Ze,HW)=>{"use strict";var{asciiLowercase:QC,solelyContainsHTTPTokenCodePoints:rPe,soleyContainsHTTPQuotedStringTokenCodePoints:sPe}=yh();HW.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=QC(String(e)),this._map.get(e)}has(e){return e=QC(String(e)),this._map.has(e)}set(e,r){if(e=QC(String(e)),r=String(r),!rPe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!sPe(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=QC(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var VW=m((HZe,qW)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:nPe,removeTrailingHTTPWhitespace:YW,isHTTPWhitespaceChar:iPe,solelyContainsHTTPTokenCodePoints:DD,soleyContainsHTTPQuotedStringTokenCodePoints:oPe,asciiLowercase:xD,collectAnHTTPQuotedString:aPe}=yh();qW.exports=t=>{t=nPe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!DD(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=YW(s),s.length===0||!DD(s))return null;let n={type:xD(r),subtype:xD(s),parameters:new Map};for(;e<t.length;){for(++e;iPe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=xD(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=aPe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=YW(o),o==="")continue}i.length>0&&DD(i)&&oPe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var WW=m((GZe,JW)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:APe}=yh();JW.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!APe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var jW=m((qZe,XW)=>{"use strict";var cPe=GW(),uPe=VW(),lPe=WW(),{asciiLowercase:zW,solelyContainsHTTPTokenCodePoints:KW}=yh();XW.exports=class{constructor(e){e=String(e);let r=uPe(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new cPe(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=zW(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!KW(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=zW(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!KW(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return lPe(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var az=m(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.getProxyUrl=SPe;NC.checkBypass=oz;function SPe(t){let e=t.protocol==="https:";if(oz(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new wC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new wC(`http://${r}`)}else return}function oz(t){if(!t.hostname)return!1;let e=t.hostname;if(TPe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostnameLine truncated
%s`,U,U,y,s);var v=y.type==="*"?ux:y.type==="?"?cx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+v+"\\("+U}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var _=a[O],Ne=s.slice(0,_.reStart),Ge=s.slice(_.reStart,_.reEnd-8),ue=s.slice(_.reEnd-8,_.reEnd),fe=s.slice(_.reEnd);ue+=fe;var Ie=Ne.split("(").length-1,lt=fe;for(E=0;E<Ie;E++)lt=lt.replace(/\)[+*?]?/,"");fe=lt;var Es="";fe===""&&e!==LC&&(Es="$");var Ea=Ne+Ge+fe+Es+ue;s=Ea}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===LC)return[s,n];if(!n)return M3e(t);var Ca=r.nocase?"i":"";try{var CB=new RegExp("^"+s+"$",Ca)}catch{return new RegExp("$.")}return CB._glob=t,CB._src=s,CB}ds.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=F3e;function F3e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?ux:e.dot?w3e:N3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===UA?r:typeof o=="string"?U3e(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}ds.match=function(t,e,r){r=r||{};var s=new bt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};bt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Th.sep!=="/"&&(e=e.split(Th.sep).join("/")),e=e.split(NK),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};bt.prototype.matchOne=function(t,e,r){return e.indexOf(UA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===UA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===UA){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var d=t.slice(s,s+A.length);if(!this._matchOne(d,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var E=String(t[i]);if(f=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||f}for(var w=[[[],0]],p=w[0],y=0,N=[0],D=0;D<c.length;D++){var U=c[D];U===UA?(N.push(y),p=[[],0],w.push(p)):(p[0].push(U),y++)}for(var v=w.length-1,k=t.length-g,O=0;O<w.length;O++)w[O][1]=k-(N[v--]+w[O][0].length);return!!this._matchGlobStarBodySections(t,w,s,0,r,0,!!g)};bt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],d=a[1];r<=d;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};bt.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===UA)return!1;var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function M3e(t){return t.replace(/\\(.)/g,"$1")}function U3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Dh=m((Pet,RK)=>{"use strict";var _3e="2.0.0",H3e=Number.MAX_SAFE_INTEGER||9007199254740991,G3e=16,Y3e=250,q3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];RK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:G3e,MAX_SAFE_BUILD_LENGTH:Y3e,MAX_SAFE_INTEGER:H3e,RELEASE_TYPES:q3e,SEMVER_SPEC_VERSION:_3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xh=m((vet,kK)=>{"use strict";var V3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};kK.exports=V3e});var il=m((ui,FK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:lx,MAX_SAFE_BUILD_LENGTH:J3e,MAX_LENGTH:W3e}=Dh(),z3e=xh();ui=FK.exports={};var K3e=ui.re=[],X3e=ui.safeRe=[],G=ui.src=[],j3e=ui.safeSrc=[],Y=ui.t={},Z3e=0,dx="[a-zA-Z0-9-]",$3e=[["\\s",1],["\\d",W3e],[dx,J3e]],e8e=t=>{for(let[e,r]of $3e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return oLe(e,r).catch(s=>{throw yW?SW(s,yW):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=SA().Headers;H.exports.Response=gh().Response;H.exports.Request=Ju().Request;H.exports.FormData=V0().FormData;var{setGlobalOrigin:aLe,getGlobalOrigin:ALe}=iS();H.exports.setGlobalOrigin=aLe;H.exports.getGlobalOrigin=ALe;var{CacheStorage:cLe}=a7(),{kConstruct:uLe}=Me();H.exports.caches=new cLe(uLe);var{deleteCookie:lLe,getCookies:dLe,getSetCookies:gLe,setCookie:hLe,parseCookie:fLe}=I7();H.exports.deleteCookie=lLe;H.exports.getCookies=dLe;H.exports.getSetCookies=gLe;H.exports.setCookie=hLe;H.exports.parseCookie=fLe;var{parseMIMEType:mLe,serializeAMimeType:pLe}=vs();H.exports.parseMIMEType=mLe;H.exports.serializeAMimeType=pLe;var{CloseEvent:ELe,ErrorEvent:CLe,MessageEvent:ILe}=cC(),{WebSocket:BLe,ping:QLe}=eW();H.exports.WebSocket=BLe;H.exports.CloseEvent=ELe;H.exports.ErrorEvent=CLe;H.exports.MessageEvent=ILe;H.exports.ping=QLe;H.exports.WebSocketStream=AW().WebSocketStream;H.exports.WebSocketError=BD().WebSocketError;H.exports.request=wh(sl.request);H.exports.stream=wh(sl.stream);H.exports.pipeline=wh(sl.pipeline);H.exports.connect=wh(sl.connect);H.exports.upgrade=wh(sl.upgrade);H.exports.MockClient=zUe;H.exports.MockCallHistory=KUe;H.exports.MockCallHistoryLog=XUe;H.exports.MockPool=ZUe;H.exports.MockAgent=jUe;H.exports.SnapshotAgent=$Ue;H.exports.mockErrors=eLe;var{EventSource:yLe}=QW();H.exports.EventSource=yLe;function bLe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=bLe});var Nh=m(ua=>{"use strict";ua.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ua.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ua.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ua.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ua.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ua.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ua.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var xW=m(($je,DW)=>{"use strict";var{asciiLowercase:yC,solelyContainsHTTPTokenCodePoints:wLe,soleyContainsHTTPQuotedStringTokenCodePoints:NLe}=Nh();DW.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=yC(String(e)),this._map.get(e)}has(e){return e=yC(String(e)),this._map.has(e)}set(e,r){if(e=yC(String(e)),r=String(r),!wLe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!NLe(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=yC(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var FW=m((eZe,kW)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:SLe,removeTrailingHTTPWhitespace:RW,isHTTPWhitespaceChar:TLe,solelyContainsHTTPTokenCodePoints:SD,soleyContainsHTTPQuotedStringTokenCodePoints:DLe,asciiLowercase:TD,collectAnHTTPQuotedString:xLe}=Nh();kW.exports=t=>{t=SLe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!SD(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=RW(s),s.length===0||!SD(s))return null;let n={type:TD(r),subtype:TD(s),parameters:new Map};for(;e<t.length;){for(++e;TLe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=TD(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=xLe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=RW(o),o==="")continue}i.length>0&&SD(i)&&DLe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var UW=m((tZe,MW)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:RLe}=Nh();MW.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!RLe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var OW=m((sZe,vW)=>{"use strict";var kLe=xW(),FLe=FW(),MLe=UW(),{asciiLowercase:LW,solelyContainsHTTPTokenCodePoints:PW}=Nh();vW.exports=class{constructor(e){e=String(e);let r=FLe(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new kLe(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=LW(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PW(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=LW(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PW(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return MLe(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KW=m(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.getProxyUrl=XLe;SC.checkBypass=zW;function XLe(t){let e=t.protocol==="https:";if(zW(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new NC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new NC(`http://${r}`)}else return}function zW(t){if(!t.hostname)return!1;let e=t.hostname;if(jLe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostnameLine truncated
%s`,U,U,y,s);var v=y.type==="*"?sx:y.type==="?"?rx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+v+"\\("+U}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var _=a[O],Ne=s.slice(0,_.reStart),Ge=s.slice(_.reStart,_.reEnd-8),ue=s.slice(_.reEnd-8,_.reEnd),fe=s.slice(_.reEnd);ue+=fe;var Ie=Ne.split("(").length-1,lt=fe;for(E=0;E<Ie;E++)lt=lt.replace(/\)[+*?]?/,"");fe=lt;var Es="";fe===""&&e!==LC&&(Es="$");var Ia=Ne+Ge+fe+Es+ue;s=Ia}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===LC)return[s,n];if(!n)return _3e(t);var Ba=r.nocase?"i":"";try{var pB=new RegExp("^"+s+"$",Ba)}catch{return new RegExp("$.")}return pB._glob=t,pB._src=s,pB}ds.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=O3e;function O3e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?sx:e.dot?R3e:k3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===vA?r:typeof o=="string"?H3e(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}ds.match=function(t,e,r){r=r||{};var s=new bt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};bt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Rh.sep!=="/"&&(e=e.split(Rh.sep).join("/")),e=e.split(iK),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};bt.prototype.matchOne=function(t,e,r){return e.indexOf(vA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===vA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===vA){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var d=t.slice(s,s+A.length);if(!this._matchOne(d,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var E=String(t[i]);if(f=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||f}for(var w=[[[],0]],p=w[0],y=0,N=[0],D=0;D<c.length;D++){var U=c[D];U===vA?(N.push(y),p=[[],0],w.push(p)):(p[0].push(U),y++)}for(var v=w.length-1,k=t.length-g,O=0;O<w.length;O++)w[O][1]=k-(N[v--]+w[O][0].length);return!!this._matchGlobStarBodySections(t,w,s,0,r,0,!!g)};bt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],d=a[1];r<=d;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};bt.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===vA)return!1;var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function _3e(t){return t.replace(/\\(.)/g,"$1")}function H3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Al=m((tet,uK)=>{"use strict";var J3e="2.0.0",W3e=Number.MAX_SAFE_INTEGER||9007199254740991,z3e=16,K3e=250,X3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:z3e,MAX_SAFE_BUILD_LENGTH:K3e,MAX_SAFE_INTEGER:W3e,RELEASE_TYPES:X3e,SEMVER_SPEC_VERSION:J3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kh=m((ret,lK)=>{"use strict";var j3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};lK.exports=j3e});var cl=m((ci,dK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nx,MAX_SAFE_BUILD_LENGTH:Z3e,MAX_LENGTH:$3e}=Al(),eve=kh();ci=dK.exports={};var tve=ci.re=[],rve=ci.safeRe=[],G=ci.src=[],sve=ci.safeSrc=[],Y=ci.t={},nve=0,ix="[a-zA-Z0-9-]",ive=[["\\s",1],["\\d",$3e],[ix,Z3e]],ove=t=>{for(let[e,r]of ive)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+nI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=m6e()+e+" "+t[0]}function m6e(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function p6e(...t){return process.stderr.write(sI.formatWithOptions(Ot.inspectOpts,...t)+`
`)}function E6e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function C6e(){return process.env.DEBUG}function I6e(t){t.inspectOpts={};let e=Object.keys(Ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ot.inspectOpts[e[r]]}nI.exports=Gx()(Ot);var{formatters:zj}=nI.exports;zj.o=function(t){return this.inspectOpts.colors=this.useColors,sI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};zj.O=function(t){return this.inspectOpts.colors=this.useColors,sI.inspect(t,this.inspectOpts)}});var iI=m((dst,Vx)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Vx.exports=Gj():Vx.exports=Kj()});var Zj=m(Or=>{"use strict";var B6e=Or&&Or.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Q6e=Or&&Or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xj=Or&&Or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&B6e(e,t,r);return Q6e(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.req=Or.json=Or.toBuffer=void 0;var y6e=Xj(Q("http")),b6e=Xj(Q("https"));async function jj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Or.toBuffer=jj;async function w6e(t){let r=(await jj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Or.json=w6e;function N6e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?b6e:y6e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Or.req=N6e});var Wx=m(gs=>{"use strict";var eZ=gs&&gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),S6e=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tZ=gs&&gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&eZ(e,t,r);return S6e(e,t),e},T6e=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&eZ(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var D6e=tZ(Q("net")),$j=tZ(Q("http")),x6e=Q("https");T6e(Zj(),gs);var li=Symbol("AgentBaseInternalState"),Jx=class extends $j.Agent{constructor(e){super(e),this[li]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new D6e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?x6e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof $j.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[li].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[li].currentSocket;if(this[li].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[li].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[li]&&(this[li].defaultPort=e)}get protocol(){return this[li].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[li]&&(this[li].protocol=e)}};gs.Agent=Jx});var rZ=m(ll=>{"use strict";var R6e=ll&&ll.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ll,"__esModule",{value:!0});ll.parseProxyResponse=void 0;var k6e=R6e(iI()),oI=(0,k6e.default)("https-proxy-agent:parse-proxy-response");function F6e(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),oI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),oI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.indexOf(`\r
`+i),t.push(n+"m+"+iI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=kOe()+e+" "+t[0]}function kOe(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function FOe(...t){return process.stderr.write(nI.formatWithOptions(Ot.inspectOpts,...t)+`
`)}function MOe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function UOe(){return process.env.DEBUG}function LOe(t){t.inspectOpts={};let e=Object.keys(Ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ot.inspectOpts[e[r]]}iI.exports=Px()(Ot);var{formatters:Nj}=iI.exports;Nj.o=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nj.O=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts)}});var oI=m((Ort,_x)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_x.exports=Ij():_x.exports=Sj()});var xj=m(Or=>{"use strict";var POe=Or&&Or.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),vOe=Or&&Or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tj=Or&&Or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&POe(e,t,r);return vOe(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.req=Or.json=Or.toBuffer=void 0;var OOe=Tj(Q("http")),_Oe=Tj(Q("https"));async function Dj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Or.toBuffer=Dj;async function HOe(t){let r=(await Dj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Or.json=HOe;function GOe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?_Oe:OOe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Or.req=GOe});var Gx=m(gs=>{"use strict";var kj=gs&&gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),YOe=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fj=gs&&gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kj(e,t,r);return YOe(e,t),e},qOe=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kj(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var VOe=Fj(Q("net")),Rj=Fj(Q("http")),JOe=Q("https");qOe(xj(),gs);var ui=Symbol("AgentBaseInternalState"),Hx=class extends Rj.Agent{constructor(e){super(e),this[ui]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new VOe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?JOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof Rj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ui].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ui].currentSocket;if(this[ui].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ui].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ui]&&(this[ui].defaultPort=e)}get protocol(){return this[ui].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ui]&&(this[ui].protocol=e)}};gs.Agent=Hx});var Mj=m(fl=>{"use strict";var WOe=fl&&fl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fl,"__esModule",{value:!0});fl.parseProxyResponse=void 0;var zOe=WOe(oI()),aI=(0,zOe.default)("https-proxy-agent:parse-proxy-response");function KOe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),aI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),aI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.indexOf(`\r
\r
`);if(g===-1){oI("have not received end of HTTP headers yet..."),i();return}let h=d.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=f.split(" "),w=+E[1],p=E.slice(2).join(" "),y={};for(let N of h){if(!N)continue;let D=N.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let U=N.slice(0,D).toLowerCase(),v=N.slice(D+1).trimStart(),k=y[U];typeof k=="string"?y[U]=[k,v]:Array.isArray(k)?k.push(v):y[U]=v}oI("got proxy server response: %o %o",f,y),o(),e({connect:{statusCode:w,statusText:p,headers:y},buffered:d})}t.on("error",A),t.on("end",a),i()})}ll.parseProxyResponse=F6e});var AZ=m(Zs=>{"use strict";var M6e=Zs&&Zs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),U6e=Zs&&Zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oZ=Zs&&Zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&M6e(e,t,r);return U6e(e,t),e},aZ=Zs&&Zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.HttpsProxyAgent=void 0;var aI=oZ(Q("net")),sZ=oZ(Q("tls")),L6e=aZ(Q("assert")),P6e=aZ(iI()),v6e=Wx(),O6e=Q("url"),_6e=rZ(),Hh=(0,P6e.default)("https-proxy-agent"),nZ=t=>t.servername===void 0&&t.host&&!aI.isIP(t.host)?{...t,servername:t.host}:t,AI=class extends v6e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new O6e.URL(e):e,this.proxyHeaders=r?.headers??{},Hh("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?iZ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Hh("Creating `tls.Socket`: %o",this.connectOpts),n=sZ.connect(nZ(this.connectOpts))):(Hh("Creating `net.Socket`: %o",this.connectOpts),n=aI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=aI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(g===-1){aI("have not received end of HTTP headers yet..."),i();return}let h=d.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=f.split(" "),w=+E[1],p=E.slice(2).join(" "),y={};for(let N of h){if(!N)continue;let D=N.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let U=N.slice(0,D).toLowerCase(),v=N.slice(D+1).trimStart(),k=y[U];typeof k=="string"?y[U]=[k,v]:Array.isArray(k)?k.push(v):y[U]=v}aI("got proxy server response: %o %o",f,y),o(),e({connect:{statusCode:w,statusText:p,headers:y},buffered:d})}t.on("error",A),t.on("end",a),i()})}fl.parseProxyResponse=KOe});var _j=m(Zs=>{"use strict";var XOe=Zs&&Zs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),jOe=Zs&&Zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vj=Zs&&Zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&XOe(e,t,r);return jOe(e,t),e},Oj=Zs&&Zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.HttpsProxyAgent=void 0;var AI=vj(Q("net")),Uj=vj(Q("tls")),ZOe=Oj(Q("assert")),$Oe=Oj(oI()),e6e=Gx(),t6e=Q("url"),r6e=Mj(),Gh=(0,$Oe.default)("https-proxy-agent"),Lj=t=>t.servername===void 0&&t.host&&!AI.isIP(t.host)?{...t,servername:t.host}:t,cI=class extends e6e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new t6e.URL(e):e,this.proxyHeaders=r?.headers??{},Gh("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Pj(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Gh("Creating `tls.Socket`: %o",this.connectOpts),n=Uj.connect(Lj(this.connectOpts))):(Gh("Creating `net.Socket`: %o",this.connectOpts),n=AI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=AI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let g=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(i))a+=`${g}: ${i[g]}\r
`;let A=(0,_6e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",H6e),r.secureEndpoint?(Hh("Upgrading socket connection to TLS"),sZ.connect({...iZ(nZ(r),"host","path","port"),socket:n})):n;n.destroy();let d=new aI.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{Hh("Replaying proxy buffer for failed request"),(0,L6e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};AI.protocols=["http","https"];Zs.HttpsProxyAgent=AI;function H6e(t){t.resume()}function iZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var lZ=m($s=>{"use strict";var G6e=$s&&$s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Y6e=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uZ=$s&&$s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&G6e(e,t,r);return Y6e(e,t),e},q6e=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var V6e=uZ(Q("net")),J6e=uZ(Q("tls")),W6e=q6e(iI()),z6e=Q("events"),K6e=Wx(),cZ=Q("url"),dl=(0,W6e.default)("http-proxy-agent"),cI=class extends K6e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new cZ.URL(e):e,this.proxyHeaders=r?.headers??{},dl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?X6e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new cZ.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;dl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(dl("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,r6e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",s6e),r.secureEndpoint?(Gh("Upgrading socket connection to TLS"),Uj.connect({...Pj(Lj(r),"host","path","port"),socket:n})):n;n.destroy();let d=new AI.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{Gh("Replaying proxy buffer for failed request"),(0,ZOe.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};cI.protocols=["http","https"];Zs.HttpsProxyAgent=cI;function s6e(t){t.resume()}function Pj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Yj=m($s=>{"use strict";var n6e=$s&&$s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),i6e=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gj=$s&&$s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&n6e(e,t,r);return i6e(e,t),e},o6e=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var a6e=Gj(Q("net")),A6e=Gj(Q("tls")),c6e=o6e(oI()),u6e=Q("events"),l6e=Gx(),Hj=Q("url"),ml=(0,c6e.default)("http-proxy-agent"),uI=class extends l6e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Hj.URL(e):e,this.proxyHeaders=r?.headers??{},ml("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?d6e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new Hj.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;ml("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ml("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),dl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(dl("Creating `tls.Socket`: %o",this.connectOpts),i=J6e.connect(this.connectOpts)):(dl("Creating `net.Socket`: %o",this.connectOpts),i=V6e.connect(this.connectOpts)),await(0,z6e.once)(i,"connect"),i}};cI.protocols=["http","https"];$s.HttpProxyAgent=cI;function X6e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var HZ=m(hI=>{"use strict";Object.defineProperty(hI,"__esModule",{value:!0});hI.state=void 0;hI.state={instrumenterImplementation:void 0}});var $Z=m(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0});EI.state=void 0;EI.state={operationRequestMap:new WeakMap}});var Rre=m((rBt,w9e)=>{w9e.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Fre=m((sBt,kre)=>{var N9e=Rre();kre.exports={version:N9e.version}});var kI=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.isJsonObject=yl.typeofJsonValue=void 0;function F9e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}yl.typeofJsonValue=F9e;function M9e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}yl.isJsonObject=M9e});var MI=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.base64encode=bl.base64decode=void 0;var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),FI=[];for(let t=0;t<so.length;t++)FI[so[t].charCodeAt(0)]=t;FI[45]=so.indexOf("+");FI[95]=so.indexOf("/");function U9e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=FI[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}bl.base64decode=U9e;function L9e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}bl.base64encode=L9e});var Mre=m(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.utf8read=void 0;var tk=t=>String.fromCharCode.apply(String,t);function P9e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(tk(s)),n=0);return r.length?(n&&r.push(tk(s.slice(0,n))),r.join("")):tk(s.slice(0,n))}UI.utf8read=P9e});var Kh=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var v9e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(v9e=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function O9e(t,e){return Object.assign(Object.assign({},t),e)}di.mergeBinaryOptions=O9e;var _9e;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(_9e=di.WireType||(di.WireType={}))});var PI=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.varint32read=_r.varint32write=_r.int64toString=_r.int64fromString=_r.varint64write=_r.varint64read=void 0;function H9e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}_r.varint64read=H9e;function G9e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}_r.varint64write=G9e;var LI=65536*65536;function Y9e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=LI&&(n=n+(s/LI|0),s=s%LI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}_r.int64fromString=Y9e;function q9e(t,e){if(e>>>0<=2097151)return""+(LI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,d){let g=u?String(u):"";return d?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}_r.int64toString=q9e;function V9e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}_r.varint32write=V9e;function J9e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}_r.varint32read=J9e});var ma=m(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.PbLong=fa.PbULong=fa.detectBi=void 0;var Xh=PI(),He;function Ure(){let t=new DataView(new ArrayBuffer(8));He=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}fa.detectBi=Ure;Ure();function Lre(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Pre=/^-?[0-9]+$/,OI=4294967296,vI=2147483648,_I=c Line truncated
`)}};uB.RpcError=Tk});var xk=m(dB=>{"use strict";Object.defineProperty(dB,"__esModule",{value:!0});dB.mergeRpcOptions=void 0;var gse=Et();function hYe(t,e){if(!e)return t;let r={};lB(t,r),lB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=gse.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=gse.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},lB(t.meta,r.meta),lB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}dB.mergeRpcOptions=hYe;function lB(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var kk=m(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});qA.Deferred=qA.DeferredState=void 0;var fi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fi=qA.DeferredState||(qA.DeferredState={}));var Rk=class{constructor(e=!0){this._state=fi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==fi.PENDING)throw new Error(`cannot resolve ${fi[this.state].toLowerCase()}`);this._resolve(e),this._state=fi.RESOLVED}reject(e){if(this.state!==fi.PENDING)throw new Error(`cannot reject ${fi[this.state].toLowerCase()}`);this._reject(e),this._state=fi.REJECTED}resolvePending(e){this._state===fi.PENDING&&this.resolve(e)}rejectPending(e){this._state===fi.PENDING&&this.reject(e)}};qA.Deferred=Rk});var Mk=m(gB=>{"use strict";Object.defineProperty(gB,"__esModule",{value:!0});gB.RpcOutputStreamController=void 0;var hse=kk(),VA=Et(),Fk=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){VA.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){VA.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){VA.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){VA.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;VA.assert(e,"bad state"),VA.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new hse.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;VA.assert(s.state==hse.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};gB.RpcOutputStreamController=Fk});var Lk=m(Rl=>{"use strict";var fYe=Rl&&Rl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.UnaryCall=void 0;var Uk=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return fYe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Rl.UnaryCall=Uk});var vk=m(kl=>{"use strict";var mYe=kl&&kl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(kl,"__esModule",{value:!0});kl.ServerStreamingCall=void 0;var Pk=class{constructor(e Line truncated
`:Cp(t.children):Jc(t)?Cp(t.children):Nr(t)?t.data:""}function Ui(t){return Array.isArray(t)?t.map(Ui).join(""):ve(t)&&!Ja(t)?Ui(t.children):Nr(t)?t.data:""}function Vd(t){return Array.isArray(t)?t.map(Vd).join(""):ve(t)&&(t.type===Be.Tag||Jc(t))?Vd(t.children):Nr(t)?t.data:""}function Kc(t){return ve(t)?t.children:[]}function CO(t){return t.parent||null}function y1(t){let e=CO(t);if(e!=null)return Kc(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function m0e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function p0e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function E0e(t){return t.name}function Ip(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Bp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function Li(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function C0e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function I0e(t,e){if(Li(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function B0e(t,e){Li(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function Q0e(t,e){if(Li(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function y0e(t,e){Li(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Xc(t,e,r=!0,s=1/0){return Qp(t,Array.isArray(e)?e:[e],r,s)}function Qp(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&ve(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function b0e(t,e){return e.find(t)}function yp(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&ve(i)&&i.children.length>0){let o=yp(t,i.children,!0);if(o)return o}}return null}function IO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||ve(r)&&IO(t,r.children))}function w0e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];q(i)&&t(i)&&r.push(i),ve(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var bp={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Nr(e)&&t(e.data):e=>Nr(e)&&e.data===t}};function b1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function N0e(t,e){return r=>t(r)||e(r)}function BO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(bp,r)?bp[r](s):b1(r,s)});return e.length===0?null:e.reduce(N0e)}function S0e(t,e){let r=BO(t);return r?r(e):!0}function T0e(t,e,r,s=1/0){let n=BO(t);return n?Xc(n,e,r,s):[]}function D0e(t,e,r=!0){return Array.isArray(e)||(e=[e]),yp(b1("id",t),e,r)}function Wa(t,e,r=!0,s=1/0){return Xc(bp.tag_name(t),e,r,s)}function x0e(t,e,r=!0,s=1/0){return Xc(b1("class",t),e,r,s)}function R0e(t,e,r=!0,s=1/0){return Xc(bp.tag_type(t),e,r,s)}function k0e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Ts;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ts||(Ts={}));function QO(t,e){let r=[],s=[];if(t===e)return 0;let n=ve(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ve(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Ts.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ts.FOLLOWING|Ts.CONTAINED_BY:Ts.FOLLOWING:a===t?Ts.PRECEDING|Ts.CONTAINS:Ts.PRECEDING}function To(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=QO(e,r);return s&Ts.PRECEDING?-1:s&Ts.FOLLOWING?1:0}),t}function w1(t){let e=wp(P0e,t);return e?e.name==="feed"?F0e(e):M0e(e):null}function F0e(t){var e;let r=t.children,s={type:"atom",items:Wa("entry",r).map(o=>{var a;let{children:A}=o,c={media:yO(A)};Sr(c,"id","id",A),Sr(c,"title","title",A);let u=(a=wp("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let d=Do("summary",A)||Do("content",A);d&&(c.descript Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),ml("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(ml("Creating `tls.Socket`: %o",this.connectOpts),i=A6e.connect(this.connectOpts)):(ml("Creating `net.Socket`: %o",this.connectOpts),i=a6e.connect(this.connectOpts)),await(0,u6e.once)(i,"connect"),i}};uI.protocols=["http","https"];$s.HttpProxyAgent=uI;function d6e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var uZ=m(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.state=void 0;dI.state={instrumenterImplementation:void 0}});var QZ=m(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.state=void 0;mI.state={operationRequestMap:new WeakMap}});var ere=m((LIt,vHe)=>{vHe.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},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 && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var rre=m((PIt,tre)=>{var OHe=ere();tre.exports={version:OHe.version}});var xI=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.isJsonObject=Nl.typeofJsonValue=void 0;function JHe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Nl.typeofJsonValue=JHe;function WHe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Nl.isJsonObject=WHe});var kI=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.base64encode=Sl.base64decode=void 0;var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),RI=[];for(let t=0;t<so.length;t++)RI[so[t].charCodeAt(0)]=t;RI[45]=so.indexOf("+");RI[95]=so.indexOf("/");function zHe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=RI[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Sl.base64decode=zHe;function KHe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}Sl.base64encode=KHe});var sre=m(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0});FI.utf8read=void 0;var YR=t=>String.fromCharCode.apply(String,t);function XHe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(YR(s)),n=0);return r.length?(n&&r.push(YR(s.slice(0,n))),r.join("")):YR(s.slice(0,n))}FI.utf8read=XHe});var Xh=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var jHe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(jHe=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function ZHe(t,e){return Object.assign(Object.assign({},t),e)}di.mergeBinaryOptions=ZHe;var $He;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})($He=di.WireType||(di.WireType={}))});var UI=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.varint32read=_r.varint32write=_r.int64toString=_r.int64fromString=_r.varint64write=_r.varint64read=void 0;function e9e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}_r.varint64read=e9e;function t9e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}_r.varint64write=t9e;var MI=65536*65536;function r9e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=MI&&(n=n+(s/MI|0),s=s%MI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}_r.int64fromString=r9e;function s9e(t,e){if(e>>>0<=2097151)return""+(MI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,d){let g=u?String(u):"";return d?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}_r.int64toString=s9e;function n9e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}_r.varint32write=n9e;function i9e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}_r.varint32read=i9e});var Ea=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PbLong=pa.PbULong=pa.detectBi=void 0;var jh=UI(),He;function nre(){let t=new DataView(new ArrayBuffer(8));He=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}pa.detectBi=nre;nre();function ire(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ore=/^-?[0-9]+$/,PI=4294967296,LI=2147483648,vI=c Line truncated
`)}};AB.RpcError=mk});var Ek=m(uB=>{"use strict";Object.defineProperty(uB,"__esModule",{value:!0});uB.mergeRpcOptions=void 0;var Lre=Et();function SGe(t,e){if(!e)return t;let r={};cB(t,r),cB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Lre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Lre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cB(t.meta,r.meta),cB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}uB.mergeRpcOptions=SGe;function cB(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var Ik=m(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0});WA.Deferred=WA.DeferredState=void 0;var fi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fi=WA.DeferredState||(WA.DeferredState={}));var Ck=class{constructor(e=!0){this._state=fi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==fi.PENDING)throw new Error(`cannot resolve ${fi[this.state].toLowerCase()}`);this._resolve(e),this._state=fi.RESOLVED}reject(e){if(this.state!==fi.PENDING)throw new Error(`cannot reject ${fi[this.state].toLowerCase()}`);this._reject(e),this._state=fi.REJECTED}resolvePending(e){this._state===fi.PENDING&&this.resolve(e)}rejectPending(e){this._state===fi.PENDING&&this.reject(e)}};WA.Deferred=Ck});var Qk=m(lB=>{"use strict";Object.defineProperty(lB,"__esModule",{value:!0});lB.RpcOutputStreamController=void 0;var Pre=Ik(),zA=Et(),Bk=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){zA.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){zA.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){zA.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){zA.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;zA.assert(e,"bad state"),zA.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Pre.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;zA.assert(s.state==Pre.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};lB.RpcOutputStreamController=Bk});var bk=m(Ml=>{"use strict";var TGe=Ml&&Ml.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.UnaryCall=void 0;var yk=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return TGe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Ml.UnaryCall=yk});var Nk=m(Ul=>{"use strict";var DGe=Ul&&Ul.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.ServerStreamingCall=void 0;var wk=class{constructor(e Line truncated
`:Ip(t.children):Kc(t)?Ip(t.children):Nr(t)?t.data:""}function Ui(t){return Array.isArray(t)?t.map(Ui).join(""):ve(t)&&!za(t)?Ui(t.children):Nr(t)?t.data:""}function zd(t){return Array.isArray(t)?t.map(zd).join(""):ve(t)&&(t.type===Be.Tag||Kc(t))?zd(t.children):Nr(t)?t.data:""}function Zc(t){return ve(t)?t.children:[]}function aO(t){return t.parent||null}function B1(t){let e=aO(t);if(e!=null)return Zc(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function Ope(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _pe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Hpe(t){return t.name}function Bp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Qp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function Li(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Gpe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Ype(t,e){if(Li(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function qpe(t,e){Li(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function Vpe(t,e){if(Li(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Jpe(t,e){Li(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function $c(t,e,r=!0,s=1/0){return yp(t,Array.isArray(e)?e:[e],r,s)}function yp(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&ve(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Wpe(t,e){return e.find(t)}function bp(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&ve(i)&&i.children.length>0){let o=bp(t,i.children,!0);if(o)return o}}return null}function AO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||ve(r)&&AO(t,r.children))}function zpe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];q(i)&&t(i)&&r.push(i),ve(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var wp={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Nr(e)&&t(e.data):e=>Nr(e)&&e.data===t}};function Q1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function Kpe(t,e){return r=>t(r)||e(r)}function cO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(wp,r)?wp[r](s):Q1(r,s)});return e.length===0?null:e.reduce(Kpe)}function Xpe(t,e){let r=cO(t);return r?r(e):!0}function jpe(t,e,r,s=1/0){let n=cO(t);return n?$c(n,e,r,s):[]}function Zpe(t,e,r=!0){return Array.isArray(e)||(e=[e]),bp(Q1("id",t),e,r)}function Ka(t,e,r=!0,s=1/0){return $c(wp.tag_name(t),e,r,s)}function $pe(t,e,r=!0,s=1/0){return $c(Q1("class",t),e,r,s)}function e0e(t,e,r=!0,s=1/0){return $c(wp.tag_type(t),e,r,s)}function t0e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Ts;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ts||(Ts={}));function uO(t,e){let r=[],s=[];if(t===e)return 0;let n=ve(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ve(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Ts.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ts.FOLLOWING|Ts.CONTAINED_BY:Ts.FOLLOWING:a===t?Ts.PRECEDING|Ts.CONTAINS:Ts.PRECEDING}function To(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=uO(e,r);return s&Ts.PRECEDING?-1:s&Ts.FOLLOWING?1:0}),t}function y1(t){let e=Np(o0e,t);return e?e.name==="feed"?r0e(e):s0e(e):null}function r0e(t){var e;let r=t.children,s={type:"atom",items:Ka("entry",r).map(o=>{var a;let{children:A}=o,c={media:lO(A)};Sr(c,"id","id",A),Sr(c,"title","title",A);let u=(a=Np("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let d=Do("summary",A)||Do("content",A);d&&(c.descript Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Rs=ie(Ro(),1);var G1={};function Y1(t,e){return t===Rs.default.falseFunc?Rs.default.falseFunc:r=>e.isTag(r)&&t(r)}function q1(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function H1(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var _1=(t,e,r,s,n)=>{let i=n(e,H1(r),s);return i===Rs.default.trueFunc?t:i===Rs.default.falseFunc?Rs.default.falseFunc:o=>i(o)&&t(o)},vp={is:_1,matches:_1,where:_1,not(t,e,r,s,n){let i=n(e,H1(r),s);return i===Rs.default.falseFunc?t:i===Rs.default.trueFunc?Rs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=H1(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Zd))?[G1]:void 0,A=n(e,o,a);if(A===Rs.default.falseFunc)return Rs.default.falseFunc;let c=Y1(A,i);if(a&&A!==Rs.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return d=>{if(!t(d))return!1;a[0]=d;let g=i.getChildren(d),h=u?[...g,...q1(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function l6(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in vp))throw new Error(`Unknown pseudo-class :${o}(${a})`);return vp[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:Pp[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,u6.parse)(c);return vp.is(t,u,r,s,n)}if(typeof A=="function")return O1(A,o,a,1),u=>A(u,a)&&t(u);if(o in iu)return iu[o](t,a,r,s);if(o in eg){let u=eg[o];return O1(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var ks=ie(su(),1);function V1(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function d6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ks.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ks.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ks.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),o6[e.action](t,e,r)}case ks.SelectorType.Pseudo:return l6(t,e,r,s,n);case ks.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ks.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=V1(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=V1(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=V1(c,i));return!1};case ks.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ks.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ks.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let d=c[u];if(o(A,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case ks.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let d=0;d<c.length;d++){let g=c[d];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case ks.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function g6(t,e,r){let s=Op(t,e,r);return Y1(s,e.adapter)}function Op(t,e,r){let s=typeof t=="string"?(0,pn.parse)(t):t;return _p(s,e,r)}function h6(t){return t.type===pn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(h6)))}var TEe={type:pn.SelectorType.Descendant},DEe={type:"_flexibleDescendant"},xEe={type:pn.SelectorType.Pseudo,name:"scope",data:null};function REe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===G1||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(x6,`\r
`)}}).toArray()}var aw={};nn(aw,{extract:()=>JCe});function VCe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function JCe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=VCe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Mo=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Mo.prototype.cheerio="[cheerio object]";Mo.prototype.splice=Array.prototype.splice;Mo.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Mo.prototype,M1,sw,nw,iw,ow,aw);function R6(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Vc(n),a=t(s,o,i,null);class A extends Mo{_make(d,g){let h=c(d,g);return h.prevObject=this,h}_parse(d,g,h,f){return t(d,g,h,f)}_render(d){return e(d,this.options)}}function c(u,d,g=a,h){if(u&&Ds(u))return u;let f=Vc(h,o),E=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],w=Ds(E)?E:new A(E,null,f);if(w._root=w,!u)return new A(void 0,w,f);let p=typeof u=="string"&&Jd(u)?t(u,f,!1,null).children:WCe(u)?[u]:Array.isArray(u)?u:void 0,y=new A(p,w,f);if(p)return y;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,D=d?typeof d=="string"?Jd(d)?new A([t(d,f,!1,null)],w,f):(N=`${d} ${N}`,w):Ds(d)?d:new A(Array.isArray(d)?d:[d],w,f):w;return D?D.find(N):y}return Object.assign(c,N1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function WCe(t){return!!t.name||t.type===Ns.Root||t.type===Ns.Text||t.type===Ns.Comment}var zCe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ve="\uFFFD",C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));var ur={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Jp(t){return t>=55296&&t<=57343}function k6(t){return t>=56320&&t<=57343}function F6(t,e){return(t-55296)*1024+9216+e}function Wp(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function zp(t){return t>=64976&&t<=65007||zCe.has(t)}var x;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Rs=ae(Ro(),1);var _1={};function H1(t,e){return t===Rs.default.falseFunc?Rs.default.falseFunc:r=>e.isTag(r)&&t(r)}function G1(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function O1(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var v1=(t,e,r,s,n)=>{let i=n(e,O1(r),s);return i===Rs.default.trueFunc?t:i===Rs.default.falseFunc?Rs.default.falseFunc:o=>i(o)&&t(o)},Op={is:v1,matches:v1,where:v1,not(t,e,r,s,n){let i=n(e,O1(r),s);return i===Rs.default.falseFunc?t:i===Rs.default.trueFunc?Rs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=O1(r);o.relativeSelector=!0;let a=e.some(u=>u.some(tg))?[_1]:void 0,A=n(e,o,a);if(A===Rs.default.falseFunc)return Rs.default.falseFunc;let c=H1(A,i);if(a&&A!==Rs.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return d=>{if(!t(d))return!1;a[0]=d;let g=i.getChildren(d),h=u?[...g,...G1(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function $O(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in Op))throw new Error(`Unknown pseudo-class :${o}(${a})`);return Op[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:vp[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ZO.parse)(c);return Op.is(t,u,r,s,n)}if(typeof A=="function")return P1(A,o,a,1),u=>A(u,a)&&t(u);if(o in Au)return Au[o](t,a,r,s);if(o in sg){let u=sg[o];return P1(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var ks=ae(ou(),1);function Y1(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function e6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ks.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ks.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ks.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),zO[e.action](t,e,r)}case ks.SelectorType.Pseudo:return $O(t,e,r,s,n);case ks.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ks.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=Y1(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=Y1(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=Y1(c,i));return!1};case ks.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ks.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ks.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let d=c[u];if(o(A,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case ks.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let d=0;d<c.length;d++){let g=c[d];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case ks.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function t6(t,e,r){let s=_p(t,e,r);return H1(s,e.adapter)}function _p(t,e,r){let s=typeof t=="string"?(0,pn.parse)(t):t;return Hp(s,e,r)}function r6(t){return t.type===pn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(r6)))}var j0e={type:pn.SelectorType.Descendant},Z0e={type:"_flexibleDescendant"},$0e={type:pn.SelectorType.Pseudo,name:"scope",data:null};function eEe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===_1||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(E6,`\r
`)}}).toArray()}var iw={};nn(iw,{extract:()=>fCe});function hCe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function fCe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=hCe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Mo=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Mo.prototype.cheerio="[cheerio object]";Mo.prototype.splice=Array.prototype.splice;Mo.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Mo.prototype,k1,tw,rw,sw,nw,iw);function C6(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=zc(n),a=t(s,o,i,null);class A extends Mo{_make(d,g){let h=c(d,g);return h.prevObject=this,h}_parse(d,g,h,f){return t(d,g,h,f)}_render(d){return e(d,this.options)}}function c(u,d,g=a,h){if(u&&Ds(u))return u;let f=zc(h,o),E=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],w=Ds(E)?E:new A(E,null,f);if(w._root=w,!u)return new A(void 0,w,f);let p=typeof u=="string"&&Kd(u)?t(u,f,!1,null).children:mCe(u)?[u]:Array.isArray(u)?u:void 0,y=new A(p,w,f);if(p)return y;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,D=d?typeof d=="string"?Kd(d)?new A([t(d,f,!1,null)],w,f):(N=`${d} ${N}`,w):Ds(d)?d:new A(Array.isArray(d)?d:[d],w,f):w;return D?D.find(N):y}return Object.assign(c,b1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function mCe(t){return!!t.name||t.type===Ns.Root||t.type===Ns.Text||t.type===Ns.Comment}var pCe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ve="\uFFFD",C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));var ur={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Wp(t){return t>=55296&&t<=57343}function I6(t){return t>=56320&&t<=57343}function B6(t,e){return(t-55296)*1024+9216+e}function zp(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Kp(t){return t>=64976&&t<=65007||pCe.has(t)}var x;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},bC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as bPe,existsSync as wPe}from"fs";import{EOL as NPe}from"os";var tl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(wPe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(bPe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${NPe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var PD=ie(cz(),1),uz=ie(ap(),1),OPe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function lz(t){return new PD.HttpClient().getAgent(t)}function _Pe(t){return new PD.HttpClient().getAgentDispatcher(t)}function dz(t){let e=_Pe(t);return(s,n)=>OPe(this,void 0,void 0,function*(){return(0,uz.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function gz(){return process.env.GITHUB_API_URL||"https://api.github.com"}function RC(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function kC(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>kC.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function hz(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function fz(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var mz=Function.bind,pz=mz.bind(mz);function Ez(t,e,r){let s=pz(fz,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=pz(hz,null).apply(null,i)})}function GPe(){let t=Symbol("Singular"),e={registry:{}},r=kC.bind(null,e,t);return Ez(r,e,t),r}function YPe(){let t={registry:{}},e=kC.bind(null,t);return Ez(e,t),e}var Cz={Singular:GPe,Collection:YPe};var $D=ie(KD(),1);var Jz=ie(KD(),1);var Lve="0.0.0-development";function Pve(t){return`Request failed due to following response errors:
`)}`}},wC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as WLe,existsSync as zLe}from"fs";import{EOL as KLe}from"os";var nl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zLe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(WLe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${KLe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var UD=ae(jW(),1),ZW=ae(Ap(),1),APe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function $W(t){return new UD.HttpClient().getAgent(t)}function cPe(t){return new UD.HttpClient().getAgentDispatcher(t)}function ez(t){let e=cPe(t);return(s,n)=>APe(this,void 0,void 0,function*(){return(0,ZW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function tz(){return process.env.GITHUB_API_URL||"https://api.github.com"}function la(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function kC(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>kC.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function rz(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function sz(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var nz=Function.bind,iz=nz.bind(nz);function oz(t,e,r){let s=iz(sz,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=iz(rz,null).apply(null,i)})}function lPe(){let t=Symbol("Singular"),e={registry:{}},r=kC.bind(null,e,t);return oz(r,e,t),r}function dPe(){let t={registry:{}},e=kC.bind(null,t);return oz(e,t),e}var az={Singular:lPe,Collection:dPe};var gPe="0.0.0-development",hPe=`octokit-endpoint.js/${gPe} ${la()}`,fPe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":hPe},mediaType:{format:""}};function mPe(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function pPe(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function uz(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{pPe(e[s])?s in t?r[s]=uz(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function Az(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function PD(t,e,r){if(typeof e=="string"){let[n,i]=e.split(" ");r=Object.assign(i?{method:n,url:i}:{url:n},r)}else r=Object.assign({},e);r.headers=mPe(r.headers),Az(r),Az(r.headers);let s=uz(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var vve=class extends Error{constructor(t,e,r){super(Pve(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Ove=["method","baseUrl","url","headers","request","query","mediaType","operationName"],_ve=["query","method","url"],Vz=/\/api\/v3\/?$/;function Hve(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(_ve.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>Ove.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Vz.test(i)&&(n.url=i.replace(Vz,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new vve(n,a,o.data)}return o.data.data})}function XD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>Hve(r,n,i),{defaults:XD.bind(null,r),endpoint:r.endpoint})}var N$e=XD(Jz.request,{headers:{"user-agent":`octokit-graphql.js/${Lve} ${RC()}`},method:"POST",url:"/graphql"});function Wz(t){return XD(t,{method:"POST",url:"/graphql"})}var jD="(?:[a-zA-Z0-9_-]+)",zz="\\.",Kz=new RegExp(`^${jD}${zz}${jD}${zz}${jD}$`),Gve=Kz.test.bind(Kz);async function Yve(t){let e=Gve(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function qve(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Vve(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=qve(t),e(n)}var Xz=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Yve.bind(null,e),{hook:Vve.bind(null,e)})};var ZD="7.0.6";var jz=()=>{},Jve=console.warn.bind(console),Wve=console.error.bind(console);function zve(t={}){return typeof t.debug!="function"&&(t.debug=jz),typeof t.info!="function"&&(t.info=jz),typeof t.warn!="function"&&(t.warn=Jve),typeof t.error!="function"&&(t.error=Wve),t}var Zz=`octokit-core.js/${ZD} ${RC()}`,UC=class{static VERSION=ZD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Cz.Collection,s={baseUrl:$D.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Zz}`:Zz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=$D.request.defaults(s),this.graphql=Wz(this.request).defaults(s),this.log=zve(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Xz(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var ex="17.0.0";var Kve={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgV Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};xI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var RI=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More 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`),this.name="UsageError"}};RI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var S9e=ie(Fre(),1);var Sse=ie(Ise(),1),Ct=ie(Et(),1),ps=ie(Et(),1),JA=ie(Et(),1),WA=ie(Et(),1),zA=ie(Et(),1);var zk=ie(Et(),1),Kk=ie(Et(),1),bse=ie(Et(),1),wse=ie(Et(),1),Nse=ie(Et(),1);var Vk=ie(Et(),1),Jk=ie(Et(),1),Bse=ie(Et(),1),Qse=ie(Et(),1),yse=ie(Et(),1),Wk=class extends yse.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Qse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Bse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Jk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Vk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Vk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Jk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mB=new Wk;var Xk=class extends Nse.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>mB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,wse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,bse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(mB.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Kk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,zk.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)mB.internalBinaryWrite(e.scope[i],r.tag(2,zk.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Kk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mi=new Xk;var jk=class extends zA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>mi},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,WA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,JA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=mi.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&mi.internalBinaryWrite(e.metadata,r.tag(1,Ct.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,Ct.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,Ct.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ps.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Tse=new jk,Zk=class extends zA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,WA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,JA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,Ct.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;qYe.push(s),Fi(s)}function Use(t=!0){if(Mse.length>0){No(`This job uses deprecated functionality from the '${pB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Mse)Kt(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var Pse="GRADLE_ACTION_ID";var Lse=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ose("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return ar("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return ar("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return ar("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return ar("develocity-token-expiry")}getDevelocityInjectionEnabled(){return EB("develocity-injection-enabled")}getDevelocityUrl(){return ar("develocity-url")}getDevelocityAllowUntrustedServer(){return EB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return EB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return EB("develocity-enforce-url")}getDevelocityPluginVersion(){return ar("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return ar("develocity-ccud-plugin-version")}getPluginRepository(){return new oF}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(No("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},oF=class{getUrl(){return iF("gradle-plugin-repository-url")}getUsername(){return iF("gradle-plugin-repository-username")}getPassword(){return iF("gradle-plugin-repository-password")}};function pB(){return process.env[Pse]}function vse(t){z4(Pse,t)}function iF(t){let e=ar(t);if(e.length>0)return e}function Ose(t,e=!1){let r=ar(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function EB(t){if(ar(t)!=="")return Ose(t)}var aF=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function _se(t){if(t instanceof AggregateError){Fi("Multiple errors returned");for(let e of t.errors)cp(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Kt(e.stack)}else t instanceof aF?(Fi(String(t)),t.stack&&Kt(t.stack)):(Fi(String(t)),t instanceof Error&&t.stack&&Kt(t.stack))}async function JYe(){try{pB()==="gradle/wrapper-validation-action"&&nF("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),vse("gradle/actions/wrapper-validation");let t=await nz(Hse.resolve("."),ar("allow-snapshots")==="true",ar("allow-checksums").split(","));if(t.isValid()){Kt(t.toDisplayString());let e=+ar("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;Fi(r)}}else Fi(`At least one Gradle Wrapper Jar failed validation!
`)}var jPe=class extends Error{constructor(t,e,r){super(XPe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},ZPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],$Pe=["query","method","url"],Rz=/\/api\/v3\/?$/;function e3e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if($Pe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>ZPe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Rz.test(i)&&(n.url=i.replace(Rz,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new jPe(n,a,o.data)}return o.data.data})}function qD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>e3e(r,n,i),{defaults:qD.bind(null,r),endpoint:r.endpoint})}var GZe=qD(Dh,{headers:{"user-agent":`octokit-graphql.js/${KPe} ${la()}`},method:"POST",url:"/graphql"});function kz(t){return qD(t,{method:"POST",url:"/graphql"})}var VD="(?:[a-zA-Z0-9_-]+)",Fz="\\.",Mz=new RegExp(`^${VD}${Fz}${VD}${Fz}${VD}$`),t3e=Mz.test.bind(Mz);async function r3e(t){let e=t3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function s3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function n3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=s3e(t),e(n)}var Uz=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(r3e.bind(null,e),{hook:n3e.bind(null,e)})};var JD="7.0.6";var Lz=()=>{},i3e=console.warn.bind(console),o3e=console.error.bind(console);function a3e(t={}){return typeof t.debug!="function"&&(t.debug=Lz),typeof t.info!="function"&&(t.info=Lz),typeof t.warn!="function"&&(t.warn=i3e),typeof t.error!="function"&&(t.error=o3e),t}var Pz=`octokit-core.js/${JD} ${la()}`,UC=class{static VERSION=JD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new az.Collection,s={baseUrl:Dh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Pz}`:Pz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Dh.defaults(s),this.graphql=kz(this.request).defaults(s),this.log=a3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Uz(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var WD="17.0.0";var A3e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
If 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(r),this.code=e,this.name="NetworkError"}};TI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var DI=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More 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`),this.name="UsageError"}};DI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var _He=ae(rre(),1);var Xre=ae(Yre(),1),Ct=ae(Et(),1),ps=ae(Et(),1),KA=ae(Et(),1),XA=ae(Et(),1),jA=ae(Et(),1);var Lk=ae(Et(),1),Pk=ae(Et(),1),Wre=ae(Et(),1),zre=ae(Et(),1),Kre=ae(Et(),1);var Fk=ae(Et(),1),Mk=ae(Et(),1),qre=ae(Et(),1),Vre=ae(Et(),1),Jre=ae(Et(),1),Uk=class extends Jre.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Vre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,qre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Mk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Fk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Fk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Mk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},hB=new Uk;var vk=class extends Kre.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>hB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Wre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(hB.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Pk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Lk.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)hB.internalBinaryWrite(e.scope[i],r.tag(2,Lk.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Pk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mi=new vk;var Ok=class extends jA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>mi},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=mi.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&mi.internalBinaryWrite(e.metadata,r.tag(1,Ct.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,Ct.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,Ct.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ps.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},jre=new Ok,_k=class extends jA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,Ct.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;sYe.push(s),Fi(s)}function nse(t=!0){if(sse.length>0){No(`This job uses deprecated functionality from the '${fB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of sse)jt(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var ose="GRADLE_ACTION_ID";var ise=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ase("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return ar("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return ar("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return ar("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return ar("develocity-token-expiry")}getDevelocityInjectionEnabled(){return mB("develocity-injection-enabled")}getDevelocityUrl(){return ar("develocity-url")}getDevelocityAllowUntrustedServer(){return mB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return mB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return mB("develocity-enforce-url")}getDevelocityPluginVersion(){return ar("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return ar("develocity-ccud-plugin-version")}getPluginRepository(){return new zk}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(No("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},zk=class{getUrl(){return Wk("gradle-plugin-repository-url")}getUsername(){return Wk("gradle-plugin-repository-username")}getPassword(){return Wk("gradle-plugin-repository-password")}};function fB(){return process.env[ose]}function ase(t){L4(ose,t)}function Wk(t){let e=ar(t);if(e.length>0)return e}function Ase(t,e=!1){let r=ar(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function mB(t){if(ar(t)!=="")return Ase(t)}var Kk=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function cse(t){if(t instanceof AggregateError){Fi("Multiple errors returned");for(let e of t.errors)up(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&jt(e.stack)}else t instanceof Kk?(Fi(String(t)),t.stack&&jt(t.stack)):(Fi(String(t)),t instanceof Error&&t.stack&&jt(t.stack))}async function iYe(){try{fB()==="gradle/wrapper-validation-action"&&Jk("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),ase("gradle/actions/wrapper-validation");let t=await JW(use.resolve("."),ar("allow-snapshots")==="true",ar("allow-checksums").split(","));if(t.isValid()){jt(t.toDisplayString());let e=+ar("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;Fi(r)}}else Fi(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${t.toDisplayString()}`),t.invalid.length>0&&K4("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);Use(!1)}catch(t){_se(t)}}JYe();export{JYe as run};
${t.toDisplayString()}`),t.invalid.length>0&&P4("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);nse(!1)}catch(t){cse(t)}}iYe();export{iYe as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -224,5 +224,19 @@ undici/lib/web/fetch/body.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+10 -10
View File
@@ -22,7 +22,7 @@ If you're confused by the behaviour you're seeing or have specific questions, pl
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](./DISTRIBUTION.md).
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## General usage
@@ -52,7 +52,7 @@ jobs:
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
### Gradle execution
@@ -88,7 +88,7 @@ Three input parameters are required, one to enable publishing and two more to ac
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
@@ -103,7 +103,7 @@ In some cases, the default action configuration will not be sufficient, and addi
```yaml
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Use a particular Gradle version instead of the configured wrapper.
gradle-version: '8.6'
@@ -150,7 +150,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate dependency graph but only store workflow artifacts for 1 day
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
artifact-retention-days: 1 # Default is 30 days or as configured for repository
```
@@ -159,7 +159,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate and submit dependency graph but do not store as workflow artifact
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: 'generate-and-submit' # Default value is 'generate-submit-and-upload'
```
@@ -319,7 +319,7 @@ For example, if you want to exclude dependencies resolved by the `buildSrc` proj
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Exclude all dependencies that originate solely in the 'buildSrc' project
dependency-graph-exclude-projects: ':buildSrc'
@@ -370,7 +370,7 @@ jobs:
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
#### 2. Add a dedicated Dependency Review workflow
@@ -432,7 +432,7 @@ jobs:
java-version: 17
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: generate-and-upload
```
@@ -455,7 +455,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: download-and-submit # Download saved dependency-graph and submit
```
+4 -4
View File
@@ -20,7 +20,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
```
## The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`
@@ -40,7 +40,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
## Using the action to execute Gradle via the `arguments` parameter is deprecated
@@ -82,7 +82,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Assemble the project
run: ./gradlew assemble
@@ -99,7 +99,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle for a non-wrapper project
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.11'
+30 -22
View File
@@ -9,7 +9,7 @@ This GitHub Action can be used to configure Gradle for optimal execution on any
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](./DISTRIBUTION.md).
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## Why use the `setup-gradle` action?
@@ -55,7 +55,7 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Execute Gradle build
run: ./gradlew build
@@ -68,7 +68,7 @@ Downloaded Gradle versions are stored in the GitHub Actions cache, to avoid havi
```yaml
- name: Setup Gradle 8.10
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.10' # Quotes required to prevent YAML converting to number
- name: Build with Gradle 8.10
@@ -106,7 +106,7 @@ jobs:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
id: setup-gradle
with:
gradle-version: release-candidate
@@ -135,8 +135,11 @@ You choose which provider to use via the `cache-provider` input:
- **`basic`**: A fully open-source (MIT) caching implementation built on the standard GitHub Actions cache (`@actions/cache`). Uses the same caching strategy as `actions/setup-java` with `cache: gradle`. See [Basic Caching](#basic-caching) for details.
```yaml
# Use the open-source basic cache provider
cache-provider: basic
# Use the open-source basic cache provider
- uses: gradle/actions/setup-gradle@v6
id: setup-gradle
with:
cache-provider: basic
```
### Common cache configuration
@@ -538,13 +541,18 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
add-job-summary-as-pr-comment: 'on-failure' # Valid values are 'never' (default), 'always', and 'on-failure'
- run: ./gradlew build --scan
```
When a comment is added, any earlier Job Summary comments posted by the same job on that Pull Request are
automatically minimized, so only the most recent result remains expanded. This also applies when
`add-job-summary-as-pr-comment: 'on-failure'` is used: once a later run of the job succeeds, the previous
failure comment is collapsed.
Note that to add a Pull Request comment, the workflow must be configured with the `pull-requests: write` permission.
@@ -575,7 +583,7 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Run build with Gradle wrapper
run: ./gradlew build --scan
@@ -606,7 +614,7 @@ If you do not want wrapper-validation to occur automatically, you can disable it
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: false
```
@@ -618,7 +626,7 @@ These are not allowed by default.
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: true
allow-snapshot-wrappers: true
@@ -683,7 +691,7 @@ jobs:
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Run the usual CI build (dependency-graph will be generated and submitted post-job)
@@ -710,7 +718,7 @@ graph cannot be generated or submitted. You can enable this behavior with the `d
```yaml
# Ensure that the workflow Job will fail if the dependency graph cannot be submitted
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
dependency-graph-continue-on-failure: false
@@ -735,7 +743,7 @@ jobs:
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Run a build, resolving the 'dependency-graph' plugin from the plugin portal proxy
@@ -765,7 +773,7 @@ jobs:
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Build the app, generating a graph of dependencies required
@@ -809,7 +817,7 @@ To publish to https://scans.gradle.com, you must specify in your workflow that y
```yaml
- name: Setup Gradle to publish build scans
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service'
@@ -831,7 +839,7 @@ The short-lived access token will then be used wherever a Develocity access key
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }} # Long-lived access key, visiblility is restricted to this step.
@@ -849,7 +857,7 @@ To avoid this, use the `develocity-token-expiry` parameter to specify a differen
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
develocity-token-expiry: '8' # The number of hours that the access token should remain valid (max 24).
@@ -871,7 +879,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
# The build will automatically use a short-lived access token to authenticate with Develocity
- name: Run a Gradle build that is configured to publish to Develocity.
@@ -903,7 +911,7 @@ Here's a minimal example:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-injection-enabled: true
develocity-url: 'https://develocity.your-server.com'
@@ -913,14 +921,14 @@ Here's a minimal example:
run: ./gradlew build
```
This configuration will automatically apply `v4.4.0` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This configuration will automatically apply `v4.4.2` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This example assumes that the `develocity.your-server.com` server allows anonymous publishing of build scans.
In the likely scenario that your Develocity server requires authentication, you will also need to pass a valid [Develocity access key](https://docs.gradle.com/develocity/gradle-plugin/#via_environment_variable) taken from a secret:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
@@ -971,7 +979,7 @@ Here's an example using the env vars:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Run a Gradle build with Develocity injection enabled with environment variables
run: ./gradlew build
+2 -2
View File
@@ -50,7 +50,7 @@ We created an example [Homoglyph attack PR here](https://github.com/JLLeitschuh/
Simply add this action to your workflow **after** having checked out your source tree and **before** running any Gradle build:
```yaml
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
This action step should precede any step using `gradle/gradle-build-action` or `gradle/actions/setup-gradle`.
@@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: gradle/actions/wrapper-validation@v5
- uses: gradle/actions/wrapper-validation@v6
```
## Contributing to an external GitHub Repository
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: ./gradlew build
```
+6 -2
View File
@@ -69,6 +69,7 @@ inputs:
- disabled
- generate
- generate-and-submit
- generate-submit-and-upload
- generate-and-upload
- download-and-submit
@@ -106,7 +107,7 @@ inputs:
build-scan-terms-of-use-agree:
type: enum
allowed-values:
- 'yes'
- yes
develocity-access-key:
type: string
@@ -153,7 +154,10 @@ inputs:
# Deprecated action inputs
arguments:
type: string
type: list
separator: ' '
list-item:
type: string
# Experimental action inputs
gradle-home-cache-strict-match:
+985 -2222
View File
File diff suppressed because it is too large. Load diff
+16 -22
View File
@@ -35,44 +35,38 @@
"node": ">=24.0.0"
},
"dependencies": {
"@actions/artifact": "6.1.0",
"@actions/cache": "6.0.0",
"@actions/core": "3.0.0",
"@actions/artifact": "6.2.1",
"@actions/cache": "6.0.1",
"@actions/core": "3.0.1",
"@actions/exec": "3.0.0",
"@actions/github": "9.0.0",
"@actions/glob": "0.6.1",
"@actions/http-client": "4.0.0",
"@actions/github": "9.1.1",
"@actions/glob": "0.7.0",
"@actions/http-client": "4.0.1",
"@actions/tool-cache": "4.0.0",
"@octokit/webhooks-types": "7.6.1",
"cheerio": "1.2.0",
"semver": "7.7.4",
"semver": "7.8.3",
"string-argv": "0.3.2",
"unhomoglyph": "1.0.6",
"which": "6.0.1"
"which": "7.0.0"
},
"devDependencies": {
"@jest/globals": "30.3.0",
"@jest/globals": "30.4.1",
"@types/jest": "30.0.0",
"@types/node": "25.5.0",
"@types/node": "25.9.2",
"@types/semver": "7.7.1",
"@types/unzipper": "0.10.11",
"@types/which": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.58.0",
"@typescript-eslint/eslint-plugin": "8.61.0",
"dedent": "1.7.2",
"esbuild": "0.28.0",
"eslint": "10.1.0",
"globals": "17.4.0",
"jest": "30.3.0",
"eslint": "10.4.1",
"globals": "17.6.0",
"jest": "30.4.2",
"nock": "15.0.0",
"npm-run-all": "4.1.5",
"prettier": "3.8.1",
"ts-jest": "29.4.9",
"prettier": "3.8.4",
"ts-jest": "29.4.11",
"typescript": "5.9.3"
},
"overrides": {
"@azure/logger": "1.1.4",
"@octokit/request": "8.4.1",
"@octokit/request-error": "5.1.1",
"@octokit/plugin-paginate-rest": "9.2.2"
}
}
@@ -1,6 +1,6 @@
import * as setupGradle from '../../setup-gradle'
import {CacheConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {forceExit} from '../../force-exit'
@@ -14,7 +14,7 @@ process.on('uncaughtException', e => handlePostActionError(e))
*/
export async function run(): Promise<void> {
try {
await setupGradle.complete(new CacheConfig(), new SummaryConfig())
await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())
} catch (error) {
handlePostActionError(error)
}
+2 -2
View File
@@ -1,7 +1,7 @@
import * as setupGradle from '../../setup-gradle'
import * as dependencyGraph from '../../dependency-graph'
import {CacheConfig, DependencyGraphConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DependencyGraphConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {emitDeprecationWarnings, restoreDeprecationState} from '../../deprecation-collector'
import {forceExit} from '../../force-exit'
@@ -19,7 +19,7 @@ export async function run(): Promise<void> {
restoreDeprecationState()
emitDeprecationWarnings()
if (await setupGradle.complete(new CacheConfig(), new SummaryConfig())) {
if (await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())) {
// Only submit the dependency graphs once per job
await dependencyGraph.complete(new DependencyGraphConfig())
}
+75 -13
View File
@@ -4,7 +4,9 @@ import * as glob from '@actions/glob'
import * as path from 'path'
import {BuildResult} from './build-results'
import {CacheOptions, CacheService} from './cache-service'
import {CacheEntryReport, CacheOptions, CacheReport, CacheService} from './cache-service'
const ENTRY_NAME = 'Gradle User Home'
const PRIMARY_KEY_STATE = 'BASIC_CACHE_PRIMARY_KEY'
const RESTORED_KEY_STATE = 'BASIC_CACHE_RESTORED_KEY'
@@ -40,21 +42,39 @@ export class BasicCacheService implements CacheService {
}
}
async save(gradleUserHome: string, _buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<string> {
if (cacheOptions.readOnly) {
const restoredKey = core.getState(RESTORED_KEY_STATE)
if (restoredKey) {
return `Basic caching was read-only. Restored from cache key \`${restoredKey}\`.`
}
return 'Basic caching was read-only. No cache entry was found to restore.'
}
async save(gradleUserHome: string, _buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<CacheReport> {
const primaryKey = core.getState(PRIMARY_KEY_STATE)
const restoredKey = core.getState(RESTORED_KEY_STATE)
if (cacheOptions.readOnly) {
return {
status: 'read-only',
entries: [
entryReport({
primaryKey,
restoredKey,
restoredOutcome: restoredKey
? '(Entry restored: exact match found)'
: '(Entry not restored: no match found)',
savedOutcome: '(Entry not saved: cache is read-only)'
})
]
}
}
if (restoredKey === primaryKey) {
core.info(`Basic caching restored entry with key \`${primaryKey}\`. Save was skipped.`)
return `Basic caching restored entry with key \`${primaryKey}\`. Save was skipped.`
return {
status: 'enabled',
entries: [
entryReport({
primaryKey,
restoredKey,
restoredOutcome: '(Entry restored: exact match found)',
savedOutcome: '(Entry not saved: entry with key already exists)'
})
]
}
}
const cachePaths = getCachePaths(gradleUserHome)
@@ -62,14 +82,56 @@ export class BasicCacheService implements CacheService {
try {
await cache.saveCache(cachePaths, primaryKey)
core.info(`Basic caching saved entry with key: ${primaryKey}`)
return `Basic caching saved entry with key \`${primaryKey}\`.`
return {
status: 'enabled',
entries: [
entryReport({
primaryKey,
restoredKey,
savedKey: primaryKey,
restoredOutcome: restoredKey
? '(Entry restored: exact match found)'
: '(Entry not restored: no match found)',
savedOutcome: '(Entry saved)'
})
]
}
} catch (error) {
core.warning(`Basic caching failed to save entry with key \`${primaryKey}\`: ${error}`)
return `Basic caching save failed: ${error}`
return {
status: 'enabled',
entries: [
entryReport({
primaryKey,
restoredKey,
restoredOutcome: restoredKey
? '(Entry restored: exact match found)'
: '(Entry not restored: no match found)',
savedOutcome: `(Entry not saved: ${error})`
})
]
}
}
}
}
function entryReport(opts: {
primaryKey: string
restoredKey?: string
savedKey?: string
restoredOutcome: string
savedOutcome: string
}): CacheEntryReport {
return {
entryName: ENTRY_NAME,
requestedKey: opts.primaryKey || undefined,
restoredKey: opts.restoredKey || undefined,
restoredOutcome: opts.restoredOutcome,
savedKey: opts.savedKey || undefined,
savedOutcome: opts.savedOutcome
}
}
function getCachePaths(gradleUserHome: string): string[] {
return [path.join(gradleUserHome, 'caches'), path.join(gradleUserHome, 'wrapper')]
}
+21 -48
View File
@@ -5,57 +5,24 @@ import {pathToFileURL} from 'url'
import {CacheConfig, CacheProvider} from './configuration'
import {BasicCacheService} from './cache-service-basic'
import {BuildResult} from './build-results'
import {CacheOptions, CacheService} from './cache-service'
const NOOP_CACHING_REPORT = `
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`
import {CacheOptions, CacheReport, CacheService} from './cache-service'
import {ProviderNote} from './caching-report'
const ENHANCED_CACHE_MESSAGE = `Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.`
const ENHANCED_CACHE_SUMMARY = `
> [!NOTE]
> ### ⚡️ Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`
const BASIC_CACHE_MESSAGE = `Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.`
const BASIC_CACHE_SUMMARY = `
> [!NOTE]
> ### 🛡️ Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`
const BASIC_CACHE_MESSAGE = `Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.`
class NoOpCacheService implements CacheService {
async restore(_gradleUserHome: string, _cacheOptions: CacheOptions): Promise<void> {
return
}
async save(_gradleUserHome: string, _buildResults: BuildResult[], _cacheOptions: CacheOptions): Promise<string> {
return NOOP_CACHING_REPORT
}
}
class LicenseWarningCacheService implements CacheService {
private delegate: CacheService
private summary: string
constructor(delegate: CacheService, summary: string) {
this.delegate = delegate
this.summary = summary
}
async restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void> {
await this.delegate.restore(gradleUserHome, cacheOptions)
}
async save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<string> {
const cachingReport = await this.delegate.save(gradleUserHome, buildResults, cacheOptions)
return `${cachingReport}\n${this.summary}`
async save(
_gradleUserHome: string,
_buildResults: BuildResult[],
_cacheOptions: CacheOptions
): Promise<CacheReport> {
return {status: 'disabled', entries: []}
}
}
@@ -67,16 +34,22 @@ export async function getCacheService(cacheConfig: CacheConfig): Promise<CacheSe
if (cacheConfig.getCacheProvider() === CacheProvider.Basic) {
logCacheMessage(BASIC_CACHE_MESSAGE)
return new LicenseWarningCacheService(new BasicCacheService(), BASIC_CACHE_SUMMARY)
return new BasicCacheService()
}
logCacheMessage(ENHANCED_CACHE_MESSAGE)
const cacheService = await loadVendoredCacheService()
if (cacheConfig.isCacheLicenseAccepted()) {
return cacheService
}
return loadVendoredCacheService()
}
return new LicenseWarningCacheService(cacheService, ENHANCED_CACHE_SUMMARY)
/**
* Identifies the caching provider for the Job Summary. Returns `undefined` when
* caching is disabled, since no provider is engaged in that case.
*/
export function getProviderNote(cacheConfig: CacheConfig): ProviderNote | undefined {
if (cacheConfig.isCacheDisabled()) {
return undefined
}
return cacheConfig.getCacheProvider() === CacheProvider.Basic ? {kind: 'basic'} : {kind: 'enhanced'}
}
export async function loadVendoredCacheService(): Promise<CacheService> {
+49 -1
View File
@@ -8,11 +8,59 @@ export interface CacheOptions {
strictMatch: boolean
cleanup: string
encryptionKey?: string
develocityAccessToken?: string
develocityServerUrl?: string
includes: string[]
excludes: string[]
}
export type CacheStatus =
| 'enabled'
| 'read-only'
| 'write-only'
| 'disabled'
| 'disabled-existing-home'
| 'not-available'
export type CacheCleanupStatus =
| 'enabled'
| 'disabled-param'
| 'disabled-failure'
| 'disabled-config-cache-hit'
| 'disabled-readonly'
export type ProjectCacheStatus =
| 'not-enabled' // the hidden opt-in env var was not set (rendered as nothing)
| 'trial-expired' // past the hard trial expiry
| 'trial-not-licensed' // Develocity trial token missing or invalid
| 'no-encryption-key' // Cannot store due to missing encryption key
| 'enabled' // Trial in effect: will attempt to save project state
export interface CacheEntryReport {
entryName: string
requestedKey?: string
restoredKey?: string
restoredSize?: number
restoredTime?: number
restoredOutcome: string
savedKey?: string
savedSize?: number
savedTime?: number
savedOutcome: string
}
/**
* Structured result of a cache save operation. Rendering this into a human-readable
* Job Summary is handled centrally by `caching-report.ts`.
*/
export interface CacheReport {
status: CacheStatus
cleanup?: CacheCleanupStatus
projectCache?: ProjectCacheStatus
entries: CacheEntryReport[]
}
export interface CacheService {
restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>
save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<string>
save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<CacheReport>
}
+182
View File
@@ -0,0 +1,182 @@
import {CacheCleanupStatus, CacheEntryReport, CacheReport, CacheStatus, ProjectCacheStatus} from './cache-service'
const DOCS = 'https://github.com/gradle/actions/blob/main/docs/setup-gradle.md'
const DISTRIBUTION = 'https://github.com/gradle/actions/blob/main/DISTRIBUTION.md'
/**
* Identifies the caching provider in use, so the report can attribute the cache
* and surface the relevant terms-of-use / upgrade information.
*/
export interface ProviderNote {
kind: 'enhanced' | 'basic'
}
const STATUS_COPY: Record<CacheStatus, string> = {
enabled: `[Cache was enabled](${DOCS}#caching-build-state-between-jobs) — Gradle User Home was restored from the cache and saved for use by subsequent jobs.`,
'read-only': `[Cache was read-only](${DOCS}#using-the-cache-read-only) — by default, the action only writes to the cache for jobs running on the default branch.`,
'write-only': `[Cache was write-only](${DOCS}#using-the-cache-write-only) — Gradle User Home was not restored from the cache.`,
disabled: `[Caching was disabled](${DOCS}#disabling-caching) — Gradle User Home was not restored from or saved to the cache.`,
'disabled-existing-home': `⚠️ [Caching was skipped](${DOCS}#overwriting-an-existing-gradle-user-home) — a pre-existing Gradle User Home was found, so the cache was not restored or saved.`,
'not-available': `Caching is not available — the GitHub Actions cache service could not be reached, so Gradle User Home was not restored or saved.`
}
const CLEANUP_COPY: Record<CacheCleanupStatus, string> = {
enabled: `[Cache cleanup](${DOCS}#configuring-cache-cleanup) purged stale files from Gradle User Home before saving.`,
'disabled-param': `[Cache cleanup](${DOCS}#configuring-cache-cleanup) was disabled via action parameter.`,
'disabled-failure': `[Cache cleanup](${DOCS}#configuring-cache-cleanup) was skipped due to a build failure. Use \`cache-cleanup: always\` to override.`,
'disabled-config-cache-hit': `[Cache cleanup](${DOCS}#configuring-cache-cleanup) was skipped due to configuration-cache reuse.`,
'disabled-readonly': `[Cache cleanup](${DOCS}#configuring-cache-cleanup) is always disabled when the cache is read-only.`
}
const PROJECT_CACHE_COPY: Record<ProjectCacheStatus, string> = {
'not-enabled': ``,
'trial-expired': `Project state (build-logic and configuration cache) was not cached - the Develocity caching trial has expired.`,
'trial-not-licensed': `Project state (build-logic and configuration cache) was not cached - a develocity-access-key and develocity-server-url is required.`,
'no-encryption-key': `Project state (build-logic and configuration cache) was not cached - a [cache-encryption-key](${DOCS}#cache-encryption-key) is required.`,
enabled: `Caching of project state (build-logic and configuration cache) was enabled.`
}
/**
* Renders a cache report into the unified Job Summary markdown, with a consistent
* skeleton across every variant: a section heading, a status line, an integrated
* provider note, and (when there are entries) an expandable details section.
*/
export function renderCachingReport(report: CacheReport, providerNote?: ProviderNote): string {
if (!isActive(report.status)) {
// Disabled / skipped / unavailable: a compact heading + status line, no expandable section.
return `${renderHeading(report.status, providerNote)}\n\n${STATUS_COPY[report.status]}\n`
}
const sections = [
renderHeading(report.status, providerNote),
renderProviderNote(providerNote),
// Status and cleanup messages live inside the details expando; if there are no entries
// to expand, fall back to showing the status line directly.
report.entries.length > 0 ? renderDetails(report) : STATUS_COPY[report.status]
]
return `${sections.filter(section => section !== undefined && section !== '').join('\n\n')}\n`
}
function isActive(status: CacheStatus): boolean {
return status === 'enabled' || status === 'read-only' || status === 'write-only'
}
function renderHeading(status: CacheStatus, providerNote?: ProviderNote): string {
if (!isActive(status)) {
const label =
status === 'disabled-existing-home' ? 'Skipped' : status === 'not-available' ? 'Unavailable' : 'Disabled'
return `<h4>Gradle State Caching - ${label}</h4>`
}
const icon = providerNote?.kind === 'basic' ? '🛡️' : '⚡'
const provider = providerNote?.kind === 'basic' ? 'Basic' : 'Enhanced'
const suffix = status === 'read-only' ? ' (read-only)' : status === 'write-only' ? ' (write-only)' : ''
return `<h4>Gradle State Caching - ${icon} ${provider}${suffix}</h4>`
}
function renderCleanupLine(cleanup?: CacheCleanupStatus): string | undefined {
return cleanup ? CLEANUP_COPY[cleanup] : undefined
}
function renderProjectCacheLine(projectCache?: ProjectCacheStatus): string | undefined {
// PROJECT_CACHE_COPY['not-enabled'] is '', which the .filter(Boolean) at the call site drops.
return projectCache ? PROJECT_CACHE_COPY[projectCache] : undefined
}
function renderProviderNote(providerNote?: ProviderNote): string | undefined {
if (!providerNote) {
return undefined
}
if (providerNote.kind === 'enhanced') {
return `**[Enhanced Caching](${DOCS}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${DISTRIBUTION}) for terms of use and opt-out instructions.`
}
return `**[Basic Caching](${DOCS}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${DOCS}#enhanced-caching)** provider.`
}
function renderDetails(report: CacheReport): string {
const entries = report.entries
const restored = entries.filter(entry => entry.restoredKey).length
const saved = entries.filter(entry => entry.savedKey).length
const summary = hasMetrics(entries)
? `Entries: ${restored} restored (${getSize(entries, e => e.restoredSize)}Mb), ${saved} saved (${getSize(entries, e => e.savedSize)}Mb) - Expand for more details`
: `Entries: ${restored} restored, ${saved} saved - Expand for more details`
const cleanup = report.status === 'enabled' ? renderCleanupLine(report.cleanup) : undefined
const projectCache = renderProjectCacheLine(report.projectCache)
const table = renderEntryTable(report.entries)
const pre = `<pre>\n${renderEntryDetails(report.entries)}</pre>`
const body = [STATUS_COPY[report.status], cleanup, projectCache, table, pre].filter(Boolean).join('\n\n')
return `<details>
<summary>${summary}</summary>
${body}
</details>`
}
function hasMetrics(entries: CacheEntryReport[]): boolean {
return entries.some(entry => entry.restoredSize || entry.restoredTime || entry.savedSize || entry.savedTime)
}
function renderEntryTable(entries: CacheEntryReport[]): string {
if (!hasMetrics(entries)) {
return ''
}
return `<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${getCount(entries, e => e.restoredSize)}</td>
<td>${getSize(entries, e => e.restoredSize)}</td>
<td>${getTime(entries, e => e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${getCount(entries, e => e.savedSize)}</td>
<td>${getSize(entries, e => e.savedSize)}</td>
<td>${getTime(entries, e => e.savedTime)}</td>
</tr>
</table>`
}
function renderEntryDetails(entries: CacheEntryReport[]): string {
return entries
.map(
entry => `Entry: ${entry.entryName}
Requested Key : ${entry.requestedKey ?? ''}
Restored Key : ${entry.restoredKey ?? ''}
Size: ${formatSize(entry.restoredSize)}
Time: ${formatTime(entry.restoredTime)}
${entry.restoredOutcome}
Saved Key : ${entry.savedKey ?? ''}
Size: ${formatSize(entry.savedSize)}
Time: ${formatTime(entry.savedTime)}
${entry.savedOutcome}
`
)
.join('---\n')
}
function getCount(entries: CacheEntryReport[], predicate: (value: CacheEntryReport) => number | undefined): number {
return entries.filter(e => predicate(e)).length
}
function getSize(entries: CacheEntryReport[], predicate: (value: CacheEntryReport) => number | undefined): number {
const bytes = entries.map(e => predicate(e) ?? 0).reduce((p, v) => p + v, 0)
return Math.round(bytes / (1024 * 1024))
}
function getTime(entries: CacheEntryReport[], predicate: (value: CacheEntryReport) => number | undefined): number {
return entries.map(e => predicate(e) ?? 0).reduce((p, v) => p + v, 0)
}
function formatSize(bytes: number | undefined): string {
if (bytes === undefined || bytes === 0) {
return ''
}
return `${Math.round(bytes / (1024 * 1024))} MB (${bytes} B)`
}
function formatTime(ms: number | undefined): string {
if (ms === undefined || ms === 0) {
return ''
}
return `${ms} ms`
}
+4 -5
View File
@@ -167,11 +167,6 @@ export class CacheConfig {
return core.getMultilineInput('gradle-home-cache-excludes')
}
isCacheLicenseAccepted(): boolean {
const dvConfig = new DevelocityConfig()
return dvConfig.getDevelocityAccessKey() !== '' || dvConfig.hasTermsOfUseAgreement()
}
getCacheProvider(): CacheProvider {
const val = core.getInput('cache-provider')
switch (val.toLowerCase().trim()) {
@@ -206,6 +201,10 @@ export class SummaryConfig {
return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure)
}
canAddPRComment(): boolean {
return this.getPRCommentOption() !== JobSummaryOption.Never
}
shouldAddPRComment(hasFailure: boolean): boolean {
return this.shouldAddJobSummary(this.getPRCommentOption(), hasFailure)
}
+2 -9
View File
@@ -1,8 +1,7 @@
import * as core from '@actions/core'
import {DevelocityConfig} from '../configuration'
import {setupToken} from './short-lived-token'
export async function setup(config: DevelocityConfig): Promise<void> {
export function setup(config: DevelocityConfig): void {
maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle')
maybeExportVariable('DEVELOCITY_INJECTION_CUSTOM_VALUE', 'gradle-actions')
@@ -34,17 +33,11 @@ export async function setup(config: DevelocityConfig): Promise<void> {
// except if they are defined in the configuration
if (config.getBuildScanPublishEnabled()) {
maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.0')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.2')
maybeExportVariable('DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION', '2.1')
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_URL', config.getTermsOfUseUrl())
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_AGREE', config.getTermsOfUseAgree())
}
return setupToken(
config.getDevelocityAccessKey(),
config.getDevelocityAllowUntrustedServer(),
config.getDevelocityTokenExpiry()
)
}
function maybeExportVariable(variableName: string, value: unknown): void {
+51 -21
View File
@@ -3,28 +3,41 @@ import * as httpm from '@actions/http-client'
import {DevelocityConfig} from '../configuration'
import {recordDeprecation} from '../deprecation-collector'
export async function setupToken(
develocityAccessKey: string,
develocityAllowUntrustedServer: boolean | undefined,
develocityTokenExpiry: string
): Promise<void> {
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...')
const tokens = await getToken(develocityAccessKey, develocityAllowUntrustedServer, develocityTokenExpiry)
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the access key env vars`)
const token = tokens.raw()
core.setSecret(token)
exportAccessKeyEnvVars(token)
} else {
handleMissingAccessToken()
}
} catch (e) {
handleMissingAccessToken()
core.warning(`Failed to fetch short-lived token, reason: ${e}`)
}
/**
* Exchange the configured Develocity access key(s) for short-lived tokens, export them as the access
* key env vars, and return the short-lived token matching the configured Develocity server URL (for
* use as the `develocityAccessToken` cache option). Returns `undefined` when there is no access key,
* token fetching fails, or no token matches the configured server.
*/
export async function setupToken(config: DevelocityConfig): Promise<string | undefined> {
const develocityAccessKey = config.getDevelocityAccessKey()
if (!develocityAccessKey) {
return undefined
}
try {
core.debug('Fetching short-lived token...')
const tokens = await getToken(
develocityAccessKey,
config.getDevelocityAllowUntrustedServer(),
config.getDevelocityTokenExpiry()
)
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the access key env vars`)
const token = tokens.raw()
core.setSecret(token)
exportAccessKeyEnvVars(token)
for (const k of tokens.keys) {
core.setSecret(k.key)
}
const serverUrl = config.getDevelocityUrl()
return serverUrl ? resolveTokenForServer(tokens, serverUrl) : undefined
}
handleMissingAccessToken()
} catch (e) {
handleMissingAccessToken()
core.warning(`Failed to fetch short-lived token, reason: ${e}`)
}
return undefined
}
function exportAccessKeyEnvVars(value: string): void {
@@ -174,3 +187,20 @@ export class DevelocityAccessCredentials {
return this.accessKeyRegexp.test(allKeys)
}
}
/**
* Resolve the token whose hostname matches a given Develocity server URL. Returns `undefined`
* (fail-closed) when the server URL is empty or no token matches the server's host.
*/
export function resolveTokenForServer(tokens: DevelocityAccessCredentials, serverUrl: string): string | undefined {
if (!serverUrl) {
return undefined
}
let host: string
try {
host = new URL(serverUrl).hostname
} catch {
host = serverUrl // tolerate a bare hostname (no scheme)
}
return tokens.keys.find(k => k.hostname === host)?.key
}
+95 -11
View File
@@ -2,14 +2,19 @@ import * as core from '@actions/core'
import * as github from '@actions/github'
import {BuildResult} from './build-results'
import {SummaryConfig, getActionId, getGithubToken} from './configuration'
import {CacheReport} from './cache-service'
import {ProviderNote, renderCachingReport} from './caching-report'
import {DependencyGraphConfig, getActionId, getGithubToken, getJobMatrix, SummaryConfig} from './configuration'
import {Deprecation, getDeprecations, getErrors} from './deprecation-collector'
export async function generateJobSummary(
buildResults: BuildResult[],
cachingReport: string,
cacheReport: CacheReport,
providerNote: ProviderNote | undefined,
config: SummaryConfig
): Promise<void> {
core.startGroup('Generating Job Summary')
const errors = renderErrors()
if (errors) {
core.summary.addRaw(errors)
@@ -18,19 +23,22 @@ export async function generateJobSummary(
}
const summaryTable = renderSummaryTable(buildResults)
const cachingReport = renderCachingReport(cacheReport, providerNote)
const hasFailure = anyFailed(buildResults)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.info('Generating Job Summary')
core.info(summaryTable)
core.info('============================')
core.info(cachingReport)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.summary.addRaw(summaryTable)
core.summary.addRaw(cachingReport)
await core.summary.write()
} else {
core.info('============================')
core.info(summaryTable)
core.info('============================')
core.info(cachingReport)
core.info('============================')
}
core.endGroup()
if (config.canAddPRComment()) {
await minimizeObsoletePRComments()
}
if (config.shouldAddPRComment(hasFailure)) {
@@ -48,7 +56,8 @@ async function addPRComment(jobSummary: string): Promise<void> {
const pull_request_number = context.payload.pull_request.number
core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`)
const prComment = `<h3>Job Summary for Gradle</h3>
const prComment = `${jobMarker(context)}
<h3>Job Summary for Gradle</h3>
<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}" target="_blank">
<h5>${context.workflow} :: <em>${context.job}</em></h5>
</a>
@@ -57,6 +66,7 @@ ${jobSummary}`
const github_token = getGithubToken()
const octokit = github.getOctokit(github_token)
try {
await octokit.rest.issues.createComment({
...context.repo,
@@ -201,3 +211,77 @@ function truncateString(str: string, maxLength: number): string {
return str
}
}
async function minimizeObsoletePRComments(): Promise<void> {
const context = github.context
if (context.payload.pull_request == null) {
core.info('No pull_request trigger detected: not minimizing obsolete PR comments')
return
}
const prNumber = context.payload.pull_request.number
core.info(`Minimizing obsolete Job Summary comments on PR #${prNumber}.`)
const marker = jobMarker(context)
const octokit = github.getOctokit(getGithubToken())
const {owner, repo} = context.repo
const query = `
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
comments(last: 100) {
nodes { id body isMinimized url }
}
}
}
}
`
let comments: PullRequestComment[]
try {
const {repository} = await octokit.graphql<CommentsQueryResult>(query, {owner, repo, prNumber})
comments = repository.pullRequest?.comments?.nodes?.filter((c): c is PullRequestComment => c !== null) ?? []
} catch (error) {
return core.warning(`Failed to fetch comments: ${error}`)
}
const mutation = `
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`
const commentsToMinimize = comments
.filter(c => !c.isMinimized && c.body.includes(marker))
.map(async c =>
octokit
.graphql(mutation, {id: c.id})
.then(() => core.info(`Successfully minimized (id:${c.id}, url:${c.url})`))
.catch(e => core.warning(`Failed to minimize (id:${c.id}, url:${c.url}, error:${e?.message || e})`))
)
await Promise.allSettled(commentsToMinimize)
}
export function jobMarker(context: typeof github.context): string {
const jobCorrelator = DependencyGraphConfig.constructJobCorrelator(context.workflow, context.job, getJobMatrix())
return `<!-- gradle-job-summary: ${jobCorrelator} -->`
}
interface PullRequestComment {
id: string
body: string
isMinimized: boolean
url: string
}
interface CommentsQueryResult {
repository: {
pullRequest?: {
comments?: {
nodes?: (PullRequestComment | null)[] | null
} | null
} | null
}
}
+32 -7
View File
@@ -5,9 +5,10 @@ import * as path from 'path'
import * as os from 'os'
import * as jobSummary from './job-summary'
import * as buildScan from './develocity/build-scan'
import {setupToken} from './develocity/short-lived-token'
import {loadBuildResults, markBuildResultsProcessed} from './build-results'
import {getCacheService} from './cache-service-loader'
import {getCacheService, getProviderNote} from './cache-service-loader'
import {CacheOptions} from './cache-service'
import {
DevelocityConfig,
@@ -21,6 +22,8 @@ import {initializeGradleUserHome} from './gradle-user-home'
const GRADLE_SETUP_VAR = 'GRADLE_BUILD_ACTION_SETUP_COMPLETED'
const GRADLE_USER_HOME = 'GRADLE_USER_HOME'
// Short-lived Develocity token for the configured server, resolved during setup and reused on save.
const DEVELOCITY_CACHE_TOKEN = 'DEVELOCITY_CACHE_TOKEN'
export async function setup(
cacheConfig: CacheConfig,
@@ -44,17 +47,27 @@ export async function setup(
initializeGradleUserHome(userHome, gradleUserHome, cacheConfig.getCacheEncryptionKey())
// Exchange the long-lived access key(s) for short-lived tokens, resolving the token for the
// configured Develocity server and retaining it for the post-action (save) step.
const develocityServerUrl = develocityConfig.getDevelocityUrl() || undefined
const cacheToken = await setupToken(develocityConfig)
core.saveState(DEVELOCITY_CACHE_TOKEN, cacheToken ?? '')
const cacheService = await getCacheService(cacheConfig)
await cacheService.restore(gradleUserHome, cacheOptionsFrom(cacheConfig))
await cacheService.restore(gradleUserHome, cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken))
await wrapperValidator.validateWrappers(wrapperValidationConfig, getWorkspaceDirectory(), gradleUserHome)
await buildScan.setup(develocityConfig)
buildScan.setup(develocityConfig)
return true
}
export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryConfig): Promise<boolean> {
export async function complete(
cacheConfig: CacheConfig,
develocityConfig: DevelocityConfig,
summaryConfig: SummaryConfig
): Promise<boolean> {
if (!core.getState(GRADLE_SETUP_VAR)) {
core.info('Gradle setup post-action only performed for first gradle/actions step in workflow.')
return false
@@ -64,9 +77,15 @@ export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryC
const buildResults = loadBuildResults()
const gradleUserHome = core.getState(GRADLE_USER_HOME)
const develocityServerUrl = develocityConfig.getDevelocityUrl() || undefined
const cacheToken = core.getState(DEVELOCITY_CACHE_TOKEN) || undefined
const cacheService = await getCacheService(cacheConfig)
const cachingReport = await cacheService.save(gradleUserHome, buildResults, cacheOptionsFrom(cacheConfig))
await jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig)
const cacheReport = await cacheService.save(
gradleUserHome,
buildResults,
cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken)
)
await jobSummary.generateJobSummary(buildResults, cacheReport, getProviderNote(cacheConfig), summaryConfig)
markBuildResultsProcessed()
@@ -75,7 +94,11 @@ export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryC
return true
}
function cacheOptionsFrom(config: CacheConfig): CacheOptions {
function cacheOptionsFrom(
config: CacheConfig,
develocityServerUrl: string | undefined,
develocityAccessToken: string | undefined
): CacheOptions {
return {
disabled: config.isCacheDisabled(),
readOnly: config.isCacheReadOnly(),
@@ -84,6 +107,8 @@ function cacheOptionsFrom(config: CacheConfig): CacheOptions {
strictMatch: config.isCacheStrictMatch(),
cleanup: config.getCacheCleanupOption(),
encryptionKey: config.getCacheEncryptionKey() || undefined,
develocityAccessToken,
develocityServerUrl,
includes: config.getCacheIncludes(),
excludes: config.getCacheExcludes()
}
@@ -1,4 +1,48 @@
[
{
"version": "9.6.0-rc-1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-milestone-3",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.5.1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-milestone-2",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "8.14.5",
"checksum": "7d3a4ac4de1c32b59bc6a4eb8ecb8e612ccd0cf1ae1e99f66902da64df296172"
},
{
"version": "9.5.0",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.5.0-rc-4",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-milestone-1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.5.0-rc-3",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.5.0-rc-2",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.5.0-rc-1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.4.1",
"checksum": "55243ef57851f12b070ad14f7f5bb8302daceeebc5bce5ece5fa6edb23e1145c"
Binary file not shown.
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
+1 -1
View File
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.0"
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -16,7 +16,7 @@ import java.nio.file.Files
import java.util.zip.GZIPOutputStream
class BaseInitScriptTest extends Specification {
static final String DEVELOCITY_PLUGIN_VERSION = '4.4.0'
static final String DEVELOCITY_PLUGIN_VERSION = '4.4.2'
static final String CCUD_PLUGIN_VERSION = '2.1'
static final TestGradleVersion GRADLE_4_X = new TestGradleVersion(GradleVersion.version('4.10.3'), 7, 10)
@@ -248,7 +248,7 @@ task expectFailure {
when:
settingsFile.text = """
plugins {
id 'com.gradle.develocity' version '4.4.0' apply(false)
id 'com.gradle.develocity' version '4.4.2' apply(false)
}
gradle.settingsEvaluated {
apply plugin: 'com.gradle.develocity'
+11 -7
View File
@@ -138,8 +138,8 @@ describe('BasicCacheService', () => {
})
expect(mockSaveCache).not.toHaveBeenCalled()
expect(report).toContain('read-only')
expect(report).toContain(PRIMARY_KEY)
expect(report.status).toBe('read-only')
expect(report.entries[0].restoredKey).toBe(PRIMARY_KEY)
})
it('reports readOnly with no restore when cache was missed', async () => {
@@ -156,8 +156,9 @@ describe('BasicCacheService', () => {
})
expect(mockSaveCache).not.toHaveBeenCalled()
expect(report).toContain('read-only')
expect(report).toContain('No cache entry')
expect(report.status).toBe('read-only')
expect(report.entries[0].restoredKey).toBeUndefined()
expect(report.entries[0].restoredOutcome).toContain('not restored')
})
it('skips save when restored key equals primary key', async () => {
@@ -179,7 +180,8 @@ describe('BasicCacheService', () => {
})
expect(mockSaveCache).not.toHaveBeenCalled()
expect(report).toContain('Save was skipped')
expect(report.status).toBe('enabled')
expect(report.entries[0].savedOutcome).toContain('already exists')
})
it('saves cache and returns report on success', async () => {
@@ -204,7 +206,9 @@ describe('BasicCacheService', () => {
['/home/.gradle/caches', '/home/.gradle/wrapper'],
PRIMARY_KEY
)
expect(report).toContain('saved entry with key')
expect(report.status).toBe('enabled')
expect(report.entries[0].savedKey).toBe(PRIMARY_KEY)
expect(report.entries[0].savedOutcome).toBe('(Entry saved)')
})
it('warns on save failure instead of throwing', async () => {
@@ -228,7 +232,7 @@ describe('BasicCacheService', () => {
expect(mockWarning).toHaveBeenCalledWith(
expect.stringContaining('failed to save')
)
expect(report).toContain('failed')
expect(report.entries[0].savedOutcome).toContain('not saved')
})
})
})
+39 -10
View File
@@ -12,8 +12,7 @@ describe('getCacheService selection logic', () => {
const {getCacheService} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => true,
getCacheProvider: () => CacheProvider.Enhanced,
isCacheLicenseAccepted: () => true
getCacheProvider: () => CacheProvider.Enhanced
} as unknown as CacheConfig
const service = await getCacheService(mockConfig)
@@ -28,23 +27,53 @@ describe('getCacheService selection logic', () => {
excludes: []
})
// NoOpCacheService returns a specific report mentioning cache was disabled
expect(report).toContain('Cache was disabled')
// NoOpCacheService reports a disabled cache with no entries
expect(report.status).toBe('disabled')
expect(report.entries).toHaveLength(0)
})
it('wraps BasicCacheService with LicenseWarningCacheService when cache-provider is basic', async () => {
it('returns a BasicCacheService when cache-provider is basic', async () => {
const {getCacheService} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => false,
getCacheProvider: () => CacheProvider.Basic,
isCacheLicenseAccepted: () => false
getCacheProvider: () => CacheProvider.Basic
} as unknown as CacheConfig
const service = await getCacheService(mockConfig)
// The service should not be a bare BasicCacheService — it should be wrapped
// with LicenseWarningCacheService that appends the basic caching summary
const {BasicCacheService} = await import('../../src/cache-service-basic')
expect(service).not.toBeInstanceOf(BasicCacheService)
expect(service).toBeInstanceOf(BasicCacheService)
})
describe('getProviderNote', () => {
it('returns undefined when cache is disabled', async () => {
const {getProviderNote} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => true,
getCacheProvider: () => CacheProvider.Enhanced
} as unknown as CacheConfig
expect(getProviderNote(mockConfig)).toBeUndefined()
})
it('returns basic note for the basic provider', async () => {
const {getProviderNote} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => false,
getCacheProvider: () => CacheProvider.Basic
} as unknown as CacheConfig
expect(getProviderNote(mockConfig)).toEqual({kind: 'basic'})
})
it('returns enhanced note for the enhanced provider', async () => {
const {getProviderNote} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => false,
getCacheProvider: () => CacheProvider.Enhanced
} as unknown as CacheConfig
expect(getProviderNote(mockConfig)).toEqual({kind: 'enhanced'})
})
})
})
+145
View File
@@ -0,0 +1,145 @@
import {describe, expect, it} from '@jest/globals'
import {CacheReport} from '../../src/cache-service'
import {renderCachingReport} from '../../src/caching-report'
const ENHANCED = {kind: 'enhanced'} as const
const BASIC = {kind: 'basic'} as const
function entry(overrides: Partial<CacheReport['entries'][number]> = {}): CacheReport['entries'][number] {
return {
entryName: 'Gradle User Home',
requestedKey: 'gradle-home-v1|key',
restoredKey: 'gradle-home-v1|key',
restoredSize: 535792,
restoredTime: 253,
restoredOutcome: '(Entry restored: exact match found)',
savedKey: 'gradle-home-v1|key',
savedSize: 528509,
savedTime: 257,
savedOutcome: '(Entry saved)',
...overrides
}
}
describe('renderCachingReport', () => {
it('renders an enhanced read-only report with heading, note and details', () => {
const report: CacheReport = {status: 'read-only', cleanup: 'disabled-readonly', entries: [entry()]}
const md = renderCachingReport(report, ENHANCED)
expect(md).toContain('<h4>Gradle State Caching - ⚡ Enhanced (read-only)</h4>')
expect(md).toContain('[Enhanced Caching]')
expect(md).toContain('`gradle-actions-caching`')
expect(md).toContain('DISTRIBUTION.md')
expect(md).toContain('<details>')
expect(md).toContain('<summary>Entries: 1 restored (1Mb), 1 saved (1Mb) - Expand for more details</summary>')
// status message moves inside the details expando
expect(md).toContain('Cache was read-only')
// read-only does not render the cleanup line
expect(md).not.toContain('Cache cleanup')
})
it('renders an enhanced enabled report with status and cleanup inside the details', () => {
const report: CacheReport = {status: 'enabled', cleanup: 'enabled', entries: [entry()]}
const md = renderCachingReport(report, ENHANCED)
expect(md).toContain('<h4>Gradle State Caching - ⚡ Enhanced</h4>')
// status and cleanup messages are within the expando, after the summary
const detailsBody = md.slice(md.indexOf('</summary>'))
expect(detailsBody).toContain('Cache was enabled')
expect(detailsBody).toContain('Cache cleanup')
expect(md).toContain('<table>')
expect(md).toContain('Entries Restored')
})
it('renders a basic report with the upgrade note and no metrics table', () => {
const report: CacheReport = {
status: 'read-only',
entries: [
entry({
restoredSize: undefined,
restoredTime: undefined,
savedKey: undefined,
savedSize: undefined,
savedTime: undefined,
savedOutcome: '(Entry not saved: cache is read-only)'
})
]
}
const md = renderCachingReport(report, BASIC)
expect(md).toContain('<h4>Gradle State Caching - 🛡️ Basic (read-only)</h4>')
expect(md).toContain('[Basic Caching]')
expect(md).toContain('[Enhanced Caching]')
// DISTRIBUTION.md is only referenced for the enhanced provider
expect(md).not.toContain('DISTRIBUTION.md')
// No size/time data, so the metrics table is omitted but the entry list remains
expect(md).not.toContain('<table>')
expect(md).toContain('<pre>')
expect(md).toContain('<summary>Entries: 1 restored, 0 saved - Expand for more details</summary>')
})
it('renders the project-cache status line inside the details', () => {
const report: CacheReport = {
status: 'enabled',
cleanup: 'enabled',
projectCache: 'enabled',
entries: [entry()]
}
const md = renderCachingReport(report, ENHANCED)
const detailsBody = md.slice(md.indexOf('</summary>'))
expect(detailsBody).toContain(
'Caching of project state (build-logic and configuration cache) was enabled.'
)
})
it('renders nothing for the not-enabled project-cache status', () => {
const report: CacheReport = {
status: 'enabled',
cleanup: 'enabled',
projectCache: 'not-enabled',
entries: [entry()]
}
const md = renderCachingReport(report, ENHANCED)
expect(md).not.toContain('Project state')
expect(md).not.toContain('build-logic')
})
it('omits the project-cache line when the status is absent', () => {
const report: CacheReport = {status: 'enabled', cleanup: 'enabled', entries: [entry()]}
const md = renderCachingReport(report, ENHANCED)
expect(md).not.toContain('Project state')
})
it('renders a compact disabled report with no note and no details', () => {
const report: CacheReport = {status: 'disabled', entries: []}
const md = renderCachingReport(report, undefined)
expect(md).toContain('<h4>Gradle State Caching - Disabled</h4>')
expect(md).toContain('Caching was disabled')
expect(md).not.toContain('<details>')
expect(md).not.toContain('DISTRIBUTION.md')
})
it('renders a compact skipped report for a pre-existing Gradle User Home', () => {
const report: CacheReport = {status: 'disabled-existing-home', entries: []}
const md = renderCachingReport(report, ENHANCED)
expect(md).toContain('<h4>Gradle State Caching - Skipped</h4>')
expect(md).toContain('pre-existing Gradle User Home')
expect(md).not.toContain('<details>')
// no provider note for non-active states
expect(md).not.toContain('DISTRIBUTION.md')
})
it('renders an unavailable report compactly', () => {
const report: CacheReport = {status: 'not-available', entries: []}
const md = renderCachingReport(report, ENHANCED)
expect(md).toContain('<h4>Gradle State Caching - Unavailable</h4>')
expect(md).not.toContain('<details>')
})
})
+33 -2
View File
@@ -1,8 +1,15 @@
import dedent from 'dedent'
import {describe, expect, it} from '@jest/globals'
import * as github from '@actions/github'
import {afterEach, describe, expect, it} from '@jest/globals'
import {BuildResult} from '../../src/build-results'
import {renderSummaryTable} from '../../src/job-summary'
import {jobMarker, renderSummaryTable} from '../../src/job-summary'
const MATRIX_INPUT_ENV = 'INPUT_WORKFLOW-JOB-CONTEXT'
function fakeContext(workflow: string, job: string): typeof github.context {
return {workflow, job} as unknown as typeof github.context
}
const successfulHelpBuild: BuildResult = {
rootProjectName: 'root',
@@ -177,3 +184,27 @@ describe('renderSummaryTable', () => {
})
})
})
describe('jobMarker', () => {
const original = process.env[MATRIX_INPUT_ENV]
afterEach(() => {
if (original === undefined) {
delete process.env[MATRIX_INPUT_ENV]
} else {
process.env[MATRIX_INPUT_ENV] = original
}
})
it('builds a hidden marker from the workflow and job', () => {
process.env[MATRIX_INPUT_ENV] = 'null'
const marker = jobMarker(fakeContext('CI', 'build'))
expect(marker).toBe('<!-- gradle-job-summary: ci-build -->')
})
it('includes the job matrix in the marker', () => {
process.env[MATRIX_INPUT_ENV] = JSON.stringify({os: 'ubuntu', java: '17'})
const marker = jobMarker(fakeContext('CI', 'build'))
expect(marker).toBe('<!-- gradle-job-summary: ci-build-ubuntu-17 -->')
})
})
+40 -1
View File
@@ -1,7 +1,7 @@
import nock from "nock";
import {describe, expect, it} from '@jest/globals'
import {DevelocityAccessCredentials, getToken} from "../../src/develocity/short-lived-token";
import {DevelocityAccessCredentials, getToken, resolveTokenForServer} from "../../src/develocity/short-lived-token";
describe('short lived tokens', () => {
it('parse valid access key should return an object', async () => {
@@ -134,3 +134,42 @@ describe('short lived tokens with retry', () => {
.toBeNull()
})
})
describe('resolveTokenForServer', () => {
const credentials = (...pairs: [string, string][]): DevelocityAccessCredentials =>
DevelocityAccessCredentials.of(pairs.map(([hostname, key]) => ({hostname, key})))
it('returns the token matching the server host from a full URL', () => {
const tokens = credentials(['ge.example.com', 'key1'], ['other', 'key2'])
expect(resolveTokenForServer(tokens, 'https://ge.example.com')).toBe('key1')
})
it('matches on hostname, ignoring scheme, port and path', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, 'https://ge.example.com:8443/path')).toBe('key1')
})
it('tolerates a bare hostname with no scheme', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, 'ge.example.com')).toBe('key1')
})
it('selects the matching token when multiple are present', () => {
const tokens = credentials(['dev', 'key1'], ['ge.example.com', 'key2'])
expect(resolveTokenForServer(tokens, 'https://ge.example.com')).toBe('key2')
})
it('returns undefined when no token matches the server host', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, 'https://other.example.com')).toBeUndefined()
})
it('returns undefined for an empty server URL', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, '')).toBeUndefined()
})
it('returns undefined when there are no tokens', () => {
expect(resolveTokenForServer(credentials(), 'https://ge.example.com')).toBeUndefined()
})
})
+41 -2
View File
@@ -11,6 +11,23 @@ export declare interface BuildResult {
get buildScanFailed(): boolean;
}
/** @public */
export declare type CacheCleanupStatus = 'enabled' | 'disabled-param' | 'disabled-failure' | 'disabled-config-cache-hit' | 'disabled-readonly';
/** @public */
export declare interface CacheEntryReport {
entryName: string;
requestedKey?: string;
restoredKey?: string;
restoredSize?: number;
restoredTime?: number;
restoredOutcome: string;
savedKey?: string;
savedSize?: number;
savedTime?: number;
savedOutcome: string;
}
/** @public */
export declare interface CacheOptions {
disabled: boolean;
@@ -18,16 +35,38 @@ export declare interface CacheOptions {
writeOnly: boolean;
overwriteExisting: boolean;
strictMatch: boolean;
cleanup: string;
cleanup: 'always' | 'on-success' | 'never';
encryptionKey?: string;
develocityAccessToken?: string;
develocityServerUrl?: string;
includes: string[];
excludes: string[];
}
/** @public */
export declare interface CacheReport {
status: CacheStatus;
cleanup?: CacheCleanupStatus;
projectCache?: ProjectCacheStatus;
entries: CacheEntryReport[];
}
/** @public */
export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available';
/**
* Status of project-entry caching (build-logic artifacts + configuration-cache data) for a run.
* The first three are set on restore (always ungated); the rest are set on save and reflect the
* two-tier gate (opt-in + Develocity trial, then encryption key + Gradle version). Still beta.
*
* @public
*/
declare type ProjectCacheStatus = 'not-enabled' | 'trial-expired' | 'trial-not-licensed' | 'no-encryption-key' | 'enabled';
/** @public */
export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>;
/** @public */
export declare function save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<string>;
export declare function save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<CacheReport>;
export { }
+2 -1
View File
@@ -1 +1,2 @@
const a0_0x1b3729=a0_0x28da;(function(_0x31d513,_0x412845){const _0x493d71=a0_0x28da,_0x402ba2=_0x31d513();while(!![]){try{const _0x18182d=-parseInt(_0x493d71(0x214))/0x1+-parseInt(_0x493d71(0x1da))/0x2+-parseInt(_0x493d71(0xb86))/0x3*(parseInt(_0x493d71(0xcda))/0x4)+-parseInt(_0x493d71(0x1611))/0x5+-parseInt(_0x493d71(0xed9))/0x6*(-parseInt(_0x493d71(0xe39))/0x7)+parseInt(_0x493d71(0x374))/0x8+parseInt(_0x493d71(0x59f))/0x9*(parseInt(_0x493d71(0xff5))/0xa);if(_0x18182d===_0x412845)break;else _0x402ba2['push'](_0x402ba2['shift']());}catch(_0x54adbd){_0x402ba2['push'](_0x402ba2['shift']());}}}(a0_0x8fd7,0xaab20));import*as a0_0x43dd2 from'os';import a0_0x3c2eea,{EOL as a0_0x4adb0e}from'os';import*as a0_0x3f180f from'crypto';import*as a0_0x56353b from'fs';import a0_0x3b1ff9,{promises,writeFileSync,existsSync,readFileSync}from'fs';import*as a0_0x570660 from'path';import a0_0x321a3a from'path';import*as a0_0x21fdc5 from'http';import a0_0x3892ae from'http';import*as a0_0x169464 from'https';import a0_0x2ac881 from'https';import a0_0x88a33a from'net';import a0_0x45249e from'tls';import*as a0_0xb48d1f from'events';import a0_0x1303da,{EventEmitter}from'events';import a0_0x13f898,{ok}from'assert';import*as a0_0x3f5553 from'util';import a0_0x1db1cc from'util';import a0_0x41f42c from'node:assert';import a0_0x588761 from'node:net';import a0_0x389ce6 from'node:http';import a0_0x1c8620,{Transform,Readable as a0_0x1b1a30}from'node:stream';import a0_0x5ac5bc from'node:buffer';import a0_0x33c301,{inspect}from'node:util';import a0_0x4ebaa2 from'node:querystring';import a0_0x587604 from'node:events';import a0_0x1850aa from'node:diagnostics_channel';import a0_0x4d6ec8 from'node:tls';import a0_0x2b1843 from'node:zlib';import a0_0x4c2e5f from'node:perf_hooks';import a0_0x37960e from'node:util/types';import a0_0x5cbda9 from'node:worker_threads';import a0_0x39ae61 from'node:url';import a0_0x461d71 from'node:async_hooks';import a0_0x5224e0 from'node:console';import a0_0x5d48d7 from'node:dns';import a0_0x5584e4,{StringDecoder}from'string_decoder';import*as a0_0x4f577a from'child_process';import{setTimeout as a0_0x409876}from'timers';import*as a0_0x315735 from'stream';import{Readable}from'stream';import a0_0x3fc977,{URL as a0_0x54ac85}from'url';import*as a0_0x194fd8 from'buffer';import{Buffer as a0_0x23e5e4}from'buffer';import a0_0x58aa63,{EOL as a0_0x45c332}from'node:os';import*as a0_0x20ebec from'node:process';import a0_0x64862 from'node:process';import a0_0x37085b from'node:https';import a0_0x225236 from'tty';import{createHmac}from'node:crypto';import a0_0x3e17f7 from'node:fs';import a0_0x236111 from'node:fs/promises';import a0_0x4269af from'node:path';function toCommandValue(_0x3ce704){const _0x154c46=a0_0x28da;if(_0x3ce704===null||_0x3ce704===undefined)return'';else{if(typeof _0x3ce704===_0x154c46(0x151e)||_0x3ce704 instanceof String)return _0x3ce704;}return JSON[_0x154c46(0x1511)](_0x3ce704);}function toCommandProperties(_0x533546){const _0x49b20c=a0_0x28da;if(!Object['keys'](_0x533546)['length'])return{};return{'title':_0x533546['title'],'file':_0x533546['file'],'line':_0x533546['startLine'],'endLine':_0x533546[_0x49b20c(0x16b2)],'col':_0x533546[_0x49b20c(0x180)],'endColumn':_0x533546['endColumn']};}function issueCommand(_0xe1d7b3,_0x5b22f7,_0x9135e0){const _0x1ea8a0=a0_0x28da,_0x167dc6=new Command(_0xe1d7b3,_0x5b22f7,_0x9135e0);process['stdout']['write'](_0x167dc6[_0x1ea8a0(0x96f)]()+a0_0x43dd2[_0x1ea8a0(0x7fa)]);}function issue(_0x359e70,_0x58257f=''){issueCommand(_0x359e70,{},_0x58257f);}const CMD_STRING='::';class Command{constructor(_0x12d4fd,_0x12d1da,_0x2b7b31){const _0x2d81dd=a0_0x28da;!_0x12d4fd&&(_0x12d4fd='missing.command'),this[_0x2d81dd(0x59c)]=_0x12d4fd,this[_0x2d81dd(0x8d0)]=_0x12d1da,this[_0x2d81dd(0x1263)]=_0x2b7b31;}['toString'](){const _0x1017d8=a0_0x28da;let _0x411d0b=CMD_STRING+this[_0x1017d8(0x59c)];if(this['properties']&&Object['keys'](this[_0x1017d8(0x8d0)])[_0x1017d8(0x4c8)]>0x0){_0x411d0b+='\x20';let _0x3ca9f4=!![];for(const _0x5f26aa in this[_0x1017d8(0x8d0)]){if(this[_0x1017d8(0x8d0)][_0x1017d8(0x253)](_0x5f26aa)){const _0x4d8197=this[_0x1017d8(0x8d0)][_0x5f26aa];_0x4d8197&&(_0x3ca9f4?_0x3ca9f4=![]:_0x411d0b+=',',_0x411d0b+=_0x5f26aa+'='+escapeProperty(_0x4d8197));}}}return _0x411d0b+=''+CMD_STRING+escapeData(this[_0x1017d8(0x1263)]),_0x411d0b;}}function escapeData(_0x276eee){const _0x74f685=a0_0x28da;return toCommandValue(_0x276eee)[_0x74f685(0x6cd)](/%/g,_0x74f685(0xaa8))[_0x74f685(0x6cd)](/\r/g,_0x74f685(0x13e5))[_0x74f685(0x6cd)](/\n/g,_0x74f685(0x127d));}function escapeProperty(_0x2171e0){const _0x38c8af=a0_0x28da;return toCommandValue(_0x2171e0)['replace'](/%/g,'%25')['replace'](/\r/g,'%0D')['replace'](/\n/g,_0x38c8af(0x127d))[_0x38c8af(0x6cd)](/:/g,_0x38c8af(0x1587))[_0x38c8af(0x6cd)](/,/g,_0x38c8af(0x1076));}function issueFileCommand(_0x200762,_0x1cf438){const _0x32e701=a0_0x28da,_0x4767ba=process.env[`GITHUB_${_0x200762}`];if(!_0x4767ba)throw new Error(_0x32e701(0x3d6)+_0x200762);if(!a0_0x5Line truncated
const a0_0x4893e6=a0_0x26dc;(function(_0x39d65a,_0x28fee7){const _0x270f16=a0_0x26dc,_0x1e10bb=_0x39d65a();while(!![]){try{const _0x5600dd=-parseInt(_0x270f16(0x1e8))/0x1+-parseInt(_0x270f16(0xc7c))/0x2*(-parseInt(_0x270f16(0x12f1))/0x3)+-parseInt(_0x270f16(0xad5))/0x4*(parseInt(_0x270f16(0xd89))/0x5)+-parseInt(_0x270f16(0x145e))/0x6+-parseInt(_0x270f16(0x100e))/0x7*(parseInt(_0x270f16(0x63b))/0x8)+-parseInt(_0x270f16(0xfc5))/0x9*(-parseInt(_0x270f16(0xbcb))/0xa)+parseInt(_0x270f16(0xe1f))/0xb*(parseInt(_0x270f16(0x14e3))/0xc);if(_0x5600dd===_0x28fee7)break;else _0x1e10bb['push'](_0x1e10bb['shift']());}catch(_0x4f3f8e){_0x1e10bb['push'](_0x1e10bb['shift']());}}}(a0_0xf7aa,0x19649));import*as a0_0x400243 from'os';import a0_0x56e8ea,{EOL as a0_0x125a9d}from'os';import*as a0_0x3cf51d from'crypto';import*as a0_0x2b0b27 from'fs';import a0_0x263a2e,{promises,writeFileSync,existsSync,readFileSync}from'fs';import*as a0_0x3ed914 from'path';import a0_0x181991 from'path';import*as a0_0x4f61cc from'http';import a0_0x595130 from'http';import*as a0_0x304e5d from'https';import a0_0xb38c54 from'https';import a0_0x371d35 from'net';import a0_0xf05961 from'tls';import*as a0_0x13c265 from'events';import a0_0x2a0ad2,{EventEmitter}from'events';import a0_0x543274,{ok}from'assert';import*as a0_0x20dbfc from'util';import a0_0xcf4e58 from'util';import a0_0x37c539 from'node:assert';import a0_0x129983 from'node:net';import a0_0x8f3b76 from'node:http';import a0_0x16e0d1,{Transform,Readable as a0_0x3b497c}from'node:stream';import a0_0x642f7f from'node:buffer';import a0_0x372cdf,{inspect}from'node:util';import a0_0x5a62bb from'node:querystring';import a0_0x3a0a02 from'node:events';import a0_0x4c47db from'node:diagnostics_channel';import a0_0x5bad94 from'node:tls';import a0_0x4783cb from'node:zlib';import a0_0x3b5282 from'node:perf_hooks';import a0_0x41d05e from'node:util/types';import a0_0xa2f90f from'node:worker_threads';import a0_0x2e9e69 from'node:url';import a0_0x8b1715 from'node:async_hooks';import a0_0x25d12b from'node:console';import a0_0x52b425 from'node:dns';import a0_0x1b387e,{StringDecoder}from'string_decoder';import*as a0_0x1d63a8 from'child_process';import{setTimeout as a0_0x33f7d2}from'timers';import*as a0_0x354927 from'stream';import{Readable}from'stream';import a0_0x1a17a3,{URL as a0_0x2caf55}from'url';import*as a0_0x30c150 from'buffer';import{Buffer as a0_0x39263d}from'buffer';import a0_0x4aa0e9,{EOL as a0_0x4e57ed}from'node:os';import a0_0x556f37 from'node:process';import a0_0x280a62 from'node:https';import a0_0x1f2080 from'tty';import{createHmac}from'node:crypto';import a0_0x132b37 from'node:fs';import*as a0_0x548adb from'zlib';function toCommandValue(_0x1ac2ed){if(_0x1ac2ed===null||_0x1ac2ed===undefined)return'';else{if(typeof _0x1ac2ed==='string'||_0x1ac2ed instanceof String)return _0x1ac2ed;}return JSON['stringify'](_0x1ac2ed);}function toCommandProperties(_0x60a74e){const _0x409bed=a0_0x26dc;if(!Object[_0x409bed(0xa0e)](_0x60a74e)[_0x409bed(0x143)])return{};return{'title':_0x60a74e[_0x409bed(0xe3a)],'file':_0x60a74e[_0x409bed(0x7d5)],'line':_0x60a74e[_0x409bed(0x8b1)],'endLine':_0x60a74e['endLine'],'col':_0x60a74e[_0x409bed(0x1507)],'endColumn':_0x60a74e['endColumn']};}function issueCommand(_0xf8fd7b,_0x144996,_0x30c874){const _0x341cff=a0_0x26dc,_0x29b80e=new Command(_0xf8fd7b,_0x144996,_0x30c874);process[_0x341cff(0x111b)]['write'](_0x29b80e[_0x341cff(0x99d)]()+a0_0x400243[_0x341cff(0x1061)]);}function issue(_0x536952,_0x25e163=''){issueCommand(_0x536952,{},_0x25e163);}const CMD_STRING='::';class Command{constructor(_0x38e7d2,_0xf6b4ad,_0x572c5b){const _0xc6cfd=a0_0x26dc;!_0x38e7d2&&(_0x38e7d2='missing.command'),this[_0xc6cfd(0x2cb)]=_0x38e7d2,this['properties']=_0xf6b4ad,this['message']=_0x572c5b;}[a0_0x4893e6(0x99d)](){const _0x116d43=a0_0x4893e6;let _0x132af8=CMD_STRING+this[_0x116d43(0x2cb)];if(this[_0x116d43(0xf6e)]&&Object[_0x116d43(0xa0e)](this[_0x116d43(0xf6e)])[_0x116d43(0x143)]>0x0){_0x132af8+='\x20';let _0x1eb5b0=!![];for(const _0x16913a in this[_0x116d43(0xf6e)]){if(this['properties'][_0x116d43(0x9b8)](_0x16913a)){const _0x333181=this['properties'][_0x16913a];_0x333181&&(_0x1eb5b0?_0x1eb5b0=![]:_0x132af8+=',',_0x132af8+=_0x16913a+'='+escapeProperty(_0x333181));}}}return _0x132af8+=''+CMD_STRING+escapeData(this[_0x116d43(0x12d9)]),_0x132af8;}}function escapeData(_0x54ae29){const _0x3d1de3=a0_0x4893e6;return toCommandValue(_0x54ae29)[_0x3d1de3(0xbc4)](/%/g,'%25')['replace'](/\r/g,'%0D')[_0x3d1de3(0xbc4)](/\n/g,_0x3d1de3(0x161f));}function escapeProperty(_0x878f30){const _0x39ab91=a0_0x4893e6;return toCommandValue(_0x878f30)['replace'](/%/g,_0x39ab91(0x702))[_0x39ab91(0xbc4)](/\r/g,'%0D')[_0x39ab91(0xbc4)](/\n/g,_0x39ab91(0x161f))[_0x39ab91(0xbc4)](/:/g,'%3A')[_0x39ab91(0xbc4)](/,/g,_0x39ab91(0x770));}function issueFileCommand(_0x136732,_0x448716){const _0x48c14f=a0_0x4893e6,_0x3f4642=process.env[`GITHUB_${_0x136732}`];if(!_0x3f4642)throw new Error(_0x48c14f(0x10b2)+_0x136732);if(!a0_0x2b0b27[_0x48c14f(Line truncated
()=>new ArrayBuffer(0x0));}function isJSONResponse(_0x2d08a8){const _0x26ba55=a0_0x4893e6;return _0x2d08a8[_0x26ba55(0x1316)]==='application/json'||_0x2d08a8[_0x26ba55(0x1316)]===_0x26ba55(0x10ea);}function toErrorMessage(_0x2eb94a){const _0x576b9e=a0_0x4893e6;if(typeof _0x2eb94a===_0x576b9e(0x1c4))return _0x2eb94a;if(_0x2eb94a instanceof ArrayBuffer)return _0x576b9e(0x62d);if(_0x576b9e(0x12d9)in _0x2eb94a){const _0x447ad9='documentation_url'in _0x2eb94a?'\x20-\x20'+_0x2eb94a[_0x576b9e(0x1053)]:'';return Array['isArray'](_0x2eb94a['errors'])?_0x2eb94a[_0x576b9e(0x12d9)]+':\x20'+_0x2eb94a[_0x576b9e(0xff3)][_0x576b9e(0x867)](_0x1a7881=>JSON[_0x576b9e(0x105c)](_0x1a7881))[_0x576b9e(0xc71)](',\x20')+_0x447ad9:''+_0x2eb94a['message']+_0x447ad9;}return _0x576b9e(0x78e)+JSON[_0x576b9e(0x105c)](_0x2eb94a);}function withDefaults$1(_0x1d2e50,_0x19b608){const _0x12c9c8=a0_0x4893e6,_0x173fd3=_0x1d2e50[_0x12c9c8(0xb62)](_0x19b608),_0x245229=function(_0x5859de,_0x1265ba){const _0x20fef8=_0x12c9c8,_0x2a25e7=_0x173fd3[_0x20fef8(0x739)](_0x5859de,_0x1265ba);if(!_0x2a25e7[_0x20fef8(0x1206)]||!_0x2a25e7[_0x20fef8(0x1206)][_0x20fef8(0x1368)])return fetchWrapper(_0x173fd3[_0x20fef8(0x173a)](_0x2a25e7));const _0x475648=(_0xc69cb5,_0x101148)=>{const _0xaaa589=_0x20fef8;return fetchWrapper(_0x173fd3[_0xaaa589(0x173a)](_0x173fd3[_0xaaa589(0x739)](_0xc69cb5,_0x101148)));};return Object[_0x20fef8(0x556)](_0x475648,{'endpoint':_0x173fd3,'defaults':withDefaults$1[_0x20fef8(0xc86)](null,_0x173fd3)}),_0x2a25e7[_0x20fef8(0x1206)][_0x20fef8(0x1368)](_0x475648,_0x2a25e7);};return Object[_0x12c9c8(0x556)](_0x245229,{'endpoint':_0x173fd3,'defaults':withDefaults$1[_0x12c9c8(0xc86)](null,_0x173fd3)});}var request=withDefaults$1(endpoint,defaults_default),VERSION$3=a0_0x4893e6(0x1782);function _buildMessageForResponseErrors(_0x495c07){const _0x16ebca=a0_0x4893e6;return'Request\x20failed\x20due\x20to\x20following\x20response\x20errors:\x0a'+_0x495c07[_0x16ebca(0xff3)][_0x16ebca(0x867)](_0x5a819e=>_0x16ebca(0x5db)+_0x5a819e['message'])[_0x16ebca(0xc71)]('\x0a');}var GraphqlResponseError=class extends Error{constructor(_0x3c0390,_0x35d662,_0x3694c6){const _0x371f05=a0_0x4893e6;super(_buildMessageForResponseErrors(_0x3694c6)),this[_0x371f05(0x1206)]=_0x3c0390,this[_0x371f05(0x68a)]=_0x35d662,this['response']=_0x3694c6,this[_0x371f05(0xff3)]=_0x3694c6[_0x371f05(0xff3)],this[_0x371f05(0xd76)]=_0x3694c6[_0x371f05(0xd76)],Error[_0x371f05(0xed3)]&&Error[_0x371f05(0xed3)](this,this[_0x371f05(0x61c)]);}[a0_0x4893e6(0x20e)]=a0_0x4893e6(0x14c5);[a0_0x4893e6(0xff3)];['data'];},NON_VARIABLE_OPTIONS=['method','baseUrl','url',a0_0x4893e6(0x68a),a0_0x4893e6(0x1206),a0_0x4893e6(0x132a),a0_0x4893e6(0x1210),'operationName'],FORBIDDEN_VARIABLE_OPTIONS=[a0_0x4893e6(0x132a),a0_0x4893e6(0x7ec),'url'],GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(_0x5c4f0a,_0x59381c,_0x3c42e5){const _0x3b3d4c=a0_0x4893e6;if(_0x3c42e5){if(typeof _0x59381c===_0x3b3d4c(0x1c4)&&_0x3b3d4c(0x132a)in _0x3c42e5)return Promise[_0x3b3d4c(0x12a1)](new Error('[@octokit/graphql]\x20\x22query\x22\x20cannot\x20be\x20used\x20as\x20variable\x20name'));for(const _0x2b3534 in _0x3c42e5){if(!FORBIDDEN_VARIABLE_OPTIONS[_0x3b3d4c(0x545)](_0x2b3534))continue;return Promise[_0x3b3d4c(0x12a1)](new Error(_0x3b3d4c(0x466)+_0x2b3534+_0x3b3d4c(0x117e)));}}const _0x1ba4f6=typeof _0x59381c===_0x3b3d4c(0x1c4)?Object[_0x3b3d4c(0x556)]({'query':_0x59381c},_0x3c42e5):_0x59381c,_0x5daf98=Object[_0x3b3d4c(0xa0e)](_0x1ba4f6)[_0x3b3d4c(0x144d)]((_0x1beae3,_0x4deda8)=>{const _0x53474f=_0x3b3d4c;if(NON_VARIABLE_OPTIONS[_0x53474f(0x545)](_0x4deda8))return _0x1beae3[_0x4deda8]=_0x1ba4f6[_0x4deda8],_0x1beae3;return!_0x1beae3[_0x53474f(0x125e)]&&(_0x1beae3['variables']={}),_0x1beae3[_0x53474f(0x125e)][_0x4deda8]=_0x1ba4f6[_0x4deda8],_0x1beae3;},{}),_0x5abf16=_0x1ba4f6[_0x3b3d4c(0x641)]||_0x5c4f0a['endpoint'][_0x3b3d4c(0x156e)]['baseUrl'];return GHES_V3_SUFFIX_REGEX['test'](_0x5abf16)&&(_0x5daf98[_0x3b3d4c(0xa66)]=_0x5abf16[_0x3b3d4c(0xbc4)](GHES_V3_SUFFIX_REGEX,_0x3b3d4c(0x565))),_0x5c4f0a(_0x5daf98)[_0x3b3d4c(0x115b)](_0x3d6fcd=>{const _0x1a5ad9=_0x3b3d4c;if(_0x3d6fcd[_0x1a5ad9(0xd76)][_0x1a5ad9(0xff3)]){const _0x38cb26={};for(const _0x6e71bf of Object['keys'](_0x3d6fcd[_0x1a5ad9(0x68a)])){_0x38cb26[_0x6e71bf]=_0x3d6fcd[_0x1a5ad9(0x68a)][_0x6e71bf];}throw new GraphqlResponseError(_0x5daf98,_0x38cb26,_0x3d6fcd[_0x1a5ad9(0xd76)]);}return _0x3d6fcd['data'][_0x1a5ad9(0xd76)];});}function withDefaults(_0x5272b7,_0x3d13ef){const _0x3c8324=a0_0x4893e6,_0x32b73e=_0x5272b7['defaults'](_0x3d13ef),_0x5bde80=(_0x10e35d,_0xdc2834)=>{return graphql(_0x32b73e,_0x10e35d,_0xdc2834);};return Object['assign'](_0x5bde80,{'defaults':withDefaults[_0x3c8324(0xc86)](null,_0x32b73e),'endpoint':_0x32b73e[_0x3c8324(0x152f)]});}withDefaults(request,{'headers':{'user-agent':a0_0x4893e6(0x3d2)+VERSION$3+'\x20'+getUserAgent()},'method':a0_0x4893e6(0xfba),'url':a0_0x4893e6(0x699)});function withCustomRequest(_0x49a2b0){const _0x5944b8=a0_0x4893e6;returnLine truncated
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff. Show more