Compare commits

..
235 Commits
Author SHA1 Message Date
CrazyMax 334e73ab86 Merge pull request #710 from docker/dependabot/npm_and_yarn/postcss-8.5.25
chore(deps): Bump postcss from 8.5.10 to 8.5.28
2026-09-11 14:19:10 +02:00
CrazyMax a65e287521 Merge pull request #707 from docker/dependabot/npm_and_yarn/moment-timezone-0.6.3
chore(deps): Bump moment-timezone from 0.6.2 to 0.6.3
2026-09-11 14:02:25 +02:00
github-actions[bot] 06076441e4 [dependabot skip] chore: update generated content 2026-09-11 11:57:50 +00:00
dependabot[bot] 16b2402ae8 chore(deps): Bump moment-timezone from 0.6.2 to 0.6.3
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.6.2...0.6.3)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-version: 0.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-11 11:56:50 +00:00
CrazyMax fe5ae53f8c Merge pull request #701 from docker/dependabot/npm_and_yarn/csv-parse-7.0.1
chore(deps): Bump csv-parse from 7.0.0 to 7.0.2
2026-09-11 13:54:30 +02:00
github-actions[bot] 8c322d0993 [dependabot skip] chore: update generated content 2026-09-11 11:46:11 +00:00
dependabot[bot] b85971cc18 chore(deps): Bump postcss from 8.5.10 to 8.5.28
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.10 to 8.5.28.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.10...8.5.28)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.25
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-11 11:46:01 +00:00
dependabot[bot] 5faed39cb8 chore(deps): Bump csv-parse from 7.0.0 to 7.0.2
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 7.0.0 to 7.0.2.
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@7.0.2/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-11 11:45:15 +00:00
CrazyMax fa86a8e19a Merge pull request #715 from docker/dependabot/npm_and_yarn/js-yaml-4.3.1
chore(deps): Bump js-yaml from 4.3.0 to 4.3.1
2026-09-11 13:44:37 +02:00
CrazyMax 818bf39daf Merge pull request #713 from docker/dependabot/npm_and_yarn/undici-6.28.0
chore(deps): Bump undici from 6.27.0 to 6.28.0
2026-09-11 13:43:18 +02:00
CrazyMax 7e7495626c Merge pull request #716 from docker/dependabot/npm_and_yarn/postcss-selector-parser-7.1.5
chore(deps): Bump postcss-selector-parser from 7.1.1 to 7.1.5
2026-09-11 13:43:00 +02:00
CrazyMax 63f5656707 Merge pull request #717 from docker/dependabot/npm_and_yarn/humanfs/node-0.16.8
chore(deps): Bump @humanfs/node from 0.16.7 to 0.16.8
2026-09-11 13:42:31 +02:00
CrazyMax 8457f1474c Merge pull request #718 from docker/dependabot/npm_and_yarn/nanoid-3.3.18
chore(deps): Bump nanoid from 3.3.11 to 3.3.18
2026-09-11 13:40:31 +02:00
CrazyMax c1ce55cf4b Merge pull request #704 from docker/dependabot/github_actions/codeql-actions-af2beed448
chore(deps): Bump the codeql-actions group with 2 updates
2026-09-11 13:40:02 +02:00
CrazyMax 0b24e01e4b Merge pull request #700 from docker/dependabot/github_actions/docker/setup-buildx-action-4.2.0
chore(deps): Bump docker/setup-buildx-action from 4.1.0 to 4.2.0
2026-09-11 13:39:52 +02:00
CrazyMax 6630998811 Merge pull request #699 from docker/dependabot/github_actions/docker/bake-action/subaction/matrix-7.3.0
chore(deps): Bump docker/bake-action/subaction/matrix from 7.2.0 to 7.3.0
2026-09-11 13:39:42 +02:00
CrazyMax 721ab41eb2 Merge pull request #698 from docker/dependabot/github_actions/docker/build-push-action-7.3.0
chore(deps): Bump docker/build-push-action from 7.2.0 to 7.3.0
2026-09-11 13:39:32 +02:00
CrazyMax 3c48aca360 Merge pull request #697 from docker/dependabot/github_actions/docker/bake-action-7.3.0
chore(deps): Bump docker/bake-action from 7.2.0 to 7.3.0
2026-09-11 13:39:22 +02:00
dependabot[bot] be5123e520 chore(deps): Bump nanoid from 3.3.11 to 3.3.18
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.11 to 3.3.18.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/3.3.18/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.11...3.3.18)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-version: 3.3.18
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-05 08:05:43 +00:00
dependabot[bot] 5e134fc3cf chore(deps): Bump @humanfs/node from 0.16.7 to 0.16.8
Bumps [@humanfs/node](https://github.com/humanwhocodes/humanfs/tree/HEAD/packages/node) from 0.16.7 to 0.16.8.
- [Release notes](https://github.com/humanwhocodes/humanfs/releases)
- [Changelog](https://github.com/humanwhocodes/humanfs/blob/main/packages/node/CHANGELOG.md)
- [Commits](https://github.com/humanwhocodes/humanfs/commits/node-v0.16.8/packages/node)

---
updated-dependencies:
- dependency-name: "@humanfs/node"
  dependency-version: 0.16.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 12:25:39 +00:00
dependabot[bot] 75c1523541 chore(deps): Bump postcss-selector-parser from 7.1.1 to 7.1.5
Bumps [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser) from 7.1.1 to 7.1.5.
- [Release notes](https://github.com/postcss/postcss-selector-parser/releases)
- [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-selector-parser/compare/v7.1.1...7.1.5)

---
updated-dependencies:
- dependency-name: postcss-selector-parser
  dependency-version: 7.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-01 22:32:21 +00:00
dependabot[bot] 31e817f601 chore(deps): Bump js-yaml from 4.3.0 to 4.3.1
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.0 to 4.3.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.1/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.3.0...4.3.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-28 00:41:15 +00:00
github-actions[bot] fd428be62d [dependabot skip] chore: update generated content 2026-08-05 16:18:40 +00:00
dependabot[bot] 85f67a52da chore(deps): Bump undici from 6.27.0 to 6.28.0
Bumps [undici](https://github.com/nodejs/undici) from 6.27.0 to 6.28.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.27.0...v6.28.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.28.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-05 16:17:43 +00:00
dependabot[bot] d6d4c02fe1 chore(deps): Bump the codeql-actions group with 2 updates
Bumps the codeql-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.36.2 to 4.36.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...54f647b7e1bb85c95cddabcd46b0c578ec92bc1a)

Updates `github/codeql-action/analyze` from 4.36.2 to 4.36.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...54f647b7e1bb85c95cddabcd46b0c578ec92bc1a)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.36.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.36.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-09 12:01:34 +00:00
CrazyMax 703896b4f3 Merge pull request #703 from crazy-max/group-codeql-dependabot-updates
chore: group codeql dependabot updates
2026-07-09 13:58:27 +02:00
CrazyMax 1710a9f662 chore: group codeql dependabot updates
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-07-09 12:43:17 +02:00
dependabot[bot] 0b3ddf66f0 chore(deps): Bump docker/setup-buildx-action from 4.1.0 to 4.2.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5...bb05f3f5519dd87d3ba754cc423b652a5edd6d2c)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-06 19:22:36 +00:00
dependabot[bot] 02a9d84cbc chore(deps): Bump docker/bake-action/subaction/matrix
Bumps [docker/bake-action/subaction/matrix](https://github.com/docker/bake-action) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/6614cfa25eff9a0b2b2697efb0b6159e7680d584...d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b)

---
updated-dependencies:
- dependency-name: docker/bake-action/subaction/matrix
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 19:25:26 +00:00
dependabot[bot] e956db8a87 chore(deps): Bump docker/build-push-action from 7.2.0 to 7.3.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/f9f3042f7e2789586610d6e8b85c8f03e5195baf...53b7df96c91f9c12dcc8a07bcb9ccacbed38856a)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 19:25:10 +00:00
dependabot[bot] 9293eb8a8a chore(deps): Bump docker/bake-action from 7.2.0 to 7.3.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/6614cfa25eff9a0b2b2697efb0b6159e7680d584...d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 19:22:33 +00:00
CrazyMax dc80280410 Merge pull request #696 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.92.0
chore(deps): Bump @docker/actions-toolkit from 0.91.0 to 0.92.0
2026-07-02 10:48:54 +02:00
github-actions[bot] 2b9fe830ef [dependabot skip] chore: update generated content 2026-07-02 08:41:54 +00:00
dependabot[bot] 8128ce30ab chore(deps): Bump @docker/actions-toolkit from 0.91.0 to 0.92.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.91.0 to 0.92.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.91.0...v0.92.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.92.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 08:40:54 +00:00
CrazyMax 1d1c89551e Merge pull request #695 from docker/dependabot/npm_and_yarn/semver-7.8.5
chore(deps): Bump semver from 7.8.1 to 7.8.5
2026-07-02 10:17:31 +02:00
CrazyMax 7f0c2dd4c8 Merge pull request #694 from docker/dependabot/npm_and_yarn/sigstore-4.1.1
chore(deps): Bump sigstore from 4.1.0 to 4.1.1
2026-07-02 10:16:57 +02:00
github-actions[bot] 025f8c5c81 [dependabot skip] chore: update generated content 2026-07-02 08:15:28 +00:00
dependabot[bot] e98d63c308 chore(deps): Bump semver from 7.8.1 to 7.8.5
Bumps [semver](https://github.com/npm/node-semver) from 7.8.1 to 7.8.5.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.8.1...v7.8.5)

---
updated-dependencies:
- dependency-name: semver
  dependency-version: 7.8.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 08:14:30 +00:00
dependabot[bot] 37d9379950 chore(deps): Bump sigstore from 4.1.0 to 4.1.1
Bumps [sigstore](https://github.com/sigstore/sigstore-js) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@4.1.0...sigstore@4.1.1)

---
updated-dependencies:
- dependency-name: sigstore
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 08:14:02 +00:00
CrazyMax a1b8072847 Merge pull request #690 from docker/dependabot/npm_and_yarn/sigstore/core-3.2.1
chore(deps): Bump @sigstore/core from 3.1.0 to 3.2.1
2026-07-02 10:12:02 +02:00
github-actions[bot] e0e338106d [dependabot skip] chore: update generated content 2026-07-02 08:08:04 +00:00
dependabot[bot] 8740eb24f1 chore(deps): Bump @sigstore/core from 3.1.0 to 3.2.1
Bumps [@sigstore/core](https://github.com/sigstore/sigstore-js) from 3.1.0 to 3.2.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@3.1.0...@sigstore/core@3.2.1)

---
updated-dependencies:
- dependency-name: "@sigstore/core"
  dependency-version: 3.2.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 08:07:05 +00:00
CrazyMax 829d9deafc Merge pull request #686 from docker/dependabot/npm_and_yarn/undici-6.27.0
chore(deps): Bump undici from 6.25.0 to 6.27.0
2026-07-02 10:04:48 +02:00
github-actions[bot] c6f28b352d [dependabot skip] chore: update generated content 2026-07-02 08:03:27 +00:00
dependabot[bot] 2538bcf92b chore(deps): Bump undici from 6.25.0 to 6.27.0
Bumps [undici](https://github.com/nodejs/undici) from 6.25.0 to 6.27.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.25.0...v6.27.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 08:02:28 +00:00
CrazyMax d90dd465e0 Merge pull request #688 from docker/dependabot/npm_and_yarn/js-yaml-4.2.0
chore(deps): Bump js-yaml from 4.1.1 to 4.3.0
2026-07-02 10:00:21 +02:00
CrazyMax 25e0734ed4 Merge pull request #685 from docker/dependabot/npm_and_yarn/vite-7.3.5
chore(deps): Bump vite from 7.3.2 to 7.3.6
2026-07-02 09:59:54 +02:00
CrazyMax e9f6281329 Merge pull request #683 from docker/dependabot/npm_and_yarn/csv-parse-7.0.0
chore(deps): Bump csv-parse from 6.2.1 to 7.0.0
2026-07-02 09:59:28 +02:00
github-actions[bot] 662982e6ad [dependabot skip] chore: update generated content 2026-07-02 07:57:51 +00:00
github-actions[bot] 8cb42a736d [dependabot skip] chore: update generated content 2026-07-02 07:57:45 +00:00
dependabot[bot] a2ac6757c7 chore(deps): Bump js-yaml from 4.1.1 to 4.3.0
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.1 to 4.3.0.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.1...4.3.0)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.2.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 07:56:52 +00:00
dependabot[bot] 2f18853aff chore(deps): Bump csv-parse from 6.2.1 to 7.0.0
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 6.2.1 to 7.0.0.
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@7.0.0/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 07:56:48 +00:00
CrazyMax 99b992b69c Merge pull request #693 from docker/dependabot/npm_and_yarn/sigstore/verify-3.1.1
chore(deps): Bump @sigstore/verify from 3.1.0 to 3.1.1
2026-07-02 09:55:59 +02:00
CrazyMax f5d3f0bb4f Merge pull request #678 from docker/dependabot/github_actions/crazy-max-dot-github-a6a0ecf511
chore(deps): Bump the crazy-max-dot-github group across 1 directory with 2 updates
2026-07-02 09:43:01 +02:00
CrazyMax ad815f93b1 Merge pull request #684 from docker/dependabot/github_actions/actions/checkout-7.0.0
chore(deps): Bump actions/checkout from 6.0.2 to 7.0.0
2026-07-02 09:42:40 +02:00
CrazyMax e7c990b5e8 Merge pull request #681 from docker/dependabot/github_actions/github/codeql-action-4.36.2
chore(deps): Bump github/codeql-action from 4.36.0 to 4.36.2
2026-07-02 09:42:18 +02:00
CrazyMax 41cf1318aa Merge pull request #679 from docker/dependabot/github_actions/codecov/codecov-action-7.0.0
chore(deps): Bump codecov/codecov-action from 6.0.1 to 7.0.0
2026-07-02 09:41:52 +02:00
dependabot[bot] 4f8aff440c chore(deps): Bump @sigstore/verify from 3.1.0 to 3.1.1
Bumps [@sigstore/verify](https://github.com/sigstore/sigstore-js) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@3.1.0...@sigstore/verify@3.1.1)

---
updated-dependencies:
- dependency-name: "@sigstore/verify"
  dependency-version: 3.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 04:23:50 +00:00
dependabot[bot] 2785aeedfc chore(deps): Bump the crazy-max-dot-github group across 1 directory with 2 updates
Bumps the crazy-max-dot-github group with 2 updates in the / directory: [crazy-max/.github/.github/workflows/pr-assign-author.yml](https://github.com/crazy-max/.github) and [crazy-max/.github/.github/workflows/zizmor.yml](https://github.com/crazy-max/.github).


Updates `crazy-max/.github/.github/workflows/pr-assign-author.yml` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

Updates `crazy-max/.github/.github/workflows/zizmor.yml` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

---
updated-dependencies:
- dependency-name: crazy-max/.github/.github/workflows/pr-assign-author.yml
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/zizmor.yml
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 19:22:23 +00:00
CrazyMax 860a41aba4 Merge pull request #692 from crazy-max/fix-yarn-preapprove-actions-toolkit
chore: allow actions-toolkit to bypass yarn age gate
2026-07-01 14:00:37 +02:00
CrazyMax 23422a030c Merge pull request #691 from crazy-max/dependabot-skip-update-dist
dependabot: skip for update-dist commits
2026-07-01 14:00:23 +02:00
CrazyMax 2a674ccb52 chore: allow actions-toolkit to bypass yarn age gate
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-07-01 11:43:32 +02:00
CrazyMax 5185deded3 dependabot: skip for update-dist commits
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-30 11:09:07 +02:00
dependabot[bot] 9f63154d50 chore(deps): Bump vite from 7.3.2 to 7.3.6
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.2 to 7.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 14:18:11 +00:00
CrazyMax 45b1914810 Merge pull request #689 from crazy-max/fix-esbuild
preserve names in esbuild bundle
2026-06-29 16:14:58 +02:00
CrazyMax d3cc900f2d preserve names in esbuild bundle
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-29 15:01:08 +02:00
dependabot[bot] d8b45f9c76 chore(deps): Bump actions/checkout from 6.0.2 to 7.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 19:22:37 +00:00
temenuzhka-thede 020b7354dd Merge pull request #682 from docker/sec-cli/npm-ci-20260612-184903
fix: replace npm install with npm ci (20260612-184903)
2026-06-12 14:10:33 -05:00
securityeng-bot[bot] 7f842e879c fix: use lockfile-aware install commands 2026-06-12 18:49:05 +00:00
dependabot[bot] 58711ad468 chore(deps): Bump github/codeql-action from 4.36.0 to 4.36.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.36.0 to 4.36.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/7211b7c8077ea37d8641b6271f6a365a22a5fbfa...8aad20d150bbac5944a9f9d289da16a4b0d87c1e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 19:24:29 +00:00
dependabot[bot] 7a9d9fefe1 chore(deps): Bump codecov/codecov-action from 6.0.1 to 7.0.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/e79a6962e0d4c0c17b229090214935d2e33f8354...fb8b3582c8e4def4969c97caa2f19720cb33a72f)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 19:22:35 +00:00
CrazyMax 3caf19fbe3 Merge pull request #675 from crazy-max/yarn-update
update yarn to 4.15.0
2026-05-28 18:43:59 +02:00
CrazyMax 8016b4facd update yarn to 4.15.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-05-28 15:13:30 +02:00
CrazyMax 530a407188 Merge pull request #672 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.91.0
chore(deps): Bump @docker/actions-toolkit from 0.90.0 to 0.91.0
2026-05-28 12:59:33 +02:00
github-actions[bot] afa75d4359 chore: update generated content 2026-05-28 10:57:17 +00:00
dependabot[bot] 26a83f6e31 chore(deps): Bump @docker/actions-toolkit from 0.90.0 to 0.91.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.90.0 to 0.91.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.90.0...v0.91.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.91.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 10:56:20 +00:00
CrazyMax 585dfe4a50 Merge pull request #663 from docker/dependabot/npm_and_yarn/actions/core-3.0.1
chore(deps): Bump @actions/core from 3.0.0 to 3.0.1
2026-05-28 12:54:14 +02:00
github-actions[bot] 829c7e6ce9 chore: update generated content 2026-05-28 10:25:16 +00:00
dependabot[bot] 246bbe8935 chore(deps): Bump @actions/core from 3.0.0 to 3.0.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 3.0.0 to 3.0.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 10:24:18 +00:00
CrazyMax ebb6b285fa Merge pull request #666 from docker/dependabot/npm_and_yarn/actions/github-9.1.1
chore(deps): Bump @actions/github from 9.0.0 to 9.1.1
2026-05-28 12:22:11 +02:00
github-actions[bot] cbc0ced701 chore: update generated content 2026-05-28 10:18:59 +00:00
dependabot[bot] 55d77601d7 chore(deps): Bump @actions/github from 9.0.0 to 9.1.1
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 9.0.0 to 9.1.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-version: 9.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 10:17:58 +00:00
CrazyMax f25e8d2521 Merge pull request #665 from docker/dependabot/npm_and_yarn/semver-7.8.0
chore(deps): Bump semver from 7.7.4 to 7.8.1
2026-05-28 11:35:07 +02:00
github-actions[bot] 8707af5b28 chore: update generated content 2026-05-28 08:44:56 +00:00
dependabot[bot] f5b5258ae1 chore(deps): Bump semver from 7.7.4 to 7.8.1
Bumps [semver](https://github.com/npm/node-semver) from 7.7.4 to 7.8.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.7.4...v7.8.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-version: 7.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 08:43:59 +00:00
CrazyMax 83fa4edf37 Merge pull request #664 from docker/dependabot/npm_and_yarn/moment-timezone-0.6.2
chore(deps): Bump moment-timezone from 0.6.1 to 0.6.2
2026-05-28 10:41:57 +02:00
github-actions[bot] c57fc5591a chore: update generated content 2026-05-28 08:28:29 +00:00
dependabot[bot] 9c446bddcb chore(deps): Bump moment-timezone from 0.6.1 to 0.6.2
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.6.1...0.6.2)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-version: 0.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 08:27:31 +00:00
CrazyMax 9da27ef7f4 Merge pull request #673 from docker/dependabot/npm_and_yarn/tmp-0.2.7
chore(deps): Bump tmp from 0.2.5 to 0.2.7
2026-05-28 10:24:48 +02:00
github-actions[bot] ba2f556688 chore: update generated content 2026-05-28 08:21:40 +00:00
dependabot[bot] 47ed4f4109 chore(deps): Bump tmp from 0.2.5 to 0.2.7
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.5 to 0.2.7.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.5...v0.2.7)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 08:20:41 +00:00
CrazyMax e25b2146bd Merge pull request #674 from docker/dependabot/github_actions/crazy-max/ghaction-dump-context-3.1.0
chore(deps): Bump crazy-max/ghaction-dump-context from 3.0.0 to 3.1.0
2026-05-28 09:57:10 +02:00
dependabot[bot] a8639b7509 chore(deps): Bump crazy-max/ghaction-dump-context from 3.0.0 to 3.1.0
Bumps [crazy-max/ghaction-dump-context](https://github.com/crazy-max/ghaction-dump-context) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/crazy-max/ghaction-dump-context/releases)
- [Commits](https://github.com/crazy-max/ghaction-dump-context/compare/5d2753e7076f4568c7729971e25231f32147e2d8...4d9eeaf15dd59aa4346919ea84a84ccf514b4db8)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-dump-context
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 07:55:44 +00:00
CrazyMax 4e03f56500 Merge pull request #671 from docker/sec-cli/ignore-scripts-fix-20260527-193116
ci: add ignore-scripts to Node package manager config (20260527-193116)
2026-05-28 09:53:58 +02:00
securityeng-bot[bot] 620026c7c4 ci: enforce ignore-scripts policy for Node package managers 2026-05-27 20:04:39 +00:00
CrazyMax 17e943b674 Merge pull request #667 from docker/dependabot/github_actions/docker/build-push-action-7.2.0
chore(deps): Bump docker/build-push-action from 7.1.0 to 7.2.0
2026-05-26 17:30:38 +02:00
CrazyMax da0e8cb6fa Merge pull request #669 from docker/dependabot/github_actions/docker/setup-buildx-action-4.1.0
chore(deps): Bump docker/setup-buildx-action from 4.0.0 to 4.1.0
2026-05-26 17:30:36 +02:00
CrazyMax 62878a8cd8 Merge pull request #670 from docker/dependabot/github_actions/github/codeql-action-4.36.0
chore(deps): Bump github/codeql-action from 4.35.5 to 4.36.0
2026-05-26 17:30:33 +02:00
dependabot[bot] 7fff4a866b chore(deps): Bump github/codeql-action from 4.35.5 to 4.36.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.35.5 to 4.36.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9e0d7b8d25671d64c341c19c0152d693099fb5ba...7211b7c8077ea37d8641b6271f6a365a22a5fbfa)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-26 15:28:46 +00:00
dependabot[bot] 80c12fa72e chore(deps): Bump docker/build-push-action from 7.1.0 to 7.2.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/bcafcacb16a39f128d818304e6c9c0c18556b85f...f9f3042f7e2789586610d6e8b85c8f03e5195baf)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-26 15:27:35 +00:00
dependabot[bot] cb88e1e24e chore(deps): Bump docker/setup-buildx-action from 4.0.0 to 4.1.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd...d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-26 15:27:27 +00:00
CrazyMax 8904ec6ac8 Merge pull request #668 from docker/dependabot/github_actions/docker/bake-action-7.2.0
chore(deps): Bump docker/bake-action from 7.1.0 to 7.2.0
2026-05-26 17:26:12 +02:00
dependabot[bot] 133aa67758 chore(deps): Bump docker/bake-action from 7.1.0 to 7.2.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/a66e1c87e2eca0503c343edf1d208c716d54b8a8...6614cfa25eff9a0b2b2697efb0b6159e7680d584)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-26 00:56:40 +00:00
CrazyMax 80c7e94dd9 Merge pull request #613 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.80.0
chore(deps): Bump @docker/actions-toolkit from 0.79.0 to 0.90.0
2026-05-22 14:37:45 +02:00
github-actions[bot] 8e0ddab90c chore: update generated content 2026-05-22 12:36:07 +00:00
dependabot[bot] a8db14bd86 chore(deps): Bump @docker/actions-toolkit from 0.79.0 to 0.90.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.79.0 to 0.90.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.79.0...v0.90.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.80.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 12:35:07 +00:00
CrazyMax 63a7371ee0 Merge pull request #617 from docker/dependabot/npm_and_yarn/csv-parse-6.2.0
chore(deps): Bump csv-parse from 6.1.0 to 6.2.1
2026-05-22 14:32:06 +02:00
github-actions[bot] c6916a6cf8 chore: update generated content 2026-05-22 12:26:28 +00:00
dependabot[bot] aca9205632 chore(deps): Bump csv-parse from 6.1.0 to 6.2.1
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 6.1.0 to 6.2.1.
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@6.2.1/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 12:25:32 +00:00
CrazyMax 9dcfe60f10 Merge pull request #629 from docker/dependabot/npm_and_yarn/handlebars-4.7.9
chore(deps): Bump handlebars from 4.7.8 to 4.7.9
2026-05-22 14:23:33 +02:00
github-actions[bot] 43dea7677c chore: update generated content 2026-05-22 12:20:24 +00:00
dependabot[bot] 7a56f5af0a chore(deps): Bump handlebars from 4.7.8 to 4.7.9
Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.8 to 4.7.9.
- [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md)
- [Commits](https://github.com/handlebars-lang/handlebars.js/compare/v4.7.8...v4.7.9)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-version: 4.7.9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 12:19:23 +00:00
CrazyMax e49e0aa5de Merge pull request #658 from docker/dependabot/npm_and_yarn/brace-expansion-5.0.6
chore(deps): Bump brace-expansion from 1.1.14 to 5.0.6
2026-05-22 14:16:38 +02:00
github-actions[bot] 97ffca02cc chore: update generated content 2026-05-22 12:14:39 +00:00
dependabot[bot] 792ab493f0 chore(deps): Bump brace-expansion from 1.1.14 to 5.0.6
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.14 to 5.0.6.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.14...v5.0.6)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 12:13:43 +00:00
CrazyMax 47a52a8886 Merge pull request #657 from docker/dependabot/npm_and_yarn/tar-7.5.15
chore(deps): Bump tar from 6.2.1 to 7.5.15
2026-05-22 14:11:51 +02:00
CrazyMax 30e3a5c71b Merge pull request #620 from docker/dependabot/npm_and_yarn/fast-xml-parser-5.5.6
chore(deps): Bump fast-xml-parser from 5.4.2 to 5.8.0
2026-05-22 14:10:03 +02:00
github-actions[bot] 5677a062dd chore: update generated content 2026-05-22 12:07:22 +00:00
dependabot[bot] 27ad663c44 chore(deps): Bump fast-xml-parser from 5.4.2 to 5.8.0
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 5.4.2 to 5.8.0.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.4.2...v5.8.0)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-version: 5.5.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 12:06:30 +00:00
CrazyMax b83758ab83 Merge pull request #614 from docker/dependabot/npm_and_yarn/undici-6.24.0
chore(deps): Bump undici from 6.23.0 to 6.25.0
2026-05-22 14:04:30 +02:00
github-actions[bot] b08aa41573 chore: update generated content 2026-05-22 12:01:11 +00:00
dependabot[bot] 1b54296ddb chore(deps): Bump undici from 6.23.0 to 6.25.0
Bumps [undici](https://github.com/nodejs/undici) from 6.23.0 to 6.25.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.23.0...v6.25.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.24.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 12:00:16 +00:00
CrazyMax 73ea5d3910 Merge pull request #651 from docker/dependabot/github_actions/crazy-max-dot-github-a3893cf95f
chore(deps): Bump the crazy-max-dot-github group across 1 directory with 2 updates
2026-05-22 13:57:53 +02:00
CrazyMax cbf5ecfb6e Merge pull request #652 from docker/dependabot/github_actions/actions/setup-node-6.4.0
chore(deps): Bump actions/setup-node from 6.3.0 to 6.4.0
2026-05-22 13:57:34 +02:00
CrazyMax 7635ada344 Merge pull request #656 from docker/dependabot/github_actions/actions/create-github-app-token-3.2.0
chore(deps): Bump actions/create-github-app-token from 3.1.1 to 3.2.0
2026-05-22 13:57:13 +02:00
CrazyMax b97a91b21a Merge pull request #659 from docker/dependabot/github_actions/github/codeql-action-4.35.5
chore(deps): Bump github/codeql-action from 4.35.2 to 4.35.5
2026-05-22 13:56:50 +02:00
CrazyMax eb7e4a1a09 Merge pull request #660 from docker/dependabot/github_actions/codecov/codecov-action-6.0.1
chore(deps): Bump codecov/codecov-action from 6.0.0 to 6.0.1
2026-05-22 13:56:30 +02:00
dependabot[bot] 87b2898f8d chore(deps): Bump the crazy-max-dot-github group across 1 directory with 2 updates
Bumps the crazy-max-dot-github group with 2 updates in the / directory: [crazy-max/.github/.github/workflows/pr-assign-author.yml](https://github.com/crazy-max/.github) and [crazy-max/.github/.github/workflows/zizmor.yml](https://github.com/crazy-max/.github).


Updates `crazy-max/.github/.github/workflows/pr-assign-author.yml` from 1.6.0 to 1.8.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/d89fe92d808a15e2b2ed5cdb62db7c172c31410d...9ba6e6f9450baf3b1237f8035c1fdc45932510bd)

Updates `crazy-max/.github/.github/workflows/zizmor.yml` from 1.6.0 to 1.8.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/d89fe92d808a15e2b2ed5cdb62db7c172c31410d...9ba6e6f9450baf3b1237f8035c1fdc45932510bd)

---
updated-dependencies:
- dependency-name: crazy-max/.github/.github/workflows/pr-assign-author.yml
  dependency-version: 1.7.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/zizmor.yml
  dependency-version: 1.7.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-21 19:56:04 +00:00
CrazyMax 1b2e78b2f1 Merge pull request #661 from crazy-max/zizmor-fixes
ci: restrict update-dist GitHub App token scope
2026-05-21 14:57:49 +02:00
CrazyMax 0569d83a01 ci: restrict update-dist GitHub App token scope
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-05-21 14:26:18 +02:00
dependabot[bot] 2852e5544b chore(deps): Bump codecov/codecov-action from 6.0.0 to 6.0.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/57e3a136b779b570ffcdbf80b3bdc90e7fab3de2...e79a6962e0d4c0c17b229090214935d2e33f8354)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-20 02:54:20 +00:00
dependabot[bot] b2d63e72ae chore(deps): Bump github/codeql-action from 4.35.2 to 4.35.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.35.2 to 4.35.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/95e58e9a2cdfd71adc6e0353d5c52f41a045d225...9e0d7b8d25671d64c341c19c0152d693099fb5ba)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-19 04:34:16 +00:00
dependabot[bot] 15f2e7f938 chore(deps): Bump tar from 6.2.1 to 7.5.15
Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.5.15.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.5.15)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.15
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-15 00:40:01 +00:00
dependabot[bot] c53b86815a chore(deps): Bump actions/create-github-app-token from 3.1.1 to 3.2.0
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/1b10c78c7865c340bc4f6099eb2f838309f1e8c3...bcd2ba49218906704ab6c1aa796996da409d3eb1)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-14 19:23:31 +00:00
dependabot[bot] 25b70a676c chore(deps): Bump actions/setup-node from 6.3.0 to 6.4.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-27 22:59:59 +00:00
CrazyMax 4f5b523467 Merge pull request #630 from docker/dependabot/npm_and_yarn/brace-expansion-1.1.13
chore(deps): Bump brace-expansion from 1.1.12 to 1.1.14
2026-04-27 14:19:26 +02:00
github-actions[bot] fc08c1af45 chore: update generated content 2026-04-27 12:17:51 +00:00
dependabot[bot] 53adf7e0c2 chore(deps): Bump brace-expansion from 1.1.12 to 1.1.14
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.12 to 1.1.14.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.12...v1.1.14)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.13
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-27 12:16:56 +00:00
Tõnis Tiigi 9725dce4ec Merge pull request #650 from crazy-max/fix-yarnlock
fix malformed yarn.lock
2026-04-27 14:14:02 +02:00
CrazyMax 1ca9d11fdb fix malformed yarn.lock
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-04-27 09:55:53 +02:00
CrazyMax aa5e42bc43 Merge pull request #621 from docker/dependabot/npm_and_yarn/glob-10.5.0
chore(deps): Bump glob from 10.3.15 to 10.5.0
2026-04-27 09:42:19 +02:00
CrazyMax 09c39d7e3d Merge pull request #623 from docker/dependabot/npm_and_yarn/flatted-3.4.2
chore(deps): Bump flatted from 3.3.3 to 3.4.2
2026-04-27 09:41:59 +02:00
CrazyMax b0d9a8511d Merge pull request #626 from docker/dependabot/npm_and_yarn/picomatch-4.0.4
chore(deps): Bump picomatch from 4.0.3 to 4.0.4
2026-04-27 09:41:41 +02:00
CrazyMax 0b0cf52037 Merge pull request #637 from docker/dependabot/npm_and_yarn/vite-7.3.2
chore(deps): Bump vite from 7.3.1 to 7.3.2
2026-04-27 09:41:04 +02:00
CrazyMax 84dc0051ed Merge pull request #639 from docker/dependabot/npm_and_yarn/lodash-4.18.1
chore(deps): Bump lodash from 4.17.23 to 4.18.1
2026-04-27 09:40:45 +02:00
CrazyMax 6e706bd386 Merge pull request #649 from docker/dependabot/npm_and_yarn/postcss-8.5.10
chore(deps): Bump postcss from 8.5.6 to 8.5.10
2026-04-27 09:40:26 +02:00
CrazyMax b110e1928a Merge pull request #641 from docker/dependabot/github_actions/actions/github-script-9.0.0
chore(deps): Bump actions/github-script from 8.0.0 to 9.0.0
2026-04-27 09:38:25 +02:00
CrazyMax db51f20eda Merge pull request #642 from docker/dependabot/github_actions/docker/bake-action-7.1.0
chore(deps): Bump docker/bake-action from 7.0.0 to 7.1.0
2026-04-27 09:38:08 +02:00
CrazyMax 6600503189 Merge pull request #643 from docker/dependabot/github_actions/docker/build-push-action-7.1.0
chore(deps): Bump docker/build-push-action from 7.0.0 to 7.1.0
2026-04-27 09:37:51 +02:00
CrazyMax 03027a6dec Merge pull request #645 from docker/dependabot/github_actions/github/codeql-action-4.35.2
chore(deps): Bump github/codeql-action from 4.35.1 to 4.35.2
2026-04-27 09:37:35 +02:00
CrazyMax 56e4e9c0bb Merge pull request #640 from docker/dependabot/github_actions/actions/create-github-app-token-3.1.1
chore(deps): Bump actions/create-github-app-token from 3.0.0 to 3.1.1
2026-04-27 09:37:13 +02:00
dependabot[bot] 56dca0c993 chore(deps): Bump vite from 7.3.1 to 7.3.2
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-24 17:41:43 +00:00
dependabot[bot] 194d9dfbc5 chore(deps): Bump picomatch from 4.0.3 to 4.0.4
Bumps [picomatch](https://github.com/micromatch/picomatch) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/4.0.3...4.0.4)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-24 17:41:30 +00:00
dependabot[bot] a39c67c6e6 chore(deps): Bump postcss from 8.5.6 to 8.5.10
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.6 to 8.5.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.6...8.5.10)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.10
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-24 17:41:15 +00:00
Tõnis Tiigi 59ccfb174a Merge pull request #648 from crazy-max/esbuild
replace ncc with esbuild for action bundling
2026-04-24 10:39:23 -07:00
CrazyMax 710075a097 replace ncc with esbuild for action bundling
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-04-24 11:12:40 +02:00
dependabot[bot] da96386992 chore(deps): Bump github/codeql-action from 4.35.1 to 4.35.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.35.1 to 4.35.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/c10b8064de6f491fea524254123dbe5e09572f13...95e58e9a2cdfd71adc6e0353d5c52f41a045d225)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-17 19:23:46 +00:00
Tõnis Tiigi deaa0dee56 Merge pull request #644 from crazy-max/fix-zizmor
ci(zizmor): update rules
2026-04-15 14:25:48 -07:00
CrazyMax 0865878ea7 ci(zizmor): update rules
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-04-15 16:01:58 +02:00
dependabot[bot] 264f94771d chore(deps): Bump docker/build-push-action from 7.0.0 to 7.1.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/d08e5c354a6adb9ed34480a06d141179aa583294...bcafcacb16a39f128d818304e6c9c0c18556b85f)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 20:25:05 +00:00
dependabot[bot] a78c5dda00 chore(deps): Bump docker/bake-action from 7.0.0 to 7.1.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/82490499d2e5613fcead7e128237ef0b0ea210f7...a66e1c87e2eca0503c343edf1d208c716d54b8a8)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 20:24:53 +00:00
dependabot[bot] c3bf319c22 chore(deps): Bump actions/github-script from 8.0.0 to 9.0.0
Bumps [actions/github-script](https://github.com/actions/github-script) from 8.0.0 to 9.0.0.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/ed597411d8f924073f98dfc5c65a23a2325f34cd...3a2844b7e9c422d3c10d287c895573f7108da1b3)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 20:23:26 +00:00
dependabot[bot] dd1f6cb7c8 chore(deps): Bump actions/create-github-app-token from 3.0.0 to 3.1.1
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/f8d387b68d61c58ab83c6c016672934102569859...1b10c78c7865c340bc4f6099eb2f838309f1e8c3)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 20:23:20 +00:00
dependabot[bot] 42970c56ae chore(deps): Bump lodash from 4.17.23 to 4.18.1
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-09 08:53:54 +00:00
CrazyMax a7807070e6 Merge pull request #638 from docker/dependabot/github_actions/crazy-max-dot-github-f0991e81fd
chore(deps): Bump the crazy-max-dot-github group with 2 updates
2026-04-09 10:22:09 +02:00
dependabot[bot] 445fddb648 chore(deps): Bump the crazy-max-dot-github group with 2 updates
Bumps the crazy-max-dot-github group with 2 updates: [crazy-max/.github/.github/workflows/pr-assign-author.yml](https://github.com/crazy-max/.github) and [crazy-max/.github/.github/workflows/zizmor.yml](https://github.com/crazy-max/.github).


Updates `crazy-max/.github/.github/workflows/pr-assign-author.yml` from 1.3.0 to 1.6.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/bb328ea508cd6a89d0865555ddbeb148e5724aed...d89fe92d808a15e2b2ed5cdb62db7c172c31410d)

Updates `crazy-max/.github/.github/workflows/zizmor.yml` from 1.3.0 to 1.6.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/bb328ea508cd6a89d0865555ddbeb148e5724aed...d89fe92d808a15e2b2ed5cdb62db7c172c31410d)

---
updated-dependencies:
- dependency-name: crazy-max/.github/.github/workflows/pr-assign-author.yml
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/zizmor.yml
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-08 19:22:42 +00:00
CrazyMax c3b064c6d7 Merge pull request #636 from crazy-max/fix-update-dist
ci: stop update-dist reruns after generated dist pushes
2026-04-01 15:08:09 +02:00
CrazyMax 4254c7f183 ci: stop update-dist reruns after generated dist pushes
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-04-01 13:11:03 +02:00
CrazyMax 54262e8fce Merge pull request #634 from docker/dependabot/github_actions/codecov/codecov-action-6.0.0
chore(deps): Bump codecov/codecov-action from 5.5.4 to 6.0.0
2026-03-31 09:30:49 +02:00
CrazyMax 65e2f1ec2d Merge pull request #635 from docker/dependabot/github_actions/crazy-max/ghaction-dump-context-3.0.0
chore(deps): Bump crazy-max/ghaction-dump-context from 2.3.0 to 3.0.0
2026-03-31 09:30:33 +02:00
dependabot[bot] f612a659e4 chore(deps): Bump crazy-max/ghaction-dump-context from 2.3.0 to 3.0.0
Bumps [crazy-max/ghaction-dump-context](https://github.com/crazy-max/ghaction-dump-context) from 2.3.0 to 3.0.0.
- [Release notes](https://github.com/crazy-max/ghaction-dump-context/releases)
- [Commits](https://github.com/crazy-max/ghaction-dump-context/compare/5355a8e5e6ac5a302e746a1c4b7747a0393863c8...5d2753e7076f4568c7729971e25231f32147e2d8)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-dump-context
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-31 01:52:31 +00:00
dependabot[bot] 1077d4b182 chore(deps): Bump codecov/codecov-action from 5.5.4 to 6.0.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.5.4 to 6.0.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/75cd11691c0faa626561e295848008c8a7dddffe...57e3a136b779b570ffcdbf80b3bdc90e7fab3de2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-31 01:52:14 +00:00
Tõnis Tiigi 12e32e61d3 Merge pull request #632 from crazy-max/zizmor
ci: zizmor workflow
2026-03-30 18:49:57 -07:00
CrazyMax 389e17934e fix zizmor findings
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-30 13:50:52 +02:00
CrazyMax 23d4d7612d ci: zizmor workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-30 13:49:18 +02:00
Tõnis Tiigi 4378dc6be7 Merge pull request #625 from crazy-max/update-crazy-max-actions
ci: bump crazy-max/.github to 1.1.0
2026-03-25 10:43:37 -07:00
CrazyMax 6884e07af7 ci: bump crazy-max/.github to 1.1.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-25 12:37:50 +01:00
dependabot[bot] c8a967b196 chore(deps): Bump flatted from 3.3.3 to 3.4.2
Bumps [flatted](https://github.com/WebReflection/flatted) from 3.3.3 to 3.4.2.
- [Commits](https://github.com/WebReflection/flatted/compare/v3.3.3...v3.4.2)

---
updated-dependencies:
- dependency-name: flatted
  dependency-version: 3.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-20 15:59:28 +00:00
CrazyMax 1107934206 Merge pull request #622 from crazy-max/codeql
ci: enable SAST scanning with CodeQL
2026-03-20 16:57:23 +01:00
CrazyMax 50e32640d5 ci: enable SAST scanning with CodeQL
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-20 11:51:51 +01:00
dependabot[bot] f5764bfd66 chore(deps): Bump glob from 10.3.15 to 10.5.0
Bumps [glob](https://github.com/isaacs/node-glob) from 10.3.15 to 10.5.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.3.15...v10.5.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 10.5.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-20 01:28:27 +00:00
CrazyMax d24d429af2 Merge pull request #619 from docker/dependabot/npm_and_yarn/moment-timezone-0.6.1
chore(deps): Bump moment-timezone from 0.6.0 to 0.6.1
2026-03-18 23:06:56 +01:00
github-actions[bot] d3cc762016 chore: update generated content 2026-03-18 19:24:41 +00:00
dependabot[bot] e724a31677 chore(deps): Bump moment-timezone from 0.6.0 to 0.6.1
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.6.0...0.6.1)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-version: 0.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-18 19:23:34 +00:00
Tõnis Tiigi dde548f160 Merge pull request #608 from crazy-max/update-readme
readme: update to v6
2026-03-16 17:57:09 -07:00
Tõnis Tiigi b13d25e5fc Merge pull request #609 from docker/dependabot/github_actions/docker/bake-action-7
chore(deps): Bump docker/bake-action from 6 to 7
2026-03-09 12:35:19 -07:00
CrazyMax f58488e265 Merge pull request #612 from docker/dependabot/github_actions/docker/build-push-action-7
chore(deps): Bump docker/build-push-action from 6 to 7
2026-03-09 16:25:29 +01:00
CrazyMax 414af88e96 ci: switch to matrix subaction
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-09 16:22:40 +01:00
dependabot[bot] 2c2d4fb584 chore(deps): Bump docker/build-push-action from 6 to 7
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6 to 7.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 19:22:22 +00:00
CrazyMax 85e876bd3a Merge pull request #610 from docker/dependabot/github_actions/docker/setup-buildx-action-4
chore(deps): Bump docker/setup-buildx-action from 3 to 4
2026-03-06 09:54:50 +01:00
CrazyMax 0b0903be56 readme: update to v6
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 22:25:27 +01:00
dependabot[bot] e2d26b25bd chore(deps): Bump docker/setup-buildx-action from 3 to 4
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-05 19:22:33 +00:00
dependabot[bot] a26abf68b2 chore(deps): Bump docker/bake-action from 6 to 7
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6 to 7.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-05 19:22:30 +00:00
Tõnis Tiigi 030e881283 Merge pull request #607 from crazy-max/allow-comments
preserve comments in list input values with commentNoInfix
2026-03-05 08:21:07 -08:00
CrazyMax 4b529ac4e5 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 17:02:53 +01:00
CrazyMax b0082b33bc preserve comments in list input values with commentNoInfix
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 17:02:53 +01:00
CrazyMax 7b19fec715 Merge pull request #604 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.77.0
chore(deps): Bump @docker/actions-toolkit from 0.68.0 to 0.79.0
2026-03-05 17:00:40 +01:00
CrazyMax 281c9b0599 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 09:24:56 +01:00
CrazyMax 5f43b3b4f4 test: stabilize github mock setup since ESM
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 09:23:56 +01:00
CrazyMax 9d53276575 github class moved since actions-toolkit v0.77.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 09:23:56 +01:00
dependabot[bot] eaa3d3973e chore(deps): Bump @docker/actions-toolkit from 0.68.0 to 0.77.0
Dependabot couldn't find the original pull request head commit, cdad825a9dc17122e84ab473271a55d7b8b3da06.
2026-03-05 08:21:31 +00:00
Tõnis Tiigi 6b695f7a8a Merge pull request #605 from crazy-max/node24
node 24 as default runtime
2026-03-04 17:36:23 -08:00
CrazyMax a1afadcb28 node 24 as default runtime
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-04 12:40:47 +01:00
CrazyMax c769610e5c Merge pull request #603 from docker/dependabot/npm_and_yarn/semver-7.7.4
chore(deps): Bump semver from 7.7.3 to 7.7.4
2026-03-04 10:52:19 +01:00
github-actions[bot] f0f930b111 chore: update generated content 2026-03-04 09:19:30 +00:00
dependabot[bot] f4771c2b1f chore(deps): Bump semver from 7.7.3 to 7.7.4
Bumps [semver](https://github.com/npm/node-semver) from 7.7.3 to 7.7.4.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.7.3...v7.7.4)

---
updated-dependencies:
- dependency-name: semver
  dependency-version: 7.7.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 09:18:03 +00:00
CrazyMax 538feedf47 Merge pull request #597 from docker/dependabot/npm_and_yarn/actions/github-9.0.0
chore(deps): Bump @actions/github from 6.0.1 to 9.0.0
2026-03-04 10:07:45 +01:00
CrazyMax 2c6e6d9d3b chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-03 16:00:55 +01:00
CrazyMax 8fd476a5a7 replace actions/github/lib/context deep imports with public typing
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-03 15:59:05 +01:00
dependabot[bot] a33d385eb1 chore(deps): Bump @actions/github from 6.0.1 to 9.0.0
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 6.0.1 to 9.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 13:57:21 +00:00
CrazyMax cb50be4508 Merge pull request #599 from docker/dependabot/npm_and_yarn/actions/core-3.0.0
chore(deps): Bump @actions/core from 1.11.1 to 3.0.0
2026-03-03 14:55:29 +01:00
github-actions[bot] 8fd95d6f08 chore: update generated content 2026-03-03 13:47:05 +00:00
dependabot[bot] a4e219a90d chore(deps): Bump @actions/core from 1.11.1 to 3.0.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.11.1 to 3.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 13:45:52 +00:00
CrazyMax 76c27c49eb Merge pull request #600 from docker/dependabot/npm_and_yarn/isaacs/brace-expansion-5.0.1
chore(deps): Bump @isaacs/brace-expansion from 5.0.0 to 5.0.1
2026-03-03 14:43:55 +01:00
github-actions[bot] 1ea5d4f1b0 chore: update generated content 2026-03-03 13:42:24 +00:00
dependabot[bot] 91c3fe061e chore(deps): Bump @isaacs/brace-expansion from 5.0.0 to 5.0.1
Bumps @isaacs/brace-expansion from 5.0.0 to 5.0.1.

---
updated-dependencies:
- dependency-name: "@isaacs/brace-expansion"
  dependency-version: 5.0.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 13:41:02 +00:00
CrazyMax f332e46fa5 Merge pull request #588 from docker/dependabot/npm_and_yarn/lodash-4.17.23
chore(deps): Bump lodash from 4.17.21 to 4.17.23
2026-03-03 14:38:56 +01:00
CrazyMax 51b601f22d Merge pull request #602 from crazy-max/esm
switch to ESM and update config/test wiring
2026-03-03 14:38:00 +01:00
CrazyMax 8480620af8 test: use github mock instead of fixture for context
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-02 09:44:39 +01:00
CrazyMax 8e71445576 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-02 09:44:39 +01:00
CrazyMax f57c915b64 dockerfile: fix vendoring
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-02 09:44:38 +01:00
CrazyMax d92a8d0b86 update dev dependencies
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-28 15:58:17 +01:00
CrazyMax cf6a6ce0f7 switch to ESM and update config/test wiring
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-28 15:57:06 +01:00
CrazyMax d5be006250 switch from jest to vitest
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-28 15:48:21 +01:00
CrazyMax a60f0f62b5 Merge pull request #598 from crazy-max/update-dist-workflow
ci: update-dist workflow
2026-01-29 21:27:37 +01:00
CrazyMax 10f4f1aaa5 ci: update-dist workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-29 16:25:39 +01:00
dependabot[bot] 70c914a6f8 chore(deps): Bump lodash from 4.17.21 to 4.17.23
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 00:40:49 +00:00
Tõnis Tiigi ed95091677 Merge pull request #579 from crazy-max/update-dev-deps
update dev dependencies
2026-01-07 16:39:57 -08:00
CrazyMax 57670b6268 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:09:10 +01:00
CrazyMax d636a41a2f update jest config since 30.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:07:43 +01:00
CrazyMax 9c747a7ed1 fix lint issues
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:07:42 +01:00
CrazyMax c98baa7757 migrate eslint config to new format required since 9.0.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:07:36 +01:00
CrazyMax ad1f8b1f99 update dev dependencies
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 16:55:49 +01:00
CrazyMax f0a4bc3c2d Merge pull request #574 from osman-butt/update-checkout-v6
docs: update checkout action to v6 in README
2026-01-05 16:45:15 +01:00
osman-butt 9b6cf6ec37 docs: update checkout action to v6 in README
Signed-off-by: osman-butt <butt.osman@gmail.com>
2025-12-10 01:50:17 +01:00
40 changed files with 9761 additions and 5398 deletions

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
/dist/**
/coverage/**
/node_modules/**
-24
View File
@@ -1,24 +0,0 @@
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jest",
"prettier"
]
}
+13
View File
@@ -4,6 +4,15 @@ updates:
directory: "/"
schedule:
interval: "daily"
cooldown:
default-days: 2
groups:
crazy-max-dot-github:
patterns:
- "crazy-max/.github/*"
codeql-actions:
patterns:
- "github/codeql-action/*"
labels:
- "dependencies"
- "bot"
@@ -11,6 +20,10 @@ updates:
directory: "/"
schedule:
interval: "daily"
cooldown:
default-days: 2
exclude:
- "@docker/actions-toolkit"
versioning-strategy: "increase"
allow:
- dependency-type: "production"
+48 -45
View File
@@ -1,5 +1,8 @@
name: ci
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -31,7 +34,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Docker meta
uses: ./
@@ -43,10 +46,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -80,10 +83,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -116,10 +119,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -150,10 +153,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -181,10 +184,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -204,10 +207,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -225,10 +228,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -255,10 +258,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -285,10 +288,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -314,16 +317,16 @@ jobs:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
image: registry:2.8.3@sha256:a3d8aaa63ed8681a604f1dea0aa03f100d5895b6a58ace528858a7b332415373
ports:
- 5000:5000
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver-opts: network=host
@@ -345,7 +348,7 @@ jobs:
type=sha
-
name: Build and push to local registry
uses: docker/build-push-action@v6
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: ./test
file: ./test/Dockerfile
@@ -368,10 +371,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
-
@@ -393,7 +396,7 @@ jobs:
type=sha
-
name: Build
uses: docker/bake-action@v6
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
files: |
./test/docker-bake.hcl
@@ -413,10 +416,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -431,7 +434,7 @@ jobs:
sep-tags: ${{ matrix.sep }}
-
name: Tags
uses: actions/github-script@v8
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
console.log(`${{ steps.meta.outputs.tags }}`);
@@ -441,10 +444,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -462,7 +465,7 @@ jobs:
maintainer=Foo
-
name: Build
uses: docker/build-push-action@v6
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: ./test
file: ./test/output.Dockerfile
@@ -480,7 +483,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Docker meta
id: meta
@@ -504,10 +507,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
-
@@ -531,7 +534,7 @@ jobs:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
-
name: Build
uses: docker/bake-action@v6
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
files: |
./test/docker-bake.hcl
@@ -545,10 +548,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -571,10 +574,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: latest
-
@@ -583,7 +586,7 @@ jobs:
uses: ./
-
name: Build
uses: docker/bake-action@v6
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
source: .
files: |
@@ -604,10 +607,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
with:
version: ${{ env.BUILDX_VERSION }}
driver: docker
@@ -628,7 +631,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Dump context
uses: crazy-max/ghaction-dump-context@v2
uses: crazy-max/ghaction-dump-context@4d9eeaf15dd59aa4346919ea84a84ccf514b4db8 # v3.1.0
+46
View File
@@ -0,0 +1,46 @@
name: codeql
permissions:
contents: read
on:
push:
branches:
- 'master'
- 'releases/v*'
pull_request:
env:
NODE_VERSION: "24"
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
-
name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Enable corepack
run: |
corepack enable
yarn --version
-
name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ env.NODE_VERSION }}
-
name: Initialize CodeQL
uses: github/codeql-action/init@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
with:
languages: javascript-typescript
build-mode: none
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
with:
category: "/language:javascript-typescript"
+2 -2
View File
@@ -4,14 +4,14 @@ permissions:
contents: read
on:
pull_request_target:
pull_request_target: # zizmor: ignore[dangerous-triggers] safe to use without checkout
types:
- opened
- reopened
jobs:
run:
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@1b673f36fad86812f538c1df9794904038a23cbf
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@46267a6e61cd56aac2fc79943df180152f4c89d6 # v1.10.1
permissions:
contents: read
pull-requests: write
+9 -2
View File
@@ -1,5 +1,12 @@
name: publish
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
release:
types:
@@ -15,7 +22,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Publish
uses: actions/publish-immutable-action@v0.0.4
uses: actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978 # v0.0.4
+6 -3
View File
@@ -1,5 +1,8 @@
name: test
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -17,16 +20,16 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Test
uses: docker/bake-action@v6
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
source: .
targets: test
-
name: Upload coverage
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
+58
View File
@@ -0,0 +1,58 @@
name: update-dist
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types:
- opened
- synchronize
jobs:
update-dist:
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
runs-on: ubuntu-latest
steps:
-
name: GitHub auth token from GitHub App
id: docker-read-app
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}
owner: docker
repositories: metadata-action
permission-contents: write
-
name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
token: ${{ steps.docker-read-app.outputs.token }}
-
name: Build
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
source: .
targets: build
-
name: Commit and push dist
run: |
if [ -n "$(git status --porcelain -- dist)" ]; then
(
set -x
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist
git commit -m "[dependabot skip] chore: update generated content"
git push
)
else
echo "No changes in dist"
fi
+9 -6
View File
@@ -1,5 +1,8 @@
name: validate
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -15,15 +18,15 @@ jobs:
prepare:
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.generate.outputs.targets }}
matrix: ${{ steps.generate.outputs.matrix }}
steps:
-
name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: List targets
name: Generate matrix
id: generate
uses: docker/bake-action/subaction/list-targets@v6
uses: docker/bake-action/subaction/matrix@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
target: validate
@@ -34,10 +37,10 @@ jobs:
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }}
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
steps:
-
name: Validate
uses: docker/bake-action@v6
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
targets: ${{ matrix.target }}
+29
View File
@@ -0,0 +1,29 @@
name: zizmor
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'master'
- 'releases/v*'
tags:
- 'v*'
pull_request:
jobs:
zizmor:
uses: crazy-max/.github/.github/workflows/zizmor.yml@46267a6e61cd56aac2fc79943df180152f4c89d6 # v1.10.1
permissions:
contents: read
security-events: write
with:
min-severity: medium
min-confidence: medium
persona: pedantic
+1 -2
View File
@@ -6,6 +6,5 @@
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
"arrowParens": "avoid"
}
+11 -4
View File
@@ -1,10 +1,10 @@
# https://yarnpkg.com/configuration/yarnrc
compressionLevel: mixed
enableGlobalCache: false
enableHardenedMode: true
nodeLinker: node-modules
logFilters:
- code: YN0004
level: discard
- code: YN0013
level: discard
- code: YN0019
@@ -14,4 +14,11 @@ logFilters:
- code: YN0086
level: discard
nodeLinker: node-modules
npmPreapprovedPackages:
- "@docker/actions-toolkit"
compressionLevel: mixed
enableGlobalCache: false
enableHardenedMode: true
enableScripts: false
npmMinimalAgeGate: 2d
+20 -28
View File
@@ -75,27 +75,23 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v5
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: name/app
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -129,13 +125,10 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v5
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
name/app
@@ -147,15 +140,14 @@ jobs:
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -210,7 +202,7 @@ jobs:
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
name/app
@@ -222,7 +214,7 @@ jobs:
type=sha
-
name: Build
uses: docker/bake-action@v6
uses: docker/bake-action@v7
with:
files: |
./docker-bake.hcl
@@ -269,7 +261,7 @@ similar to the previous one:
```yaml
-
name: Build
uses: docker/bake-action@v6
uses: docker/bake-action@v7
with:
files: |
./docker-bake.hcl
@@ -336,7 +328,7 @@ Alternatively, each output is also exported as an environment variable when `DOC
So it can be used with our [Docker Build Push action](https://github.com/docker/build-push-action/):
```yaml
- uses: docker/build-push-action@v6
- uses: docker/build-push-action@v7
with:
build-args: |
DOCKER_METADATA_OUTPUT_JSON
@@ -728,7 +720,7 @@ increase this length for larger repositories by setting the
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
name/app
@@ -939,13 +931,13 @@ that you can reuse them further in your workflow using the [`fromJSON` function]
```yaml
-
name: Docker meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
id: meta
with:
images: name/app
-
name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -965,7 +957,7 @@ this:
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: name/app
labels: |
@@ -987,12 +979,12 @@ of the `metadata-action`:
```yaml
-
name: Docker meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: name/app
-
name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
@@ -1003,12 +995,12 @@ The same can be done with the [`bake-action`](https://github.com/docker/bake-act
```yaml
-
name: Docker meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: name/app
-
name: Build
uses: docker/bake-action@v6
uses: docker/bake-action@v7
with:
files: |
./docker-bake.hcl
@@ -1032,14 +1024,14 @@ Please consult the documentation of your registry.
```yaml
-
name: Docker meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: name/app
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
-
name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
-223
View File
@@ -1,223 +0,0 @@
import {jest} from '@jest/globals';
export const context = {
repo: {
owner: 'docker',
repo: 'actions-toolkit'
},
ref: 'refs/heads/master',
runId: 123,
payload: {
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
base_ref: null,
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
commits: [
{
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
message: 'hello dev',
timestamp: '2022-04-19T11:27:24+02:00',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
}
],
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
created: false,
deleted: false,
forced: false,
head_commit: {
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
message: 'hello dev',
timestamp: '2022-04-19T11:27:24+02:00',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
},
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
events_url: 'https://api.github.com/orgs/docker/events',
hooks_url: 'https://api.github.com/orgs/docker/hooks',
id: 5429470,
issues_url: 'https://api.github.com/orgs/docker/issues',
login: 'docker',
members_url: 'https://api.github.com/orgs/docker/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
repos_url: 'https://api.github.com/orgs/docker/repos',
url: 'https://api.github.com/orgs/docker'
},
pusher: {
email: 'github@crazymax.dev',
name: 'crazy-max'
},
ref: 'refs/heads/dev',
repository: {
allow_forking: true,
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
clone_url: 'https://github.com/docker/test-docker-action.git',
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
created_at: 1596792180,
default_branch: 'master',
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
description: 'Test "Docker" Actions',
disabled: false,
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
fork: false,
forks: 1,
forks_count: 1,
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
full_name: 'docker/test-docker-action',
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
git_url: 'git://github.com/docker/test-docker-action.git',
has_downloads: true,
has_issues: true,
has_pages: false,
has_projects: true,
has_wiki: true,
homepage: '',
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
html_url: 'https://github.com/docker/test-docker-action',
id: 285789493,
is_template: false,
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
language: 'JavaScript',
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
license: {
key: 'mit',
name: 'MIT License',
node_id: 'MDc6TGljZW5zZTEz',
spdx_id: 'MIT',
url: 'https://api.github.com/licenses/mit'
},
master_branch: 'master',
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
mirror_url: null,
name: 'test-docker-action',
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
open_issues: 6,
open_issues_count: 6,
organization: 'docker',
owner: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
email: 'info@docker.com',
events_url: 'https://api.github.com/users/docker/events{/privacy}',
followers_url: 'https://api.github.com/users/docker/followers',
following_url: 'https://api.github.com/users/docker/following{/other_user}',
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/docker',
id: 5429470,
login: 'docker',
name: 'docker',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
organizations_url: 'https://api.github.com/users/docker/orgs',
received_events_url: 'https://api.github.com/users/docker/received_events',
repos_url: 'https://api.github.com/users/docker/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
type: 'Organization',
url: 'https://api.github.com/users/docker'
},
private: true,
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
pushed_at: 1650360446,
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
size: 796,
ssh_url: 'git@github.com:docker/test-docker-action.git',
stargazers: 0,
stargazers_count: 0,
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
svn_url: 'https://github.com/docker/test-docker-action',
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
topics: [],
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
updated_at: '2022-04-19T09:05:09Z',
url: 'https://github.com/docker/test-docker-action',
visibility: 'private',
watchers: 0,
watchers_count: 0
},
sender: {
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
followers_url: 'https://api.github.com/users/crazy-max/followers',
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/crazy-max',
id: 1951866,
login: 'crazy-max',
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
repos_url: 'https://api.github.com/users/crazy-max/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
type: 'User',
url: 'https://api.github.com/users/crazy-max'
}
}
};
export const getOctokit = jest.fn(() => ({
rest: {
repos: {
getCommit: jest.fn(() =>
Promise.resolve({
data: {
commit: {
committer: {
date: '2024-11-13T13:42:28Z'
}
}
}
})
)
}
}
}));
+91 -56
View File
@@ -1,23 +1,11 @@
import {afterEach, beforeEach, describe, expect, test, it, jest} from '@jest/globals';
import * as dotenv from 'dotenv';
import * as fs from 'fs';
import * as path from 'path';
import {Context} from '@actions/github/lib/context';
import {Git} from '@docker/actions-toolkit/lib/git';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {beforeEach, describe, expect, test, it, vi} from 'vitest';
import {Git} from '@docker/actions-toolkit/lib/git.js';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
import * as context from '../src/context.js';
const toolkit = new Toolkit({githubToken: 'fake-github-token'});
beforeEach(() => {
jest.clearAllMocks();
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
return new Context();
});
});
describe('getInputs', () => {
beforeEach(() => {
process.env = Object.keys(process.env).reduce((object, key) => {
@@ -29,14 +17,14 @@ describe('getInputs', () => {
});
// prettier-ignore
test.each([
const cases: [number, Map<string, string>, context.Inputs][] = [
[
0,
new Map<string, string>([
['images', 'moby/buildkit\nghcr.io/moby/mbuildkit'],
]),
{
context: ContextSource.workflow,
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
@@ -47,7 +35,7 @@ describe('getInputs', () => {
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
} as Inputs
}
],
[
1,
@@ -59,7 +47,7 @@ describe('getInputs', () => {
['sep-annotations', ',']
]),
{
context: ContextSource.workflow,
context: context.ContextSource.workflow,
bakeTarget: 'metadata',
flavor: [],
githubToken: '',
@@ -70,7 +58,7 @@ describe('getInputs', () => {
sepTags: ',',
sepAnnotations: ',',
tags: [],
} as Inputs
}
],
[
2,
@@ -78,7 +66,7 @@ describe('getInputs', () => {
['images', 'moby/buildkit\n#comment\nghcr.io/moby/mbuildkit'],
]),
{
context: ContextSource.workflow,
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
@@ -89,53 +77,100 @@ describe('getInputs', () => {
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
} as Inputs
}
],
])(
'[%d] given %p as inputs, returns %p',
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
inputs.forEach((value: string, name: string) => {
setInput(name, value);
});
expect(await getInputs()).toEqual(expected);
}
);
[
3,
new Map<string, string>([
['labels', 'mylabel=foo#bar\n#comment\nanother=bar'],
]),
{
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
images: [],
labels: ['mylabel=foo#bar', 'another=bar'],
annotations: [],
sepLabels: '\n',
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
}
],
[
4,
new Map<string, string>([
['annotations', 'org.opencontainers.image.url=https://example.com/path#readme\n#comment\norg.opencontainers.image.source=https://github.com/docker/metadata-action'],
]),
{
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
images: [],
labels: [],
annotations: [
'org.opencontainers.image.url=https://example.com/path#readme',
'org.opencontainers.image.source=https://github.com/docker/metadata-action'
],
sepLabels: '\n',
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
}
],
[
5,
new Map<string, string>([
['tags', 'type=raw,value=foo#bar\n#comment'],
['flavor', 'prefix=v#1\n#comment'],
]),
{
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: ['prefix=v#1'],
githubToken: '',
images: [],
labels: [],
annotations: [],
sepLabels: '\n',
sepTags: '\n',
sepAnnotations: '\n',
tags: ['type=raw,value=foo#bar'],
}
],
];
test.each(cases)('[%d] given %o as inputs, returns %o', async (num: number, inputs: Map<string, string>, expected: context.Inputs) => {
inputs.forEach((value: string, name: string) => {
setInput(name, value);
});
const res = await context.getInputs();
expect(res).toEqual(expected);
});
});
describe('getContext', () => {
const originalEnv = process.env;
beforeEach(() => {
jest.resetModules();
process.env = {
...originalEnv,
...dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures/event_create_branch.env')))
};
});
afterEach(() => {
process.env = originalEnv;
});
it('workflow', async () => {
const context = await getContext(ContextSource.workflow, toolkit);
expect(context.ref).toEqual('refs/heads/dev');
expect(context.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
expect(context.commitDate).toEqual(new Date('2024-11-13T13:42:28.000Z'));
const ctx = await context.getContext(context.ContextSource.workflow, toolkit);
expect(ctx.ref).toEqual('refs/heads/dev');
expect(ctx.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
expect(ctx.commitDate).toEqual(new Date('2024-11-13T13:42:28.000Z'));
});
it('git', async () => {
jest.spyOn(Git, 'context').mockImplementation((): Promise<Context> => {
vi.spyOn(Git, 'context').mockImplementation((): Promise<context.Context> => {
return Promise.resolve({
ref: 'refs/heads/git-test',
sha: 'git-test-sha'
} as Context);
} as context.Context);
});
jest.spyOn(Git, 'commitDate').mockImplementation(async (): Promise<Date> => {
vi.spyOn(Git, 'commitDate').mockImplementation(async (): Promise<Date> => {
return new Date('2023-01-01T13:42:28.000Z');
});
const context = await getContext(ContextSource.git, toolkit);
expect(context.ref).toEqual('refs/heads/git-test');
expect(context.sha).toEqual('git-test-sha');
expect(context.commitDate).toEqual(new Date('2023-01-01T13:42:28.000Z'));
const ctx = await context.getContext(context.ContextSource.git, toolkit);
expect(ctx.ref).toEqual('refs/heads/git-test');
expect(ctx.sha).toEqual('git-test-sha');
expect(ctx.commitDate).toEqual(new Date('2023-01-01T13:42:28.000Z'));
});
});
+3 -3
View File
@@ -1,6 +1,6 @@
import {describe, expect, test} from '@jest/globals';
import {describe, expect, test} from 'vitest';
import {Flavor, Transform} from '../src/flavor';
import {Flavor, Transform} from '../src/flavor.js';
describe('transform', () => {
// prettier-ignore
@@ -175,7 +175,7 @@ describe('transform', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
+3 -3
View File
@@ -1,6 +1,6 @@
import {describe, expect, test} from '@jest/globals';
import {describe, expect, test} from 'vitest';
import {Transform, Image} from '../src/image';
import {Transform, Image} from '../src/image.js';
describe('transform', () => {
// prettier-ignore
@@ -95,7 +95,7 @@ describe('transform', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
+62 -52
View File
@@ -1,47 +1,65 @@
import {beforeEach, describe, expect, jest, test} from '@jest/globals';
import {beforeEach, describe, expect, test, vi} from 'vitest';
import * as fs from 'fs';
import * as path from 'path';
import * as dotenv from 'dotenv';
import {Context} from '@actions/github/lib/context';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github';
import {GitHub} from '@docker/actions-toolkit/lib/github/github.js';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github/github.js';
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
import {Meta, Version} from '../src/meta';
import {ContextSource, getContext, getInputs, Inputs} from '../src/context.js';
import type {Context as MetadataContext} from '../src/context.js';
import {Meta, Version} from '../src/meta.js';
import repoFixture from './fixtures/repo.json';
import repoFixture from './fixtures/repo.json' with {type: 'json'};
jest.spyOn(GitHub.prototype, 'repoData').mockImplementation((): Promise<GitHubRepo> => {
vi.spyOn(GitHub.prototype, 'repoData').mockImplementation((): Promise<GitHubRepo> => {
return <Promise<GitHubRepo>>(repoFixture as unknown);
});
jest.spyOn(global.Date.prototype, 'toISOString').mockImplementation(() => {
vi.spyOn(global.Date.prototype, 'toISOString').mockImplementation(() => {
return '2020-01-10T00:30:00.000Z';
});
jest.mock('moment-timezone', () => {
return () => (jest.requireActual('moment-timezone') as typeof import('moment-timezone'))('2020-01-10T00:30:00.000Z');
vi.mock('moment-timezone', async () => {
const actual = await vi.importActual<unknown>('moment-timezone');
const actualModule = actual as {default?: (input?: string | Date) => unknown};
const momentTimezone = (typeof actual === 'function' ? actual : actualModule.default) as (input?: string | Date) => unknown;
return {
__esModule: true,
default: () => momentTimezone('2020-01-10T00:30:00.000Z')
};
});
beforeEach(() => {
jest.clearAllMocks();
vi.clearAllMocks();
Object.keys(process.env).forEach(function (key) {
if (key !== 'GITHUB_TOKEN' && key.startsWith('GITHUB_')) {
delete process.env[key];
}
});
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
//@ts-expect-error partial info
vi.spyOn(GitHub, 'context', 'get').mockImplementation((): MetadataContext => {
const repository = process.env.GITHUB_REPOSITORY || 'docker/repo';
const [owner, repo] = repository.includes('/') ? repository.split('/', 2) : ['docker', 'repo'];
const eventPath = process.env.GITHUB_EVENT_PATH;
const payload = eventPath && fs.existsSync(eventPath) ? JSON.parse(fs.readFileSync(eventPath, 'utf8')) : {};
return {
...new Context(),
repo: {
owner: 'docker',
repo: 'repo'
}
};
payload,
eventName: process.env.GITHUB_EVENT_NAME || '',
sha: process.env.GITHUB_SHA || '',
ref: process.env.GITHUB_REF || '',
workflow: process.env.GITHUB_WORKFLOW || '',
action: process.env.GITHUB_ACTION || '',
actor: process.env.GITHUB_ACTOR || '',
job: process.env.GITHUB_JOB || '',
runAttempt: +(process.env.GITHUB_RUN_ATTEMPT || 1),
runNumber: +(process.env.GITHUB_RUN_NUMBER || 0),
runId: +(process.env.GITHUB_RUN_ID || 0),
apiUrl: process.env.GITHUB_API_URL || 'https://api.github.com',
serverUrl: process.env.GITHUB_SERVER_URL || 'https://github.com',
graphqlUrl: process.env.GITHUB_GRAPHQL_URL || 'https://api.github.com/graphql',
repo: {owner, repo}
} as MetadataContext;
});
});
@@ -53,7 +71,7 @@ describe('isRawStatement', () => {
['{{ raw }}', true],
['{{ raw}}', true],
['{{raw}}', true],
])('given %p pattern', async (pattern: string, expected: boolean) => {
])('given %o pattern', async (pattern: string, expected: boolean) => {
expect(Meta.isRawStatement(pattern)).toEqual(expected);
});
});
@@ -79,7 +97,7 @@ const tagsLabelsTest = async (name: string, envFile: string, inputs: Inputs, exV
describe('null', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'null01',
@@ -133,12 +151,12 @@ describe('null', () => {
],
undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('push', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'push01',
@@ -856,12 +874,12 @@ describe('push', () => {
],
undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('tag', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'tag01',
@@ -2035,12 +2053,12 @@ describe('tag', () => {
],
undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('latest', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'latest01',
@@ -2377,12 +2395,12 @@ describe('latest', () => {
],
undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('pr', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'pr01',
@@ -2765,12 +2783,11 @@ describe('pr', () => {
],
undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('pr-head-sha', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'pr01',
@@ -3141,7 +3158,7 @@ describe('pr-head-sha', () => {
"org.opencontainers.image.version=src-2020-01-10T00-30-00Z",
]
],
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exVersion: Version, exTags: Array<string>, exLabelsAnnotations: Array<string>) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exVersion: Version, exTags: Array<string>, exLabelsAnnotations: Array<string>) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
process.env.DOCKER_METADATA_PR_HEAD_SHA = 'true';
@@ -3165,7 +3182,7 @@ describe('pr-head-sha', () => {
describe('schedule', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'schedule01',
@@ -3424,12 +3441,12 @@ describe('schedule', () => {
],
undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('release', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'release01',
@@ -3526,12 +3543,12 @@ describe('release', () => {
],
undefined
]
])('given %s with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('raw', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'raw01',
@@ -3906,12 +3923,11 @@ describe('raw', () => {
],
undefined
],
])('given %p wth %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('json', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'json01',
@@ -4261,7 +4277,7 @@ describe('json', () => {
]
}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
@@ -4275,7 +4291,6 @@ describe('json', () => {
describe('bakeFile', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'bakeFile01',
@@ -4777,7 +4792,7 @@ describe('bakeFile', () => {
}
}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
@@ -4797,7 +4812,6 @@ describe('bakeFile', () => {
describe('bakeFileTagsLabels', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'bakeFileTagsLabels01',
@@ -4841,7 +4855,7 @@ describe('bakeFileTagsLabels', () => {
}
}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
@@ -4855,7 +4869,6 @@ describe('bakeFileTagsLabels', () => {
describe('sepTags', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'sepTags01',
@@ -4887,14 +4900,11 @@ describe('sepTags', () => {
} as Inputs,
"user/app:dev,user/app:my,user/app:custom,user/app:tags"
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
const repo = await toolkit.github.repoData();
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow, toolkit), repo);
expect(meta.getTags().join(inputs.sepTags)).toEqual(expTags);
+252
View File
@@ -0,0 +1,252 @@
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import {vi} from 'vitest';
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
const githubPayload = {
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
base_ref: null,
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
commits: [
{
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
message: 'hello dev',
timestamp: '2024-11-13T13:42:28Z',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/5f3331d7f7044c18ca9f12c77d961c4d7cf3276a'
}
],
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
created: false,
deleted: false,
forced: false,
head_commit: {
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
message: 'hello dev',
timestamp: '2024-11-13T13:42:28Z',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/5f3331d7f7044c18ca9f12c77d961c4d7cf3276a'
},
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
events_url: 'https://api.github.com/orgs/docker/events',
hooks_url: 'https://api.github.com/orgs/docker/hooks',
id: 5429470,
issues_url: 'https://api.github.com/orgs/docker/issues',
login: 'docker',
members_url: 'https://api.github.com/orgs/docker/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
repos_url: 'https://api.github.com/orgs/docker/repos',
url: 'https://api.github.com/orgs/docker'
},
pusher: {
email: 'github@crazymax.dev',
name: 'crazy-max'
},
ref: 'refs/heads/dev',
repository: {
allow_forking: true,
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
clone_url: 'https://github.com/docker/test-docker-action.git',
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
created_at: 1596792180,
default_branch: 'master',
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
description: 'Test "Docker" Actions',
disabled: false,
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
fork: false,
forks: 1,
forks_count: 1,
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
full_name: 'docker/test-docker-action',
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
git_url: 'git://github.com/docker/test-docker-action.git',
has_downloads: true,
has_issues: true,
has_pages: false,
has_projects: true,
has_wiki: true,
homepage: '',
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
html_url: 'https://github.com/docker/test-docker-action',
id: 285789493,
is_template: false,
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
language: 'JavaScript',
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
license: {
key: 'mit',
name: 'MIT License',
node_id: 'MDc6TGljZW5zZTEz',
spdx_id: 'MIT',
url: 'https://api.github.com/licenses/mit'
},
master_branch: 'master',
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
mirror_url: null,
name: 'test-docker-action',
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
open_issues: 6,
open_issues_count: 6,
organization: 'docker',
owner: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
email: 'info@docker.com',
events_url: 'https://api.github.com/users/docker/events{/privacy}',
followers_url: 'https://api.github.com/users/docker/followers',
following_url: 'https://api.github.com/users/docker/following{/other_user}',
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/docker',
id: 5429470,
login: 'docker',
name: 'docker',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
organizations_url: 'https://api.github.com/users/docker/orgs',
received_events_url: 'https://api.github.com/users/docker/received_events',
repos_url: 'https://api.github.com/users/docker/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
type: 'Organization',
url: 'https://api.github.com/users/docker'
},
private: true,
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
pushed_at: 1650360446,
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
size: 796,
ssh_url: 'git@github.com:docker/test-docker-action.git',
stargazers: 0,
stargazers_count: 0,
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
svn_url: 'https://github.com/docker/test-docker-action',
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
topics: [],
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
updated_at: '2022-04-19T09:05:09Z',
url: 'https://github.com/docker/test-docker-action',
visibility: 'private',
watchers: 0,
watchers_count: 0
},
sender: {
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
followers_url: 'https://api.github.com/users/crazy-max/followers',
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/crazy-max',
id: 1951866,
login: 'crazy-max',
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
repos_url: 'https://api.github.com/users/crazy-max/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
type: 'User',
url: 'https://api.github.com/users/crazy-max'
}
};
const githubEventPath = path.join(tmpDir, 'github-event.json');
fs.writeFileSync(githubEventPath, JSON.stringify(githubPayload));
process.env = Object.assign({}, process.env, {
TEMP: tmpDir,
GITHUB_REPOSITORY: 'docker/metadata-action',
GITHUB_REF: 'refs/heads/dev',
GITHUB_RUN_ID: '2188748038',
GITHUB_RUN_ATTEMPT: '1',
GITHUB_RUN_NUMBER: '15',
GITHUB_SHA: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
GITHUB_EVENT_PATH: githubEventPath,
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
});
const getCommitMock = vi.hoisted(() =>
vi.fn(async () => ({
data: {
commit: {
committer: {
date: '2024-11-13T13:42:28Z'
}
}
}
}))
);
const getOctokitMock = vi.hoisted(() =>
vi.fn(() => ({
rest: {
repos: {
getCommit: getCommitMock
}
}
}))
);
vi.mock('@actions/github', async importOriginal => {
const actual = await importOriginal<typeof import('@actions/github')>();
return {
...actual,
context: {
...actual.context,
payload: githubPayload
},
getOctokit: getOctokitMock
};
});
+4 -4
View File
@@ -1,6 +1,6 @@
import {describe, expect, test} from '@jest/globals';
import {describe, expect, test} from 'vitest';
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag';
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag.js';
describe('transform', () => {
// prettier-ignore
@@ -107,7 +107,7 @@ describe('transform', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
@@ -461,7 +461,7 @@ describe('parse', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
+2 -2
View File
@@ -66,5 +66,5 @@ outputs:
description: 'Bake definition file with tags and labels'
runs:
using: 'node20'
main: 'dist/index.js'
using: 'node24'
main: 'dist/index.cjs'
+19 -10
View File
@@ -1,12 +1,13 @@
# syntax=docker/dockerfile:1
ARG NODE_VERSION=20
ARG NODE_VERSION=24
FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
RUN apk add --no-cache cpio findutils git rsync
WORKDIR /src
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache <<EOT
set -e
corepack enable
yarn --version
yarn config set --home enableTelemetry 0
@@ -16,7 +17,7 @@ FROM base AS deps
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn install && mkdir /vendor && cp yarn.lock /vendor
yarn install --immutable && mkdir /vendor && cp yarn.lock /vendor
FROM scratch AS vendor-update
COPY --from=deps /vendor /
@@ -34,18 +35,27 @@ RUN --mount=type=bind,target=.,rw <<EOT
EOT
FROM deps AS build
RUN --mount=type=bind,target=.,rw \
RUN --mount=target=/context \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn run build && mkdir /out && cp -Rf dist /out/
--mount=type=cache,target=/src/node_modules <<EOT
set -e
rsync -a /context/. .
rm -rf dist
yarn run build
mkdir /out
cp -r dist /out
EOT
FROM scratch AS build-update
COPY --from=build /out /
FROM build AS build-validate
RUN --mount=type=bind,target=.,rw <<EOT
RUN --mount=target=/context \
--mount=target=.,type=tmpfs <<EOT
set -e
rsync -a /context/. .
git add -A
rm -rf dist
cp -rf /out/* .
if [ -n "$(git status --porcelain -- dist)" ]; then
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
@@ -58,8 +68,7 @@ FROM deps AS format
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn run format \
&& mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out
yarn run format && mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out
FROM scratch AS format-update
COPY --from=format /out /
@@ -74,7 +83,7 @@ FROM deps AS test
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn run test --coverage --coverageDirectory=/tmp/coverage
yarn run test --coverage --coverage.reportsDirectory=/tmp/coverage
FROM scratch AS test-coverage
COPY --from=test /tmp/coverage /
Generated Vendored
-300
View File
@@ -1,300 +0,0 @@
"use strict";
exports.id = 606;
exports.ids = [606];
exports.modules = {
/***/ 606:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ pMap)
/* harmony export */ });
/* unused harmony exports pMapIterable, pMapSkip */
async function pMap(
iterable,
mapper,
{
concurrency = Number.POSITIVE_INFINITY,
stopOnError = true,
signal,
} = {},
) {
return new Promise((resolve_, reject_) => {
if (iterable[Symbol.iterator] === undefined && iterable[Symbol.asyncIterator] === undefined) {
throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
}
if (typeof mapper !== 'function') {
throw new TypeError('Mapper function is required');
}
if (!((Number.isSafeInteger(concurrency) && concurrency >= 1) || concurrency === Number.POSITIVE_INFINITY)) {
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
}
const result = [];
const errors = [];
const skippedIndexesMap = new Map();
let isRejected = false;
let isResolved = false;
let isIterableDone = false;
let resolvingCount = 0;
let currentIndex = 0;
const iterator = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
const signalListener = () => {
reject(signal.reason);
};
const cleanup = () => {
signal?.removeEventListener('abort', signalListener);
};
const resolve = value => {
resolve_(value);
cleanup();
};
const reject = reason => {
isRejected = true;
isResolved = true;
reject_(reason);
cleanup();
};
if (signal) {
if (signal.aborted) {
reject(signal.reason);
}
signal.addEventListener('abort', signalListener, {once: true});
}
const next = async () => {
if (isResolved) {
return;
}
const nextItem = await iterator.next();
const index = currentIndex;
currentIndex++;
// Note: `iterator.next()` can be called many times in parallel.
// This can cause multiple calls to this `next()` function to
// receive a `nextItem` with `done === true`.
// The shutdown logic that rejects/resolves must be protected
// so it runs only one time as the `skippedIndex` logic is
// non-idempotent.
if (nextItem.done) {
isIterableDone = true;
if (resolvingCount === 0 && !isResolved) {
if (!stopOnError && errors.length > 0) {
reject(new AggregateError(errors)); // eslint-disable-line unicorn/error-message
return;
}
isResolved = true;
if (skippedIndexesMap.size === 0) {
resolve(result);
return;
}
const pureResult = [];
// Support multiple `pMapSkip`'s.
for (const [index, value] of result.entries()) {
if (skippedIndexesMap.get(index) === pMapSkip) {
continue;
}
pureResult.push(value);
}
resolve(pureResult);
}
return;
}
resolvingCount++;
// Intentionally detached
(async () => {
try {
const element = await nextItem.value;
if (isResolved) {
return;
}
const value = await mapper(element, index);
// Use Map to stage the index of the element.
if (value === pMapSkip) {
skippedIndexesMap.set(index, value);
}
result[index] = value;
resolvingCount--;
await next();
} catch (error) {
if (stopOnError) {
reject(error);
} else {
errors.push(error);
resolvingCount--;
// In that case we can't really continue regardless of `stopOnError` state
// since an iterable is likely to continue throwing after it throws once.
// If we continue calling `next()` indefinitely we will likely end up
// in an infinite loop of failed iteration.
try {
await next();
} catch (error) {
reject(error);
}
}
}
})();
};
// Create the concurrent runners in a detached (non-awaited)
// promise. We need this so we can await the `next()` calls
// to stop creating runners before hitting the concurrency limit
// if the iterable has already been marked as done.
// NOTE: We *must* do this for async iterators otherwise we'll spin up
// infinite `next()` calls by default and never start the event loop.
(async () => {
for (let index = 0; index < concurrency; index++) {
try {
// eslint-disable-next-line no-await-in-loop
await next();
} catch (error) {
reject(error);
break;
}
if (isIterableDone || isRejected) {
break;
}
}
})();
});
}
function pMapIterable(
iterable,
mapper,
{
concurrency = Number.POSITIVE_INFINITY,
backpressure = concurrency,
} = {},
) {
if (iterable[Symbol.iterator] === undefined && iterable[Symbol.asyncIterator] === undefined) {
throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
}
if (typeof mapper !== 'function') {
throw new TypeError('Mapper function is required');
}
if (!((Number.isSafeInteger(concurrency) && concurrency >= 1) || concurrency === Number.POSITIVE_INFINITY)) {
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
}
if (!((Number.isSafeInteger(backpressure) && backpressure >= concurrency) || backpressure === Number.POSITIVE_INFINITY)) {
throw new TypeError(`Expected \`backpressure\` to be an integer from \`concurrency\` (${concurrency}) and up or \`Infinity\`, got \`${backpressure}\` (${typeof backpressure})`);
}
return {
async * [Symbol.asyncIterator]() {
const iterator = iterable[Symbol.asyncIterator] === undefined ? iterable[Symbol.iterator]() : iterable[Symbol.asyncIterator]();
const promises = [];
let runningMappersCount = 0;
let isDone = false;
let index = 0;
function trySpawn() {
if (isDone || !(runningMappersCount < concurrency && promises.length < backpressure)) {
return;
}
const promise = (async () => {
const {done, value} = await iterator.next();
if (done) {
return {done: true};
}
runningMappersCount++;
// Spawn if still below concurrency and backpressure limit
trySpawn();
try {
const returnValue = await mapper(await value, index++);
runningMappersCount--;
if (returnValue === pMapSkip) {
const index = promises.indexOf(promise);
if (index > 0) {
promises.splice(index, 1);
}
}
// Spawn if still below backpressure limit and just dropped below concurrency limit
trySpawn();
return {done: false, value: returnValue};
} catch (error) {
isDone = true;
return {error};
}
})();
promises.push(promise);
}
trySpawn();
while (promises.length > 0) {
const {error, done, value} = await promises[0]; // eslint-disable-line no-await-in-loop
promises.shift();
if (error) {
throw error;
}
if (done) {
return;
}
// Spawn if just dropped below backpressure limit and below the concurrency limit
trySpawn();
if (value === pMapSkip) {
continue;
}
yield value;
}
},
};
}
const pMapSkip = Symbol('skip');
/***/ })
};
;
//# sourceMappingURL=606.index.js.map
Generated Vendored
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"606.index.js","mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/p-map/index.js"],"sourcesContent":["export default async function pMap(\n\titerable,\n\tmapper,\n\t{\n\t\tconcurrency = Number.POSITIVE_INFINITY,\n\t\tstopOnError = true,\n\t\tsignal,\n\t} = {},\n) {\n\treturn new Promise((resolve_, reject_) => {\n\t\tif (iterable[Symbol.iterator] === undefined && iterable[Symbol.asyncIterator] === undefined) {\n\t\t\tthrow new TypeError(`Expected \\`input\\` to be either an \\`Iterable\\` or \\`AsyncIterable\\`, got (${typeof iterable})`);\n\t\t}\n\n\t\tif (typeof mapper !== 'function') {\n\t\t\tthrow new TypeError('Mapper function is required');\n\t\t}\n\n\t\tif (!((Number.isSafeInteger(concurrency) && concurrency >= 1) || concurrency === Number.POSITIVE_INFINITY)) {\n\t\t\tthrow new TypeError(`Expected \\`concurrency\\` to be an integer from 1 and up or \\`Infinity\\`, got \\`${concurrency}\\` (${typeof concurrency})`);\n\t\t}\n\n\t\tconst result = [];\n\t\tconst errors = [];\n\t\tconst skippedIndexesMap = new Map();\n\t\tlet isRejected = false;\n\t\tlet isResolved = false;\n\t\tlet isIterableDone = false;\n\t\tlet resolvingCount = 0;\n\t\tlet currentIndex = 0;\n\t\tconst iterator = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();\n\n\t\tconst signalListener = () => {\n\t\t\treject(signal.reason);\n\t\t};\n\n\t\tconst cleanup = () => {\n\t\t\tsignal?.removeEventListener('abort', signalListener);\n\t\t};\n\n\t\tconst resolve = value => {\n\t\t\tresolve_(value);\n\t\t\tcleanup();\n\t\t};\n\n\t\tconst reject = reason => {\n\t\t\tisRejected = true;\n\t\t\tisResolved = true;\n\t\t\treject_(reason);\n\t\t\tcleanup();\n\t\t};\n\n\t\tif (signal) {\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(signal.reason);\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', signalListener, {once: true});\n\t\t}\n\n\t\tconst next = async () => {\n\t\t\tif (isResolved) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst nextItem = await iterator.next();\n\n\t\t\tconst index = currentIndex;\n\t\t\tcurrentIndex++;\n\n\t\t\t// Note: `iterator.next()` can be called many times in parallel.\n\t\t\t// This can cause multiple calls to this `next()` function to\n\t\t\t// receive a `nextItem` with `done === true`.\n\t\t\t// The shutdown logic that rejects/resolves must be protected\n\t\t\t// so it runs only one time as the `skippedIndex` logic is\n\t\t\t// non-idempotent.\n\t\t\tif (nextItem.done) {\n\t\t\t\tisIterableDone = true;\n\n\t\t\t\tif (resolvingCount === 0 && !isResolved) {\n\t\t\t\t\tif (!stopOnError && errors.length > 0) {\n\t\t\t\t\t\treject(new AggregateError(errors)); // eslint-disable-line unicorn/error-message\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tisResolved = true;\n\n\t\t\t\t\tif (skippedIndexesMap.size === 0) {\n\t\t\t\t\t\tresolve(result);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst pureResult = [];\n\n\t\t\t\t\t// Support multiple `pMapSkip`'s.\n\t\t\t\t\tfor (const [index, value] of result.entries()) {\n\t\t\t\t\t\tif (skippedIndexesMap.get(index) === pMapSkip) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpureResult.push(value);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(pureResult);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tresolvingCount++;\n\n\t\t\t// Intentionally detached\n\t\t\t(async () => {\n\t\t\t\ttry {\n\t\t\t\t\tconst element = await nextItem.value;\n\n\t\t\t\t\tif (isResolved) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst value = await mapper(element, index);\n\n\t\t\t\t\t// Use Map to stage the index of the element.\n\t\tLine truncated
Generated Vendored
+315
View File
@@ -0,0 +1,315 @@
var EIe=Object.create;var bz=Object.defineProperty;var CIe=Object.getOwnPropertyDescriptor;var yIe=Object.getOwnPropertyNames;var BIe=Object.getPrototypeOf,qIe=Object.prototype.hasOwnProperty;var s=(t,e)=>bz(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),DIe=(t,e)=>{for(var r in e)bz(t,r,{get:e[r],enumerable:!0})},IIe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of yIe(e))!qIe.call(t,o)&&o!==r&&bz(t,o,{get:()=>e[o],enumerable:!(n=CIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?EIe(BIe(t)):{},IIe(e||!t||!t.__esModule?bz(r,"default",{value:t,enumerable:!0}):r,t));var K9=m(lA=>{"use strict";var uB0=require("net"),WIe=require("tls"),rI=require("http"),Y9=require("https"),xIe=require("events"),pB0=require("assert"),TIe=require("util");lA.httpOverHttp=vIe;lA.httpsOverHttp=LIe;lA.httpOverHttps=_Ie;lA.httpsOverHttps=QIe;function vIe(t){var e=new gs(t);return e.request=rI.request,e}s(vIe,"httpOverHttp");function LIe(t){var e=new gs(t);return e.request=rI.request,e.createSocket=$9,e.defaultPort=443,e}s(LIe,"httpsOverHttp");function _Ie(t){var e=new gs(t);return e.request=Y9.request,e}s(_Ie,"httpOverHttps");function QIe(t){var e=new gs(t);return e.request=Y9.request,e.createSocket=$9,e.defaultPort=443,e}s(QIe,"httpsOverHttps");function gs(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||rI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",s(function(n,o,i,a){for(var c=j9(o,i,a),u=0,p=e.requests.length;u<p;++u){var A=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}s(gs,"TunnelingAgent");TIe.inherits(gs,xIe.EventEmitter);gs.prototype.addRequest=s(function(e,r,n,o){var i=this,a=nI({request:e},i.options,j9(r,n,o));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}s(u,"onFree");function p(A){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}s(p,"onCloseOrRemove")})},"addRequest");gs.prototype.createSocket=s(function(e,r){var n=this,o={};n.sockets.push(o);var i=nI({},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")),wa("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}s(c,"onResponse");function u(l,b,M){process.nextTick(function(){p(l,b,M)})}s(u,"onUpgrade");function p(l,b,M){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){wa("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){wa("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return wa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}s(p,"onConnect");function A(l){a.removeAllListeners(),wa(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}s(A,"onError")},"createSocket");gs.prototype.removeSocket=s(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(o){n.request.onSocket(o)})}},"removeSocket");function $9(t,e){var r=this;gs.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),i=nI({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=WIe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}s($9,"createSecureSocket");function j9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}s(j9,"toOptions");function nI(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var o=Object.keys(n),i=0,a=o.length;i<a;++i){var c=o[i];n[c]!==void 0&&(t[c]=n[c])}}return t}s(nI,"mergeOptions");var wa;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wa=s(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)},"debug"):wa=s(function(){},"debug");lA.debug=wa});var jd=m((dB0,Z9)=>{Z9.exports=K9()});var G0=m((bB0,eU)=>{eU.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 p0=m((fB0,BU)=>{"use strict";var tU=Symbol.for("undici.error.UND_ERR"),H0=class extends Error{static{s(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[tU]===!0}[tU]=!0},rU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),oI=class extends H0{static{s(this,"ConnectTimeoutError")}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[rU]===!0}[rU]=!0},nU=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iI=class extends H0{static{s(this,"HeadersTimeoutError")}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[nU]===!0}[nU]=!0},oU=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sI=class extends H0{static{s(this,"HeadersOverflowError")}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[oU]===!0}[oU]=!0},iU=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aI=class extends H0{static{s(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}s(LG,"isValidHeaderValue");function rNe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),o="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(QRe.has(a)){o=a;break}}o!==""&&(t.referrerPolicy=o)}s(rNe,"setRequestReferrerPolicyOnRedirect");function nNe(){return"allowed"}s(nNe,"crossOriginResourcePolicyCheck");function oNe(){return"success"}s(oNe,"corsCheck");function iNe(){return"success"}s(iNe,"TAOCheck");function sNe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}s(sNe,"appendFetchMetadata");function aNe(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&&ZI(t.origin)&&!ZI(ab(t))&&(e=null);break;case"same-origin":_z(t,ab(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}s(aNe,"appendRequestOriginHeader");function EA(t,e){return t}s(EA,"coarsenTime");function cNe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:EA(t.domainLookupStartTime,r),domainLookupEndTime:EA(t.domainLookupEndTime,r),connectionStartTime:EA(t.connectionStartTime,r),connectionEndTime:EA(t.connectionEndTime,r),secureConnectionStartTime:EA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}s(cNe,"clampAndCoarsenConnectionTimingInfo");function uNe(t){return EA(HRe.now(),t)}s(uNe,"coarsenedSharedCurrentTime");function pNe(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}}s(pNe,"createOpaqueTimingInfo");function _G(){return{referrerPolicy:"strict-origin-when-cross-origin"}}s(_G,"makePolicyContainer");function ANe(t){return{referrerPolicy:t.referrerPolicy}}s(ANe,"clonePolicyContainer");function lNe(t){let e=t.referrerPolicy;ru(e);let r=null;if(t.referrer==="client"){let c=FG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=KI(r),o=KI(r,!0);n.toString().length>4096&&(n=o);let i=_z(t,n),a=sb(n)&&!sb(t.url);switch(e){case"origin":return o??KI(r,!0);case"unsafe-url":return n;case"same-origin":return i?o:"no-referrer";case"origin-when-cross-origin":return i?n:o;case"strict-origin-when-cross-origin":{let c=ab(t);return _z(n,c)?n:sb(n)&&!sb(c)?"no-referrer":o}default:return a?"no-referrer":o}}s(lNe,"determineRequestsReferrer");function KI(t,e){return ru(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)}s(KI,"stripURLForReferrer");function sb(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"))}}s(sb,"isURLPotentiallyTrustworthy");function dNe(t,e){if(Lz===void 0)return!0;let r=QG(e);if(r==="no metadata"||r.length===0)return!0;let n=fNe(r),o=MNe(r,n);for(let i of o){let a=i.algo,c=i.hash,u=Lz.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),mNe(u,c))return!0}return!1}s(dNe,"bytesMatch");var bNe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function QG(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let o=bNe.exec(n);if(o===null||o.groups===void 0||o.groups.algo===void 0)continue;let i=o.groups.algo.toLowerCase();xG.includes(i)&&e.push(o.groups)}return r===!0?"no metadata":e}s(QG,"parseMetadata");function fNe(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}s(fNe,"getStrongestMetadata");function MNe(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}s(MNe,"filterMetadataListByAlgorithm");function mNe(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}s(mNe,"compareBase64Mixed");function hNe(t){}s(hNe,"tryUpgradeReque Line truncated
`);function ewe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}s(ewe,"isAsciiString");function twe(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}s(twe,"validateBoundary");function rwe(t,e){Pz(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"),o=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&kz(t,KNe,i)||i.position===t.length-4&&kz(t,ZNe,i))return o;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=nwe(t,i);if(c==="failure")return"failure";let{name:u,filename:p,contentType:A,encoding:l}=c;i.position+=2;let b;{let z=t.indexOf(n.subarray(2),i.position);if(z===-1)return"failure";b=t.subarray(i.position,z-4),i.position+=b.length,l==="base64"&&(b=Buffer.from(b.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let M;p!==null?(A??="text/plain",ewe(A)||(A=""),M=new $Ne([b],p,{type:A})):M=HNe(Buffer.from(b)),Pz(ZG(u)),Pz(typeof M=="string"&&ZG(M)||VNe(M)),o.push(JNe(u,M,p))}}s(rwe,"multipartFormDataParser");function nwe(t,e){let r=null,n=null,o=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:o,encoding:i};let a=yA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=s5(a,!0,!0,c=>c===9||c===32),!XNe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,yA(c=>c===32||c===9,t,e),GNe(a)){case"content-disposition":{if(r=n=null,!kz(t,jNe,e)||(e.position+=17,r=rH(t,e),r===null))return"failure";if(kz(t,tH,e)){let c=e.position+tH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=rH(t,e),n===null))return"failure"}break}case"content-type":{let c=yA(u=>u!==10&&u!==13,t,e);c=s5(c,!1,!0,u=>u===9||u===32),o=eH(c);break}case"content-transfer-encoding":{let c=yA(u=>u!==10&&u!==13,t,e);c=s5(c,!1,!0,u=>u===9||u===32),i=eH(c);break}default:yA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}s(nwe,"parseMultipartFormDataHeaders");function rH(t,e){Pz(t[e.position-1]===34);let r=yA(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)}s(rH,"parseMultipartFormDataName");function yA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}s(yA,"collectASequenceOfBytes");function s5(t,e,r,n){let o=0,i=t.length-1;if(e)for(;o<t.length&&n(t[o]);)o++;if(r)for(;i>0&&n(t[i]);)i--;return o===0&&i===t.length-1?t:t.subarray(o,i+1)}s(s5,"removeChars");function kz(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}s(kz,"bufferStartsWith");nH.exports={multipartFormDataParser:rwe,validateBoundary:twe}});var DA=m((tq0,bH)=>{"use strict";var pb=Xe(),{ReadableStreamFrom:owe,isBlobLike:iH,isReadableStreamLike:iwe,readableStreamClose:swe,createDeferredPromise:awe,fullyReadBody:cwe,extractMimeType:uwe,utf8DecodeBytes:cH}=Nr(),{FormData:sH}=ub(),{kState:qA}=Sa(),{webidl:pwe}=st(),{Blob:Awe}=require("node:buffer"),a5=require("node:assert"),{isErrored:uH,isDisturbed:lwe}=require("node:stream"),{isArrayBuffer:dwe}=require("node:util/types"),{serializeAMimeType:bwe}=tr(),{multipartFormDataParser:fwe}=oH(),c5;try{let t=require("node:crypto");c5=s(e=>t.randomInt(0,e),"random")}catch{c5=s(t=>Math.floor(Math.random(t)),"random")}var Uz=new TextEncoder;function Mwe(){}s(Mwe,"noop");var pH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,AH;pH&&(AH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!lwe(e)&&!uH(e)&&e.cancel("Response object has been garbage collected").catch(Mwe)}));function lH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:iH(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof o=="string"?Uz.encode(o):o;p.byteLength&&u.enqueue(p),queueMicrotask(()=>swe(u))},start(){},type:"bytes"}),a5(iwe(r));let n=null,o=null,i=null,a=null;if(typeof t=="string")o=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)o=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(dwe(t))o=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))o=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(pb.isFormDataLike(t)){let u=`----formdata-undici-0${`${c5(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let A=s(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),l=s(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),b=[],M=new Uint8Array([13,10]);i=0;let z=!1;for(let[y,E]of t)if(typeof E=="string"){let B=Uz.encode(p+`; name="${A(l(y))}"\r
\r
${l(E)}\r
`);b.push(B),i+=B.byteLength}else{let B=Uz.encode(`${p}; name="${A(l(y))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);b.push(B,E,M),typeof E.size=="number"?i+=B.byteLength+E.size+M.byteLength:z=!0}let O=Uz.encode(`--${u}--\r
`);b.push(O),i+=O.byteLength,z&&(i=null),o=t,n=s(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(iH(t))o=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(pb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:owe(t)}if((typeof o=="string"||pb.isBuffer(o))&&(i=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!uH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:i},a]}s(lH,"extractBody");function mwe(t,e=!1){return t instanceof ReadableStream&&(a5(!pb.isDisturbed(t),"The body has already been consumed."),a5(!t.locked,"The stream is locked.")),lH(t,e)}s(mwe,"safelyExtractBody");function hwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}s(hwe,"cloneBody");function zwe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}s(zwe,"throwIfAborted");function gwe(t){return{blob(){return BA(this,r=>{let n=aH(this);return n===null?n="":n&&(n=bwe(n)),new Awe([r],{type:n})},t)},arrayBuffer(){return BA(this,r=>new Uint8Array(r).buffer,t)},text(){return BA(this,cH,t)},json(){return BA(this,Ewe,t)},formData(){return BA(this,r=>{let n=aH(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=fwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new sH;return i[qA]=o,i}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),i=new sH;for(let[a,c]of o)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return BA(this,r=>new Uint8Array(r),t)}}}s(gwe,"bodyMixinMethods");function Owe(t){Object.assign(t.prototype,gwe(t))}s(Owe,"mixinBody");async function BA(t,e,r){if(pwe.brandCheck(t,r),dH(t))throw new TypeError("Body is unusable: Body has already been read");zwe(t[qA]);let n=awe(),o=s(a=>n.reject(a),"errorSteps"),i=s(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[qA].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await cwe(t[qA].body,i,o),n.promise)}s(BA,"consumeBody");function dH(t){let e=t[qA].body;return e!=null&&(e.stream.locked||pb.isDisturbed(e.stream))}s(dH,"bodyUnusable");function Ewe(t){return JSON.parse(cH(t))}s(Ewe,"parseJSONFromBytes");function aH(t){let e=t[qA].headersList,r=uwe(e);return r==="failure"?null:r}s(aH,"bodyMimeType");bH.exports={extractBody:lH,safelyExtractBody:mwe,cloneBody:hwe,mixinBody:Owe,streamRegistry:AH,hasFinalizationRegistry:pH,bodyUnusable:dH}});var NH=m((nq0,RH)=>{"use strict";var fe=require("node:assert"),he=Xe(),{channels:fH}=bA(),u5=GI(),{RequestContentLengthMismatchError:nu,ResponseContentLengthMismatchError:MH,RequestAbortedError:yH,InvalidArgumentError:Cwe,HeadersTimeoutError:ywe,HeadersOverflowError:Bwe,SocketError:IA,InformationalError:RA,BodyTimeoutError:qwe,HTTPParserError:Dwe,ResponseExceededMaxSizeError:Iwe}=p0(),{kUrl:BH,kReset:rr,kClient:Vz,kParser:T0,kBlocking:db,kRunning:w1,kPending:qH,kSize:mH,kWriting:Fa,kQueue:io,kNoRef:Ab,kKeepAliveDefaultTimeout:Rwe,kHostHeader:Nwe,kPendingIdx:wwe,kRunningIdx:dn,kError:Ft,kPipelining:Jz,kSocket:iu,kKeepAliveTimeoutValue:$z,kMaxHeadersSize:p5,kKeepAliveMaxTimeout:Swe,kKeepAliveTimeoutThreshold:Fwe,kHeadersTimeout:Wwe,kBodyTimeout:xwe,kStrictContentLength:d5,kMaxRequests:hH,kCounter:Twe,kMaxResponseSize:vwe,kOnError:zH,kResume:qs,kHTTPContext:DH}=G0(),wr=AG(),gH=Buffer.alloc(0),Gz=Buffer[Symbol.species],Hz=he.addListener,Lwe=he.removeAllListeners,su=Symbol("kIdleSocketValidation"),ou=Symbol("kIdleSocketValidationTimeout"),m5=Symbol("kSocketUsed"),A5;async function _we(){let t=process.env.JEST_WORKER_ID?VI():void 0,e;try{e=await WebAssembly.compile(bG())}catch{e=await WebAssembly.compile(t||VI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:s((r,n,o)=>0,"wasm_on_url"),wasm_on_status:s((r,n,o)=>{fe(o1.ptr===r);let i=n-Xo+Ho.byteOffset;return o1.onStatus(new Gz(Ho.buffer,i,o))||0},"wasm_on_status"),wasm_on_message_begin:s(r=>(fe(o1.ptr===r),o1.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:s((r,n,o)=>{fe(o1.ptr===r);let i=n-Xo+Ho.byteOffset;return o1.onHeaderField(new Gz(Ho.buffer,i,o))||0},"wasm_on_header_field"),wasm_on_header_value:s((r,n,o)=>{fe(o1.ptr===r);let i=n-Xo+Ho.byteOffset;return o1.onHeaderValue(new Gz(Ho.buffer,i,o))||0},"wasm_on_header_value"),wasm_on_headers_complete:s((r,n,o,i)=>(fe(o1.ptr===r),o1.onHeadersComplete(n,!!o,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:s((r,n,o)=>{fe(o1.ptr===r);let i=n-Xo+Ho.byteOffset;retu Line truncated
`;if(typeof o=="string"?O+=`host: ${o}\r
`:O+=t[Nwe],i?O+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Jz]&&!M[rr]?O+=`connection: keep-alive\r
`:O+=`connection: close\r
`,Array.isArray(p))for(let y=0;y<p.length;y+=2){let E=p[y+0],B=p[y+1];if(Array.isArray(B))for(let q=0;q<B.length;q++)O+=`${E}: ${B[q]}\r
`;else O+=`${E}: ${B}\r
`}return fH.sendHeaders.hasSubscribers&&fH.sendHeaders.publish({request:e,headers:O,socket:M}),!u||b===0?EH(z,null,t,e,M,A,O,l):he.isBuffer(u)?EH(z,u,t,e,M,A,O,l):he.isBlobLike(u)?typeof u.stream=="function"?CH(z,u.stream(),t,e,M,A,O,l):Vwe(z,u,t,e,M,A,O,l):he.isStream(u)?Xwe(z,u,t,e,M,A,O,l):he.isIterable(u)?CH(z,u,t,e,M,A,O,l):fe(!1),!0}s(Hwe,"writeH1");function Xwe(t,e,r,n,o,i,a,c){fe(i!==0||r[w1]===0,"stream body cannot be pipelined");let u=!1,p=new jz({abort:t,socket:o,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),A=s(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(O){he.destroy(this,O)}},"onData"),l=s(function(){u||e.resume&&e.resume()},"onDrain"),b=s(function(){if(queueMicrotask(()=>{e.removeListener("error",M)}),!u){let z=new yH;queueMicrotask(()=>M(z))}},"onClose"),M=s(function(z){if(!u){if(u=!0,fe(o.destroyed||o[Fa]&&r[w1]<=1),o.off("drain",l).off("error",M),e.removeListener("data",A).removeListener("end",M).removeListener("close",b),!z)try{p.end()}catch(O){z=O}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?he.destroy(e,z):he.destroy(e)}},"onFinished");e.on("data",A).on("end",M).on("error",M).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",M),e.errorEmitted??e.errored?setImmediate(()=>M(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>M(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}s(Xwe,"writeStream");function EH(t,e,r,n,o,i,a,c){try{e?he.isBuffer(e)&&(fe(i===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${i}\r
\r
`,"latin1"),o.write(e),o.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(o[rr]=!0)):i===0?o.write(`${a}content-length: 0\r
\r
`,"latin1"):(fe(i===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[qs]()}catch(u){t(u)}}s(EH,"writeBuffer");async function Vwe(t,e,r,n,o,i,a,c){fe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new nu;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${i}\r
\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[rr]=!0),r[qs]()}catch(u){t(u)}}s(Vwe,"writeBlob");async function CH(t,e,r,n,o,i,a,c){fe(i!==0||r[w1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}s(p,"onDrain");let A=s(()=>new Promise((b,M)=>{fe(u===null),o[Ft]?M(o[Ft]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new jz({abort:t,socket:o,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[Ft])throw o[Ft];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}s(CH,"writeIterable");var jz=class{static{s(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Fa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Ft])throw r[Ft];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(i[d5])throw new nu;process.emitWarning(new nu)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[rr]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${o}\r
\r
`,"latin1")),o===null&&r.write(`\r
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[T0].timeout&&r[T0].timeoutType===NA&&r[T0].timeout.refresh&&r[T0].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:o,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Fa]=!1,e[Ft])throw e[Ft];if(!e.destroyed){if(o===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&o!==r){if(n[d5])throw new nu;process.emitWarning(new nu)}e[T0].timeout&&e[T0].timeoutType===NA&&e[T0].timeout.refresh&&e[T0].timeout.refresh(),n[qs]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Fa]=!1,e&&(fe(n[w1]<=1,"pipeline should only contain this request"),o(e))}};RH.exports=Pwe});var LH=m((iq0,vH)=>{"use strict";var bn=require("node:assert"),{pipeline:Jwe}=require("node:stream"),Ze=Xe(),{RequestContentLengthMismatchError:h5,RequestAbortedError:wH,SocketError:bb,InformationalError:z5}=p0(),{kUrl:Kz,kReset:eg,kClient:wA,kRunning:tg,kPending:Ywe,kQueue:Wa,kPendingIdx:g5,kRunningIdx:so,kError:co,kSocket:$1,kStrictContentLength:$we,kOnError:O5,kMaxConcurrentStreams:TH,kHTTP2Session:ao,kResume:xa,kSize:jwe,kHTTPContext:Kwe}=G0(),Ds=Symbol("open streams"),SH,FH=!1,Zz;try{Zz=require("node:http2")}catch{Zz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Zwe,HTTP2_HEADER_METHOD:e6e,HTTP2_HEADER_PATH:t6e,HTTP2_HEADER_SCHEME:r6e,HTTP2_HEADER_CONTENT_LENGTH:n6e,HTTP2_HEADER_EXPECT:o6e,HTTP2_HEADER_STATUS:i6e}}=Zz;function s6e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}s(s6e,"parseH2Headers");async function a6e(t,e){t[$1]=e,FH||(FH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Zz.connect(t[Kz],{createConnection:s(()=>e,"createConnection"),peerMaxConcurrentStreams:t[TH]});r[Ds]=0,r[wA]=t,r[$1]=e,Ze.addListener(r,"error",u6e),Ze.addListener(r,"frameError",p6e),Ze.addListener(r,"end",A6e),Ze.addListener(r,"goaway",l6e),Ze.addListener(r,"close",function(){let{[wA]:o}=this,{[$1]:i}=o,a=this[$1][co]||this[co]||new bb("closed",Ze.getSocketInfo(i));if(o[ao]=null,o.destroyed){bn(o[Ywe]===0);let c=o[Wa].splice(o[so]);for(let u=0;u<c.length;u++){let p=c[u];Ze.errorRequest(o,p,a)}}}),r.unref(),t[ao]=r,e[ao]=r,Ze.addListener(e,"error",function(o){bn(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[co]=o,this[wA][O5](o)}),Ze.addListener(e,"end",function(){Ze.destroy(this,new bb("other side closed",Ze.getSocketInfo(this)))}),Ze.addListener(e,"close",function(){let o=this[co]||new bb("closed",Ze.getSocketInfo(this));t[$1]=null,this[ao]!=null&&this[ao].destroy(o),t[g5]=t[so],bn(t[tg]===0),t.emit("disconnect",t[Kz],[t],o),t[xa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return b6e(t,...o)},resume(){c6e(t)},destroy(o,i){n?queueMicrotask(i):e.destroy(o).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}s(a6e,"connectH2");function c6e(t){let e=t[$1];e?.destroyed===!1&&(t[jwe]===0&&t[TH]===0?(e.unref(),t[ao].unref()):(e.ref(),t[ao].ref()))}s(c6e,"resumeH2");function u6e(t){bn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$1][co]=t,this[wA][O5](t)}s(u6e,"onHttp2SessionError");function p6e(t,e,r){if(r===0){let n=new z5(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[$1][co]=n,this[wA][O5](n)}}s(p6e,"onHttp2FrameError");function A6e(){let t=new bb("other side closed",Ze.getSocketInfo(this[$1]));this.destroy(t),Ze.destroy(this[$1],t)}s(A6e,"onHttp2SessionEnd");function l6e(t){let e=this[co]||new bb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ze.getSocketInfo(this)),r=this[wA];if(r[$1]=null,r[Kwe]=null,this[ao]!=null&&(this[ao].destroy(e),this[ao]=null),Ze.destroy(this[$1],e),r[so]<r[Wa].length){let n=r[Wa][r[so]];r[Wa][r[so]++]=null,Ze.errorRequest(r,n,e),r[g5]=r[so]}bn(r[tg]===0),r.emit("disconnect",r[Kz],[r],e),r[xa]()}s(l6e,"onHTTP2GoAway");function d6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}s(d6e,"shouldSendContentLength");function b6e(t,e){let r=t[ao],{method:n,path:o,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Ze.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let D=0;D<p.length;D+=2){let F=p[D+0],x=p[D+1];if(Array.isArray(x))for(let _=0;_<x.length;_++)l[F]?l[F]+=`,${x[_]}`:l[F]=x[_];else l[F]=x}let b,{hostname:M,port:z}=t[Kz];l[Zwe]=i||`${M}${z?`:${z}`:""}`,l[e6e]=n;let O=s(D=>{e.aborted||e.completed||(D=D||new wH,Ze.errorRequest(t,e,D),b!=null&&Ze.destroy(b,D),Ze.destroy(A,D),t[Wa][t[so]++]=null,t[xa]())},"abort");try{e.onConnect(O)}catch(D){Ze.errorRequest(t,e,D)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),b=r.request(l,{endStream:!1,signal:u}),b.id&&!b.pending?(e.onUpgrade(null,null,b),++r[Ds],t[Wa][t[so]++]=null):b.once("ready",()=>{e.onUpgrade(null,null,b),++r[Ds],t[Wa][t[so]++]=null}),b.once("close",()=>{r[Ds]-=1,r[Ds]===0&&r.unref()}),!0;l[t6e]=o,l[r6e]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=Ze.bodyLength(A);if(Ze.isFormDataLike(A)){SH??=DA().extractBody;let[D,F]=SH(A);l["content-type"]=F,A=D.stream,E=D.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),d6e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[$we])return Ze.errorRequest(t,e, Line truncated
`,this[Q6e]=u??3e5,this[_6e]=o??3e5,this[P6e]=B??!0,this[k6e]=D,this[B5]=x,this[va]=null,this[V6e]=ce>-1?ce:-1,this[Y6e]=De??100,this[g1]=null,this[uo]=[],this[Rs]=0,this[po]=0,this[hb]=k=>D5(this,k),this[J6e]=k=>$H(this,k)}get pipelining(){return this[ig]}set pipelining(e){this[ig]=e,this[hb](!0)}get[Ob](){return this[uo].length-this[po]}get[gb](){return this[po]-this[Rs]}get[zb](){return this[uo].length-this[Rs]}get[S6e](){return!!this[g1]&&!this[FA]&&!this[g1].destroyed}get[y5](){return!!(this[g1]?.busy(null)||this[zb]>=(YH(this)||1)||this[Ob]>0)}[w6e](e){jH(this),this.once("connect",e)}[X6e](e,r){let n=e.origin||this[Jo].origin,o=new B6e(n,e,r);return this[uo].push(o),this[cu]||(au.bodyLength(o.body)==null&&au.isIterable(o.body)?(this[cu]=1,queueMicrotask(()=>D5(this))):this[hb](!0)),this[cu]&&this[La]!==2&&this[y5]&&(this[La]=2),this[La]<2}async[G6e](){return new Promise(e=>{this[zb]?this[va]=e:e(null)})}async[H6e](e){return new Promise(r=>{let n=this[uo].splice(this[po]);for(let i=0;i<n.length;i++){let a=n[i];au.errorRequest(this,a,e)}let o=s(()=>{this[va]&&(this[va](),this[va]=null),r(null)},"callback");this[g1]?(this[g1].destroy(e,o),this[g1]=null):queueMicrotask(o),this[hb]()})}},K6e=og();function $H(t,e){if(t[gb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Is(t[po]===t[Rs]);let r=t[uo].splice(t[Rs]);for(let n=0;n<r.length;n++){let o=r[n];au.errorRequest(t,o,e)}Is(t[zb]===0)}}s($H,"onError");async function jH(t){Is(!t[FA]),Is(!t[g1]);let{host:e,hostname:r,protocol:n,port:o}=t[Jo];if(r[0]==="["){let i=r.indexOf("]");Is(i!==-1);let a=r.substring(1,i);Is(JH.isIP(a)),r=a}t[FA]=!0,SA.beforeConnect.hasSubscribers&&SA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[g1]?.version,servername:t[Ta],localAddress:t[mb]},connector:t[Mb]});try{let i=await new Promise((a,c)=>{t[Mb]({host:e,hostname:r,protocol:n,port:o,servername:t[Ta],localAddress:t[mb]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){au.destroy(i.on("error",XH),new I6e);return}Is(i);try{t[g1]=i.alpnProtocol==="h2"?await j6e(t,i):await $6e(t,i)}catch(a){throw i.destroy().on("error",XH),a}t[FA]=!1,i[U6e]=0,i[B5]=t[B5],i[N6e]=t,i[W6e]=null,SA.connected.hasSubscribers&&SA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[g1]?.version,servername:t[Ta],localAddress:t[mb]},connector:t[Mb],socket:i}),t.emit("connect",t[Jo],[t])}catch(i){if(t.destroyed)return;if(t[FA]=!1,SA.connectError.hasSubscribers&&SA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[g1]?.version,servername:t[Ta],localAddress:t[mb]},connector:t[Mb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Is(t[gb]===0);t[Ob]>0&&t[uo][t[po]].servername===t[Ta];){let a=t[uo][t[po]++];au.errorRequest(t,a,i)}else $H(t,i);t.emit("connectionError",t[Jo],[t],i)}t[hb]()}s(jH,"connect");function VH(t){t[La]=0,t.emit("drain",t[Jo],[t])}s(VH,"emitDrain");function D5(t,e){t[cu]!==2&&(t[cu]=2,Z6e(t,e),t[cu]=0,t[Rs]>256&&(t[uo].splice(0,t[Rs]),t[po]-=t[Rs],t[Rs]=0))}s(D5,"resume");function Z6e(t,e){for(;;){if(t.destroyed){Is(t[Ob]===0);return}if(t[va]&&!t[zb]){t[va](),t[va]=null;return}if(t[g1]&&t[g1].resume(),t[y5])t[La]=2;else if(t[La]===2){e?(t[La]=1,queueMicrotask(()=>VH(t))):VH(t);continue}if(t[Ob]===0||t[gb]>=(YH(t)||1))return;let r=t[uo][t[po]];if(t[Jo].protocol==="https:"&&t[Ta]!==r.servername){if(t[gb]>0)return;t[Ta]=r.servername,t[g1]?.destroy(new D6e("servername changed"),()=>{t[g1]=null,D5(t)})}if(t[FA])return;if(!t[g1]){jH(t);return}if(t[g1].destroyed||t[g1].busy(r))return;!r.aborted&&t[g1].write(r)?t[po]++:t[uo].splice(t[po],1)}}s(Z6e,"_resume");KH.exports=q5});var I5=m((bq0,ZH)=>{"use strict";var sg=class{static{s(this,"FixedCircularBuffer")}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)}};ZH.exports=class{static{s(this,"FixedQueue")}constructor(){this.head=this.tail=new sg}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sg),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var tX=m((Mq0,eX)=>{var{kFree:eSe,kConnected:tSe,kPending:rSe,kQueued:nSe,kRunning:oSe,kSize:iSe}=G0(),uu=Symbol("pool"),R5=class{static{s(this,"PoolStats")}constructor(e){this[uu]=e}get connected(){return this[uu][tSe]}get free(){return this[uu][eSe]}get pending(){return this[uu][rSe]}get queued(){return this[uu][nSe]}get running(){return this[uu][oSe]}get size(){return this[uu][iSe]}};eX.exports=R5});var x5=m((hq0,AX)=>{"use strict";var sSe=hA(),aSe=I5(),{kConnected:N5,kSize:rX,kRunning:nX,kPending:oX,kQueued:Eb,kBusy:cSe,kFree:uSe,kUrl:pSe,kClose:ASe,kDestroy:lSe,kDispatch:dSe}=G0(),bSe=tX(),nr=Symbol("client Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};hJ.exports=xR});var yg=m((MD0,CJ)=>{"use strict";var gJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:QWe}=p0(),PWe=TA();EJ()===void 0&&OJ(new PWe);function OJ(t){if(!t||typeof t.dispatch!="function")throw new QWe("Argument agent must implement Agent");Object.defineProperty(globalThis,gJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}s(OJ,"setGlobalDispatcher");function EJ(){return globalThis[gJ]}s(EJ,"getGlobalDispatcher");CJ.exports={setGlobalDispatcher:OJ,getGlobalDispatcher:EJ}});var Bg=m((zD0,yJ)=>{"use strict";yJ.exports=class{static{s(this,"DecoratorHandler")}#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 qJ=m((OD0,BJ)=>{"use strict";var kWe=ng();BJ.exports=t=>{let e=t?.maxRedirections;return r=>s(function(o,i){let{maxRedirections:a=e,...c}=o;if(!a)return r(o,i);let u=new kWe(r,a,o,i);return r(c,u)},"redirectInterceptor")}});var IJ=m((CD0,DJ)=>{"use strict";var UWe=bg();DJ.exports=t=>e=>s(function(n,o){return e(n,new UWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});var NJ=m((BD0,RJ)=>{"use strict";var GWe=Xe(),{InvalidArgumentError:HWe,RequestAbortedError:XWe}=p0(),VWe=Bg(),TR=class extends VWe{static{s(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new HWe("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.#s.bind(this))}#s(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,o){let a=GWe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new XWe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=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 JWe({maxSize:t}={maxSize:1024*1024}){return e=>s(function(n,o){let{dumpMaxSize:i=t}=n,a=new TR({maxSize:i},o);return e(n,a)},"Intercept")}s(JWe,"createDumpInterceptor");RJ.exports=JWe});var FJ=m((DD0,SJ)=>{"use strict";var{isIP:YWe}=require("node:net"),{lookup:$We}=require("node:dns"),jWe=Bg(),{InvalidArgumentError:VA,InformationalError:KWe}=p0(),wJ=Math.pow(2,31)-1,vR=class{static{s(this,"DNSInstance")}#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.#o}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let o=this.#n.get(e.hostname);if(o==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(o==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new KWe("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,i.affinity),A;typeof p.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{let a=this.pick(e,o,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){$We(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,i)=>{if(o)return n(o);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#o(e,r,n){let o=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===wJ?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return o;c.offset==null||c.offset===wJ?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return o=c.ips[u]??null,o==null?o:Date.now()-o.timestamp>o.ttl?(c.ips.splice(u,1),this.pick(e,r,n)):o}setRecords(e,r){let n=Date.now(),o={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 a=o.records[i.family]??{ips:[]};a.ips.push(i),o.records[i.family]=a}this.#n.set(e.hostname,o)}getHandler(e,r){return new LR(this,e,r)}},LR=class extends jWe{static{s(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${i}`;break;case"retry":Aj(i)&&(r[o]=i);break;case"id":lj(i)&&(r[o]=i);break;case"event":i.length>0&&(r[o]=i);break}}processEvent(e){e.retry&&Aj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&lj(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}}};dj.exports={EventSourceStream:DN}});var Ej=m((NI0,Oj)=>{"use strict";var{pipeline:s_e}=require("node:stream"),{fetching:a_e}=xb(),{makeRequest:c_e}=$A(),{webidl:Ws}=st(),{EventSourceStream:u_e}=bj(),{parseMIMEType:p_e}=tr(),{createFastMessageEvent:A_e}=rl(),{isNetworkError:fj}=Fb(),{delay:l_e}=BN(),{kEnumerableProperty:yu}=Xe(),{environmentSettingsObject:Mj}=Nr(),mj=!1,hj=3e3,Yb=0,zj=1,$b=2,d_e="anonymous",b_e="use-credentials",al=class t extends EventTarget{static{s(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Yb;#o=null;#i=null;#a;#s;constructor(e,r={}){super(),Ws.util.markAsUncloneable(this);let n="EventSource constructor";Ws.argumentLengthCheck(arguments,1,n),mj||(mj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ws.converters.USVString(e,n,"url"),r=Ws.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#s={lastEventId:"",reconnectionTime:hj};let o=Mj,i;try{i=new URL(e,o.settingsObject.baseUrl),this.#s.origin=i.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=i.href;let a=d_e;r.withCredentials&&(a=b_e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Mj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=c_e(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===$b)return;this.#r=Yb;let e={request:this.#o,dispatcher:this.#a},r=s(n=>{fj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(fj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),i=o!==null?p_e(o):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=zj,this.dispatchEvent(new Event("open")),this.#s.origin=n.urlList[n.urlList.length-1].origin;let c=new u_e({eventSourceSettings:this.#s,push:s(u=>{this.dispatchEvent(A_e(u.type,u.options))},"push")});s_e(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=a_e(e)}async#c(){this.#r!==$b&&(this.#r=Yb,this.dispatchEvent(new Event("error")),await l_e(this.#s.reconnectionTime),this.#r===Yb&&(this.#s.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#s.lastEventId,!0),this.#u()))}close(){Ws.brandCheck(this,t),this.#r!==$b&&(this.#r=$b,this.#i.abort(),this.#o=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}},gj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Yb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$b,writable:!1}};Object.defineProperties(al,gj);Object.defineProperties(al.prototype,gj);Object.defineProperties(al.prototype,{close:yu,onerror:yu,onmessage:yu,onopen:yu,readyState:yu,url:yu,withCredentials:yu});Ws.converters.EventSourceInitDict=Ws.dictionaryConverter([{key:"withCredentials",converter:Ws.converters.boolean,defaultValue:s(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ws.converters.any}]);Oj.exports={EventSource:al,defaultReconnectionTime:hj}});var ul=m((SI0,Ee)=>{"use strict";var f_e=WA(),Cj=eb(),M_e=xA(),m_e=gX(),h_e=TA(),z_e=J5(),g_e=GX(),O_e=jX(),yj=p0(),lO=Xe(),{InvalidArgumentError:AO}=yj,cl=vV(),E_e=rb(),C_e=RR(),y_e=zJ(),B_e=SR(),q_e=MR(),D_e=bg(),{getGlobalDispatcher:Bj,setGlobalDispatcher:I_e}=yg(),R_e=Bg(),N_e=ng(),w_e=og();Object.assign(Cj.prototype,cl);Ee.exports.Dispatcher=Cj;Ee.exports.Client=f_e;Ee.exports.Pool=M_e;Ee.exports.BalancedPool=m_e;Ee.exports.Agent=h_e;Ee.exports. Line truncated
%s`,F,F,B,n);var x=B.type==="*"?Sw:B.type==="?"?ww:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+F}z(),i&&(n+="\\\\");var _=!1;switch(n.charAt(0)){case"[":case".":case"(":_=!0}for(var ce=c.length-1;ce>-1;ce--){var ye=c[ce],Ne=n.slice(0,ye.reStart),De=n.slice(ye.reStart,ye.reEnd-8),ge=n.slice(ye.reEnd-8,ye.reEnd),Fe=n.slice(ye.reEnd);ge+=Fe;var k=Ne.split("(").length-1,Te=Fe;for(O=0;O<k;O++)Te=Te.replace(/\)[+*?]?/,"");Fe=Te;var T="";Fe===""&&e!==TO&&(T="$");var j=Ne+De+Fe+T+ge;n=j}if(n!==""&&o&&(n="(?=.)"+n),_&&(n=b+n),e===TO)return[n,o];if(!o)return Vke(t);var $e=r.nocase?"i":"";try{var m1=new RegExp("^"+n+"$",$e)}catch{return new RegExp("$.")}return m1._glob=t,m1._src=n,m1}s(Hke,"parse");Ur.makeRe=function(t,e){return new ut(t,e||{}).makeRe()};ut.prototype.makeRe=Xke;function Xke(){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?Sw:e.dot?Lke:_ke,n=e.nocase?"i":"",o=t.map(function(i){return i.map(function(a){return a===Fw?r:typeof a=="string"?Jke(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch{this.regexp=!1}return this.regexp}s(Xke,"makeRe");Ur.match=function(t,e,r){r=r||{};var n=new ut(e,r);return t=t.filter(function(o){return n.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};ut.prototype.match=s(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;zf.sep!=="/"&&(e=e.split(zf.sep).join("/")),e=e.split(Nee),this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<o.length;a++){var c=o[a],u=e;n.matchBase&&c.length===1&&(u=[i]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ut.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,i=0,a=t.length,c=e.length;o<a&&i<c;o++,i++){this.debug("matchOne loop");var u=e[i],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===Fw){this.debug("GLOBSTAR",[e,u,p]);var A=o,l=i+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){var b=t[A];if(this.debug(`
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,l),A===a))}var M;if(typeof u=="string"?(M=p===u,this.debug("string match",u,p,M)):(M=p.match(u),this.debug("pattern match",u,p,M)),!M)return!1}if(o===a&&i===c)return!0;if(o===a)return r;if(i===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function Vke(t){return t.replace(/\\(.)/g,"$1")}s(Vke,"globUnescape");function Jke(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}s(Jke,"regExpEscape")});var gl=m((c60,vee)=>{"use strict";var r7e="2.0.0",n7e=Number.MAX_SAFE_INTEGER||9007199254740991,o7e=16,i7e=250,s7e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];vee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:o7e,MAX_SAFE_BUILD_LENGTH:i7e,MAX_SAFE_INTEGER:n7e,RELEASE_TYPES:s7e,SEMVER_SPEC_VERSION:r7e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ef=m((u60,Lee)=>{"use strict";var a7e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Lee.exports=a7e});var Ol=m((ni,_ee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:xw,MAX_SAFE_BUILD_LENGTH:c7e,MAX_LENGTH:u7e}=gl(),p7e=Ef();ni=_ee.exports={};var A7e=ni.re=[],l7e=ni.safeRe=[],re=ni.src=[],d7e=ni.safeSrc=[],ne=ni.t={},b7e=0,Tw="[a-zA-Z0-9-]",f7e=[["\\s",1],["\\d",u7e],[Tw,c7e]],M7e=s(t=>{for(let[e,r]of f7e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Le=s((t,e,r)=>{let n=M7e(e),o=b7e++;p7e(t,o,e),ne[t]=o,re[o]=e,d7e[o]=n,A7e[o]=new RegExp(e,r?"g":void 0),l7e[o]=new RegExp(n,r?"g":void 0)},"createToken");Le("NUMERICIDENTIFIER","0|[1-9]\\d*");Le("NUMERICIDENTIFIERLOOSE","\\d+");Le("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Tw}*`);Le("MAINVERSION",`(${re[ne.NUMERICIDENTIFIER]})\\.(${re[ne.NUMERICIDENTIFIER]})\\.(${re[ne.NUMERICIDENTIFIER]})`);Le("MAINVERSIONLOOSE",`(${re[ne.NUMERICIDENTIFIERLOOSE]})\\.(${re[ne.NUMERICIDENTIFIERLOOSE]})\\.(${re[ne.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASEIDENTIFIER",`(?:${re[ne.NONNUMERICIDENTIFIER]}|${re[ne.NUMERICIDENTIFIER]})`);Le("PRERELEASEIDENTIFIERLOOSE",`(?:${re[ne.NONNUMERICIDENTIFIER]}|${re[ne.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASE",`(?:-(${re[ne.PRERELEASEIDENTIFIER]}(?:\\.${re[ne.PRERELEASEIDENTIFIER]})*))`);Le("PRERELEASELOOSE",`(?:-?(${re[ne.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${re[ne.PRERELEASEIDENTIFIERLOOSE]})*))`);Le("BUILDIDENTIFIER",`${Tw}+`);Le("BUILD",`(?:\\+(${re[ne.BUILDIDENTIFIER]}(?:\\.${re[ne.BUILDIDENTIFIER]})*))`);Le("FULLPLAIN",`v?${re[ne.MAINVERSION]}${re[ne.PRERELEASE]}?${re[ne.BUILD]}?`);Le("FULL",`^${re[ne.FULLPLAIN]}$`);Le("LOOSEPLAIN",`[v=\\s]*${re[ne.MAINVERSIONLOOSE]}${re[ne.PRERELEASELOOSE]}?${re[ne.BUILD]}?`);Le("LOOSE",`^${re[ne.LOOSEPLAIN]}$`);Le("GTLT","((?:<|>)?=?)");Le("XRANGEIDENTIFIERLOOSE",`${re[ne.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Le("XRANGEIDENTIFIER",`${re[ne.NUMERICIDENTIFIER]}|x|X|\\*`);Le("XRANGEPLAIN",`[v=\\s]*(${re[ne.XRANGEIDENTIFIER]})(?:\\.(${re[ne.XRANGEIDENTIFIER]})(?:\\.(${re[ne.XRANGEIDENTIFIER]})(?:${re[ne.PRERELEASE]})?${re[ne.BUILD]}?)?)?`);Le("XRANGEPLAINLOOSE",`[v=\\s]*(${re[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${re[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${re[ne.XRANGEIDENTIFIERLOOSE]})(?:${re[ne.PRERELEASELOOSE]})?${re[ne.BUILD]}?)?)?`);Le("XRANGE",`^${re[ne.GTLT]}\\s*${re[ne.XRANGEPLAIN]}$`);Le("XRANGELOOSE",`^${re[ne.GTLT]}\\s*${re[ne.XRANGEPLAINLOOSE]}$`);Le("COERCEPLAIN",`(^|[^\\d])(\\d{1,${xw}})(?:\\.(\\d{1,${xw}}))?(?:\\.(\\d{1,${xw}}))?`);Le("COERCE",`${re[ne.COERCEPLAIN]}(?:$|[^\\d])`);Le("COERCEFULL",re[ne.COERCEPLAIN]+`(?:${re[ne.PRERELEASE]})?(?:${re[ne.BUILD]})?(?:$|[^\\d])`);Le("COERCERTL",re[ne.COERCE],!0);Le("COERCERTLFULL",re[ne.COERCEFULL],!0);Le("LONETILDE","(?:~>?)");Le("TILDETRIM",`(\\s*)${re[ne.LONETILDE]}\\s+`,!0);ni.tildeTrimReplace="$1~";Le("TILDE",`^${re[ne.LONETILDE]}${re[ne.XRANGEPLAIN]}$`);Le("TILDELOOSE",`^${re[ne.LONETILDE]}${re[ne.XRANGEPLAINLOOSE]}$`);Le("LONECARET","(?:\\^)");Le("CARETTRIM",`(\\s*)${re[ne.LONECARET]}\\s+`,!0);ni.caretTrimReplace="$1^";Le("CARET",`^${re[ne.LONECARET]}${re[ne.XRANGEPLAIN]}$`);Le("CARETLOOSE",`^${re[ne.LONECARET]}${re[ne.XRANGEPLAINLOOSE]}$`);Le("COMPARATORLOOSE",`^${re[ne.GTLT]}\\s*(${re[ne.LOOSEPLAIN]})$|^$`);Le("COMPARATOR",`^${re[ne.GTLT]}\\s*(${re[ne.FULLPLAIN]})$|^$`);Le("COMPARATORTRIM",`(\\s*)${re[ne.GTLT]}\\s*(${re[ne.LOOSEPLAIN]}|${re[ne.XRANGEPLAIN]})`,!0);ni.comparatorTrimReplace="$1$2$3";Le("HYPHENRANGE",`^\\s*(${re[ne.XRANGEPLAIN]})\\s+-\\s+(${re[ne.XRANGEPLAIN]})\\s*$`);Le("HYPHENRANGELOOSE",`^\\s*(${re[ne.XRANGEPLAINLOOSE]})\\s+-\\s+(${re[ne.XRANGEPLAINLOOSE]})\\s*$`);Le("STAR","(<|>)?=?\\s*\\*");Le("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Le("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var QO=m((A60,Qee)=>{"use strict";var m7e=Object.freeze({loose:!0}),h7e=Object.freeze({}),z7e=s(t=>t?typeof t!="object"?m7e:t:h7e,"parseOptions");Qee.exports=z7e});var vw=m((d60,Uee)=>{"use strict";var Pee=/^[0-9]+$/,kee=s((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Pee Line truncated
`).join(`
`+i),t.push(o+"m+"+B3.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=iHe()+e+" "+t[0]}s(oHe,"formatArgs");function iHe(){return lt.inspectOpts.hideDate?"":new Date().toISOString()+" "}s(iHe,"getDate");function sHe(...t){return process.stderr.write(y3.format(...t)+`
`)}s(sHe,"log");function aHe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}s(aHe,"save");function cHe(){return process.env.DEBUG}s(cHe,"load");function uHe(t){t.inspectOpts={};let e=Object.keys(lt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lt.inspectOpts[e[r]]}s(uHe,"init");B3.exports=B6()(lt);var{formatters:Ete}=B3.exports;Ete.o=function(t){return this.inspectOpts.colors=this.useColors,y3.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Ete.O=function(t){return this.inspectOpts.colors=this.useColors,y3.inspect(t,this.inspectOpts)}});var q3=m((ex0,R6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?R6.exports=mte():R6.exports=Cte()});var qte=m(cr=>{"use strict";var pHe=cr&&cr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),AHe=cr&&cr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yte=cr&&cr.__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)&&pHe(e,t,r);return AHe(e,t),e};Object.defineProperty(cr,"__esModule",{value:!0});cr.req=cr.json=cr.toBuffer=void 0;var lHe=yte(require("http")),dHe=yte(require("https"));async function Bte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}s(Bte,"toBuffer");cr.toBuffer=Bte;async function bHe(t){let r=(await Bte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}s(bHe,"json");cr.json=bHe;function fHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?dHe:lHe).request(t,e),o=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=o.then.bind(o),n}s(fHe,"req");cr.req=fHe});var Nte=m(Vr=>{"use strict";var Ite=Vr&&Vr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),MHe=Vr&&Vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rte=Vr&&Vr.__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)&&Ite(e,t,r);return MHe(e,t),e},mHe=Vr&&Vr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ite(e,t,r)};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Agent=void 0;var hHe=Rte(require("net")),Dte=Rte(require("http")),zHe=require("https");mHe(qte(),Vr);var ai=Symbol("AgentBaseInternalState"),N6=class extends Dte.Agent{static{s(this,"Agent")}constructor(e){super(e),this[ai]={}}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 hHe.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],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?zHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(o),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(i,a),c instanceof Dte.Agent)try{return c.addRequest(e,o)}catch(u){return n(u)}this[ai].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[ai].currentSocket;if(this[ai].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ai].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ai]&&(this[ai].defaultPort=e)}get protocol(){return this[ai].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ai]&&(this[ai].protocol=e)}};Vr.Agent=N6});var wte=m(wl=>{"use strict";var gHe=wl&&wl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wl,"__esModule",{value:!0});wl.parseProxyResponse=void 0;var OHe=gHe(q3()),D3=(0,OHe.default)("https-proxy-agent:parse-proxy-response");function EHe(t){return new Promise((e,r)=>{let n=0,o=[];function i(){let A=t.read();A?p(A):t.once("readable",i)}s(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",i)}s(a,"cleanup");function c(){a(),D3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}s(c,"onend");function u(A){a(),D3("onerror %o",A),r(A)}s(u,"onerror");function p(A){o.push(A),n+=A.length;let l=Buffer.concat(o,n),b=l.indexOf(`\r
\r
`);if(b===-1){D3("have not received end of HTTP headers yet..."),i();return}let M=l.slice(0,b).toString("ascii").split(`\r
`),z=M.shift();if(!z)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let O=z.split(" "),y=+O[1],E=O.slice(2).join(" "),B={};for(let q of M){if(!q)continue;let D=q.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let F=q.slice(0,D).toLowerCase(),x=q.slice(D+1).trimStart(),_=B[F];typeof _=="string"?B[F]=[_,x]:Array.isArray(_)?_.push(x):B[F]=x}D3("got proxy server response: %o %o",z,B),a(),e({connect:{statusCode:y,statusText:E,headers:B},buffered:l})}s(p,"ondata"),t.on("error",u),t.on("end",c),i()})}s(EHe,"parseProxyResponse");wl.parseProxyResponse=EHe});var vte=m(In=>{"use strict";var CHe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yHe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xte=In&&In.__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)&&CHe(e,t,r);return yHe(e,t),e},Tte=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpsProxyAgent=void 0;var I3=xte(require("net")),Ste=xte(require("tls")),BHe=Tte(require("assert")),qHe=Tte(q3()),DHe=Nte(),IHe=require("url"),RHe=wte(),vf=(0,qHe.default)("https-proxy-agent"),Fte=s(t=>t.servername===void 0&&t.host&&!I3.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),R3=class extends DHe.Agent{static{s(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new IHe.URL(e):e,this.proxyHeaders=r?.headers??{},vf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Wte(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(vf("Creating `tls.Socket`: %o",this.connectOpts),o=Ste.connect(Fte(this.connectOpts))):(vf("Creating `net.Socket`: %o",this.connectOpts),o=I3.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=I3.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(b).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(i))c+=`${b}: ${i[b]}\r
`;let u=(0,RHe.parseProxyResponse)(o);o.write(`${c}\r
`);let{connect:p,buffered:A}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",NHe),r.secureEndpoint?(vf("Upgrading socket connection to TLS"),Ste.connect({...Wte(Fte(r),"host","path","port"),socket:o})):o;o.destroy();let l=new I3.Socket({writable:!1});return l.readable=!0,e.once("socket",b=>{vf("Replaying proxy buffer for failed request"),(0,BHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};R3.protocols=["http","https"];In.HttpsProxyAgent=R3;function NHe(t){t.resume()}s(NHe,"resume");function Wte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}s(Wte,"omit")});var Qte=m(ur=>{"use strict";var wHe=ur&&ur.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),SHe=ur&&ur.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lte=ur&&ur.__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)&&wHe(e,t,r);return SHe(e,t),e};Object.defineProperty(ur,"__esModule",{value:!0});ur.req=ur.json=ur.toBuffer=void 0;var FHe=Lte(require("http")),WHe=Lte(require("https"));async function _te(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}s(_te,"toBuffer");ur.toBuffer=_te;async function xHe(t){let r=(await _te(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}s(xHe,"json");ur.json=xHe;function THe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?WHe:FHe).request(t,e),o=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=o.then.bind(o),n}s(THe,"req");ur.req=THe});var Gte=m(Jr=>{"use strict";var kte=Jr&&Jr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vHe=Jr&&Jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ute=Jr&&Jr.__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)&&kte(e,t,r);return vHe(e,t),e},LHe=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kte(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.Agent=void 0;var _He=Ute(require("net")),Pte=Ute(require("http")),QHe=require("https");LHe(Qte(),Jr);var ci=Symbol("AgentBaseInternalState"),w6=class extends Pte.Agent{static{s(this,"Agent")}constructor(e){super(e),this[ci]={}}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 _He.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],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?QHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(o),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(i,a),c instanceof Pte.Agent)return c.addRequest(e,o);this[ci].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[ci].currentSocket;if(this[ci].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ci].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ci]&&(this[ci].defaultPort=e)}get protocol(){return this[ci].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ci]&&(this[ci].protocol=e)}};Jr.Agent=w6});var Vte=m(Rn=>{"use strict";var PHe=Rn&&Rn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kHe=Rn&&Rn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xte=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)&&PHe(e,t,r);return kHe(e,t),e},UHe=Rn&&Rn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.HttpProxyAgent=void 0;var GHe=Xte(require("net")),HHe=Xte(require("tls")),XHe=UHe(q3()),VHe=require("events"),JHe=Gte(),Hte=require("url"),Sl=(0,XHe.default)("http-proxy-agent"),N3=class extends JHe.Agent{static{s(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Hte.URL(e):e,this.proxyHeaders=r?.headers??{},Sl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?YHe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${o}//${i}`,c=new Hte.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let A=u[p];A&&e.setHeader(p,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,o;Sl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Sl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(o),Sl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Sl("Creating `tls.Socket`: %o",this.connectOpts),i=HHe.connect(this.connectOpts)):(Sl("Creating `net.Socket`: %o",this.connectOpts),i=GHe.connect(this.connectOpts)),await(0,VHe.once)(i,"connect"),i}};N3.protocols=["http","https"];Rn.HttpProxyAgent=N3;function YHe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}s(YHe,"omit")});var fre=m(G3=>{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});G3.state=void 0;G3.state={instrumenterImplementation:void 0}});var Sre=m(Y3=>{"use strict";Object.defineProperty(Y3,"__esModule",{value:!0});Y3.state=void 0;Y3.state={operationRequestMap:new WeakMap}});var pie=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var fje=require("os"),Mje=require("util");function mje(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}s(mje,"_interopDefaultLegacy");var hje=mje(Mje);function zje(t,...e){process.stderr.write(`${hje.default.format(t,...e)}${fje.EOL}`)}s(zje,"log");var eie=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,rie,uT=[],pT=[],bC=[];eie&&AT(eie);var nie=Object.assign(t=>oie(t),{enable:AT,enabled:lT,disable:gje,log:zje});function AT(t){rie=t,uT=[],pT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?pT.push(new RegExp(`^${n.substr(1)}$`)):uT.push(new RegExp(`^${n}$`));for(let n of bC)n.enabled=lT(n.namespace)}s(AT,"enable");function lT(t){if(t.endsWith("*"))return!0;for(let e of pT)if(e.test(t))return!1;for(let e of uT)if(e.test(t))return!0;return!1}s(lT,"enabled");function gje(){let t=rie||"";return AT(""),t}s(gje,"disable");function oie(t){let e=Object.assign(r,{enabled:lT(t),destroy:Oje,log:nie.log,namespace:t,extend:Eje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return s(r,"debug"),bC.push(e),e}s(oie,"createDebugger");function Oje(){let t=bC.indexOf(this);return t>=0?(bC.splice(t,1),!0):!1}s(Oje,"destroy");function Eje(t){let e=oie(`${this.namespace}:${t}`);return e.log=this.log,e}s(Eje,"extend");var yM=nie,iie=new Set,lC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,fC,MC=yM("azure");MC.log=(...t)=>{yM.log(...t)};var dT=["verbose","info","warning","error"];lC&&(uie(lC)?sie(lC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lC}'; logging is not enabled. Acceptable values: ${dT.join(", ")}.`));function sie(t){if(t&&!uie(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${dT.join(",")}`);fC=t;let e=[];for(let r of iie)cie(r)&&e.push(r.namespace);yM.enable(e.join(","))}s(sie,"setLogLevel");function Cje(){return fC}s(Cje,"getLogLevel");var tie={verbose:400,info:300,warning:200,error:100};function yje(t){let e=MC.extend(t);return aie(MC,e),{error:dC(e,"error"),warning:dC(e,"warning"),info:dC(e,"info"),verbose:dC(e,"verbose")}}s(yje,"createClientLogger");function aie(t,e){e.log=(...r)=>{t.log(...r)}}s(aie,"patchLogMethod");function dC(t,e){let r=Object.assign(t.extend(e),{level:e});if(aie(t,r),cie(r)){let n=yM.disable();yM.enable(n+","+r.namespace)}return iie.add(r),r}s(dC,"createLogger");function cie(t){return!!(fC&&tie[t.level]<=tie[fC])}s(cie,"shouldEnable");function uie(t){return dT.includes(t)}s(uie,"isAzureLogLevel");$l.AzureLogger=MC;$l.createClientLogger=yje;$l.getLogLevel=Cje;$l.setLogLevel=sie});var MT=m(qM=>{"use strict";Object.defineProperty(qM,"__esModule",{value:!0});var jl=new WeakMap,mC=new WeakMap,BM=class t{static{s(this,"AbortSignal")}constructor(){this.onabort=null,jl.set(this,[]),mC.set(this,!1)}get aborted(){if(!mC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return mC.get(this)}static get none(){return new t}addEventListener(e,r){if(!jl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");jl.get(this).push(r)}removeEventListener(e,r){if(!jl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=jl.get(this),o=n.indexOf(r);o>-1&&n.splice(o,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Aie(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=jl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),mC.set(t,!0)}s(Aie,"abortSignal");var bT=class extends Error{static{s(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},fT=class{static{s(this,"AbortController")}constructor(e){if(this._signal=new BM,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Aie(this._signal)}static timeout(e){let r=new BM,n=setTimeout(Aie,e,r);return typeof n.unref=="function"&&n.unref(),r}};qM.AbortController=fT;qM.AbortError=bT;qM.AbortSignal=BM});var Mie=m(p1=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${gie.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(hie({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}s(eKe,"pollOperationHelper");async function yie(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:M,setDelay:z,isDone:O,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await eKe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(Eie({status:q,response:B,state:r,stateProxy:n,isDone:O,processResult:l,getError:b,setErrorAsResult:y}),!gie.includes(q)){let D=A?.(B);D&&z(D);let F=c?.(B,r);if(F!==void 0){let x=E!==F;r.config.operationLocation=F,p?.(F,x)}else p?.(E,!1)}M?.(r,B)}}s(yie,"pollOperation");function Bie(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}s(Bie,"getOperationLocationPollingUrl");function qie(t){return t.headers.location}s(qie,"getLocationHeader");function Die(t){return t.headers["operation-location"]}s(Die,"getOperationLocationHeader");function Iie(t){return t.headers["azure-asyncoperation"]}s(Iie,"getAzureAsyncOperationHeader");function tKe(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:i}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return o;default:return r}}s(a,"getDefault")}s(tKe,"findResourceLocation");function Rie(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,i=Die(e),a=Iie(e),c=Bie({operationLocation:i,azureAsyncOperation:a}),u=qie(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:tKe({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}s(Rie,"inferLroMode");function Nie(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return DT(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return np.verbose(`LRO: unrecognized operation status: ${e}`),e}}s(Nie,"transformStatus");function rKe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Nie({status:r,statusCode:t.statusCode})}s(rKe,"getStatus");function nKe(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return Nie({status:i,statusCode:t.statusCode})}s(nKe,"getProvisioningState");function DT(t){return t===202?"running":t<300?"succeeded":"failed"}s(DT,"toOperationStatus");function wie({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?oKe(new Date(e)):r*1e3}}s(wie,"parseRetryAfter");function Sie(t){let e=t.flatResponse.error;if(!e){np.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){np.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}s(Sie,"getErrorFromResponse");function oKe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}s(oKe,"calculatePollingIntervalFromDate");function Fie(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return DT(e.rawResponse.statusCode);case"Body":return IT(e,r);default:return"running"}}s(o,"helper");let i=o();return i==="running"&&n===void 0?"succeeded":i}s(Fie,"getStatusFromInitialResponse");async function iKe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:o,setErrorAsResult:i}=t;return Cie({init:s(async()=>{let a=await o.sendInitialRequest(),c=Rie({rawResponse:a.rawResponse,requestPath:o.requestPath,requestMethod:o.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Fie,setErrorAsResult:i})}s(iKe,"initHttpOperation");function Wie({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=i,o=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,o=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,o=3;break;case 3:r[n++]=(a&3)<<6|i,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)}s(kKe,"base64decode");n2.base64decode=kKe;function UKe(t){let e="",r=0,n,o=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ra[n>>2],o=(n&3)<<4,r=1;break;case 1:e+=ra[o|n>>4],o=(n&15)<<2,r=2;break;case 2:e+=ra[o|n>>6],e+=ra[n&63],r=0;break}return r&&(e+=ra[o],e+="=",r==1&&(e+="=")),e}s(UKe,"base64encode");n2.base64encode=UKe});var pse=m(TC=>{"use strict";Object.defineProperty(TC,"__esModule",{value:!0});TC.utf8read=void 0;var LT=s(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function GKe(t){if(t.length<1)return"";let e=0,r=[],n=[],o=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[o++]=i:i>191&&i<224?n[o++]=(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[o++]=55296+(i>>10),n[o++]=56320+(i&1023)):n[o++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,o>8191&&(r.push(LT(n)),o=0);return r.length?(o&&r.push(LT(n.slice(0,o))),r.join("")):LT(n.slice(0,o))}s(GKe,"utf8read");TC.utf8read=GKe});var WM=m(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.WireType=Wi.mergeBinaryOptions=Wi.UnknownFieldHandler=void 0;var HKe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,o,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:o,wireType:i,data:a})},t.onWrite=(r,n,o)=>{for(let{no:i,wireType:a,data:c}of t.list(n))o.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let o=r[t.symbol];return n?o.filter(i=>i.no==n):o}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=s(r=>r&&Array.isArray(r[t.symbol]),"is")})(HKe=Wi.UnknownFieldHandler||(Wi.UnknownFieldHandler={}));function XKe(t,e){return Object.assign(Object.assign({},t),e)}s(XKe,"mergeBinaryOptions");Wi.mergeBinaryOptions=XKe;var VKe;(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"})(VKe=Wi.WireType||(Wi.WireType={}))});var LC=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.varint32read=Mr.varint32write=Mr.int64toString=Mr.int64fromString=Mr.varint64write=Mr.varint64read=void 0;function JKe(){let t=0,e=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&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 o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}s(JKe,"varint64read");Mr.varint64read=JKe;function YKe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,o=e>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}s(YKe,"varint64write");Mr.varint64write=YKe;var vC=65536*65536;function $Ke(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,o=0;function i(a,c){let u=Number(t.slice(a,c));o*=r,n=n*r+u,n>=vC&&(o=o+(n/vC|0),n=n%vC)}return s(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,o]}s($Ke,"int64fromString");Mr.int64fromString=$Ke;function jKe(t,e){if(e>>>0<=2097151)return""+(vC*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,o=e>>16&65535,i=r+n*6777216+o*6710656,a=n+o*8147497,c=o*2,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(A,l){let b=A?String(A):"";return l?"0000000".slice(b.length)+b:b}return s(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}s(jKe,"int64toString");Mr.int64toString=jKe;function KKe(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)}}s(KKe,"varint32write");Mr.varint32write=KKe;function ZKe(){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}s(ZKe,"varint32read");Mr.varint32read=ZKe});var hc=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.PbLong=mc.PbULong=mc.detectBi=void 0;var xM=LC(),B0;function Ase(){let t=new DataView(new ArrayBuffer(8));B0=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("922337203685477580 Line truncated
`)}};Ay.RpcError=Av});var dv=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.mergeRpcOptions=void 0;var Use=q1();function Oe0(t,e){if(!e)return t;let r={};ly(t,r),ly(e,r);for(let n of Object.keys(e)){let o=e[n];switch(n){case"jsonOptions":r.jsonOptions=Use.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Use.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},ly(t.meta,r.meta),ly(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(o):o.concat();break}}return r}s(Oe0,"mergeRpcOptions");dy.mergeRpcOptions=Oe0;function ly(t,e){if(!t)return;let r=e;for(let[n,o]of Object.entries(t))o instanceof Date?r[n]=new Date(o.getTime()):Array.isArray(o)?r[n]=o.concat():r[n]=o}s(ly,"copy")});var fv=m(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.Deferred=cp.DeferredState=void 0;var vi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(vi=cp.DeferredState||(cp.DeferredState={}));var bv=class{static{s(this,"Deferred")}constructor(e=!0){this._state=vi.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!==vi.PENDING)throw new Error(`cannot resolve ${vi[this.state].toLowerCase()}`);this._resolve(e),this._state=vi.RESOLVED}reject(e){if(this.state!==vi.PENDING)throw new Error(`cannot reject ${vi[this.state].toLowerCase()}`);this._reject(e),this._state=vi.REJECTED}resolvePending(e){this._state===vi.PENDING&&this.resolve(e)}rejectPending(e){this._state===vi.PENDING&&this.reject(e)}};cp.Deferred=bv});var mv=m(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.RpcOutputStreamController=void 0;var Gse=fv(),up=q1(),Mv=class{static{s(this,"RpcOutputStreamController")}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){up.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){up.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){up.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(){up.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:s(()=>{let e=this._itState;up.assert(e,"bad state"),up.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 Gse.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;up.assert(n.state==Gse.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};by.RpcOutputStreamController=Mv});var zv=m(p2=>{"use strict";var Ee0=p2&&p2.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.defineProperty(p2,"__esModule",{value:!0});p2.UnaryCall=void 0;var hv=class{static{s(this,"UnaryCall")}constructor(e,r,n,o,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=o,this.response=i,this.status=a,this.trailers=c}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 Ee0(this,void 0,void 0,function*(){let[e,r,n,o]=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:o}})}};p2.UnaryCall=hv});var Ov=m(A2=>{"use strict";var Ce0=A2&&A2.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(Ho0,"logUnexpecedPropertyAccessOnce");function Xo0(){Object.keys(p4).forEach(function(t){delete p4[t]})}s(Xo0,"resetLoggedProperties")});var l4=m(Pi=>{"use strict";Pi.__esModule=!0;Pi.HandlebarsEnvironment=A_;function Xpe(t){return t&&t.__esModule?t:{default:t}}s(Xpe,"_interopRequireDefault");var zp=$t(),Vo0=on(),u_=Xpe(Vo0),Jo0=i_(),Yo0=kpe(),$o0=a_(),A4=Xpe($o0),jo0=c_(),Ko0="4.7.9";Pi.VERSION=Ko0;var Zo0=8;Pi.COMPILER_REVISION=Zo0;var ei0=7;Pi.LAST_COMPATIBLE_COMPILER_REVISION=ei0;var ti0={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Pi.REVISION_CHANGES=ti0;var p_="[object Object]";function A_(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Jo0.registerDefaultHelpers(this),Yo0.registerDefaultDecorators(this)}s(A_,"HandlebarsEnvironment");A_.prototype={constructor:A_,logger:A4.default,log:A4.default.log,registerHelper:s(function(e,r){if(zp.toString.call(e)===p_){if(r)throw new u_.default("Arg not supported with multiple helpers");zp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:s(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:s(function(e,r){if(zp.toString.call(e)===p_)zp.extend(this.partials,e);else{if(typeof r>"u")throw new u_.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:s(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:s(function(e,r){if(zp.toString.call(e)===p_){if(r)throw new u_.default("Arg not supported with multiple decorators");zp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:s(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){jo0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var ri0=A4.default.log;Pi.log=ri0;Pi.createFrame=zp.createFrame;Pi.logger=A4.default});var Jpe=m((d4,Vpe)=>{"use strict";d4.__esModule=!0;function l_(t){this.string=t}s(l_,"SafeString");l_.prototype.toString=l_.prototype.toHTML=function(){return""+this.string};d4.default=l_;Vpe.exports=d4.default});var Ype=m(d_=>{"use strict";d_.__esModule=!0;d_.wrapHelper=ni0;function ni0(t,e){if(typeof t!="function")return t;var r=s(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}s(ni0,"wrapHelper")});var tAe=m(yc=>{"use strict";yc.__esModule=!0;yc.checkRevision=ui0;yc.template=pi0;yc.wrapProgram=b4;yc.resolvePartial=Ai0;yc.invokePartial=li0;yc.noop=Zpe;function oi0(t){return t&&t.__esModule?t:{default:t}}s(oi0,"_interopRequireDefault");function ii0(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}s(ii0,"_interopRequireWildcard");var si0=$t(),D2=ii0(si0),ai0=on(),aa=oi0(ai0),ca=l4(),$pe=i_(),ci0=Ype(),jpe=c_();function ui0(t){var e=t&&t[0]||1,r=ca.COMPILER_REVISION;if(!(e>=ca.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ca.COMPILER_REVISION))if(e<ca.LAST_COMPATIBLE_COMPILER_REVISION){var n=ca.REVISION_CHANGES[r],o=ca.REVISION_CHANGES[e];throw new aa.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}else throw new aa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}s(ui0,"checkRevision");function pi0(t,e){if(!e)throw new aa.default("No environment passed to template");if(!t||!t.main)throw new aa.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=D2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var p=e.VM.invokePartial.call(this,a,c,u);if(p==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),p=u.partials[u.name](c,u)),p!=null){if(u.indent){for(var A=p.split(`
`),l=0,b=A.length;l<b&&!(!A[l]&&l+1===b);l++)A[l]=u.indent+A[l];p=A.join(`
`)}return p}else throw new aa.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var o={strict:s(function(c,u,p){if(!c||!(u in c))throw new aa.default('"'+u+'" not defined in '+c,{loc:p});return o.lookupProperty(c,u)},"strict"),lookupProperty:s(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||jpe.resultIsAllowed(p,o.protoAccessControl,u))return p},"lookupProperty"),lookup:s(function(c,u){for(var p=c.length,A=0;A<p;A++){var l=c[A]&&o.lookupProperty(c[A],u);if(l!=null)return l}},"lookup"),lambda:s(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:D2.escapeExpression,invokePartial:n,fn:s(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:s(function(c,u,p,A,l){var b=this.programs[c],M=this.fn(c);return u||l||A||p?b=b4(this,c,M,u,p,A,l):b||(b=this.programs[c]=b4(this,c,M)),b},"program"),data:s(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:s(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=D2.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;i._setup(c),!c.partial&&t.useData&&(u=di0(a,u));var p=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function l(b){return""+t.main(o,b,o.helpers,o.partials,u,A,p)}return s(l,"main"),l=eAe(t.main,l,o,c.depths||[],u,A),l(a,c)}return s(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var c={};Kpe(c,e.helpers,o),Kpe(c,a.helpers,o),o.helpers=c,t.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(o.decorators=D2.extend({},e.decorators,a.decorators)),o.hooks={},o.protoAccessControl=jpe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;$pe.moveHelperToHooks(o,"helperMissing",u),$pe.moveHelperToHooks(o,"blockHelperMissing",u)}},i._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new aa.default("must pass block params");if(t.useDepths&&!p)throw new aa.default("must pass parent depths");return b4(o,a,t[a],c,0,u,p)},i}s(pi0,"template");function b4(t,e,r,n,o,i,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(A=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,i&&[p.blockParams].concat(i),A)}return s(c,"prog"),c=eAe(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=o||0,c}s(b4,"wrapProgram");function Ai0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=f4(r.partials,t)):r.name==="@partial-block"?t=f4(r.data,"partial-block"):t=f4(r.partials,r.name),t}s(Ai0,"resolvePartial");function li0(t,e,r){var n=f4(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;if(r.fn&&r.fn!==Zpe&&(function(){r.data=ca.createFrame(r.data);var i=r.fn;o=r.data["partial-block"]=s(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ca.createFrame(u.data),u.data["partial-block"]=n,i(c,u)},"partialBlockWrapper"),i.partials&&(r.partials=D2.extend({},r.partials,i.partials))})(),t===void 0&&o&&(t=o),t===void 0)throw new aa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}s(li0,"invokePartial");function Zpe(){return""}s(Zpe,"noop");function f4(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}s(f4,"lookupOwnProperty");function di0(t,e){return(!e||!("root"in e))&&(e=e?ca.createFrame(e):{},e.root=t),e}s(di0,"initData");function eAe(t,e,r,n,o,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],o,i,n),D2.extend(e,a)}return e}s(eAe,"executeDecorators");function Kpe(t,e,r){e&&Object.keys(e).forEach(function(n){var o=e[n];t[n]=bi0(o,r)})}s(Kpe,"addHelpers");function bi0(t,e){var r=e.lookupProperty;return ci0.wrapHelper(t,function(n){return n.lookupProperty=r,n})}s(bi0,"passLookupPropertyOption")});var b_=m((M4,rAe)=>{"use strict";M4.__esModule=!0;M4.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};rAe.exports=M4.default});var aAe=m((m4,sAe)=>{"use strict";m4.__esModule=!0;function M_(t){return t&&t.__esModule?t:{default:t}}s(M_,"_interopRequireDefault");function m_(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}s(m_,"_interopRequireWildcard");var fi0=l4(),nAe=m_(fi0),Mi0=Jpe(),mi0=M_(Mi0),hi0=on(),zi0=M_(hi0),gi0=$t(),f_=m_(gi0),Oi0=tAe Line truncated
`+this.lexer.showPosition()+`
Expecting `+k.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Te="Parse error on line "+(l+1)+": Unexpected "+(D==1?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Te,{text:this.lexer.match,token:this.terminals_[D]||D,line:this.lexer.yylineno,loc:y,expected:k})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+D);switch(_[0]){case 1:a.push(D),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(_[1]),D=null,F?(D=F,F=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,M>0&&M--);break;case 2:if(ge=this.productions_[_[1]][1],Ne.$=c[c.length-ge],Ne._$={first_line:u[u.length-(ge||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ge||1)].first_column,last_column:u[u.length-1].last_column},E&&(Ne._$.range=[u[u.length-(ge||1)].range[0],u[u.length-1].range[1]]),ye=this.performAction.call(Ne,A,b,l,this.yy,_[1],c,u),typeof ye<"u")return ye;ge&&(a=a.slice(0,-1*ge*2),c=c.slice(0,-1*ge),u=u.slice(0,-1*ge)),a.push(this.productions_[_[1]][0]),c.push(Ne.$),u.push(Ne._$),Fe=p[a[a.length-2]][a[a.length-1]],a.push(Fe);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:s(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:s(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,l[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:s(function(i){this.conditionStack.push(i)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=s(function(i,a,c,u){function p(l,b){return a.yytext=a.yytext.substring(l,a.yyleng-b+l)}s(p,"strip");var A=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(p(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return s(r,"Parser"),r.prototype=t,t.Parser=r,new r})();z4.default=yi0;pAe.exports=z4.default});var C4=m((E4,bAe)=>{"use strict";E4.__esModule=!0;function Bi0(t){return t&&t.__esModule?t:{default:t}}s(Bi0,"_interopRequireDefault");var qi0=on(),z_=Bi0(qi0);function g4(){this.parents=[]}s(g4,"Visitor");g4.prototype={constructor:g4,mutating:!1,acceptKey:s(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!g4.prototype[n.type])throw new z_.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:s(function(e,r){if(this.acceptKey(e,r),!e[r])throw new z_.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(e){if(e){if(!this[e.type])throw new z_.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:s(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:O4,Decorator:O4,BlockStatement:lAe,DecoratorBlock:lAe,PartialStatement:dAe,PartialBlockStatement:s(function(e){dAe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:O4,PathExpression:s(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:s(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:s(function(){var e=this.currentLocation||{start:{}};return new Cp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:s(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Cp?e:(e=P_(e,this,r),new Cp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:s(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=P_(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:s(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(P_(e[n],this));return r},"generateList"),generateArray:s(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};w4.default=YAe;$Ae.exports=w4.default});var rle=m((S4,tle)=>{"use strict";S4.__esModule=!0;function ele(t){return t&&t.__esModule?t:{default:t}}s(ele,"_interopRequireDefault");var KAe=l4(),Cs0=on(),U_=ele(Cs0),ys0=$t(),Bs0=jAe(),ZAe=ele(Bs0);function F2(t){this.value=t}s(F2,"Literal");function W2(){}s(W2,"JavaScriptCompiler");W2.prototype={nameLookup:s(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:s(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:s(function(){var e=KAe.COMPILER_REVISION,r=KAe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:s(function(e,r,n){return ys0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=i.length;u<p;u++)a=i[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new U_.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),o?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(o);if(this.isChild)return A;var l={compiler:this.compilerInfo(),main:A};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var b=this.context,M=b.programs,z=b.decorators;for(u=0,p=M.length;u<p;u++)l[u]=M[u],z[u]&&(l[u+"_d"]=z[u],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),o?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},"compile"),preamble:s(function(){this.lastContext=0,this.source=new ZAe.default(this.options.srcName),this.decorators=new ZAe.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(e){var r=this,n="",o=this.stackVars.concat(this.registers.list);o.length>0&&(n+=", "+o.join(", "));var i=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++i+"="+u,p.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:s(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(i?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(e){this.lastContext=e},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(e,r,n,o){var i=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:s(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(e,r,n,o,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(qs0(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,u=s(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p<c;p++)u(p)},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:s(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:s(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:s(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:s(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),o=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",o])," || fn;"])},"registerDecorator"),invokeHelper:s(function(e,r,n){var o=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(o),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",i.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:s(function(e,r){var n=[];n.push(e[0]);for(var o=1;o<e.length;o++)n.push(r,e[o]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var o=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,o.paramsInit?["),(",o.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};d1.prototype.Program=function(t){var e="",r=t.body,n=void 0,o=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,o=t.blockParams.length;n<o;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,o=r.length;n<o;n++)e+=this.accept(r[n]);return this.padding--,e};d1.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};d1.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};d1.prototype.BlockStatement=d1.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};d1.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};d1.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};d1.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};d1.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};d1.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,o=0,i=e.length;o<i;o++)r.push(this.accept(e[o]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};d1.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};d1.prototype.StringLiteral=function(t){return'"'+t.value+'"'};d1.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};d1.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};d1.prototype.UndefinedLiteral=function(){return"UNDEFINED"};d1.prototype.NullLiteral=function(){return"NULL"};d1.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,o=e.length;n<o;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};d1.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var X_=m((Zt1,ule)=>{var x4=ile().default,cle=sle();x4.PrintVisitor=cle.PrintVisitor;x4.print=cle.print;ule.exports=x4;function ale(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=x4.compile(n)}s(ale,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ale,require.extensions[".hbs"]=ale)});var P4=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.Signature=qc.Envelope=void 0;qc.Envelope={fromJSON(t){return{payload:Q4(t.payload)?Buffer.from(zle(t.payload)):Buffer.alloc(0),payloadType:Q4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>qc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=gle(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>qc.Signature.toJSON(r))),e}};qc.Signature={fromJSON(t){return{sig:Q4(t.sig)?Buffer.from(zle(t.sig)):Buffer.alloc(0),keyid:Q4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=gle(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function zle(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}s(zle,"bytesFromBase64");function gle(t){return globalThis.Buffer.from(t).toString("base64")}s(gle,"base64FromBytes");function Q4(t){return t!=null}s(Q4,"isSet")});var Ele=m(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});k4.Timestamp=void 0;k4.Timestamp={fromJSON(t){return{seconds:Ole(t.seconds)?globalThis.String(t.seconds):"0",nanos:Ole(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function Ole(t){return t!=null}s(Ole,"isSet")});var Aa=m(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.TimeRange=qe.X509CertificateChain=qe.SubjectAlternativeName=qe.X509Certificate=qe.DistinguishedName=qe.ObjectIdentifierValuePair=qe.ObjectIdentifier=qe.PublicKeyIdentifier=qe.PublicKey=qe.RFC3161SignedTimestamp=qe.LogId=qe.MessageSignature=qe.HashOutput=qe.SubjectAlternativeNameType=qe.PublicKeyDetails=qe.HashAlgorithm=void 0;qe.hashAlgorithmFromJSON=yle;qe.hashAlgorithmToJSON=Ble;qe.publicKeyDetailsFromJSON=qle;qe.publicKeyDetailsToJSON=Dle;qe.subjectAlternativeNameTypeFromJSON=Ile;qe.subjectAlternativeNameTypeToJSON=Rle;var Hs0=Ele(),Or;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SH Line truncated
`).join(`
`+i),t.push(o+"m+"+DB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=hp0()+e+" "+t[0]}s(mp0,"formatArgs");function hp0(){return ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}s(hp0,"getDate");function zp0(...t){return process.stderr.write(qB.formatWithOptions(ot.inspectOpts,...t)+`
`)}s(zp0,"log");function gp0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}s(gp0,"save");function Op0(){return process.env.DEBUG}s(Op0,"load");function Ep0(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]]}s(Ep0,"init");DB.exports=$Q()(ot);var{formatters:Y2e}=DB.exports;Y2e.o=function(t){return this.inspectOpts.colors=this.useColors,qB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Y2e.O=function(t){return this.inspectOpts.colors=this.useColors,qB.inspect(t,this.inspectOpts)}});var KQ=m((ti1,jQ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jQ.exports=J2e():jQ.exports=$2e()});var RB=m(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.DownloadHTTPError=b1.DownloadLengthMismatchError=b1.DownloadError=b1.ExpiredMetadataError=b1.EqualVersionError=b1.BadVersionError=b1.RepositoryError=b1.PersistError=b1.RuntimeError=b1.ValueError=void 0;var ZQ=class extends Error{static{s(this,"ValueError")}};b1.ValueError=ZQ;var e8=class extends Error{static{s(this,"RuntimeError")}};b1.RuntimeError=e8;var t8=class extends Error{static{s(this,"PersistError")}};b1.PersistError=t8;var Tm=class extends Error{static{s(this,"RepositoryError")}};b1.RepositoryError=Tm;var IB=class extends Tm{static{s(this,"BadVersionError")}};b1.BadVersionError=IB;var r8=class extends IB{static{s(this,"EqualVersionError")}};b1.EqualVersionError=r8;var n8=class extends Tm{static{s(this,"ExpiredMetadataError")}};b1.ExpiredMetadataError=n8;var vm=class extends Error{static{s(this,"DownloadError")}};b1.DownloadError=vm;var o8=class extends vm{static{s(this,"DownloadLengthMismatchError")}};b1.DownloadLengthMismatchError=o8;var i8=class extends vm{static{s(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};b1.DownloadHTTPError=i8});var K2e=m(ed=>{"use strict";var a8=ed&&ed.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ed,"__esModule",{value:!0});ed.withTempFile=void 0;var s8=a8(require("fs/promises")),Cp0=a8(require("os")),j2e=a8(require("path")),yp0=s(async t=>Bp0(async e=>t(j2e.default.join(e,"tempfile"))),"withTempFile");ed.withTempFile=yp0;var Bp0=s(async t=>{let e=await s8.default.realpath(Cp0.default.tmpdir()),r=await s8.default.mkdtemp(e+j2e.default.sep);try{return await t(r)}finally{await s8.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var ede=m((si1,Z2e)=>{var c8=class{static{s(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#o;#i=null;#a;#s;#u=null;#c;constructor(e,r={}){this.#a=[...e],this.#s=[...e],this.#c=r.unref,this.#o=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#s])}get timeouts(){return[...this.#s]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let o=0;o<this.#n.length;o++){let i=this.#n[o],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[a])}}return e}reset(){this.#e=1,this.#s=[...this.#a]}stop(){this.#u&&clearTimeout(this.#u),this.#s=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#i>=this.#o)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#s.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#u=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#u.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};Z2e.exports={RetryOperation:c8}});var nde=m((ci1,rde)=>{var{RetryOperation:qp0}=ede(),tde=s((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),Dp0=s(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),Ip0=s(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(o.retries){for(let i=0;i<o.retries;i++)r.push(tde(i,o));r.sort((i,a)=>i-a)}else e.forever&&r.push(tde(0,o))}let n=new qp0(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(o,i){n.attempt(async a=>{try{let c=await t(u=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:u})},a,n);return o(c)}catch(c){if(!Dp0(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");rde.exports={promiseRetry:Ip0}});var A8=m(Fc=>{"use strict";var p8=Fc&&Fc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DefaultFetcher=Fc.BaseFetcher=void 0;var Rp0=p8(KQ()),ode=p8(require("fs")),Np0=p8(require("util")),ide=RB(),wp0=K2e(),Sp0=nde(),Fp0=(0,Rp0.default)("tuf:fetch"),Wp0="User-Agent",NB=class{static{s(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,wp0.withTempFile)(async o=>{let i=await this.fetch(e),a=0,c=ode.default.createWriteStream(o),u=i.getReader();try{for(;;){let{done:p,value:A}=await u.read();if(p)break;if(a+=A.length,a>r)throw new ide.DownloadLengthMismatchError("Max length reached");await xp0(c,Buffer.from(A))}}finally{u.releaseLock(),await Np0.default.promisify(c.close).bind(c)()}return n(o)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let o=ode.defau Line truncated
`).forEach(r=>{r.match(QA0)||r.match(PA0)||(e+=r)}),Buffer.from(e,"base64")}s(kA0,"toDER");function UA0(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}s(UA0,"fromDER")});var XB=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.SHA2_HASH_ALGOS=Lc.RSA_SIGNATURE_ALGOS=Lc.ECDSA_SIGNATURE_ALGOS=void 0;Lc.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Lc.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Lc.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var x8=m(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});VB.RFC3161TimestampVerificationError=void 0;var W8=class extends Error{static{s(this,"RFC3161TimestampVerificationError")}};VB.RFC3161TimestampVerificationError=W8});var xde=m(Yi=>{"use strict";var GA0=Yi&&Yi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),HA0=Yi&&Yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XA0=Yi&&Yi.__importStar||(function(){var t=s(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&GA0(r,e,n[o]);return HA0(r,e),r}})();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.TSTInfo=void 0;var Wde=XA0(sd()),VA0=XB(),JA0=x8(),T8=class{static{s(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return VA0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Wde.digest(this.messageImprintHashAlgorithm,e);if(!Wde.bufferEqual(r,this.messageImprintHashedMessage))throw new JA0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Yi.TSTInfo=T8});var vde=m($i=>{"use strict";var YA0=$i&&$i.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:s(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$A0=$i&&$i.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jA0=$i&&$i.__importStar||(function(){var t=s(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&YA0(r,e,n[o]);return $A0(r,e),r}})();Object.defineProperty($i,"__esModule",{value:!0});$i.RFC3161Timestamp=void 0;var KA0=UB(),v8=jA0(sd()),Tde=XB(),Um=x8(),ZA0=xde(),el0="1.2.840.113549.1.7.2",tl0="1.2.840.113549.1.9.16.1.4",rl0="1.2.840.113549.1.9.4",L8=class t{static{s(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=KA0.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Tde.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Tde.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new ZA0.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Um.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==el0)throw new Um.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==tl0)throw new Um.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=v8.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,E20=/\u2014 (\S+) (\S+)\n/g;function C20(t,e){let r=t.inclusionProof,n=bP.fromString(r.checkpoint.envelope),o=dq.fromString(n.note);if(!y20(n,e))throw new Jm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}s(C20,"verifyCheckpoint");function y20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(i=>mbe.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.match(n.name));return o?mbe.crypto.verify(r,o.publicKey,n.signature):!1})}s(y20,"verifySignedNote");var bP=class t{static{s(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(dP))throw new Jm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(dP),n=e.slice(0,r+1),i=e.slice(r+dP.length).matchAll(E20),a=Array.from(i,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new Jm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new Jm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},dq=class t{static{s(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Jm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,i,a)}};Ym.LogCheckpoint=dq});var zbe=m(hP=>{"use strict";Object.defineProperty(hP,"__esModule",{value:!0});hP.verifyMerkleInclusion=D20;var mP=wo(),fP=It(),B20=Buffer.from([0]),q20=Buffer.from([1]);function D20(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),o=BigInt(e.logSize);if(n<0n||n>=o)throw new fP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=I20(n,o);if(r.hashes.length!==i+a)throw new fP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=W20(t.canonicalizedBody),A=N20(R20(p,c,n),u);if(!mP.crypto.bufferEqual(A,e.logHash))throw new fP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}s(D20,"verifyMerkleInclusion");function I20(t,e){let r=w20(t,e),n=S20(t>>BigInt(r));return{inner:r,border:n}}s(I20,"decompInclProof");function R20(t,e,r){return e.reduce((n,o,i)=>r>>BigInt(i)&BigInt(1)?MP(o,n):MP(n,o),t)}s(R20,"chainInner");function N20(t,e){return e.reduce((r,n)=>MP(n,r),t)}s(N20,"chainBorderRight");function w20(t,e){return F20(t^e-BigInt(1))}s(w20,"innerProofSize");function S20(t){return t.toString(2).split("1").length-1}s(S20,"onesCount");function F20(t){return t===0n?0:t.toString(2).length}s(F20,"bitLength");function MP(t,e){return mP.crypto.digest("sha256",q20,t,e)}s(MP,"hashChildren");function W20(t){return mP.crypto.digest("sha256",B20,t)}s(W20,"hashLeaf")});var Obe=m(zP=>{"use strict";Object.defineProperty(zP,"__esModule",{value:!0});zP.verifyTLogSET=v20;var gbe=wo(),x20=It(),T20=ud();function v20(t,e){if(!(0,T20.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let i=L20(t),a=Buffer.from(gbe.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return gbe.crypto.verify(a,o.publicKey,c)}))throw new x20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}s(v20,"verifyTLogSET");function L20(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}s(L20,"toVerificationPayload")});var Cbe=m(bq=>{"use strict";Object.defineProperty(bq,"__esModule",{value:!0});bq.verifyTLogBody=U20;bq.verifyTLogInclusion=G20;var Ebe=dbe(),EP=It(),gP=bbe(),OP=fbe(),_20=Mbe(),Q20=hbe(),P20=zbe(),k20=Obe();function U20(t,e){let{kind:r,version:n}=t.kindVersion,o=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==o.kind||n!==o.apiVersion)throw new EP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==gP.DSSE_API_VERSION_V1)return(0,gP.verifyDSSETLogBody)(o,e);{let i=Ebe.Entry.fromJSON(o);return(0,gP.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,_20.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==OP.HASHEDREKORD_API_VERSION_V1)return(0,OP.verifyHashedRekordTLogBody)(o,e);{let i=Ebe.Entry.fromJSON(o);return(0,OP.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new EP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}s(U20,"verifyTLogBody");function G20(t,e){let r=!1;if(H20(t)&&((0,k20.verifyTLogSET)(t,e),r=!0),X20(t)){let n=(0,Q20.verifyCheckpoint)(t,e);(0,P20.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new EP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}s(G20,"verifyTLogInclusion");function H20(t){return t.inclusionPromise!==void 0}s(H20,"isTLogEntryWithInclusionPromise");function X20(t){return t.inclusionProof!==void 0}s(X20,"isTLogEntryWithInclusionProof")});var Ibe=m(fq=>{"use strict";Object.defineProperty(fq,"__esModule",{value:!0});fq.Verifier=void 0;var V20=require("util"),dd=It(),ybe=tbe(),CP=rbe(),Bbe=ibe(),qbe=Cbe(),yP=class{static{s(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),o=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,o),r&&this.verifyPolicy(r,o.identity||{}),o}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"timestamp-authority":r.push((0,Bbe.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let o=(0,Bbe.getTLogTimestamp)(n.tlogEntry);o&&r.push(o);break}}if(Dbe(r))throw new dd.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThresho Line truncated
[`+I+"] ";for(W in arguments[0])i(arguments[0],W)&&(C+=W+": "+arguments[0][W]+", ");C=C.slice(0,-2)}else C=arguments[I];g.push(C)}_(d+`
Arguments: `+Array.prototype.slice.call(g).join("")+`
`+new Error().stack),h=!1}return f.apply(this,arguments)},f)}s(ce,"deprecate");var ye={};function Ne(d,f){e.deprecationHandler!=null&&e.deprecationHandler(d,f),ye[d]||(_(f),ye[d]=!0)}s(Ne,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function De(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}s(De,"isFunction");function ge(d){var f,h;for(h in d)i(d,h)&&(f=d[h],De(f)?this[h]=f:this["_"+h]=f);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}s(ge,"set");function Fe(d,f){var h=l({},d),g;for(g in f)i(f,g)&&(o(d[g])&&o(f[g])?(h[g]={},l(h[g],d[g]),l(h[g],f[g])):f[g]!=null?h[g]=f[g]:delete h[g]);for(g in d)i(d,g)&&!i(f,g)&&o(d[g])&&(h[g]=l({},h[g]));return h}s(Fe,"mergeConfigs");function k(d){d!=null&&this.set(d)}s(k,"Locale");var Te;Object.keys?Te=Object.keys:Te=s(function(d){var f,h=[];for(f in d)i(d,f)&&h.push(f);return h},"keys");var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j(d,f,h){var g=this._calendar[d]||this._calendar.sameElse;return De(g)?g.call(f,h):g}s(j,"calendar");function $e(d,f,h){var g=""+Math.abs(d),C=f-g.length,I=d>=0;return(I?h?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+g}s($e,"zeroFill");var m1=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ze=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D0={},je={};function X(d,f,h,g){var C=g;typeof g=="string"&&(C=s(function(){return this[g]()},"func")),d&&(je[d]=C),f&&(je[f[0]]=function(){return $e(C.apply(this,arguments),f[1],f[2])}),h&&(je[h]=function(){return this.localeData().ordinal(C.apply(this,arguments),d)})}s(X,"addFormatToken");function Rt(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}s(Rt,"removeFormattingTokens");function Nt(d){var f=d.match(m1),h,g;for(h=0,g=f.length;h<g;h++)je[f[h]]?f[h]=je[f[h]]:f[h]=Rt(f[h]);return function(C){var I="",W;for(W=0;W<g;W++)I+=De(f[W])?f[W].call(C,d):f[W];return I}}s(Nt,"makeFormatFunction");function m0(d,f){return d.isValid()?(f=er(f,d.localeData()),D0[f]=D0[f]||Nt(f),D0[f](d)):d.localeData().invalidDate()}s(m0,"formatMoment");function er(d,f){var h=5;function g(C){return f.longDateFormat(C)||C}for(s(g,"replaceLongDateFormatTokens"),ze.lastIndex=0;h>=0&&ze.test(d);)d=d.replace(ze,g),ze.lastIndex=0,h-=1;return d}s(er,"expandFormat");var Jh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Yh(d){var f=this._longDateFormat[d],h=this._longDateFormat[d.toUpperCase()];return f||!h?f:(this._longDateFormat[d]=h.match(m1).map(function(g){return g==="MMMM"||g==="MM"||g==="DD"||g==="dddd"?g.slice(1):g}).join(""),this._longDateFormat[d])}s(Yh,"longDateFormat");var RD="Invalid date";function Yc(){return this._invalidDate}s(Yc,"invalidDate");var R="%d",v=/\d{1,2}/;function L(d){return this._ordinal.replace("%d",d)}s(L,"ordinal");var G={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function we(d,f,h,g){var C=this._relativeTime[h];return De(C)?C(d,f,h,g):C.replace(/%d/i,d)}s(we,"relativeTime");function o0(d,f){var h=this._relativeTime[d>0?"future":"past"];return De(h)?h(f):h.replace(/%s/i,f)}s(o0,"pastFuture");var e1={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ke(d){return typeof d=="string"?e1[d]||e1[d.toLowerCase()]:void 0}s(ke,"normalizeUnits");function I0(d){var f={},h,g;for(g in d)i(d,g)&&(h=ke(g),h&&(f[h]=d[g]));return f}s(I0,"normalizeObjectUnits");var r9={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Q4e(d){var f=[],h;for(h in d)i(d,h)&&f.push({unit:h,priority:r9[h]});return f.sort(function(g,C){return g.priority-C.priority}),f}s(Q4e Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(U30,"_nonIterableRest");Dh.exports=U30,Dh.exports.__esModule=!0,Dh.exports.default=Dh.exports});var H3e=m((Db1,Ih)=>{var G30=ROe(),H30=g3e(),X30=U3e(),V30=G3e();function J30(t,e){return G30(t)||H30(t,e)||X30(t,e)||V30()}s(J30,"_slicedToArray");Ih.exports=J30,Ih.exports.__esModule=!0,Ih.exports.default=Ih.exports});var V3e=m((Rb1,X3e)=>{"use strict";var Y30=AD().forEach,$30=Eh(),j30=$30("forEach");X3e.exports=j30?[].forEach:s(function(e){return Y30(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var Y3e=m(()=>{"use strict";var K30=F0(),J3e=V3e();K30({target:"Array",proto:!0,forced:[].forEach!==J3e},{forEach:J3e})});var j3e=m((Fb1,$3e)=>{"use strict";Y3e();var Z30=Lo();$3e.exports=Z30("Array","forEach")});var Z3e=m((Wb1,K3e)=>{"use strict";var eE0=j3e();K3e.exports=eE0});var eEe=m(()=>{});var rEe=m((vb1,tEe)=>{"use strict";var tE0=wd(),rE0=Kt(),nE0=Dr(),oE0=Z3e();eEe();var O7=Array.prototype,iE0={DOMTokenList:!0,NodeList:!0};tEe.exports=function(t){var e=t.forEach;return t===O7||nE0(O7,t)&&e===O7.forEach||rE0(iE0,tE0(t))?oE0:e}});var E7=m((Lb1,nEe)=>{nEe.exports=rEe()});var oEe=m(()=>{"use strict";var sE0=F0(),aE0=Jq().includes,cE0=f1(),uE0=rk(),pE0=cE0(function(){return!Array(1).includes()});sE0({target:"Array",proto:!0,forced:pE0},{includes:s(function(e){return aE0(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});uE0("includes")});var sEe=m((kb1,iEe)=>{"use strict";oEe();var AE0=Lo();iEe.exports=AE0("Array","includes")});var cEe=m((Ub1,aEe)=>{"use strict";var lE0=un(),dE0=ga(),bE0=N1(),fE0=bE0("match");aEe.exports=function(t){var e;return lE0(t)&&((e=t[fE0])!==void 0?!!e:dE0(t)==="RegExp")}});var pEe=m((Gb1,uEe)=>{"use strict";var ME0=cEe(),mE0=TypeError;uEe.exports=function(t){if(ME0(t))throw new mE0("The method doesn't accept regular expressions");return t}});var lEe=m((Hb1,AEe)=>{"use strict";var hE0=N1(),zE0=hE0("match");AEe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[zE0]=!1,"/./"[t](e)}catch{}}return!1}});var bEe=m(()=>{"use strict";var gE0=F0(),OE0=n1(),EE0=pEe(),CE0=Up(),dEe=us(),yE0=lEe(),BE0=OE0("".indexOf);gE0({target:"String",proto:!0,forced:!yE0("includes")},{includes:s(function(e){return!!~BE0(dEe(CE0(this)),dEe(EE0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var MEe=m((Yb1,fEe)=>{"use strict";bEe();var qE0=Lo();fEe.exports=qE0("String","includes")});var zEe=m(($b1,hEe)=>{"use strict";var mEe=Dr(),DE0=sEe(),IE0=MEe(),C7=Array.prototype,y7=String.prototype;hEe.exports=function(t){var e=t.includes;return t===C7||mEe(C7,t)&&e===C7.includes?DE0:typeof t=="string"||t===y7||mEe(y7,t)&&e===y7.includes?IE0:e}});var OEe=m((jb1,gEe)=>{"use strict";var RE0=zEe();gEe.exports=RE0});var Rh=m((Kb1,EEe)=>{EEe.exports=OEe()});var B7=m((Zb1,CEe)=>{"use strict";CEe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var qEe=m((ef1,BEe)=>{"use strict";var NE0=n1(),wE0=Up(),SE0=us(),D7=B7(),yEe=NE0("".replace),FE0=RegExp("^["+D7+"]+"),WE0=RegExp("(^|[^"+D7+"])["+D7+"]+$"),q7=s(function(t){return function(e){var r=SE0(wE0(e));return t&1&&(r=yEe(r,FE0,"")),t&2&&(r=yEe(r,WE0,"$1")),r}},"createMethod");BEe.exports={start:q7(1),end:q7(2),trim:q7(3)}});var FEe=m((rf1,SEe)=>{"use strict";var NEe=J1(),xE0=f1(),TE0=n1(),vE0=us(),LE0=qEe().trim,DEe=B7(),Nh=NEe.parseInt,IEe=NEe.Symbol,REe=IEe&&IEe.iterator,wEe=/^[+-]?0x/i,_E0=TE0(wEe.exec),QE0=Nh(DEe+"08")!==8||Nh(DEe+"0x16")!==22||REe&&!xE0(function(){Nh(Object(REe))});SEe.exports=QE0?s(function(e,r){var n=LE0(vE0(e));return Nh(n,r>>>0||(_E0(wEe,n)?16:10))},"parseInt"):Nh});var xEe=m(()=>{"use strict";var PE0=F0(),WEe=FEe();PE0({global:!0,forced:parseInt!==WEe},{parseInt:WEe})});var vEe=m((sf1,TEe)=>{"use strict";xEe();var kE0=Wo();TEe.exports=kE0.parseInt});var _Ee=m((af1,LEe)=>{"use strict";var UE0=vEe();LEe.exports=UE0});var PEe=m((cf1,QEe)=>{QEe.exports=_Ee()});var gD=m((uf1,kEe)=>{kEe.exports=g7()});var HEe=m((pf1,GEe)=>{"use strict";var UEe=nh(),GE0=TypeError;GEe.exports=function(t,e){if(!delete t[e])throw new GE0("Cannot delete property "+UEe(e)+" of "+UEe(t))}});var JEe=m((Af1,VEe)=>{"use strict";var XEe=fh(),HE0=Math.floor,I7=s(function(t,e){var r=t.length;if(r<8)for(var n=1,o,i;n<r;){for(i=n,o=t[n];i&&e(t[i-1],o)>0;)t[i]=t[--i];i!==n++&&(t[i]=o)}else for(var a=HE0(r/2),c=I7(XEe(t,0,a),e),u=I7(XEe(t,a),e),p=c.length,A=u.length,l=0,b=0;l<p||b<A;)t[l+b]=l<p&&b<A?e(c[l],u[b])<=0?c[l++]:u[b++]:l<p?c[l++]:u[b++];return t},"sort");VEe.exports=I7});var jEe=m((df1,$Ee)=>{"use strict";var XE0=Cd(),YEe=XE0.match(/firefox\/(\d+)/i);$Ee.exports=!!YEe&&+YEe[1]});var ZEe=m((bf1,KEe)=>{"use strict";var VE0=Cd();KEe.exports=/MSIE|Trident/.test(VE0)});var rCe=m((ff1,tCe)=>{"use strict";var JE0=Cd(),eCe=JE0.match(/AppleWebKit\/(\d+)\./);tCe.exports=!!eCe&&+eCe[1]});var ACe=m(()=>{"use strict";var YE0=F0(),uCe=n1(),$E0=Hp(),jE0=as(),nCe=Ca(),KE0=HEe(),oCe=us(),R7=f1(),ZE0=JEe(),eC0=Eh(),iCe=jEe(),tC0=ZEe(),sCe=yd(),aCe=rCe(),Hc=[],cCe=uCe(Hc.sort),rC0=uCe(Hc.push),nC0=R7(function(){Hc.sort(void 0)}),oC0=R7(function(){Hc.sort(null)}),iC0=eC0("sort"),pCe=!R7(function(){if(sCe)return sCe<70;if(!(iCe&&iCe>3)){if(tC0)return!0;if(aCe)return aCe<603;var t="",e,r,n,o;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Hc.push({k:r+o,v:n})}for(Hc.sort(function(i,a){return a.v-i.v}),o=0;o<Hc.length;o++)r=Hc[o].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),sC0=nC0||!oC0||!iC0||!pCe,aC0=s(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:oCe(e)>oCe(r)?1:-1}},"getSortCompare");YE0({target:"Array",proto:!0,forced:sC0},{sort:s(function(e){e!==void 0&&$E0(e);var r=jE0(this);if(pCe)return e===void 0?cCe(r):cCe(r,e);var n=[],o=nCe(r),i,a;for(a=0;a<o;a++)a in r&&rC0(n,r[a]);for(ZE0(n,aC0(e)),i=nCe(n),a=0;a<i;)r[a]=n[a++];for(;a<o;)KE0(r,a++);return r},"sort")})});var dCe=m((zf1,lCe)=>{"use strict";ACe();var cC0=Lo();lCe.exports=cC0("Array","sort")});var fCe=m((gf1,bCe)=>{"use strict";var uC0=Dr(),pC0=dCe(),N7=Array.prototype;bCe.exports=function(t){var e=t.sort;return t===N7||uC0(N7,t)&&e===N7.sort?pC0:e}});var mCe=m((Of1,MCe)=>{"use strict";var AC0=fCe();MCe.exports=AC0});var zCe=m((Ef1,hCe)=>{hCe.exports=mCe()});var gCe=m(()=>{});var CCe=m((Bf1,ECe)=>{"use strict";var lC0=J1(),dC0=f1(),OCe=lC0.RegExp,bC0=!dC0(function(){var t=!0;try{OCe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=s(function(u,p){Object.defineProperty(e,u,{get:s(function(){return r+=p,!0},"get")})},"addGetter"),i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var a in i)o(a,i[a]);var c=Object.getOwnPropertyDescriptor(OCe.prototype,"flags").get.call(e);return c!==n||r!==n});ECe.exports={correct:bC0}});var BCe=m((Df1,yCe)=>{"use strict";var fC0=Ea();yCe.exports=function(){var t=fC0(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var ICe=m((If1,DCe)=>{"use strict";var MC0=eo(),mC0=Kt(),hC0=Dr(),qCe=CCe(),zC0=BCe(),gC0=RegExp.prototype;DCe.exports=qCe.correct?function(t){return t.flags}:function(t){return!qCe.correct&&hC0(gC0,t)&&!mC0(t,"flags")?MC0(zC0,t):t.flags}});var NCe=m((Rf1,RCe)=>{"use strict";gCe();var OC0=ICe();RCe.exports=OC0});var FCe=m((Nf1,SCe)=>{"use strict";var EC0=Dr(),CC0=NCe(),wCe=RegExp.prototype;SCe.exports=function(t){return t===wCe||EC0(wCe,t)?CC0(t):t.flags}});var xCe=m((wf1,WCe)=>{"use strict";var yC0=FCe();WCe.exports=yC0});var vCe=m((Sf1,TCe)=>{TCe.exports=xCe()});var rye=m((xh,tye)=>{"use strict";var Zt=is(),BC0=cs();BC0(xh,"__esModule",{ Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:s(function(){r=(0,qC0.default)(t)},"s"),n:s(function(){var p=r.next();return i=p.done,p},"n"),e:s(function(p){a=!0,c=p},"e"),f:s(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}s(Fh,"_createForOfIteratorHelper");function WC0(t,e){var r;if(t){if(typeof t=="string")return LCe(t,e);var n=(0,ro.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,NC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LCe(t,e)}}s(WC0,"_unsupportedIterableToArray");function LCe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}s(LCe,"_arrayLikeToArray");var k0="xregexp",eA={astral:!1,namespacing:!1},M1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},ps={},wh={},xd={},w7=[],Td="default",_Ce="class",xC0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},TC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,vC0=M1.exec.call(/()??/,"")[1]===void 0,LC0=(0,Zp.default)(/x/)!==void 0,_C0={},GCe=_C0.toString;function F7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}s(F7,"hasNativeFlag");var HCe=F7("u"),W7=F7("y"),XCe={g:!0,i:!0,m:!0,u:HCe,y:W7};function VCe(t,e,r,n,o){var i;if(t[k0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=K.prototype;else for(var a in K.prototype)t[a]=K.prototype[a];return t[k0].source=r,t[k0].flags=n&&(0,FC0.default)(i=n.split("")).call(i).join(""),t}s(VCe,"augment");function Sh(t){return M1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}s(Sh,"clipDuplicates");function rA(t,e){var r;if(!K.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[k0]||{},o=QC0(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=M1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(o=Sh(o+i)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Zp.default)(n)!=null&&(u=i?Sh((0,Zp.default)(n)+i):(0,Zp.default)(n))),t=VCe(new RegExp(e.source||t.source,o),PC0(t)?(0,ro.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}s(rA,"copyRegex");function JCe(t){return(0,UCe.default)(t,16)}s(JCe,"dec");function YCe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||M1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||kC0(t.input,t.index+t[0].length,r)?"":"(?:)"}s(YCe,"getContextualTokenSeparator");function QC0(t){return LC0?(0,Zp.default)(t):M1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}s(QC0,"getNativeFlags");function PC0(t){return!!(t[k0]&&t[k0].captureNames)}s(PC0,"hasNamedCapture");function $Ce(t){return(0,UCe.default)(t,10).toString(16)}s($Ce,"hex");function kC0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return M1.test.call((0,tA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,ro.default)(t).call(t,e))}s(kC0,"isQuantifierNext");function x7(t,e){return GCe.call(t)==="[object ".concat(e,"]")}s(x7,"isType");function jCe(t){for(;t.length<4;)t="0".concat(t);return t}s(jCe,"pad4");function UC0(t,e){if(Sh(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=M1.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(M1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=Sh(e+a),""});var r=Fh(e),n;try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!XCe[o])throw new SyntaxError("Unknown regex flag ".concat(o))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}s(UC0,"prepareFlags");function KCe(t){var e={};return x7(t,"String")?((0,S7.default)(K).call(K,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}s(KCe,"prepareOptions");function QCe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be a single character A-Za-z0-9_$");XCe[t]=!0}s(QCe,"registerFlag");function GC0(t,e,r,n,o){for(var i=w7.length,a=t[r],c=null,u,p;i--;)if(p=w7[i],!(p.leadChar&&p.leadChar!==a||p.scope!==n&&p.scope!=="all"||p.flag&&!(0,tA.default)(e).call(e,p.flag))&&(u=K.exec(t,p.regex,r,"sticky"),u)){c={matchLength:u[0].length,output:p.handler.call(o,u,n,e),reparse:p.reparse};break}return c}s(GC0,"runTokens");function ZCe(t){eA.astral=t}s(ZCe,"setAstral");function eye(t){eA.namespacing=t}s(eye,"setNamespacing");f Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:s(function(){r=(0,By0.default)(t)},"s"),n:s(function(){var p=r.next();return i=p.done,p},"n"),e:s(function(p){a=!0,c=p},"e"),f:s(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}s(Fy0,"_createForOfIteratorHelper");function Wy0(t,e){var r;if(t){if(typeof t=="string")return Lye(t,e);var n=(0,Ny0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,Ry0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lye(t,e)}}s(Wy0,"_unsupportedIterableToArray");function Lye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}s(Lye,"_arrayLikeToArray");var xy0=s(function(e){var r={},n=e._dec,o=e._hex,i=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}s(a,"normalize");function c(b){var M=/^\\[xu](.+)/.exec(b);return M?n(M[1]):b.charCodeAt(b[0]==="\\"?1:0)}s(c,"charCode");function u(b){var M="",z=-1;return(0,Sy0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(O){var y=c(O[1]);y>z+1&&(M+="\\u".concat(i(o(z+1))),y>z+2&&(M+="-\\u".concat(i(o(y-1))))),z=c(O[2]||O[1])}),z<65535&&(M+="\\u".concat(i(o(z+1))),z<65534&&(M+="-\\uFFFF")),M}s(u,"invertBmp");function p(b){var M="b!";return r[b][M]||(r[b][M]=u(r[b].bmp))}s(p,"cacheInvertedBmp");function A(b,M){var z=r[b],O="";if(z.bmp&&!z.isBmpLast){var y;O=(0,_7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(O+=z.astral),z.isBmpLast&&z.bmp){var E;O+=(0,_7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return M?"(?:(?!".concat(O,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(O,")")}s(A,"buildAstral");function l(b,M){var z=M?"a!":"a=";return r[b][z]||(r[b][z]=A(b,M))}s(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,M,z){var O="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",D=b[1]==="P"||!!b[2],F=(0,wy0.default)(z).call(z,"A"),x=a(b[4]||b[3]),_=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(O+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(_.inverseOf){if(x=a(_.inverseOf),!r.hasOwnProperty(x)){var ce;throw new ReferenceError((0,_7.default)(ce="".concat(E+b[0]," -> ")).call(ce,_.inverseOf))}_=r[x],D=!D}if(!(_.bmp||F))throw new SyntaxError(B+b[0]);if(F){if(M==="class")throw new SyntaxError(q);return l(x,D)}return M==="class"?D?p(x):_.bmp:"".concat((D?"[^":"[")+_.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var M="Unicode token requires name",z="Unicode token has no character data ",O=Fy0(b),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;if(!E.name)throw new Error(M);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){O.e(B)}finally{O.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var M=a(b);return r[M]}},"_default");_h.default=xy0;_ye.exports=_h.default});var kye=m((rM1,Pye)=>{Pye.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",bmp:"\uA6A0-\uA6FF"},{name:"InBamum_Supplement",astral:"\uD81A[\uDC00-\uDE3F]"},{name:"InBasic_Latin",bmp:"\0-\x7F"},{name:"InBassa_Vah",astral:"\uD81A[\uDED0-\uDEFF]"},{name:"InBatak",bmp:"\u1BC0-\u1BFF"},{name:"InBengali",bmp:"\u0980-\u09FF"},{name:"InBhaiksuki",astral:"\uD807[\uDC00-\uDC6F]"},{name:"InBlock_Elements",bmp:"\u2580-\u259F"},{name:"InBopomofo",bmp:"\u3100-\u312F"},{name:"InBopomofo_Extended",bmp:"\u31A0-\u31BF"},{name:"InBox_Drawing",bmp:"\u2500-\u257F"},{name:"InBrahmi",astral:"\uD804[\uDC00-\uDC7F]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28FF"},{name:"InBuginese",bmp:"\u1A00-\u1A1F"},{name:"InBuhid",bmp:"\u1740-\u175F"},{ Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}s(Yj,"getBooleanInput");function GN(t,e){if(process.env.GITHUB_OUTPUT||"")return $d("OUTPUT",mz(t,e));process.stdout.write(UN.EOL),Po("set-output",{name:t},Qo(e))}s(GN,"setOutput");function $j(t){process.exitCode=kN.Failure,ll(t)}s($j,"setFailed");function vs(){return process.env.RUNNER_DEBUG==="1"}s(vs,"isDebug");function N(t){Po("debug",{},t)}s(N,"debug");function ll(t,e={}){Po("error",KD(e),t instanceof Error?t.toString():t)}s(ll,"error");function r0(t,e={}){Po("warning",KD(e),t instanceof Error?t.toString():t)}s(r0,"warning");function S(t){process.stdout.write(t+UN.EOL)}s(S,"info");function Iu(t){eI("group",t)}s(Iu,"startGroup");function Ru(){eI("endgroup")}s(Ru,"endGroup");function ct(t,e){return cQe(this,void 0,void 0,function*(){Iu(t);let r;try{r=yield e()}finally{Ru()}return r})}s(ct,"group");function hO(t,e){if(process.env.GITHUB_STATE||"")return $d("STATE",mz(t,e));Po("save-state",{name:t},Qo(e))}s(hO,"saveState");function jj(t){return process.env[`STATE_${t}`]||""}s(jj,"getState");var Ey=w(require("fs"),1),rL=w(require("os"),1),nL=w(require("path"),1);var Zj=w(require("os"),1);function sf(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}s(sf,"toCommandValue");function eK(t,e,r){let n=new HN(t,e,r);process.stdout.write(n.toString()+Zj.EOL)}s(eK,"issueCommand");var Kj="::",HN=class{static{s(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Kj+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${pQe(o)}`)}}return e+=`${Kj}${uQe(this.message)}`,e}};function uQe(t){return sf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}s(uQe,"escapeData");function pQe(t){return sf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}s(pQe,"escapeProperty");var oK=w(require("os"),1);var rK=require("os"),af=require("fs");var XN=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:AQe,appendFile:lQe,writeFile:dQe}=af.promises,tK="GITHUB_STEP_SUMMARY";var VN=class{static{s(this,"Summary")}constructor(){this._buffer=""}filePath(){return XN(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[tK];if(!e)throw new Error(`Unable to find environment variable for $${tK}. Check if your runtime environment supports job summaries.`);try{yield AQe(e,af.constants.R_OK|af.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let o=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){return XN(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?dQe:lQe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return XN(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(rK.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,o);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(o=>{let i=o.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:p,rowspan:A}=a,l=c?"th":"td",b=Object.assign(Object.assign({},p&&{colspan:p}),A&&{rowspan:A});return this.wrap(l,u,b)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:o,height:i}=n||{},a=Object.assign(Object.assign({},o&&{width:o}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(o,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLinLine truncated
`),e=e.replace(/\r/g,`
`));let o=e.split(`
`).map(i=>i.trim());for(let i of o)!i||i.startsWith("#")||n.patterns.push(new gf(i));return n.searchPaths.push(...Iw(n.patterns)),n})}static stat(e,r,n){return Ww(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield zl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Cn(`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 o=yield zl.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let i=yield zl.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Cn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return o})}};var e7e=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})};function Tee(t,e){return e7e(this,void 0,void 0,function*(){return yield LO.create(t,e)})}s(Tee,"create");var e3=w(require("crypto"),1),Cl=w(require("fs"),1),Fu=w(require("path"),1),R1e=w(D1e(),1),N1e=w(require("util"),1);var Df;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Df||(Df={}));var Qt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Qt||(Qt={}));var Gr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gr||(Gr={}));var KO=2,ZO=5e3,t6=5e3,r6=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,I1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,If="cache.tar",n6="manifest.txt",PS0=10*Math.pow(1024,3);var El=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})},aGe=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(a){return new Promise(function(c,u){a=t[i](a),o(c,u,a.done,a.value)})}}function o(i,a,c,u){Promise.resolve(u).then(function(p){i({value:p,done:c})},a)}},cGe="1.0";function Rf(){return El(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=Fu.join(n,"actions","temp")}let r=Fu.join(e,e3.randomUUID());return yield Ts(r),r})}s(Rf,"createTempDirectory");function oi(t){return Cl.statSync(t).size}s(oi,"getArchiveFileSizeInBytes");function o6(t){return El(this,void 0,void 0,function*(){var e,r,n,o,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),u=yield Tee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=aGe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let M=Fu.relative(c,o).replace(new RegExp(`\\${Fu.sep}`,"g"),"/");N(`Matched: ${M}`),M===""?a.push("."):a.push(`${M}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}s(o6,"resolvePaths");function Nf(t){return El(this,void 0,void 0,function*(){return N1e.promisify(Cl.unlink)(t)})}s(Nf,"unlinkFile");function w1e(t){return El(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Pr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s(o=>n+=o.toString(),"stdout"),stderr:s(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}s(w1e,"getVersion");function wf(){return El(this,void 0,void 0,function*(){let t=yield w1e("zstd",["--quiet"]),e=R1e.clean(t);return N(`zstd version: ${e}`),t===""?Qt.Gzip:Qt.ZstdWithoutLong})}s(wf,"getCompressionMethod");function nc(t){return t===Qt.Gzip?Df.Gzip:Df.Zstd}s(nc,"getCacheFileName");function S1e(){return El(this,void 0,void 0,function*(){return Cl.existsSync(r6)?r6:(yield w1e("tar")).toLowerCase().includes("gnu tar")?at("tar"):""})}s(S1e,"getGnuTarPathOnWindows");function i6(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}s(i6,"assertDefined");function yl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(cGe),e3.createHash("sha256").update(n.join("|")).digest("hex")}s(yl,"getCacheVersion");function F1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}s(F1e,"getRuntimeToken");var Ff=w(require("http"),1),c6=w(require("https"),1);function s6(t){let e=t.protocol==="https:";if(uGe(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 r3(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new r3(`http://${r}`)}else return}s(s6,"getProxyUrl");function uGe(t){if(!t.hostname)return!1;let e=t.hostname;if(pGe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||o.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}s(uGe,"checkBypass");function pGe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}s(pGe,"isLoopbackAddress");var r3=class extends URL{static{s(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var oc=w(jd(),1),W1e=w(ul(),1);var E1=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})},i1;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(i1||(i1={}));var Pt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Pt||(Pt={}));var Ps;(function(t){t.ApplicationJson="application/json"})(Ps||(Ps={}));var lGe=[i1.MovedPermanently,i1.ResourceMoved,i1.SeeOther,i1.TemporaryRedirect,i1.PermanentRedirect],dGe=[i1.BadGateway,i1.ServiceUnavailable,i1.GatewayTimeout],bGe=["OPTIONS","GET","DELETE","HEAD"],fGe=10,MGe=5,ii=class t extends Error{static{s(this,"HttpClientError")}const Line truncated
${BGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function c3(t){return t instanceof kt?!0:xu(t)&&t.name==="RestError"}s(c3,"isRestError");function ar(t,e){return Buffer.from(t,e)}s(ar,"stringToUint8Array");var u3=w(require("node:http"),1),p3=w(require("node:https"),1),h6=w(require("node:zlib"),1),K1e=require("node:stream");var qn=Wf("ts-http-runtime");var qGe={};function xf(t){return t&&typeof t.pipe=="function"}s(xf,"isReadableStream");function j1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=s(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}s(j1e,"isStreamComplete");function Z1e(t){return t&&typeof t.byteLength=="number"}s(Z1e,"isArrayBuffer");var A3=class extends K1e.Transform{static{s(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},z6=class{static{s(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new si("The operation was aborted. Request has already been canceled.");n=s(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new zo;qn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=NGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,O=new A3(z);O.on("error",y=>{qn.error("Error in upload progress",y)}),xf(c)?c.pipe(O):O.end(c),c=O}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=DGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?IGe(p,A):p;let M=e.onDownloadProgress;if(M){let z=new A3(M);z.on("error",O=>{qn.error("Error in download progress",O)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await RGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();xf(c)&&(p=j1e(c));let A=Promise.resolve();xf(u)&&(A=j1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{qn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),i=o.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=i?u3.default.request(c,u):p3.default.request(c,u);A.once("error",l=>{p(new kt(l.message,{code:l.code??kt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new si("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&xf(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):Z1e(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(qn.error("Unrecognized body type",n),p(new kt("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?u3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new u3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p3.default.globalAgent;let o=e.tlsSettings??qGe,i=this.cachedHttpsAgents.get(o);return i&&i.options.keepAlive===!n||(qn.info("No cached TLS Agent exist, creating a new Agent"),i=new p3.default.Agent({keepAlive:!n,...o}),this.cachedHttpsAgents.set(o,i)),i}}};function DGe(t){let e=Hr();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}s(DGe,"getResponseHeaders");function IGe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=h6.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=h6.default.createInflate();return t.pipe(n),n}return t}s(IGe,"getDecodedResponseStream");function RGe(t){return new Promise((e,r)=>{let n=[];t.on("data",o=>{Buffer.isBuffer(o)?n.push(o):n.push(Buffer.from(o))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",o=>{o&&o?.name==="AbortError"?r(o):r(new kt(`Error reading response as text: ${o.message}`,{code:kt.PARSE_ERROR}))})})}s(RGe,"streamToText");function NGe(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}s(aXe,"encodeHeaders");function cXe(t){return t instanceof Uint8Array?t.byteLength:x3(t)?t.size===-1?void 0:t.size:void 0}s(cXe,"getLength");function uXe(t){let e=0;for(let r of t){let n=cXe(r);if(n===void 0)return;e+=n}return e}s(uXe,"getTotalLength");async function pXe(t,e,r){let n=[ar(`--${r}`,"utf-8"),...e.flatMap(i=>[ar(`\r
`,"utf-8"),ar(aXe(i.headers),"utf-8"),ar(`\r
`,"utf-8"),i.body,ar(`\r
--${r}`,"utf-8")]),ar(`--\r
\r
`,"utf-8")],o=uXe(n);o&&t.headers.set("Content-Length",o),t.body=await nre(n)}s(pXe,"buildRequestBody");var Lf="multipartPolicy",AXe=70,lXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function dXe(t){if(t.length>AXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!lXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}s(dXe,"assertValidBoundary");function v3(){return{name:Lf,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",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=o;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?dXe(r):r=sXe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await pXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}s(v3,"multipartPolicy");function L3(){return a3()}s(L3,"createEmptyPipeline");var ore=o3({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),_v0=ore.logger;function ui(t){return ore.createClientLogger(t)}s(ui,"createClientLogger");var pi=ui("core-rest-pipeline");function L6(t={}){return d3({logger:pi.info,...t})}s(L6,"logPolicy");var _6=b3;function Q6(t={}){return f3(t)}s(Q6,"redirectPolicy");var _3=w(require("node:os"),1),Q3=w(require("node:process"),1);function ire(){return"User-Agent"}s(ire,"getHeaderName");async function sre(t){if(Q3.default&&Q3.default.versions){let e=`${_3.default.type()} ${_3.default.release()}; ${_3.default.arch()}`,r=Q3.default.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})`)}}s(sre,"setPlatformSpecificData");var P3="1.22.2";function OXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}s(OXe,"getUserAgentString");function are(){return ire()}s(are,"getUserAgentHeaderName");async function k3(t){let e=new Map;e.set("core-rest-pipeline",P3),await sre(e);let r=OXe(e);return t?`${t} ${r}`:r}s(k3,"getUserAgentValue");var cre=are(),ure="userAgentPolicy";function P6(t={}){let e=k3(t.userAgentPrefix);return{name:ure,async sendRequest(r,n){return r.headers.has(cre)||r.headers.set(cre,await e),n(r)}}}s(P6,"userAgentPolicy");var Yr=class extends Error{static{s(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function k6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((i,a)=>{function c(){a(new Yr(o??"The operation was aborted."))}s(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}s(u,"removeListeners");function p(){r?.(),u(),c()}if(s(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),i(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}s(k6,"createAbortablePromise");var qXe="The delay was aborted.";function _f(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return k6(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:s(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??qXe})}s(_f,"delay");function sc(t){if(xu(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}`}}s(sc,"getErrorMessage");function pre(t){return xu(t)}s(pre,"isError");function Fl(){return Wu()}s(Fl,"randomUUID");var f0=Lu;var Are=Symbol("rawContent");function G6(t){return typeof t[Are]=="function"}s(G6,"hasRawContent");function lre(t){return G6(t)?t[Are]():t}s(lre,"getRawContent");var U3=Lf;function H6(){let t=v3();return{name:U3,sendRequest:s(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)G6(n.body)&&(n.body=lre(n.body));return t.sendRequest(e,r)},"sendRequest")}}s(H6,"multipartPolicy");var X6=M3;function V6(){return m3()}s(V6,"decompressResponsePolicy");function J6(t={}){return g3(t)}s(J6,"defaultRetryPolicy");function Y6(){return O3()}s(Y6,"formDataPolicy");function ac(t){return F6(t)}s(ac,"getDefaultProxySettings");function $6(t,e){return S3(t,e)}s($6,"proxyPolicy");var dre="setClientRequestIdPolicy";function j6(t="x-ms-client-request-id"){return{name:dre,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}s(j6,"setClientRequestIdPolicy");function K6(t){return F3(t)}s(K6,"agentPolicy");function Z6(t){return W3(t)}s(Z6,"tlsPolicy");var Wl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function bre(t={}){let e=new eS(t.parentContext);return t.span&&(e=e.setValue(Wl.span,t.span)),t.namespace&&(e=e.setValue(Wl.namespace,t.namespace)),e}s(bre,"createTracingContext");var eS=class t{static{s(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!$Ve(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",C1("InvalidTag",l,Ut(t,i))}let p=HVe(t,i);if(p===!1)return C1("InvalidAttr","Attributes for '"+u+"' have open quote.",Ut(t,i));let A=p.value;if(i=p.index,A[A.length-1]==="/"){let l=i-A.length;A=A.substring(0,A.length-1);let b=jre(A,e);if(b===!0)n=!0;else return C1(b.err.code,b.err.msg,Ut(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return C1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Ut(t,a));if(r.length===0)return C1("InvalidTag","Closing tag '"+u+"' has not been opened.",Ut(t,a));{let l=r.pop();if(u!==l.tagName){let b=Ut(t,l.tagStartPos);return C1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Ut(t,a))}r.length==0&&(o=!0)}}else return C1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Ut(t,i));else{let l=jre(A,e);if(l!==!0)return C1(l.err.code,l.err.msg,Ut(t,i-A.length+l.err.line));if(o===!0)return C1("InvalidXml","Multiple possible root nodes found.",Ut(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=$re(t,i);continue}else if(t[i+1]==="?"){if(i=Yre(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=JVe(t,i);if(l==-1)return C1("InvalidChar","char '&' is not expected.",Ut(t,i));i=l}else if(o===!0&&!Jre(t[i]))return C1("InvalidXml","Extra text at the end",Ut(t,i));t[i]==="<"&&i--}}else{if(Jre(t[i]))continue;return C1("InvalidChar","char '"+t[i]+"' is not expected.",Ut(t,i))}if(n){if(r.length==1)return C1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ut(t,r[0].tagStartPos));if(r.length>0)return C1("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return C1("InvalidXml","Start tag expected.",1);return!0}s(rE,"validate");function Jre(t){return t===" "||t===" "||t===`
`||t==="\r"}s(Jre,"isWhiteSpace");function Yre(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 C1("InvalidXml","XML declaration allowed only at the start of the document.",Ut(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}s(Yre,"readPI");function $re(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}s($re,"readCommentAndCDATA");var UVe='"',GVe="'";function HVe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===UVe||t[e]===GVe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}s(HVe,"readAttributeStr");var XVe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jre(t,e){let r=eE(t,XVe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return C1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",jf(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return C1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",jf(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return C1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",jf(r[o]));let i=r[o][2];if(!YVe(i))return C1("InvalidAttr","Attribute '"+i+"' is an invalid name.",jf(r[o]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return C1("InvalidAttr","Attribute '"+i+"' is repeated.",jf(r[o]))}return!0}s(jre,"validateAttributeString");function VVe(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}s(VVe,"validateNumberAmpersand");function JVe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,VVe(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}s(JVe,"validateAmpersand");function C1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}s(C1,"getErrorObject");function YVe(t){return hS(t)}s(YVe,"validateAttrName");function $Ve(t){return hS(t)}s($Ve,"validateTagName");function Ut(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}s(Ut,"getLineNumberForPosition");function jf(t){return t.startIndex+t[1].length}s(jf,"getPositionFromMatch");var Kre={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:"%",amp:"&",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"},Zre={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"},ene={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:"\Line truncated
`);let e=new Ar("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,i=new eM(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=_l(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let M=l.indexOf(":");M!==-1&&(l=l.substr(M+1))}l=qS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=DS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),i.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new Ar(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=_l(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=_l(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=DS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,M=A.tagExp,z=A.attrExpPresent,O=A.closeIndex;if({tagName:l,tagExp:M}=qS(o.transformTagName,l,M,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),M=l):M=M.substr(0,M.length-1),z=l!==M);let B=null,q={},D;D=zJe(b),l!==e.tagname&&this.matcher.push(l,{},D),l!==M&&z&&(B=this.buildAttributesMap(M,this.matcher,l),B&&(q=hJe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ce=this.readStopNodeData(t,b,O+1);if(!ce)throw new Error(`Unexpected end of ${b}`);c=ce.i,x=ce.tagContent}let _=new Ar(l);B&&(_[":@"]=B),_.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,F)}else{if(E){({tagName:l,tagExp:M}=qS(o.transformTagName,l,M,o));let x=new Ar(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new Ar(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new Ar(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),r=x}n="",c=O}}}else n+=t[c];return e.child},"parseXml");function BJe(t,e,r,n){this.options.captureMetaData||(n=void 0);let o=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,o,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}s(BJe,"addChild");function qJe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let o=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,o)))return t}if(n.tagFilter){let o=this.options.jPath?r.toString():r;if(!n.tagFilter(e,o))return t}return this.entityDecoder.decode(t)}s(qJe,"replaceEntitiesValue");function DJe(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}s(DJe,"saveTextToParentTag");function IJe(){return this.stopNodeExpressionsLine truncated
`;function vJe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(FS(r)==="?xml"){let o=r[":@"];if(o){let i=e.attributeNamePrefix+"version";if(o[i])return o[i]}}return"1.0"}s(vJe,"detectXmlVersionFromArray");function gne(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}s(gne,"resolveTagName");function SS(t,e){let r="";e.format&&(r=TJe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Kr(c)):c instanceof Kr&&n.push(c)}let o=vJe(t,e),i=new di;return One(t,e,r,i,n,o)}s(SS,"toXml");function One(t,e,r,n,o,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=wS(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],A=FS(p);if(A===void 0)continue;let b=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:gne(A,!1,e,n,i),M=LJe(p[":@"],e);n.push(b,M);let z=QJe(n,o);if(b===e.textNodeName){let q=p[A];z||(q=e.tagValueProcessor(b,q),q=wS(q,e)),c&&(a+=r),a+=q,c=!1,n.pop();continue}else if(b===e.cdataPropName){c&&(a+=r);let q=p[A][0][e.textNodeName],D=aE(q);a+=`<![CDATA[${D}]]>`,c=!1,n.pop();continue}else if(b===e.commentPropName){let q=p[A][0][e.textNodeName],D=sE(q);a+=r+`<!--${D}-->`,c=!0,n.pop();continue}else if(b[0]==="?"){let q=zne(p[":@"],e,z,n,i);a+=(b==="?xml"?"":r)+`<${b}${q}?>`,c=!0,n.pop();continue}let O=r;O!==""&&(O+=e.indentBy);let y=zne(p[":@"],e,z,n,i),E=r+`<${b}${y}`,B;z?B=Ene(p[A],e):B=One(p[A],e,O,n,o,i),e.unpairedTags.indexOf(b)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${b}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${b}>`),c=!0,n.pop()}return a}s(One,"arrToStr");function LJe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let i=o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o;r[i]=pc(t[o]),n=!0}return n?r:null}s(LJe,"extractAttributeValues");function Ene(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let o=t[n],i=FS(o);if(i===e.textNodeName)r+=o[i];else if(i===e.cdataPropName)r+=o[i][0][e.textNodeName];else if(i===e.commentPropName)r+=o[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=_Je(o[":@"],e),c=Ene(o[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}s(Ene,"getRawContent");function _Je(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];o===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${pc(o)}"`}return r}s(_Je,"attr_to_str_raw");function FS(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}}s(FS,"propName");function zne(t,e,r,n,o){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:gne(c,!0,e,n,o),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=wS(p,e)),p===!0&&e.suppressBooleanAttributes?i+=` ${u}`:i+=` ${u}="${pc(p)}"`}return i}s(zne,"attr_to_str");function QJe(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}s(QJe,"checkStopNode");function wS(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}s(wS,"replaceEntitiesValue");function WS(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}s(WS,"getIgnoreAttributesFn");var PJe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:s(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:s(function(t,e){return e},"attributeValueProcessor"),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 dr(t){if(this.options=Object.assign({},PJe,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&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}s(dr,"Builder");function kJe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let o=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(o)return o}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}s(kJe,"detectXmlVersionFromObj");function xS(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}s(xS,"resolveTagName");dr.prototype.build=function(t){if(this.options.preserveOrder)return SS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new di,r=kJe(t,this.options);return this.j2x(t,0,e,r).val}};dr.prototype.j2x=function(t,e,r,n){let o="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let A=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:xS(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(i+="");else if(t[u]===null)this.isAttribute(u)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[u]instanceof Date)i+=this.buildTextValNode(t[u],A,"",e,r);else if(typeof t[u]!="object"){let l=this.isAttribute(u);if(l&&!this.ignoreAttributesFn(l,a)){let b=xS(l,!0,this.options,r,n);o+=this.buildAttrPairStr(b,""+t[u],c)}else if(!l)if(u===this.options.textNodeName){let b=this.options.tagValueProcessor(u,""+t[u]);i+=this.replaceEntitiesValue(b)}else{r.push(A);let b=this.checkStopNode(r);if(r.pop(),b){let M=""+t[u];M===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+M+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[u],A,"",e,r)}}else if(Array.isArray(t[u])){let l=t[u].length,b="",M="";for(let z=0;z<l;z++){let O=t[u][z];if(!(typeof O>"u"))if(O===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof O=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(O,e+1,r,n);r.pop(),b+=y.val,this.options.attributesGroupName&&O.hasOwnProperty(this.options.attributesGroupName)&&(M+=y.attrStr)}else b+=this.processTextOrObjNode(O,A,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,O);y=this.replaceEntitiesValue(y),b+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+O;E===""?b+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:b+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else b+=this.buildTextValNode(O,A,"",e,r)}}this.options.oneListGroup&&(b=this.buildObjectNode(b,A,M,e)),i+=b}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let l=Object.keys(t[u]),b=l.length;for(let M=0;M<b;M++){let z=xS(l[M],!0,this.options,r,n);o+=this.buildAttrPairStr(z,""+t[u][l[M]],c)}}else i+=this.processTextOrObjNode(t[u],A,e,r,n)}return{attrStr:o,val:i}};dr.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+'="'+pc(e)+'"'};function UJe(t,e,r,n,o){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,o);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}s(UJe,"processTextOrObjNode");dr.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 o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;let i=o.startsWith(this.options.attributeNamePrefix)?o.substring(this.options.attributeNamePrefix.length):o;e[i]=pc(n[o]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=this.isAttribute(n);o&&(e[o]=pc(t[n]),r=!0)}return r?e:null};dr.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.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Re.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(o=>o.name.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE));r.sort((o,i)=>hE(o.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((o,i,a)=>!(i>0&&o.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(o=>{n+=`${o.name.toLowerCase().trimRight()}:${o.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=fE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=ME(e.url),i={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();i[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var s1=class extends Xu{static{s(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new iM(e,r,this)}computeHMACSHA256(e){return(0,Nne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var P1=ui("storage-common");var Nn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Nn||(Nn={}));var lc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Nn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},KJe=new Yr("The operation was aborted."),sM=class extends bi{static{s(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=lc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:lc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):lc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:lc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:lc.maxRetryDelayInMs):lc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:lc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:lc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(o.url=bE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=Ac(o.url,Xs.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(P1.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(P1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return P1.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(o){for(let a of i)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return P1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return P1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return P1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(P1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case Nn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Nn.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return P1.info(`RetryPolicy: Delay for ${o}ms`),mE(o,n,KJe)}};var aM=class{static{s(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sM(e,r,this.retryOptions)}};var ZJe="storageBrowserPolicy";function wne(){return{name:ZJe,async sendRequest(t,e){return f0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ac(t.url,Xs.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}s(wne,"storageBrowserPolicy");var eYe="StorageCorrectContentLengthPolicy";function Sne(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Re.CONTENT_LENGTH,Buffer.byteLength(e.body))}return s(t,"correctContentLength"),{name:eYe,async sendRequest(e,r){return t(e),r(e)}}}s(Sne,"storageCorrectContentLengthPolicy");var tYe="storageRetryPolicy",Pl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Nn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rYe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],nYe=new Yr("The operation was aborted.");function Fne(t={}){let e=t.retryPolicyType??Pl.retryPolicyType,r=t.maxTries??Pl.maxTries,n=t.retryDelayInMs??Pl.retryDelayInMs,o=t.maxRetryDelayInMs??Pl.maxRetryDelayInMs,i=t.secondaryHost??Pl.secondaryHost,a=t.tryTimeoutInMs??Pl.tryTimeoutInMs;function c({isPrimaryRetry:p,attempt:A,response:l,error:b}){if(A>=r)return Line truncated
`)+`
`+n(i)+o(i),c=(0,Wne.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(Re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}s(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===Re.CONTENT_LENGTH&&c==="0"?"":c}s(r,"getHeaderValueToSign");function n(i){let a=[];for(let[u,p]of i.headers)u.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>hE(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,A)=>!(p>0&&u.name.toLowerCase()===A[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}s(n,"getCanonicalizedHeadersString");function o(i){let a=fE(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=ME(i.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
${l}:${decodeURIComponent(p[l])}`}return c}return s(o,"getCanonicalizedResourceString"),{name:oYe,async sendRequest(i,a){return e(i),a(i)}}}s(QS,"storageSharedKeyCredentialPolicy");var iYe="storageRequestFailureDetailsParserPolicy";function xne(){return{name:iYe,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}}}}s(xne,"storageRequestFailureDetailsParserPolicy");var Tne=require("node:crypto");var zE=class{static{s(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Tne.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var gE="12.31.0",OE="2026-02-06";var EE="https://storage.azure.com/.default",Vs={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var go="",PS="*",sYe=1*1024*1024;var aYe=4*sYe;var vne="AES256",Lne="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",_ne=["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"],Qne=["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"],Pne="BlobUsesCustomerSpecifiedEncryption",kne="BlobDoesNotUseCustomerSpecifiedEncryption",Une=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Js(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}s(Js,"isPipelineLike");var cM=class{static{s(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function y1(t,e={}){t||(t=new V0);let r=new cM([],e);return r._credential=t,r}s(y1,"newPipeline");function cYe(t){let e=[uYe,Gne,pYe,AYe,lYe,dYe,fYe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(o=>o(n)));if(r.length){let n=r.some(o=>bYe(o));return{wrappedPolicies:MS(r),afterRetry:n}}}}s(cYe,"processDownlevelPipeline");function kS(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?mS(e):_S(),t._coreHttpClient=n);let o=t._corePipeline;if(!o){let i=`azsdk-js-azure-storage-blob/${gE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;o=Gf({...r,loggingOptions:{additionalAllowedHeaderNames:_ne,additionalAllowedQueryParameters:Qne,logger:uE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:cE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:vS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),o.removePolicy({phase:"Retry"}),o.removePolicy({name:X6}),o.addPolicy(Sne()),o.addPolicy(Fne(r.retryOptions),{phase:"R Line truncated
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Bo(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:o}}s(cje,"generateBlobSASQueryParameters20150405");function uje(t,e){if(t=tp(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 o;t.permissions&&(t.blobName?o=wi.parse(t.permissions.toString()).toString():o=Si.parse(t.permissions.toString()).toString());let i=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bo(t.version,a,o,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}}s(uje,"generateBlobSASQueryParameters20181109");function pje(t,e){if(t=tp(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 o;t.permissions&&(t.blobName?o=wi.parse(t.permissions.toString()).toString():o=Si.parse(t.permissions.toString()).toString());let i=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bo(t.version,a,o,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}}s(pje,"generateBlobSASQueryParameters20201206");function Aje(t,e){if(t=tp(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 o;t.permissions&&(t.blobName?o=wi.parse(t.permissions.toString()).toString():o=Si.parse(t.permissions.toString()).toString());let i=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bo(t.version,a,o,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}}s(Aje,"generateBlobSASQueryParametersUDK20181109");function lje(t,e){if(t=tp(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 o;t.permissions&&(t.blobName?o=wi.parse(t.permissions.toString()).toString():o=Si.parse(t.permissions.toString()).toString());let i=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bo(t.version,a,o,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}}s(lje,"generateBlobSASQueryParametersUDK20200210");function dje(t,e){if(t=tp(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 o;t.permissions&&(t.blobName?o=wi.parse(t.permissions.toString()).toString():o=Si.parse(t.permissions.toString()).toString());let i=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bo(t.version,a,o,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}}s(dje,"generateBlobSASQueryParametersUDK20201206");function bje(t,e){if(t=tp(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 o;t.permissions&&(t.blobName?o=wi.parse(t.permissions.toString()).toString():o=Si.parse(t.permissions.toString()).toString());let i=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bo(t.version,a,o,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}}s(bje,"generateBlobSASQueryParametersUDK20250705");function ep(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}s(ep,"getCanonicalName");function tp(t){let e=t.version?t.version:OE;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}s(tp,"SASSignatureValuesSanityCheckAndAutofill");var gM=class{static{s(this,"BlobLeaseClient")}_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=Fl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||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 Ae.withSpan("BlobLeaseClient-acquireLease",r,async n=>be(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!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||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 Ae.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=be(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==go||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==go||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 Ae.withSpan("BlobLeaseClient-releaseLease",e,async r=>be(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!==go||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==go||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 val 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"}};Zl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ip=class extends Error{static{s(this,"UsageError")}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"}};ip.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NM=class extends Error{static{s(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var yKe=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})},ST=class{static{s(this,"UploadProgress")}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,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=s(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Vie(t,e,r){return yKe(this,void 0,void 0,function*(){var n;let o=new ta(t),i=o.getBlockBlobClient(),a=new ST((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new qC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw r0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}s(Vie,"uploadCacheArchiveSDK");var Yie=w(require("buffer"),1),Fi=w(require("fs"),1),$ie=w(require("stream"),1),jie=w(require("util"),1);var DC=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})};function IC(t){return t?t>=200&&t<300:!1}s(IC,"isSuccessStatusCode");function BKe(t){return t?t>=500:!0}s(BKe,"isServerErrorStatusCode");function qKe(t){return t?[i1.BadGateway,i1.ServiceUnavailable,i1.GatewayTimeout].includes(t):!1}s(qKe,"isRetryableStatusCode");function DKe(t){return DC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}s(DKe,"sleep");function Jie(t,e,r){return DC(this,arguments,void 0,function*(n,o,i,a=KO,c=ZO,u=void 0){let p="",A=1;for(;A<=a;){let l,b,M=!1;try{l=yield o()}catch(z){u&&(l=u(z)),M=!0,p=z.message}if(l&&(b=i(l),!BKe(b)))return l;if(b&&(M=qKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!M){N(`${n} - Error is not retryable`);break}yield DKe(c),A++}throw Error(`${n} failed: ${p}`)})}s(Jie,"retry");function wM(t,e){return DC(this,arguments,void 0,function*(r,n,o=KO,i=ZO){return yield Jie(r,n,a=>a.statusCode,o,i,a=>{if(a instanceof ii)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}s(wM,"retryTypedResponse");function e2(t,e){return DC(this,arguments,void 0,function*(r,n,o=KO,i=ZO){return yield Jie(r,n,a=>a.message.statusCode,o,i)})}s(e2,"retryHttpClientResponse");var xn=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})};function IKe(t,e){return xn(this,void 0,void 0,function*(){yield jie.promisify($ie.pipeline)(t.message,e)})}s(IKe,"pipeResponseToStream");var RC=class{static{s(this,"DownloadProgress")}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,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])N(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}s(xKe,"printCachesListForDiagnostics");function TT(t,e,r){return fr(this,void 0,void 0,function*(){let n=new ase.URL(t),o=tse(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield Zie(t,e,o):o.concurrentBlobDownloads?yield Kie(t,e,o):yield NC(t,e):yield NC(t,e)})}s(TT,"downloadCache");function use(t,e,r){return fr(this,void 0,void 0,function*(){let n=xT(),o=yl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:o,cacheSize:r?.cacheSize};return yield wM("reserveCache",()=>fr(this,void 0,void 0,function*(){return n.postJson(FM("caches"),i)}))})}s(use,"reserveCache");function sse(t,e){return`bytes ${t}-${e}/*`}s(sse,"getContentRange");function TKe(t,e,r,n,o){return fr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${sse(n,o)}`);let i={"Content-Type":"application/octet-stream","Content-Range":sse(n,o)},a=yield e2(`uploadChunk (start: ${n}, end: ${o})`,()=>fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!IC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}s(TKe,"uploadChunk");function vKe(t,e,r,n){return fr(this,void 0,void 0,function*(){let o=oi(r),i=FM(`caches/${e.toString()}`),a=t2.openSync(r,"r"),c=FT(n),u=i6("uploadConcurrency",c.uploadConcurrency),p=i6("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>fr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),M=l,z=l+b-1;l+=p,yield TKe(t,i,()=>t2.createReadStream(r,{fd:a,start:M,end:z,autoClose:!1}).on("error",O=>{throw new Error(`Cache upload failed because file read failed with ${O.message}`)}),M,z)}})))}finally{t2.closeSync(a)}})}s(vKe,"uploadFile");function LKe(t,e,r){return fr(this,void 0,void 0,function*(){let n={size:r};return yield wM("commitCache",()=>fr(this,void 0,void 0,function*(){return t.postJson(FM(`caches/${e.toString()}`),n)}))})}s(LKe,"commitCache");function vT(t,e,r,n){return fr(this,void 0,void 0,function*(){if(FT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Vie(r,e,n)}else{let i=xT();N("Upload cache"),yield vKe(i,t,e,n),N("Commiting cache");let a=oi(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield LKe(i,t,a);if(!IC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}s(vT,"saveCache");var nae=w($se(),1),D1=w(q1(),1),tn=w(q1(),1),pp=w(q1(),1),Ap=w(q1(),1),lp=w(q1(),1);var wv=w(q1(),1),Sv=w(q1(),1),eae=w(q1(),1),tae=w(q1(),1),rae=w(q1(),1);var Iv=w(q1(),1),Rv=w(q1(),1),jse=w(q1(),1),Kse=w(q1(),1),Zse=w(q1(),1);var Nv=class extends Zse.MessageType{static{s(this,"CacheScope$Type")}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,Kse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let i=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Rv.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,A)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Iv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Iv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Rv.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},my=new Nv;var Fv=class extends rae.MessageType{static{s(this,"CacheMetadata$Type")}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:s(()=>my,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,tae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,eae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let i=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(my.internalBinaryRead(e,e.uint32(),n));break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Sv.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,A)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield Jv(r,"create");yield Yv(n,t)})}s(jv,"createTar");var h2=function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return s(o,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}s(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}s(u,"rejected");function p(A){A.done?i(A.value):o(A.value).then(c,u)}s(p,"step"),p((n=n.apply(t,e||[])).next())})},Io=class t extends Error{static{s(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},dp=class t extends Error{static{s(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Kv="cache write denied:",m2=class t extends dp{static{s(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Oy=class t extends Error{static{s(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function aae(t){if(!t||t.length===0)throw new Io("Path Validation Error: At least one directory or file path is required")}s(aae,"checkPaths");function Zv(t){if(t.length>512)throw new Io(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Io(`Key Validation Error: ${t} cannot contain commas.`)}s(Zv,"checkKey");function eL(){return SM()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}s(eL,"isFeatureAvailable");function cae(t,e,r,n){return h2(this,arguments,void 0,function*(o,i,a,c,u=!1){let p=SM();return N(`Cache service version: ${p}`),aae(o),p==="v2"?yield Ze0(o,i,a,c,u):yield Ke0(o,i,a,c,u)})}s(cae,"restoreCache");function Ke0(t,e,r,n){return h2(this,arguments,void 0,function*(o,i,a,c,u=!1){a=a||[];let p=[i,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of p)Zv(b);let A=yield wf(),l="";try{let b=yield cse(p,o,{compressionMethod:A,enableCrossOsArchive:u});if(!b?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),b.cacheKey;l=YM.join(yield Rf(),nc(A)),N(`Archive Path: ${l}`),yield TT(b.archiveLocation,l,c),vs()&&(yield JM(l,A));let M=oi(l);return S(`Cache Size: ~${Math.round(M/(1024*1024))} MB (${M} B)`),yield $v(l,A),S("Cache restored successfully"),b.cacheKey}catch(b){let M=b;if(M.name===Io.name)throw b;M instanceof ii&&typeof M.statusCode=="number"&&M.statusCode>=500?ll(`Failed to restore: ${b.message}`):r0(`Failed to restore: ${b.message}`)}finally{try{yield Nf(l)}catch(b){N(`Failed to delete archive: ${b}`)}}})}s(Ke0,"restoreCacheV1");function Ze0(t,e,r,n){return h2(this,arguments,void 0,function*(o,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of p)Zv(l);let A="";try{let l=Vv(),b=yield wf(),M={key:i,restoreKeys:a,version:yl(o,b,u)},z=yield l.GetCacheEntryDownloadURL(M);if(!z.ok){N(`Cache not found for version ${M.version} of keys: ${p.join(", ")}`);return}if(M.key!==z.matchedKey?S(`Cache hit for restore-key: ${z.matchedKey}`):S(`Cache hit for: ${z.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),z.matchedKey;A=YM.join(yield Rf(),nc(b)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield TT(z.signedDownloadUrl,A,c);let y=oi(A);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),vs()&&(yield JM(A,b)),yield $v(A,b),S("Cache restored successfully"),z.matchedKey}catch(l){let b=l;if(b.name===Io.name)throw l;b instanceof ii&&typeof b.statusCode=="number"&&b.statusCode>=500?ll(`Failed to restore: ${l.message}`):r0(`Failed to restore: ${l.message}`)}finally{try{A&&(yield Nf(A))}catch(l){N(`Failed to delete archive: ${l}`)}}})}s(Ze0,"restoreCacheV2");function tL(t,e,r){return h2(this,arguments,void 0,function*(n,o,i,a=!1){let c=SM();return N(`Cache service version: ${c}`),aae(n),Zv(o),c==="v2"?yield t00(n,o,i,a):yield e00(n,o,i,a)})}s(tL,"saveCache");function e00(t,e,r){return h2(this,arguments,void 0,function*(n,o,i,a=!1){var c,u,p,A,l,b;let M=yield wf(),z=-1,O=yield o6(n);if(N("Cache Paths:"),N(`${JSON.stringify(O)}`),O.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 y=yield Rf(),E=YM.join(y,nc(M));N(`Archive Path: ${E}`);try{yield jv(y,O,M),vs()&&(yield JM(E,M));let B=10*1024*1024*1024,q=oi(E);if(N(`File Size: ${q}`),q>B&&!WT())throw new Error(`Cache size of ~${Math.round(q/(1024*1024))} MB (${q} B) is over the 10GB limit, not saving cache.`);N("Reserving Cache");let D=yield use(o,n,{compressionMethod:M,enableCrossOsArchive:a,cacheSize:q});if(!((c=D?.result)===null||c===void 0)&&c.cacheId)z=(u=D?.result)= Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}s(Y00,"_buildMessageForResponseErrors");var $00=class extends Error{static{s(this,"GraphqlResponseError")}constructor(t,e,r){super(Y00(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},j00=["method","baseUrl","url","headers","request","query","mediaType","operationName"],K00=["query","method","url"],Yae=/\/api\/v3\/?$/;function Z00(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 a in r)if(K00.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>j00.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Yae.test(i)&&(o.url=i.replace(Yae,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new $00(o,c,a.data)}return a.data.data})}s(Z00,"graphql");function bL(t,e){let r=t.defaults(e);return Object.assign(s((o,i)=>Z00(r,o,i),"newApi"),{defaults:bL.bind(null,r),endpoint:r.endpoint})}s(bL,"withDefaults");var me1=bL(ZM,{headers:{"user-agent":`octokit-graphql.js/${J00} ${Oc()}`},method:"POST",url:"/graphql"});function $ae(t){return bL(t,{method:"POST",url:"/graphql"})}s($ae,"withCustomRequest");var fL="(?:[a-zA-Z0-9_-]+)",jae="\\.",Kae=new RegExp(`^${fL}${jae}${fL}${jae}${fL}$`),e10=Kae.test.bind(Kae);async function t10(t){let e=e10(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"}}s(t10,"auth");function r10(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}s(r10,"withAuthorizationPrefix");async function n10(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=r10(t),e(o)}s(n10,"hook");var Zae=s(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(t10.bind(null,e),{hook:n10.bind(null,e)})},"createTokenAuth2");var ML="7.0.6";var ece=s(()=>{},"noop"),o10=console.warn.bind(console),i10=console.error.bind(console);function s10(t={}){return typeof t.debug!="function"&&(t.debug=ece),typeof t.info!="function"&&(t.info=ece),typeof t.warn!="function"&&(t.warn=o10),typeof t.error!="function"&&(t.error=i10),t}s(s10,"createLogger");var tce=`octokit-core.js/${ML} ${Oc()}`,Wy=class{static{s(this,"Octokit")}static VERSION=ML;static defaults(e){return class extends this{static{s(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{s(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new Iae.Collection,n={baseUrl:ZM.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} ${tce}`:tce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=ZM.defaults(n),this.graphql=$ae(this.request).defaults(n),this.log=s10(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Zae(e.auth);r.wrap("request",i.hook),this.auth=i}let o=this.constructor;for(let i=0;i<o.plugins.length;++i)Object.assign(this,o.plugins[i](this,e))}request;graphql;log;hook;auth};var mL="17.0.0";var a10={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" Line truncated
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:s(function(n,o,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:F,quote:x,record_delimiter:_}=this.options,{bomSkipped:ce,delimiterDiscovered:ye,delimiterBufPrevious:Ne,rawBuffer:De,escapeIsQuote:ge}=this.state;if(!ye&&p){let j;if(Ne===void 0?j=n:Ne!==void 0&&n===void 0?j=Ne:j=Buffer.concat([Ne,n]),n=void 0,o||j.length>p.size)this.options.delimiter=[Buffer.from(lle(j,this.options.delimiter_auto))],this.state.previousBuf=j,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=j;return}}let{previousBuf:Fe}=this.state,k;if(Fe===void 0)if(n===void 0){a();return}else k=n;else Fe!==void 0&&n===void 0?k=Fe:k=Buffer.concat([Fe,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(k.length<3){if(o===!1){this.state.previousBuf=k;return}}else{for(let j in v2)if(v2[j].compare(k,0,v2[j].length)===0){let $e=v2[j].length;this.state.bufBytesStart+=$e,k=k.slice($e);let m1=T2({...this.original_options,encoding:j});for(let ze in m1)this.options[ze]=m1[ze];({comment:D,escape:F,quote:x}=this.options);break}this.state.bomSkipped=!0}let Te=k.length,T;for(T=0;T<Te&&!this.__needMoreData(T,Te,o);T++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(k,T)&&(_=this.options.record_delimiter);let j=k[T];if(z===!0&&De.append(j),(j===Us0||j===Gs0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(F!==null&&this.state.quoting===!0&&this.__isEscape(k,T,j)&&T+F.length<Te)if(ge){if(this.__isQuote(k,T+F.length)){this.state.escaping=!0,T+=F.length-1;continue}}else{this.state.escaping=!0,T+=F.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,T))if(this.state.quoting===!0){let ze=k[T+x.length],D0=y&&this.__isCharTrimable(k,T+x.length),je=D!==null&&this.__compareBytes(D,k,T+x.length,ze),X=this.__isDelimiter(k,T+x.length,ze),Rt=_.length===0?this.__autoDiscoverRecordDelimiter(k,T+x.length):this.__isRecordDelimiter(ze,k,T+x.length);if(F!==null&&this.__isEscape(k,T,j)&&this.__isQuote(k,T+F.length))T+=F.length-1;else if(!ze||X||Rt||je||D0){this.state.quoting=!1,this.state.wasQuoting=!0,T+=x.length-1;continue}else if(O===!1){let Nt=this.__error(new Je("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ze)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Nt!==void 0)return Nt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),T+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let ze=this.__infoField(),D0=Object.keys(v2).map(X=>v2[X].equals(this.state.field.toString())?X:!1).filter(Boolean)[0],je=this.__error(new Je("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ze.column)} at line ${ze.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,D0?`(${D0} bom)`:void 0],this.options,ze,{field:this.state.field}));if(je!==void 0)return je}}else{this.state.quoting=!0,T+=x.length-1;continue}if(this.state.quoting===!1){let ze=this.__isRecordDelimiter(j,k,T);if(ze!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),T+=ze-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,T+=ze-1;continue}this.info.bytes=this.state.bufBytesStart+T;let X=this.__onField();if(X!==void 0)return X;this.info.bytes=this.state.bufBytesStart+T+ze;let Rt=this.__onRecord(i);if(Rt!==void 0)return Rt;if(B!==-1&&this.info.records>=B){this.state.stop=!0,a();return}}this.state.commenting=!1,T+=ze-1;continue}if(this.state.commenting)continue;if(D!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(D,k,T,j)!==0){this.state.commenting=!0;continue}let D0=this.__isDelimiter(k,T,j);if(D0!==0){this.info.bytes=this.state.bufBytesStart+T;let je=this.__onField();if(je!==void 0)return je;T+=D0-1;continue}}}if(this.state.commenting===!1&&M!==0&&this.state.record_length+this.state.field.length>M)return this.__error(new Je("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${M}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let $e=b===!1||this.state.quoting===!0||this.state.field.length!==0||!thi Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:s(function(n){let{encoding:o,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:s(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:s(function(){let{columns:n,raw:o,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:s(function(){let{columns:n}=this.options,o=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var an=s(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=v4(e),o=s(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=s(()=>{},"close"),a=n.parse(t,!0,o,i);if(a!==void 0)throw a;return r},"parse");var l0=class t{static{s(this,"Util")}static getInputList(e,r){return this.getList(kr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let o=an(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of o)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=kr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await at("powershell",!0),o=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${o}' ${i.join(" ")}`]}}static isDirectory(e){try{return ble.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return Y_.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){return Y_.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return fle.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Em.default.resolve(e);return Em.default.resolve(r).startsWith(n.endsWith(Em.default.sep)?n:`${n}${Em.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),o=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),o&&a.push(`${o}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Bt=class t{static{s(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Cm.default.join(Mle.default.homedir(),".docker")}static configFile(){let e=Cm.default.join(t.configDir,"config.json");if($_.default.existsSync(e))return JSON.parse($_.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await at("docker",!0).then(e=>(N(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(N(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
More info: ${u.url}`);let M=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let O of a)if(O.remote||O.path.endsWith(p)&&O.content===A){c.push({title:l,message:b,file:O.path,startLine:M}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var yp=w(require("fs"),1),j_=w(require("path"),1);var L4=class t{static{s(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new S0,this.iidFilename=`build-iidfile-${l0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${l0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([M])=>!r.has(M)),i=l0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Vt.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&l0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${A0.serverURL}/${Vt.repo.owner}/${Vt.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(l0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Vt.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Vt.payload.pull_request?.head?.sha=="string"?Vt.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let M=[`ref=${i||u?a:b}`],z=i?b:u;z&&M.push(`checksum=${z}`),p&&p!=="."&&M.push(`subdir=${p}`);for(let[O,y]of o)M.push(`${O}=${y}`);return`${c}?${M.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return j_.default.join(u0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(yp.default.existsSync(e))return yp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return j_.default.join(u0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!yp.default.existsSync(e))return;let r=yp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!yp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let i=u0.tmpName({tmpdir:u0.tmpDir()});return yp.default.writeFileSync(i,o),[n,i]}static getProvenanceInput(e){let r=kr(e);if(!r)return r;try{return Yj(e)?`builder-id=${A0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${A0.workflowRunURL(!0)}`;let r=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${A0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",i="",a=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(i=u[1])}return n==="gha"&&(o||(e=`${e},repository=${A0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=an(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[i,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=an(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[i,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=an(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let i of o)try{let a=l0.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),i=e.substring(n+1);if(o.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Ko(i),[o,i]}};var K_=w(require("fs"),1),hle=w(require("path"),1);var _4=class t{static{s(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new S0,this.metadataFilename=`bake-metadata-${l0.generateRandomString()}.json`}getMetadataFilePath(){return hle.default.join(u0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!K_.default.existsSync(e))return;let r=K_.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,i=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!l0.isValidRef(u)){i.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of i)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ce.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(i=>t.parseAttestEntry(i))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(i=>t.parseCacheEntry(i))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(i=>t.parseCacheEntry(i))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(i=>t.parseExportEntry(i))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(i=>t.parseSecretEntry(i))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[i,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=l0.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[i,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let o of n){let[i,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],o="";for(let i of n){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":o=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return o==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,o]=e.split("=",2);return r.id=n, Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);N(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let o=n[1].trim();if(o.startsWith("tag: "))return await t.findDetachedTagRef(o,e);if(o.match(/^pull\/\d+\/(head|merge)$/))return`refs/${o}`;let a=o.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=o.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Ce.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[o]=n.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(o)return`refs/tags/${o}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let o=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(i=>i.trim()).filter(i=>i.length>0).sort((i,a)=>a.length-i.length);for(let i of o){let a=`tag: ${i.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return i}if(o.length===1)return o[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(o=>o.trim()).filter(o=>o.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Wbe=require("crypto"),ts=w(require("fs"),1),rs=w(require("path"),1);var bd=w(sQ(),1),xbe=w(O8(),1),fd=w(Nbe(),1);var BP=w(sQ(),1);var Sbe=w(kn(),1);var wbe="application/vnd.oci.empty.v1+json";var es=class{static{s(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ce.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ce.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ce.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=Sbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static parseCommandOutput(e){let r,n,o,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===BP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===wbe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===BP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){i=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:i}}};var qP=w(require("fs"),1);var Mq=class t{static{s(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new S0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=i.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=u0.tmpName({tmpdir:u0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await Ce.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!qP.default.existsSync(n))return;let u=qP.default.readFileSync(n,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let p=JSON.parse(u),A=p["containerimage.descriptor"];return A?{digest:p["containerimage.digest"]||A.digest,descriptor:A,imageNames:p["image.name"]?p["image.name"].split(",").map(l=>l.trim()):[]}:void 0}})}async inspect(e,r,n){let o=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(o.command,o.args,n);let i=e.retryLimit??15,a;for(let c=0;c<i;c++)try{return await this.execInspect(o.command,o.args,n Line truncated
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Ce.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var kp="https://search.sigstore.dev";var Fbe="slsaprovenance1",Pc=class t{static{s(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new es,this.imageTools=e?.imageTools||new Mq}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let o of e.imageNames){let i=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of i){let c=`${o}@${a}`;await ct(`Signing attestation manifest ${c}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];S(`[command]${this.cosign.binPath} ${[...u,c].join(" ")}`);let p=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...u,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=es.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(A.errors&&A.errors.length>0){let b=A.errors.map(M=>`- [${M.code}] ${M.message} : ${M.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${b}`)}else throw new Error(`Cosign sign command failed with: ${p.stderr.trim().split(/\r?\n/).filter(b=>b.length>0).pop()??"unknown error"}`);let l=t.parseBundle((0,bd.bundleFromJSON)(A.bundle));l.tlogID&&S(`Uploaded to Rekor transparency log: ${kp}?logIndex=${l.tlogID}`),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${c}`),r[c]={...l,imageName:o}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[o,i]of Object.entries(e))await ct(`Verifying signature of ${o}`,async()=>{let a=await this.verifyImageAttestation(o,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),n[o]=a});return n}async verifyImageAttestations(e,r){let n={},o=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(o.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of o){let c=`${i}@${a}`,u=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`);let c=es.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let o=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<o;a++){let c=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=es.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(A=>A.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${o}...
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog),o=t.getProvenanceBlobs(e);for(let i of Object.keys(o))await ct(`Signing ${i}`,async()=>{let a=o[i],c=rs.default.join(rs.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){r0(`No subjects found in provenance ${i}, skip signing.`);return}let p=rs.default.join(rs.default.dirname(i),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",i,"--type",Fbe,"--bundle",c,...n];S(`[command]${this.cosign.binPath} ${[...A,p].join(" ")}`);let l=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...A,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),b=es.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(b.errors&&b.errors.length>0){let z=b.errors.map(O=>`- [${O.code}] ${O.message} : ${O.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${z}`)}else throw new Error(`Cosign attest-blob command failed with: ${l.stderr.trim().split(/\r?\n/).filter(z=>z.length>0).pop()??"unknown error"}`);let M=t.parseBundle((0,bd.bundleFromJSON)(JSON.parse(ts.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let z of u){let[O,y]=Object.entries(z.digest)[0]||[];S(` - ${z.name} (${O}:${y})`)}M.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${kp}?logIndex=${M.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[i]={...M,bundlePath:c,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,i]of Object.entries(e)){let a=rs.default.dirname(o);await ct(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=rs.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Fbe];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await Ce.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ts.default.readFileSync(r,"utf-8")),i=(0,bd.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await xbe.getTrustedRoot(),c=(0,fd.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,fd.toSignedEntity)(i,ts.default.readFileSync(e)),p=t.parseCertificate(i),A=i.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let z=p.subjectAltName?.replace(/^uri:/i,"");if(z){if(!z.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${z}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let M=new fd.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(M)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??A0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e);return S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await ct("Creating Sigstore protobuf signing config",async()=>{let o=u0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:u0.tmpDir()}),i=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&i.push("--no-default-rekor=true"),await Ce.exec(this.cosign.binPath,i,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ts.default.readFileSync(o,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${o}`)}):(r.push("--use-signing-config"),n&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=rs.default.join(e.localExportDir,"provenance.json");if(ts.default.existsSync(r))return{[r]:ts.default.readFileSync(r)};let n=ts.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(i=>i.isDirectory());if(o.length>0&&o.length===n.length&&o.every(i=>ts.default.existsSync(rs.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of o){let c=rs.default.join(e.localExportDir,a.name,"provenance.json");i[c]=ts.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,o=n.length>0?n[0].logIndex:void 0;return{payload:(0,bd.bundleToJSON)(e),certificate:r.toString(),tlogID:o}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new Wbe.X509Certificate(r)}};var mq=class t{static{s(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new Pc} Line truncated
`)){let[p,...A]=u.split(":"),l=p.toLowerCase(),b=A.map(M=>M.trim()).join(":");if(p.length!=0)switch(!0){case l=="name":n=void 0,r.name==null?r.name=b:(i&&o.gcPolicy&&(o.gcPolicy.push(i),i=void 0),o.name&&r.nodes.push(o),o={name:b});break;case l=="driver":n=void 0,r.driver=b;break;case l=="last activity":n=void 0,r.lastActivity=new Date(b);break;case l=="endpoint":n=void 0,o.endpoint=b;break;case l=="driver options":n=void 0,o["driver-opts"]=(b.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(M=>M.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":n=void 0,o.status=b;break;case l=="buildkit daemon flags":case l=="flags":n=void 0,o["buildkitd-flags"]=b;break;case l=="buildkit version":case l=="buildkit":n=void 0,o.buildkit=b;break;case l=="platforms":{if(n=void 0,!b)break;let M=[];if(b.includes("*"))for(let z of b.split(", "))z.includes("*")&&M.push(z.replace(/\*/g,""));else M=b.split(", ");o.platforms=M.join(",");break}case l=="features":n="features",o.features={};break;case l=="labels":n="label",o.labels={};break;case l=="devices":n="devices",o.devices=o.devices||[];break;case l.startsWith("gc policy rule#"):n="gcpolicy",o.gcPolicy&&i&&(o.gcPolicy.push(i),i=void 0);break;case l.startsWith("file#"):n="file",c=p.split("#")[1],o.files=o.files||{},o.files[c]="";break;default:switch(n&&n!=="devices"&&o.devices&&a&&(o.devices.push(a),a=void 0),n||""){case"features":{o.features=o.features||{},o.features[p.trim()]=!!b;break}case"label":{o.labels=o.labels||{},o.labels[p.trim()]=b;break}case"devices":{switch(l.trim()){case"name":{o.devices&&a&&o.devices.push(a),a={},a.name=b;break}case"on-demand":{a&&b&&(a.onDemand=b=="true");break}case"automatically allowed":{a&&b&&(a.autoAllow=b=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=b)}break}case"gcpolicy":{switch(o.gcPolicy=o.gcPolicy||[],i=i||{},l.trim()){case"all":{i.all=b=="true";break}case"filters":{b&&(i.filter=b.split(","));break}case"keep duration":{i.keepDuration=b;break}case"keep bytes":{i.keepBytes=b;break}case"reserved space":{i.reservedSpace=b;break}case"max used space":{i.maxUsedSpace=b;break}case"min free space":{i.minFreeSpace=b;break}}break}case"file":{c&&o.files&&(o.files[c].length>0&&(o.files[c]+=`
`),o.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&o.devices&&o.devices.push(a),i&&o.gcPolicy&&o.gcPolicy.push(i),o.name&&r.nodes.push(o),r}};var Tbe=w(kn(),1);var hq=w(require("fs"),1);var zq=class{static{s(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!hq.default.existsSync(e))throw new Error(`config file ${e} not found`);e=hq.default.readFileSync(e,{encoding:"utf-8"})}let n=u0.tmpName({tmpdir:u0.tmpDir()});return hq.default.writeFileSync(n,e),n}};var gq=class{static{s(this,"BuildKit")}buildx;config;constructor(e){this.config=new zq,this.buildx=e?.buildx||new S0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){r0(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),Bt.getExecOutput(["inspect","--format","{{.Config.Image}}",`${S0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Bt.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new md({buildx:this.buildx}).inspect(e));for(let o of n.nodes){let i=o.buildkit;if(N(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(o.name||"")}catch{return N(`BuildKit.versionSatisfies ${o.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${o.name}: version ${i}`),n.driver=="docker"&&!i.endsWith("-moby")||!Tbe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var Oq=class t{static{s(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Bt.isAvailable();return N(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ce.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Compose.isAvailable error: ${n}`),!1));return N(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ce.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ce.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var ha=w(require("fs"),1),os=w(require("os"),1),hd=w(require("path"),1);var Cq=w(kn(),1),IP=w(require("util"),1);var Eq=class t{static{s(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);N(`Install.download version: ${n.version}`);let o=await t.getRelease(n,this.githubToken);N(`Install.download release tag name: ${o.tag_name}`);let i=await this.vspec(o.tag_name);N(`Install.download vspec: ${i}`);let a=Cq.clean(i)||"";if(!Cq.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new nt({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:hd.default.join(os.default.homedir(),".bin","docker-compose"),cacheFile:os.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return S(`Compose binary found in ${u}`),u;let p=IP.format(n.downloadURL,i,this.filename());S(`Downloading ${p}`);let A=await En(p,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${A}`);let l=await c.save(A);return S(`Cached to ${l}`),l}async installStandalone(e,r){S("Standalone mode"),r=r||u0.tmpDir();let n=hd.default.join(r,"compose-bin-standalone");ha.default.existsSync(n)||ha.default.mkdirSync(n,{recursive:!0});let o=os.default.platform()=="win32"?"compose.exe":"compose",i=hd.default.join(n,o);return ha.default.copyFileSync(e,i),S("Fixing perms"),ha.default.chmodSync(i,"0755"),ei(n),S("Added Compose to PATH"),S(`Binary path: ${i}`),i}async installPlugin(e,r){S("Docker plugin mode"),r=r||Bt.configDir;let n=hd.default.join(r,"cli-plugins");ha.default.existsSync(n)||ha.default.mkdirSync(n,{recursive:!0});let o=os.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
ARG ALPINE_VERSION="3.22"
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
COPY --from=xx / /
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=0
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \\
--mount=type=bind,source=go.mod,target=go.mod \\
--mount=type=bind,source=go.sum,target=go.sum \\
go mod download
FROM builder-base AS version
RUN --mount=type=bind,target=. <<'EOT'
git rev-parse HEAD 2>/dev/null || {
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
exit 1
}
set -ex
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
echo -n "\${VERSION}" > /tmp/.version;
EOT
FROM builder-base AS builder
ARG TARGETPLATFORM
RUN --mount=type=bind,target=. \\
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
--mount=type=cache,target=/go/pkg/mod <<EOT
set -ex
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
xx-verify --static /out/cosign
EOT
FROM scratch
COPY --from=builder /out /
`;var yq=class t{static{s(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new S0,this.sigstore=e?.sigstore||new Pc}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${n.tag_name}`);let o=await this.vspec(n.tag_name);N(`Install.download vspec: ${o}`);let i=gd.clean(o)||"";if(!gd.valid(i))throw new Error(`Invalid Cosign version "${o}".`);let a=new nt({htcName:"cosign-dl-bin",htcVersion:o,baseCacheDir:zd.default.join(So.default.homedir(),".bin"),cacheFile:So.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let u=RP.format(r.downloadURL,o,this.filename());S(`Downloading ${u}`);let p=await En(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&gd.satisfies(o,">=3.0.1")&&await this.verifySignature(p,u);let A=await a.save(p,e.skipState);return S(`Cached to ${A}`),A}async build(e,r,n){let o=await this.vspec(e);N(`Install.build vspec: ${o}`);let i=new nt({htcName:"cosign-build-bin",htcVersion:o,baseCacheDir:zd.default.join(So.default.homedir(),".bin"),cacheFile:So.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=zd.default.join(u0.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await Ce.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(vbe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),A=await i.save(p,n);return S(`Cached to ${A}`),A}async install(e,r){r=r||u0.tmpDir();let n=zd.default.join(r,"cosign-bin");$m.default.existsSync(n)||$m.default.mkdirSync(n,{recursive:!0});let o=So.default.platform()=="win32"?"cosign.exe":"cosign",i=zd.default.join(n,o);return $m.default.copyFileSync(e,i),S("Fixing perms"),$m.default.chmodSync(i,"0755"),ei(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new S0({standalone:!0}).isAvailable(),o=await new S0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)N("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&o)N("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(o)N("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new S0({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let o=await En(n,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${o}`);let i=await this.sigstore.verifyArtifact(e,o,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${kp}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(So.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=So.default.arch();break}}let r=So.default.platform()=="win32"?"windows":So.default.platform(),n=So.default.platform()=="win32"?".exe":"";return RP.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!l0.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return S(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let o;n.match(/^[0-9a-fA-F]{40}$/)?o=n:o=await pa.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${l0.trimSuffix(a,".git")}/${o}`,u=l0.hash(c);return S(`Use ${u} version spec cache key for ${c}`),u}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let o=await new A0({token:r}).releases("Cosign",e.contentOpts);if(!o[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return o[e.version]}};var Lbe=w(kn(),1);var Bq=class{static{s(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ce.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,sil Line truncated
`,sepLabels:kr("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:kr("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:kr("bake-target")||"docker-metadata-action",githubToken:kr("github-token")}}s(Qbe,"getInputs");async function Pbe(t,e){switch(t){case"workflow":return await j20(e);case"git":return await K20();default:throw new Error(`Invalid context source: ${t}`)}}s(Pbe,"getContext");async function j20(t){let e=A0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await Z20(e.sha,t),...e}}s(j20,"getContextFromWorkflow");async function K20(){let t=await pa.context();return{commitDate:await pa.commitDate(t.sha),...t}}s(K20,"getContextFromGit");async function Z20(t,e){let r=A0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:A0.context.repo.owner,repo:A0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}s(Z20,"getCommitDateFromWorkflow");var Da=w(X_(),1),v4e=w(require("fs"),1),L4e=w(require("path"),1),Vh=w(Vbe(),1),pn=w(I4e(),1),Qd=w(kn(),1);var Ye=class t extends Error{static{s(this,"CsvError")}constructor(e,r,n,...o){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let i of o)for(let a in i){let c=i[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var Xh=s(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var yD=s(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let o=t[r];if(o==null||o===!1)e[r]={disabled:!0};else if(typeof o=="string"||typeof o=="number")e[r]={name:`${o}`};else if(Xh(o)){if(typeof o.name!="string")throw new Ye("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=o}else throw new Ye("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(o)} at position ${r}`])}return e},"normalize_columns_array");var K7=class{static{s(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},Z7=K7;var R4e=s(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,o)=>{let i=Buffer.from(String.fromCharCode(o),t.encoding);return o!==63&&i.length===1&&i[0]===63||n.push(i),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new Z7(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new Z7(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var N4e=s(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var Ld=s(function(t){let e={};for(let n in t)e[N4e(n)]=t[n];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.en Line truncated
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:s(function(n,o,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:F,quote:x,record_delimiter:_}=this.options,{bomSkipped:ce,delimiterDiscovered:ye,delimiterBufPrevious:Ne,rawBuffer:De,escapeIsQuote:ge}=this.state;if(!ye&&p){let j;if(Ne===void 0?j=n:Ne!==void 0&&n===void 0?j=Ne:j=Buffer.concat([Ne,n]),n=void 0,o||j.length>p.size)this.options.delimiter=[Buffer.from(w4e(j,this.options.delimiter_auto))],this.state.previousBuf=j,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=j;return}}let{previousBuf:Fe}=this.state,k;if(Fe===void 0)if(n===void 0){a();return}else k=n;else Fe!==void 0&&n===void 0?k=Fe:k=Buffer.concat([Fe,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(k.length<3){if(o===!1){this.state.previousBuf=k;return}}else{for(let j in _d)if(_d[j].compare(k,0,_d[j].length)===0){let $e=_d[j].length;this.state.bufBytesStart+=$e,k=k.slice($e);let m1=Ld({...this.original_options,encoding:j});for(let ze in m1)this.options[ze]=m1[ze];({comment:D,escape:F,quote:x}=this.options);break}this.state.bomSkipped=!0}let Te=k.length,T;for(T=0;T<Te&&!this.__needMoreData(T,Te,o);T++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(k,T)&&(_=this.options.record_delimiter);let j=k[T];if(z===!0&&De.append(j),(j===U40||j===G40)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(F!==null&&this.state.quoting===!0&&this.__isEscape(k,T,j)&&T+F.length<Te)if(ge){if(this.__isQuote(k,T+F.length)){this.state.escaping=!0,T+=F.length-1;continue}}else{this.state.escaping=!0,T+=F.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,T))if(this.state.quoting===!0){let ze=k[T+x.length],D0=y&&this.__isCharTrimable(k,T+x.length),je=D!==null&&this.__compareBytes(D,k,T+x.length,ze),X=this.__isDelimiter(k,T+x.length,ze),Rt=_.length===0?this.__autoDiscoverRecordDelimiter(k,T+x.length):this.__isRecordDelimiter(ze,k,T+x.length);if(F!==null&&this.__isEscape(k,T,j)&&this.__isQuote(k,T+F.length))T+=F.length-1;else if(!ze||X||Rt||je||D0){this.state.quoting=!1,this.state.wasQuoting=!0,T+=x.length-1;continue}else if(O===!1){let Nt=this.__error(new Ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ze)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Nt!==void 0)return Nt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),T+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let ze=this.__infoField(),D0=Object.keys(_d).map(X=>_d[X].equals(this.state.field.toString())?X:!1).filter(Boolean)[0],je=this.__error(new Ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ze.column)} at line ${ze.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,D0?`(${D0} bom)`:void 0],this.options,ze,{field:this.state.field}));if(je!==void 0)return je}}else{this.state.quoting=!0,T+=x.length-1;continue}if(this.state.quoting===!1){let ze=this.__isRecordDelimiter(j,k,T);if(ze!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),T+=ze-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,T+=ze-1;continue}this.info.bytes=this.state.bufBytesStart+T;let X=this.__onField();if(X!==void 0)return X;this.info.bytes=this.state.bufBytesStart+T+ze;let Rt=this.__onRecord(i);if(Rt!==void 0)return Rt;if(B!==-1&&this.info.records>=B){this.state.stop=!0,a();return}}this.state.commenting=!1,T+=ze-1;continue}if(this.state.commenting)continue;if(D!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(D,k,T,j)!==0){this.state.commenting=!0;continue}let D0=this.__isDelimiter(k,T,j);if(D0!==0){this.info.bytes=this.state.bufBytesStart+T;let je=this.__onField();if(je!==void 0)return je;T+=D0-1;continue}}}if(this.state.commenting===!1&&M!==0&&this.state.record_length+this.state.field.length>M)return this.__error(new Ye("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${M}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let $e=b===!1||this.state.quoting===!0||this.state.field.length!==0||!thi Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:s(function(n){let{encoding:o,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:s(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:s(function(){let{columns:n,raw:o,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:s(function(){let{columns:n}=this.options,o=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var nA=s(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=BD(e),o=s(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=s(()=>{},"close"),a=n.parse(t,!0,o,i);if(a!==void 0)throw a;return r},"parse");function W4e(t){let e=[];if(t.length==1){let r=!1,n=nA(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let i=o.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return F4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=nA(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of o){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return F4e(e)}s(W4e,"Transform");function F4e(t){Iu("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Ru(),t}s(F4e,"output");var t9=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(t9||{}),qD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(qD||{}),DD=(r=>(r.Short="short",r.Long="long",r))(DD||{}),e9=class{static{s(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},X40={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function x4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(V40(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Iu("Processing tags input");for(let n of r)S(n.toString());return Ru(),r}s(x4e,"Transform");function V40(t){let e=nA(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new e9;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(o.length==1)r.attrs.value=o[0];else{let i=o[0].toLowerCase(),a=o[1];switch(i){case"type":{if(!Object.values(t9).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[i]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);if(Object.prototype.hasOwnProperty.call(r.attrs,"group")||(r.attrs.group="0"),isNaN(+r.attrs.group))throw new Error(`Invalid match group for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value="");break}case"edge":{Object.prototype.hasOwnProperty.call(r.attrs,"branch")||(r.attrs.branch="");break}case"ref":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"event"))throw new Error(`Missing event attribute for ${t}`);if(!Object.keys(qD).map(n=>qD[n]).includes(r.attrs.event))throw new Error(`Invalid event for ${t}`);r.attrs.event=="pr"&&!Object.prototype.hasOwnProperty.call(r.attrs,"prefix")&&(r.attrs.prefix="pr-");break}case" Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
tmp/lib/tmp.js:
(*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
moment-timezone/moment-timezone.js:
(*! moment-timezone.js *)
(*! version : 0.6.3 *)
(*! Copyright (c) JS Foundation and other contributors *)
(*! license : MIT *)
(*! github.com/moment/moment-timezone *)
xregexp/lib/xregexp.js:
(*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*)
xregexp/lib/addons/build.js:
(*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*)
xregexp/lib/addons/matchrecursive.js:
(*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*)
xregexp/lib/addons/unicode-base.js:
(*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*)
xregexp/lib/addons/unicode-blocks.js:
(*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-categories.js:
(*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-properties.js:
(*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-scripts.js:
(*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
@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.cjs.map
Generated Vendored
+7
View File
@@ -0,0 +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.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,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,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,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,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,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,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,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,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,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,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "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", "__name", "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", "__name", "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", "__name", "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", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
-195
View File
@@ -1,195 +0,0 @@
require('./sourcemap-register.js');(()=>{var r={76846:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))c(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});const p=a(64487);l(a(13776),i);l(a(45655),i);l(a(64487),i);const d=new p.DefaultArtifactClient;i["default"]=d},35592:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const c=a(68886);const l=a(68886);const p=a(68886);const d=a(68886);const u=a(68886);const A=a(68886);const h=a(68886);class Timestamp$Type extends h.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const i=Date.now();r.seconds=A.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;return r}toDate(r){return new Date(A.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const i=this.create();const a=r.getTime();i.seconds=A.PbLong.from(Math.floor(a/1e3)).toString();i.nanos=a%1e3*1e6;return i}internalJsonWrite(r,i){let a=A.PbLong.from(r.seconds).toNumber()*1e3;if(a<Date.parse("0001-01-01T00:00:00Z")||a>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let c="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")c="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")c="."+i.substring(0,6)+"Z";else c="."+i+"Z"}return new Date(a).toISOString().replace(".000Z",c)}internalJsonRead(r,i,a){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,u.typeofJsonValue)(r)+".");let c=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!c)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(c[1]+"-"+c[2]+"-"+c[3]+"T"+c[4]+":"+c[5]+":"+c[6]+(c[8]?c[8]:"Z"));if(Number.isNaN(l))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(l<Date.parse("0001-01-01T00:00:00Z")||l>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!a)a=this.create();a.seconds=A.PbLong.from(l/1e3).toString();a.nanos=0;if(c[7])a.nanos=parseInt("1"+c[7]+"0".repeat(9-c[7].length))-1e9;return a}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.pos<d){let[i,c]=r.tag();switch(i){case 1:p.seconds=r.int64().toString();break;case 2:p.nanos=r.int32();break;default:let d=a.readUnknownField;if(d==="throw")throw new globalThis.Error(`Unknown field ${i} (wire type ${c}) for ${this.typeName}`);let u=r.skip(c);if(d!==false)(d===true?l.UnknownFieldHandler.onRead:d)(this.typeName,p,i,c,u)}}return p}internalBinaryWrite(r,i,a){if(r.seconds!=="0")i.tag(1,c.WireType.Varint).int64(r.seconds);if(r.nanos!==0)i.tag(2,c.WireType.Varint).int32(r.nanos);let p=a.writeUnknownFields;if(p!==false)(p==true?l.UnknownFieldHandler.onWrite:p)(this.typeName,r,i);return i}}i.Timestamp=new Timestamp$Type},78806:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void 0;const c=a(68886);const l=a(68886);const p=a(68886);const d=a(68886);const u=a(68886);const A=a(68886);const h=a(68886);class DoubleValue$Type extends h.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,a){if(!a)a=this.create();a.value=this.refJsonReader.scalar(r,1,undefined,"value");return a}create(r){const i={value:0};globalThis.Object.defineProperty(i,A.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,u.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let l=c!==null&&c!==void 0?c:this.create(),p=r.pos+i;while(r.pos<p){let[i,c]=r.tag();switch(i){case 1:l.value=r.double();break;default:let p=a.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${i} (wire type ${c}) for ${this.typeName}`);let u=r.skip(c);Line truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const c=[];const l=new Uint8Array([13,10]);g=0;let p=false;for(const[i,d]of r){if(typeof d==="string"){const r=k.encode(a+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);c.push(r);g+=r.byteLength}else{const r=k.encode(`${a}; name="${escape(normalizeLinefeeds(i))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);c.push(r,d,l);if(typeof d.size==="number"){g+=r.byteLength+d.size+l.byteLength}else{p=true}}}const d=k.encode(`--${i}--`);c.push(d);g+=d.byteLength;if(p){g=null}b=r;h=async function*(){for(const r of c){if(r.stream){yield*r.stream()}else{yield r}}};M="multipart/form-data; boundary="+i}else if(d(r)){b=r;g=r.size;if(r.type){M=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(l.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}c=r instanceof x?r:p(r)}if(typeof b==="string"||l.isBuffer(b)){g=Buffer.byteLength(b)}if(h!=null){let i;c=new x({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:l}=await i.next();if(l){queueMicrotask((()=>{r.close()}))}else{if(!w(c)){r.enqueue(new Uint8Array(a))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const y={stream:c,source:b,length:g};return[y,M]}function safelyExtractBody(r,i=false){if(!x){x=a(63774).ReadableStream}if(r instanceof x){v(!l.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,a]=r.stream.tee();const c=z(a,{transfer:[a]});const[,l]=c.tee();r.stream=i;return{stream:l,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(l.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[I]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new O("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=q(i)}return new C([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[M]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,a]of this.headers)r[i.toLowerCase()]=a;const i=new g;let a;try{a=new c({headers:r,preservePath:true})}catch(r){throw new O(`${r}`,"AbortError")}a.on("field",((r,a)=>{i.append(r,a)}));a.on("file",((r,a,c,l,p)=>{const d=[];if(l==="base64"||l.toLowerCase()==="base64"){let l="";a.on("data",(r=>{l+=r.toString().replace(/[\r\n]/gm,"");const i=l.length-l.length%4;d.push(Buffer.from(l.slice(0,i),"base64"));l=l.slice(i)}));a.on("end",(()=>{d.push(Buffer.from(l,"base64"));i.append(r,new T(d,c,{type:p}))}))}else{a.on("data",(r=>{d.push(r)}));a.on("end",(()=>{i.append(r,new T(d,c,{type:p}))}))}}));const l=new Promise(((r,i)=>{a.on("finish",r);a.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[M].body))a.write(r);a.end();await l;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const a=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[M].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=a.decode(r,{stream:true})}i+=a.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new g;for(const[a,c]of r){i.append(a,c)}return i}else{await Promise.resolve();throwIfAborted(this[M]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,a){y.brandCheck(r,a);throwIfAborted(r[M]);if(bodyUnusable(r[M].body)){throw new TypeError("Body is unusable")}const c=h();const errorSteps=r=>c.reject(r);const successSteps=r=>{try{c.resolve(i(r))}catch(r){errorSteps(r)}};if(r[M].body==null){successSteps(new Uint8Array);return c.promise}await b(r[M].body,successSteps,errorSteps);return c.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||l.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=_.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[M];const a=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */p[l-4]=this.maskKey[0];p[l-3]=this.maskKey[1];p[l-2]=this.maskKey[2];p[l-1]=this.maskKey[3];p[1]=a;if(a===126){p.writeUInt16BE(i,2)}else if(a===127){p[2]=p[3]=0;p.writeUIntBE(i,4,6)}p[1]|=128;for(let r=0;r<i;r++){p[l+r]=this.frameData[r]^this.maskKey[r%4]}return p}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},11131:(r,i,a)=>{"use strict";const{Writable:c}=a(2203);const l=a(31637);const{parserStates:p,opcodes:d,states:u,emptyBuffer:A}=a(87233);const{kReadyState:h,kSentClose:b,kResponse:g,kReceivedClose:M}=a(5933);const{isValidStatusCode:y,failWebsocketConnection:O,websocketMessageReceived:z}=a(35294);const{WebsocketFrameSend:C}=a(1709);const B={};B.ping=l.channel("undici:websocket:ping");B.pong=l.channel("undici:websocket:pong");class ByteParser extends c{#o=[];#a=0;#c=p.INFO;#l={};#p=[];constructor(r){super();this.ws=r}_write(r,i,a){this.#o.push(r);this.#a+=r.length;this.run(a)}run(r){while(true){if(this.#c===p.INFO){if(this.#a<2){return r()}const i=this.consume(2);this.#l.fin=(i[0]&128)!==0;this.#l.opcode=i[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==d.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==d.BINARY&&this.#l.opcode!==d.TEXT){O(this.ws,"Invalid frame type was fragmented.");return}const a=i[1]&127;if(a<=125){this.#l.payloadLength=a;this.#c=p.READ_DATA}else if(a===126){this.#c=p.PAYLOADLENGTH_16}else if(a===127){this.#c=p.PAYLOADLENGTH_64}if(this.#l.fragmented&&a>125){O(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===d.PING||this.#l.opcode===d.PONG||this.#l.opcode===d.CLOSE)&&a>125){O(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===d.CLOSE){if(a===1){O(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(a);this.#l.closeInfo=this.parseCloseBody(false,r);if(!this.ws[b]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#l.closeInfo.code,0);const i=new C(r);this.ws[g].socket.write(i.createFrame(d.CLOSE),(r=>{if(!r){this.ws[b]=true}}))}this.ws[h]=u.CLOSING;this.ws[M]=true;this.end();return}else if(this.#l.opcode===d.PING){const i=this.consume(a);if(!this.ws[M]){const r=new C(i);this.ws[g].socket.write(r.createFrame(d.PONG));if(B.ping.hasSubscribers){B.ping.publish({payload:i})}}this.#c=p.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#l.opcode===d.PONG){const i=this.consume(a);if(B.pong.hasSubscribers){B.pong.publish({payload:i})}if(this.#a>0){continue}else{r();return}}}else if(this.#c===p.PAYLOADLENGTH_16){if(this.#a<2){return r()}const i=this.consume(2);this.#l.payloadLength=i.readUInt16BE(0);this.#c=p.READ_DATA}else if(this.#c===p.PAYLOADLENGTH_64){if(this.#a<8){return r()}const i=this.consume(8);const a=i.readUInt32BE(0);if(a>2**31-1){O(this.ws,"Received payload length > 2^31 bytes.");return}const c=i.readUInt32BE(4);this.#l.payloadLength=(a<<8)+c;this.#c=p.READ_DATA}else if(this.#c===p.READ_DATA){if(this.#a<this.#l.payloadLength){return r()}else if(this.#a>=this.#l.payloadLength){const r=this.consume(this.#l.payloadLength);this.#p.push(r);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===d.CONTINUATION){const r=Buffer.concat(this.#p);z(this.ws,this.#l.originalOpcode,r);this.#l={};this.#p.length=0}this.#c=p.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return A}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const i=Buffer.allocUnsafe(r);let a=0;while(a!==r){const c=this.#o[0];const{length:l}=c;if(l+a===r){i.set(this.#o.shift(),a);break}else if(l+a>r){i.set(c.subarray(0,r-a),a);this.#o[0]=c.subarray(r-a);break}else{i.set(this.#o.shift(),a);a+=c.length}}this.#a-=r;return i}parseCloseBody(r,i){let a;if(i.length>=2){a=i.readUInt16BE(0)}if(r){if(!y(a)){return null}return{code:a}}let c=i.subarray(2);if(c[0]===239&&c[1]===187&&c[2]===191){c=c.subarray(3)}if(a!==undefined&&!y(a)){return null}try{c=new TextDecoder("utf-8",{fatal:true}).decode(c)}catch{return null}return{code:a,reason:c}}get closingInfo(){return this.#l.closeInfo}}r.exports={ByteParser:ByteParser}},5933:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},35294:(r,i,a)=>{"use strict";const{kReadyState:c,kController:l,kResponse:p,kBinaryType:d,kWebSocketURL:u}=a(5933);const{states:A,opcodes:h}=a(87233);const{MessageEvent:b,ErrorEvent:g}=a(32167);function isEstablished(r){return r[c]===A.OPEN}function isClosing(r){return r[c]===A.CLOSING}function isClosed(r){return r[c]===A.CLOSED}function fireEvent(r,i,a=Event,c){const l=new a(r,c);i.dispatchEvent(l)}function websocketMessageReceived(r,i,a){if(r[c]!==A.OPEN){return}let l;if(i===h.TEXT){try{l=new TextDecoder("utf-8",{fatal:true}).deLine truncated
/**
* Archiver Vending
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(50549);var l={};var vending=function(r,i){return vending.create(r,i)};vending.create=function(r,i){if(l[r]){var a=new c(r,i);a.setFormat(r);a.setModule(new l[r](i));return a}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(l[r]){throw new Error("register("+r+"): format already registered")}if(typeof i!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof i.prototype.append!=="function"||typeof i.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}l[r]=i};vending.isRegisteredFormat=function(r){if(l[r]){return true}return false};vending.registerFormat("zip",a(22836));vending.registerFormat("tar",a(10396));vending.registerFormat("json",a(54693));r.exports=vending},50549:(r,i,a)=>{
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(79896);var l=a(51364);var p=a(97329);var d=a(16928);var u=a(53296);var A=a(39023).inherits;var h=a(13110);var b=a(29963).Transform;var g=process.platform==="win32";var Archiver=function(r,i){if(!(this instanceof Archiver)){return new Archiver(r,i)}if(typeof r!=="string"){i=r;r="zip"}i=this.options=u.defaults(i,{highWaterMark:1024*1024,statConcurrency:4});b.call(this,i);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=p.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=p.queue(this._onStatQueueTask.bind(this),i.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};A(Archiver,b);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,i){i=i||{};var a={source:null,filepath:r};if(!i.name){i.name=r}i.sourcePath=r;a.data=i;this._entriesCount++;if(i.stats&&i.stats instanceof c.Stats){a=this._updateQueueTaskWithStats(a,i.stats);if(a){if(i.stats.size){this._fsEntriesTotalBytes+=i.stats.size}this._queue.push(a)}}else{this._statQueue.push(a)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,i,a){if(this._state.aborted){a();return}this._module.append(r,i,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(a);return}this.emit("entry",i);this._entriesProcessedCount++;if(i.stats&&i.stats.size){this._fsEntriesProcessedBytes+=i.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(a)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new h("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,i){r=u.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(i&&r.stats===false){r.stats=i}var a=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=u.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){a=true;r.type="directory"}else if(a){r.name+="/"}}if(typeof r.mode==="number"){if(g){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(g){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(g&&a){r.mode=493}}else if(r.mode===null){r.mode=a?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=u.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,i){var fullCallback=()=>{if(r.data.callback){r.data.callback()}i()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,i){if(this._state.finalizing||this._state.finalized||this._state.aborted){i();return}c.lstat(r.filepath,function(a,c){if(this._state.aborted){setImmediate(i);return}if(a){this._entriesCount--;this.emit("warning",a);setImmediate(i);return}r=this._updateQueueTaskWithStats(r,c);if(r){if(c.size){this._fsEntriesTotalBytes+=c.size}this._queue.push(r)}setImmediate(i)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,i,a){if(r){this._pointer+=r.length}a(null,r)};Archiver.prototLine truncated
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(39023);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=i}c.inherits(ArchiverError,Error);i=r.exports=ArchiverError},54693:(r,i,a)=>{
/**
* JSON Format Plugin
*
* @module plugins/json
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(39023).inherits;var l=a(29963).Transform;var p=a(84928);var d=a(53296);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=d.defaults(r,{});l.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};c(Json,l);Json.prototype._transform=function(r,i,a){a(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,i,a){var c=this;i.crc32=0;function onend(r,l){if(r){a(r);return}i.size=l.length||0;i.crc32=p.unsigned(l);c.files.push(i);a(null,i)}if(i.sourceType==="buffer"){onend(null,r)}else if(i.sourceType==="stream"){d.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},10396:(r,i,a)=>{
/**
* TAR Format Plugin
*
* @module plugins/tar
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(43106);var l=a(56118);var p=a(53296);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=p.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=l.pack(r);this.compressor=false;if(r.gzip){this.compressor=c.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,i,a){var c=this;i.mtime=i.date;function append(r,l){if(r){a(r);return}c.engine.entry(i,l,(function(r){a(r,i)}))}if(i.sourceType==="buffer"){append(null,r)}else if(i.sourceType==="stream"&&i.stats){i.size=i.stats.size;var l=c.engine.entry(i,(function(r){a(r,i)}));r.pipe(l)}else if(i.sourceType==="stream"){p.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,i){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,i)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},22836:(r,i,a)=>{
/**
* ZIP Format Plugin
*
* @module plugins/zip
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(41622);var l=a(53296);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new c(r)};Zip.prototype.append=function(r,i,a){this.engine.entry(r,i,a)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},97329:function(r,i){(function(r,a){true?a(i):0})(this,(function(r){"use strict";function apply(r,...i){return(...a)=>r(...i,...a)}function initialParams(r){return function(...i){var a=i.pop();return r.call(this,i,a)}}var i=typeof queueMicrotask==="function"&&queueMicrotask;var a=typeof setImmediate==="function"&&setImmediate;var c=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(i,...a)=>r((()=>i(...a)))}var l;if(i){l=queueMicrotask}else if(a){l=setImmediate}else if(c){l=process.nextTick}else{l=fallback}var p=wrap(l);function asyncify(r){if(isAsync(r)){return function(...i){const a=i.pop();const c=r.apply(this,i);return handlePromise(c,a)}}return initialParams((function(i,a){var c;try{c=r.apply(this,i)}catch(r){return a(r)}if(c&&typeof c.then==="function"){return handlePromise(c,a)}else{a(null,c)}}))}function handlePromise(r,i){return r.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,i,a){try{r(i,a)}catch(r){p((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,i){if(!i)i=r.length;if(!i)throw new Error("arity is undefined");function awaitable(...a){if(typeof a[i-1]==="function"){return r.apply(this,a)}return new Promise(((c,l)=>{a[i-1]=(r,...i)=>{if(r)return l(r);c(i.length>1?i:i[0])};r.apply(this,a)}))}return awaitable}function applyEach$1(r){return function applyEach(i,...a){const c=awaitify((function(c){var l=this;return r(i,((r,i)=>{wrapAsync(r).apply(l,a.concat(i))}),c)}));return c}}function _asyncMap(r,i,a,c){i=i||[];var l=[];var p=0;var d=wrapAsync(a);return r(i,((r,i,a)=>{var c=p++;d(r,((r,i)=>{l[c]=i;a(r)}))}),(r=>{c(r,l)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const d={};var u=d;function once(r){function wrapper(...i){if(r===null)return;var a=r;r=null;a.apply(this,i)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var i=-1;var a=r.length;return function next(){return++i<a?{value:r[i],key:i}:null}}function createES2015Iterator(r){var i=-1;return function next(){var a=r.next();if(a.done)return null;i++;return{value:a.value,key:i}}}function createObjectIterator(r){var i=r?Object.keys(r):[];var a=-1;var c=i.length;return function next(){var l=i[++a];if(l==="__proto__"){return next()}return a<c?{value:r[l],key:l}:null}}function createIterator(r){if(isArrayLike(r)){return createArrayIterator(r)}var i=getIterator(r);return i?createES2015Iterator(i):createObjectIterator(r)}function onlyOnce(r){return function(...i){if(r===null)throw new Error("Callback was already called.");var a=r;r=null;a.apply(this,i)}}function asyncEachOfLimit(r,i,a,c){let l=false;let p=false;let d=false;let A=0;let h=0;function replenish(){if(A>=i||d||l)return;d=true;r.next().then((({value:r,done:i})=>{if(p||l)return;d=false;if(i){l=true;if(A<=0){c(null)}return}A++;a(r,h,iterateeCallback);h++;replenish()})).catch(handleError)}function iterateeCallback(r,i){A-=1;if(p)return;if(r)return handleError(r);if(r===false){l=true;p=true;return}if(i===u||l&&A<=0){l=true;return c(null)}replenish()}function handleError(r){if(p)return;d=false;l=true;c(r)}replenish()}var eachOfLimit$2=r=>(i,a,c)=>{c=once(c);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!i){return c(null)}if(isAsyncGenerator(i)){return asyncEachOfLimit(i,r,a,c)}if(isAsyncIterable(i)){return asyncEachOfLimit(i[Symbol.asyncIterator](),r,a,c)}var l=createIterator(i);var p=false;var d=false;var A=0;var h=false;function iterateeCallback(r,i){if(d)return;A-=1;if(r){p=true;c(r)}else if(r===false){p=true;d=true}else if(i===u||p&&A<=0){p=true;return c(null)}else if(!h){replenish()}}function replenish(){h=true;while(A<r&&!p){var i=l();if(i===null){p=true;if(A<=0){c(null)}return}A+=1;a(i.value,i.key,onlyOnce(iterateeCallback))}h=false}replenish()};function eachOfLimit(r,i,a,c){return eachOfLimit$2(i)(r,Line truncated
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
var a;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else{}}else{r(a={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,i=new Array(256);for(var a=0;a!=256;++a){r=a;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;i[a]=r}return typeof Int32Array!=="undefined"?new Int32Array(i):i}var i=signed_crc_table();function slice_by_16_tables(r){var i=0,a=0,c=0,l=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(c=0;c!=256;++c)l[c]=r[c];for(c=0;c!=256;++c){a=r[c];for(i=256+c;i<4096;i+=256)a=l[i]=a>>>8^r[a&255]}var p=[];for(c=1;c!=16;++c)p[c-1]=typeof Int32Array!=="undefined"?l.subarray(c*256,c*256+256):l.slice(c*256,c*256+256);return p}var a=slice_by_16_tables(i);var c=a[0],l=a[1],p=a[2],d=a[3],u=a[4];var A=a[5],h=a[6],b=a[7],g=a[8],M=a[9];var y=a[10],O=a[11],z=a[12],C=a[13],B=a[14];function crc32_bstr(r,a){var c=a^-1;for(var l=0,p=r.length;l<p;)c=c>>>8^i[(c^r.charCodeAt(l++))&255];return~c}function crc32_buf(r,a){var I=a^-1,v=r.length-15,w=0;for(;w<v;)I=B[r[w++]^I&255]^C[r[w++]^I>>8&255]^z[r[w++]^I>>16&255]^O[r[w++]^I>>>24]^y[r[w++]]^M[r[w++]]^g[r[w++]]^b[r[w++]]^h[r[w++]]^A[r[w++]]^u[r[w++]]^d[r[w++]]^p[r[w++]]^l[r[w++]]^c[r[w++]]^i[r[w++]];v+=15;while(w<v)I=I>>>8^i[(I^r[w++])&255];return~I}function crc32_str(r,a){var c=a^-1;for(var l=0,p=r.length,d=0,u=0;l<p;){d=r.charCodeAt(l++);if(d<128){c=c>>>8^i[(c^d)&255]}else if(d<2048){c=c>>>8^i[(c^(192|d>>6&31))&255];c=c>>>8^i[(c^(128|d&63))&255]}else if(d>=55296&&d<57344){d=(d&1023)+64;u=r.charCodeAt(l++)&1023;c=c>>>8^i[(c^(240|d>>8&7))&255];c=c>>>8^i[(c^(128|d>>2&63))&255];c=c>>>8^i[(c^(128|u>>6&15|(d&3)<<4))&255];c=c>>>8^i[(c^(128|u&63))&255]}else{c=c>>>8^i[(c^(224|d>>12&15))&255];c=c>>>8^i[(c^(128|d>>6&63))&255];c=c>>>8^i[(c^(128|d&63))&255]}}return~c}r.table=i;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},3662:(r,i,a)=>{"use strict";const{Transform:c}=a(29963);const l=a(84891);class CRC32Stream extends c{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,i,a){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}a(null,r)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},76252:(r,i,a)=>{"use strict";const{DeflateRaw:c}=a(43106);const l=a(84891);class DeflateCRC32Stream extends c{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,i){if(r){this.compressedSize+=r.length}return super.push(r,i)}_transform(r,i,a){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,i,a)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},82770:(r,i,a)=>{"use strict";r.exports={CRC32Stream:a(3662),DeflateCRC32Stream:a(76252)}},6110:(r,i,a)=>{i.formatArgs=formatArgs;i.save=save;i.load=load;i.useColors=useColors;i.storage=localstorage();i.destroy=(()=>{let r=false;return()=>{if(!r){r=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();i.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgeLine truncated
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* @copyright 2015 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/Object.defineProperty(i,"__esModule",{value:true});const a=new WeakMap;const c=new WeakMap;function pd(r){const i=a.get(r);console.assert(i!=null,"'this' is expected an Event object, but got",r);return i}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,i){a.set(this,{eventTarget:r,event:i,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:i.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const c=Object.keys(i);for(let r=0;r<c.length;++r){const i=c[r];if(!(i in this)){Object.defineProperty(this,i,defineRedirectDescriptor(i))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const r=pd(this).currentTarget;if(r==null){return[]}return[r]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const r=pd(this);r.stopped=true;if(typeof r.event.stopPropagation==="function"){r.event.stopPropagation()}},stopImmediatePropagation(){const r=pd(this);r.stopped=true;r.immediateStopped=true;if(typeof r.event.stopImmediatePropagation==="function"){r.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(r){if(!r){return}const i=pd(this);i.stopped=true;if(typeof i.event.cancelBubble==="boolean"){i.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(r){if(!r){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);c.set(window.Event.prototype,Event)}function defineRedirectDescriptor(r){return{get(){return pd(this).event[r]},set(i){pd(this).event[r]=i},configurable:true,enumerable:true}}function defineCallDescriptor(r){return{value(){const i=pd(this).event;return i[r].apply(i,arguments)},configurable:true,enumerable:true}}function defineWrapper(r,i){const a=Object.keys(i);if(a.length===0){return r}function CustomEvent(i,a){r.call(this,i,a)}CustomEvent.prototype=Object.create(r.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let c=0;c<a.length;++c){const l=a[c];if(!(l in r.prototype)){const r=Object.getOwnPropertyDescriptor(i,l);const a=typeof r.value==="function";Object.defineProperty(CustomEvent.prototype,l,a?defineCallDescriptor(l):defineRedirectDescriptor(l))}}return CustomEvent}function getWrapper(r){if(r==null||r===Object.prototype){return Event}let i=c.get(r);if(i==null){i=defineWrapper(getWrapper(Object.getPrototypeOf(r)),r);c.set(r,i)}return i}function wrapEvent(r,i){const a=getWrapper(Object.getPrototypeOf(i));return new a(r,i)}function isStopped(r){return pd(r).immediateStopped}function setEventPhase(r,i){pd(r).eventPhase=i}function setCurrentTarget(r,i){pd(r).currentTarget=i}function setPassiveListener(r,i){pd(r).passiveListener=i}const l=new WeakMap;const p=1;const d=2;const u=3;function isObject(r){return r!==null&&typeof r==="object"}function getListeners(r){const i=l.get(r);if(i==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return i}function defineEventAttributeDescriptor(r){return{get(){const i=getListeners(this);let a=i.get(r);while(a!=null){if(a.listenerType===u){return a.listener}a=a.next}return null},set(i){if(typeof i!=="function"&&!isObject(i)){i=null}const a=getListeners(this);let c=null;let l=a.get(r);while(l!=null){if(l.listenerType===u){if(c!==null){c.next=l.next}else if(l.next!==null){a.set(r,l.next)}else{a.delete(r)}}else{c=l}l=l.next}if(i!==null){const l={listener:i,listenerType:u,passive:false,once:false,next:null};if(c===null){a.set(r,l)}else{c.next=l}}},configurable:true,enumerable:true}}function defineEventAttribute(r,i){Object.defineProperty(r,`on${i}`,defineEventAttributeDescriptor(i))}function defineCustomEventTarget(r){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let i=0;i<r.length;++i){Line truncated
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(a){var c=true&&i;var l=true&&r&&r.exports==c&&r;var p=typeof global=="object"&&global;if(p.global===p||p.window===p){a=p}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var u=/[\x01-\x7F]/g;var A=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var h=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var b={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
/**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*/
(function(){var i;function MurmurHash3(r,a){var c=this instanceof MurmurHash3?this:i;c.reset(a);if(typeof r==="string"&&r.length>0){c.hash(r)}if(c!==this){return c}}MurmurHash3.prototype.hash=function(r){var i,a,c,l,p;p=r.length;this.len+=p;a=this.k1;c=0;switch(this.rem){case 0:a^=p>c?r.charCodeAt(c++)&65535:0;case 1:a^=p>c?(r.charCodeAt(c++)&65535)<<8:0;case 2:a^=p>c?(r.charCodeAt(c++)&65535)<<16:0;case 3:a^=p>c?(r.charCodeAt(c)&255)<<24:0;a^=p>c?(r.charCodeAt(c++)&65280)>>8:0}this.rem=p+this.rem&3;p-=this.rem;if(p>0){i=this.h1;while(1){a=a*11601+(a&65535)*3432906752&4294967295;a=a<<15|a>>>17;a=a*13715+(a&65535)*461832192&4294967295;i^=a;i=i<<13|i>>>19;i=i*5+3864292196&4294967295;if(c>=p){break}a=r.charCodeAt(c++)&65535^(r.charCodeAt(c++)&65535)<<8^(r.charCodeAt(c++)&65535)<<16;l=r.charCodeAt(c++);a^=(l&255)<<24^(l&65280)>>8}a=0;switch(this.rem){case 3:a^=(r.charCodeAt(c+2)&65535)<<16;case 2:a^=(r.charCodeAt(c+1)&65535)<<8;case 1:a^=r.charCodeAt(c)&65535}this.h1=i}this.k1=a;return this};MurmurHash3.prototype.result=function(){var r,i;r=this.k1;i=this.h1;if(r>0){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;i^=r}i^=this.len;i^=i>>>16;i=i*51819+(i&65535)*2246770688&4294967295;i^=i>>>13;i=i*44597+(i&65535)*3266445312&4294967295;i^=i>>>16;return i>>>0};MurmurHash3.prototype.reset=function(r){this.h1=typeof r==="number"?r:0;this.rem=this.k1=this.len=0;return this};i=new MurmurHash3;if(true){r.exports=MurmurHash3}else{}})()},39598:(r,i,a)=>{try{var c=a(39023);if(typeof c.inherits!=="function")throw"";r.exports=c.inherits}catch(i){r.exports=a(26589)}},26589:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},68850:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AddressError=void 0;class AddressError extends Error{constructor(r,i){super(r);this.name="AddressError";if(i!==null){this.parseMessage=i}}}i.AddressError=AddressError},45864:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isCorrect=i.isInSubnet=void 0;function isInSubnet(r){if(this.subnetMask<r.subnetMask){return false}if(this.mask(r.subnetMask)===r.mask()){return true}return false}i.isInSubnet=isInSubnet;function isCorrect(r){return function(){if(this.addressMinusSuffix!==this.correctForm()){return false}if(this.subnetMask===r&&!this.parsedSubnet){return true}return this.parsedSubnet===String(this.subnetMask)}}i.isCorrect=isCorrect},79253:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.v6=i.AddressError=i.Address6=i.Address4=void 0;const d=a(17946);Object.defineProperty(i,"Address4",{enumerable:true,get:function(){return d.Address4}});const u=a(38096);Object.defineProperty(i,"Address6",{enumerable:true,get:function(){return u.Address6}});const A=a(68850);Object.defineProperty(i,"AddressError",{enumerable:true,get:function(){return A.AddressError}});const h=p(a(20339));i.v6={helpers:h}},17946:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.Address4=void 0;const d=p(a(45864));const u=p(a(66437));const A=a(68850);const h=a(95947);const b=a(19973);class Address4{constructor(r){this.groups=u.GROUPS;this.parsedAddress=[];this.parsedSubnet="";this.subnet="/32";this.subnetMask=32;this.v4=true;this.isCorrect=d.isCorrect(u.BITS);this.isInSubnet=d.isInSubnet;this.Line truncated
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var i,a;if(isObject(r)===false)return false;i=r.constructor;if(i===undefined)return true;a=i.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}i.isPlainObject=isPlainObject},96543:r=>{"use strict";const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},82513:r=>{var i={}.toString;r.exports=Array.isArray||function(r){return i.call(r)=="[object Array]"}},95947:function(r,i){(function(){var a;var c=0xdeadbeefcafe;var l=(c&16777215)==15715070;function BigInteger(r,i,a){if(r!=null)if("number"==typeof r)this.fromNumber(r,i,a);else if(i==null&&"string"!=typeof r)this.fromString(r,256);else this.fromString(r,i)}function nbi(){return new BigInteger(null)}function am1(r,i,a,c,l,p){while(--p>=0){var d=i*this[r++]+a[c]+l;l=Math.floor(d/67108864);a[c++]=d&67108863}return l}function am2(r,i,a,c,l,p){var d=i&32767,u=i>>15;while(--p>=0){var A=this[r]&32767;var h=this[r++]>>15;var b=u*A+h*d;A=d*A+((b&32767)<<15)+a[c]+(l&1073741823);l=(A>>>30)+(b>>>15)+u*h+(l>>>30);a[c++]=A&1073741823}return l}function am3(r,i,a,c,l,p){var d=i&16383,u=i>>14;while(--p>=0){var A=this[r]&16383;var h=this[r++]>>14;var b=u*A+h*d;A=d*A+((b&16383)<<14)+a[c]+l;l=(A>>28)+(b>>14)+u*h;a[c++]=A&268435455}return l}var p=typeof navigator!=="undefined";if(p&&l&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;a=30}else if(p&&l&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;a=26}else{BigInteger.prototype.am=am3;a=28}BigInteger.prototype.DB=a;BigInteger.prototype.DM=(1<<a)-1;BigInteger.prototype.DV=1<<a;var d=52;BigInteger.prototype.FV=Math.pow(2,d);BigInteger.prototype.F1=d-a;BigInteger.prototype.F2=2*a-d;var u="0123456789abcdefghijklmnopqrstuvwxyz";var A=new Array;var h,b;h="0".charCodeAt(0);for(b=0;b<=9;++b)A[h++]=b;h="a".charCodeAt(0);for(b=10;b<36;++b)A[h++]=b;h="A".charCodeAt(0);for(b=10;b<36;++b)A[h++]=b;function int2char(r){return u.charAt(r)}function intAt(r,i){var a=A[r.charCodeAt(i)];return a==null?-1:a}function bnpCopyTo(r){for(var i=this.t-1;i>=0;--i)r[i]=this[i];r.t=this.t;r.s=this.s}function bnpFromInt(r){this.t=1;this.s=r<0?-1:0;if(r>0)this[0]=r;else if(r<-1)this[0]=r+this.DV;else this.t=0}function nbv(r){var i=nbi();i.fromInt(r);return i}function bnpFromString(r,i){var a;if(i==16)a=4;else if(i==8)a=3;else if(i==256)a=8;else if(i==2)a=1;else if(i==32)a=5;else if(i==4)a=2;else{this.fromRadix(r,i);return}this.t=0;this.s=0;var c=r.length,l=false,p=0;while(--c>=0){var d=a==8?r[c]&255:intAt(r,c);if(d<0){if(r.charAt(c)=="-")l=true;continue}l=false;if(p==0)this[this.t++]=d;else if(p+a>this.DB){this[this.t-1]|=(d&(1<<this.DB-p)-1)<<p;this[this.t++]=d>>this.DB-p}else this[this.t-1]|=d<<p;p+=a;if(p>=this.DB)p-=this.DB}if(a==8&&(r[0]&128)!=0){this.s=-1;if(p>0)this[this.t-1]|=(1<<this.DB-p)-1<<p}this.clamp();if(l)BigInteger.ZERO.subTo(this,this)}function bnpClamp(){var r=this.s&this.DM;while(this.t>0&&this[this.t-1]==r)--this.t}function bnToString(r){if(this.s<0)return"-"+this.negate().toString(r);var i;if(r==16)i=4;else if(r==8)i=3;else if(r==2)i=1;else if(r==32)i=5;else if(r==4)i=2;else return this.toRadix(r);var a=(1<<i)-1,c,l=false,p="",d=this.t;var u=this.DB-d*this.DB%i;if(d-- >0){if(u<this.DB&&(c=this[d]>>u)>0){l=true;p=int2char(c)}while(d>=0){if(u<i){c=(this[d]&(1<<u)-1)<<i-u;c|=this[--d]>>(u+=this.DB-i)}else{c=this[d]>>(u-=i)&a;if(u<=0){u+=this.DB;--d}}if(c>0)l=true;if(l)p+=int2char(c)}}return l?p:"0"}function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(r){var i=this.s-r.s;if(i!=0)return i;var a=this.t;i=a-r.t;if(i!=0)return this.s<0?-i:i;while(--a>=0)if((i=this[a]-r[a])!=0)return i;return 0}function nbits(r){var i=1,a;if((a=r>>>16)!=0){r=a;i+=16}if((a=r>>8)!=0){r=a;i+=8}if((a=r>>4)!=0){r=a;i+=4}if((a=r>>2)!=0){r=a;i+=2}if((a=r>>1)!=0){r=a;i+=1}return i}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(r,i){var a;for(a=this.t-1;a>=0;--a)i[a+r]=this[a];for(a=r-1;a>=0;--a)i[a]=0;i.t=this.t+r;i.s=this.s}function bnpDRShiftTo(r,i){for(var a=r;a<this.t;++a)i[a-r]=this[a];i.t=Math.max(this.t-r,0);i.s=this.s}function bnpLShiftTo(r,i){var a=r%this.DB;var c=this.DB-a;var l=(1<<c)-1;var p=Math.floor(r/this.DB),d=this.s<<a&this.DM,u;for(u=this.t-1;u>=0;--u){i[u+p+1]=this[u]>>c|d;d=(this[u]&l)<<a}for(u=p-1;u>=0;--u)i[u]=0;i[p]=d;i.t=this.t+p+1;i.s=this.s;i.clamp()}funLine truncated
/**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/if(new d.URL(r.url).hostname!==u.hostname){r.headers.delete("authorization");r.headers.delete("cookie")}if(i.status===303||r.method==="POST"&&[301,302].includes(i.status)){c.method="GET";c.body=null;r.headers.delete("content-length")}c.headers={};r.headers.forEach(((r,i)=>{c.headers[i]=r}));c.counter=++r.counter;const A=new l(d.format(u),c);return{request:A,options:c}};const fetch=async(r,i)=>{const a=u.storable(r,i)?await A(r,i):await h(r,i);if(!["GET","HEAD"].includes(r.method)&&a.status>=200&&a.status<=399){await A.invalidate(r,i)}if(!canFollowRedirect(r,a,i)){return a}const c=getRedirect(r,a,i);return fetch(c.request,c.options)};r.exports=fetch},39310:(r,i,a)=>{const{FetchError:c,Headers:l,Request:p,Response:d}=a(88483);const u=a(99824);const A=a(67242);const makeFetchHappen=(r,i)=>{const a=u(i);const c=new p(r,a);return A(c,a)};makeFetchHappen.defaults=(r,i={},a=makeFetchHappen)=>{if(typeof r==="object"){i=r;r=null}const defaultedFetch=(c,l={})=>{const p=c||r;const d={...i,...l,headers:{...i.headers,...l.headers}};return a(p,d)};defaultedFetch.defaults=(r,i={})=>makeFetchHappen.defaults(r,i,defaultedFetch);return defaultedFetch};r.exports=makeFetchHappen;r.exports.FetchError=c;r.exports.Headers=l;r.exports.Request=p;r.exports.Response=d},99824:(r,i,a)=>{const c=a(72250);const l=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=r=>{const{strictSSL:i,...a}={...r};a.method=a.method?a.method.toUpperCase():"GET";if(i===undefined||i===null){a.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{a.rejectUnauthorized=i!==false}if(!a.retry){a.retry={retries:0}}else if(typeof a.retry==="string"){const r=parseInt(a.retry,10);if(isFinite(r)){a.retry={retries:r}}else{a.retry={retries:0}}}else if(typeof a.retry==="number"){a.retry={retries:a.retry}}else{a.retry={retries:0,...a.retry}}a.dns={ttl:5*60*1e3,lookup:c.lookup,...a.dns};a.cache=a.cache||"default";if(a.cache==="default"){const r=Object.keys(a.headers||{}).some((r=>l.includes(r.toLowerCase())));if(r){a.cache="no-store"}}a.cacheAdditionalHeaders=a.cacheAdditionalHeaders||[];if(a.cacheManager&&!a.cachePath){a.cachePath=a.cacheManager}return a};r.exports=configureOptions},22314:(r,i,a)=>{"use strict";const c=a(52899);class CachingMinipassPipeline extends c{#d=[];#z=new Map;constructor(r,...i){super();this.#d=r.events;if(i.length){this.push(...i)}}on(r,i){if(this.#d.includes(r)&&this.#z.has(r)){return i(...this.#z.get(r))}return super.on(r,i)}emit(r,...i){if(this.#d.includes(r)){this.#z.set(r,i)}return super.emit(r,...i)}}r.exports=CachingMinipassPipeline},20766:(r,i,a)=>{const{Minipass:c}=a(78275);const l=a(88483);const p=a(90390);const d=a(68951);const{log:u}=a(26687);const A=a(22314);const{getAgent:h}=a(57995);const b=a(96734);const g=`${b.name}/${b.version} (+https://npm.im/${b.name})`;const M=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const y=["request-timeout"];const remoteFetch=(r,i)=>{const a=h(r.url,{...i,signal:undefined});if(!r.headers.has("connection")){r.headers.set("connection",a?"keep-alive":"close")}if(!r.headers.has("user-agent")){r.headers.set("user-agent",g)}const b={...i,agent:a,redirect:"manual"};return p((async(a,p)=>{const h=new l.Request(r,b);try{let r=await l(h,b);if(b.integrity&&r.status===200){const i=d.integrityStream({algorithms:b.algorithms,integrity:b.integrity,size:b.size});const a=new A({events:["integrity","size"]},r.body,i);i.on("integrity",(r=>a.emit("integrity",r)));i.on("size",(r=>a.emit("size",r)));r=new l.Response(a,r);r.body.hasIntegrityEmitter=true}r.headers.set("x-fetch-attempts",p);const g=c.isStream(h.body);const M=h.method!=="POST"&&!g&&([408,420,429].includes(r.status)||r.status>=500);if(M){if(typeof i.onRetry==="function"){i.onRetry(r)}u.http("fetch",`${h.method} ${h.url} attempt ${p} failed with ${r.status}`);return a(r)}return r}catch(r){const c=r.code==="EPROMISERETRY"?r.retried.code:r.code;const d=r.retried instanceof l.Response||M.includes(c)&&y.includes(r.type);if(h.method==="POST"||d){throw r}if(typeof i.onRetry==="function"){i.onRetry(r)}u.http("fetch",`${h.method} ${h.url} attempt ${p} failed with ${r.code}`);return a(r)}}),i.retry).catch((r=>{if(r.status>=400&&r.type!=="system"){return r}throw r}))};r.exports=remoteFetch},99829:(r,i,a)=>{
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
r.exports=a(81813)},14096:(r,i,a)=>{"use strict";
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var c=a(99829);var l=a(16928).extname;var p=/^\s*([^;\s]*)(?:;|\s|$)/;var d=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);function charset(r){if(!r||typeof r!=="string"){return false}var i=p.exec(r);var a=i&&c[i[1].toLowerCase()];if(a&&a.charset){return a.charset}if(i&&d.test(i[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var a=r.indexOf("/")===-1?i.lookup(r):r;if(!a){return false}if(a.indexOf("charset")===-1){var c=i.charset(a);if(c)a+="; charset="+c.toLowerCase()}return a}function extension(r){if(!r||typeof r!=="string"){return false}var a=p.exec(r);var c=a&&i.extensions[a[1].toLowerCase()];if(!c||!c.length){return false}return c[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var a=l("x."+r).toLowerCase().substr(1);if(!a){return false}return i.types[a]||false}function populateMaps(r,i){var a=["nginx","apache",undefined,"iana"];Object.keys(c).forEach((function forEachMimeType(l){var p=c[l];var d=p.extensions;if(!d||!d.length){return}r[l]=d;for(var u=0;u<d.length;u++){var A=d[u];if(i[A]){var h=a.indexOf(c[i[A]].source);var b=a.indexOf(p.source);if(i[A]!=="application/octet-stream"&&(h>b||h===b&&i[A].substr(0,12)==="application/")){continue}}i[A]=l}}))}},43772:(r,i,a)=>{r.exports=minimatch;minimatch.Minimatch=Minimatch;var c=function(){try{return a(16928)}catch(r){}}()||{sep:"/"};minimatch.sep=c.sep;var l=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var p=a(73783);var d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var u="[^/]";var A=u+"*?";var h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var b="(?:(?!(?:\\/|^)\\.).)*?";var g=charSet("().*{}+?[]^$\\!");function charSet(r){return r.split("").reduce((function(r,i){r[i]=true;return r}),{})}var M=/\/+/;minimatch.filter=filter;function filter(r,i){i=i||{};return function(a,c,l){return minimatch(a,r,i)}}function ext(r,i){i=i||{};var a={};Object.keys(r).forEach((function(i){a[i]=r[i]}));Object.keys(i).forEach((function(r){a[r]=i[r]}));return a}minimatch.defaults=function(r){if(!r||typeof r!=="object"||!Object.keys(r).length){return minimatch}var i=minimatch;var a=function minimatch(a,c,l){return i(a,c,ext(r,l))};a.Minimatch=function Minimatch(a,c){return new i.Minimatch(a,ext(r,c))};a.Minimatch.defaults=function defaults(a){return i.defaults(ext(r,a)).Minimatch};a.filter=function filter(a,c){return i.filter(a,ext(r,c))};a.defaults=function defaults(a){return i.defaults(ext(r,a))};a.makeRe=function makeRe(a,c){return i.makeRe(a,ext(r,c))};a.braceExpand=function braceExpand(a,c){return i.braceExpand(a,ext(r,c))};a.match=function(a,c,l){return i.match(a,c,ext(r,l))};return a};Minimatch.defaults=function(r){return minimatch.defaults(r).Minimatch};function minimatch(r,i,a){assertValidPattern(i);if(!a)a={};if(!a.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,a).match(r)}function Minimatch(r,i){if(!(this instanceof Minimatch)){return new Minimatch(r,i)}assertValidPattern(r);if(!i)i={};r=r.trim();if(!i.allowWindowsEscape&&c.sep!=="/"){r=r.split(c.sep).join("/")}this.options=i;this.set=[];this.pattern=r;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var r=this.pattern;var i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();var a=this.globSet=this.braceExpand();if(i.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,a);a=this.globParts=a.map((function(r){return r.split(M)}));this.debug(this.pattern,a);a=a.map((function(r,i,a){return r.map(this.parse,this)}),this);this.debug(this.pattern,a);a=a.filter((function(r){return r.indexOf(false)===-1}));this.debug(this.pattern,a);this.set=a}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var r=this.pattern;var i=false;var a=this.options;var c=0;if(a.nonegate)return;for(var l=0,p=r.length;l<p&&r.charAt(l)==="!";l++){i=!i;c++}if(c)this.pattern=r.substr(c);this.negate=i}minimatch.braceExpand=function(r,i){return braceExpand(r,i)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(r,i){if(!i){if(this instanceof Minimatch){i=this.options}else{i={}}}r=typeof r==="undefined"?this.pattern:r;assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return p(r)}var y=1024*64;var assertValidPattern=function(r){if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>y){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var O={};function parse(r,i){assertValidPattern(r);var a=this.options;if(r==="**"){if(!a.noglobstar)return l;else r=Line truncated
//! moment-timezone.js
//! version : 0.6.0
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(i,c){"use strict";if(true&&r.exports){r.exports=c(a(93350))}else if(typeof define==="function"&&define.amd){define(["moment"],c)}else{c(i.moment)}})(this,(function(r){"use strict";if(r.version===undefined&&r.default){r=r.default}var i="0.6.0",a={},c={},l={},p={},d={},u;if(!r||typeof r.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var A=r.version.split("."),h=+A[0],b=+A[1];if(h<2||h===2&&b<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+r.version+". See momentjs.com")}function charCodeToInt(r){if(r>96){return r-87}else if(r>64){return r-29}return r-48}function unpackBase60(r){var i=0,a=r.split("."),c=a[0],l=a[1]||"",p=1,d,u=0,A=1;if(r.charCodeAt(0)===45){i=1;A=-1}for(i;i<c.length;i++){d=charCodeToInt(c.charCodeAt(i));u=60*u+d}for(i=0;i<l.length;i++){p=p/60;d=charCodeToInt(l.charCodeAt(i));u+=d*p}return u*A}function arrayToInt(r){for(var i=0;i<r.length;i++){r[i]=unpackBase60(r[i])}}function intToUntil(r,i){for(var a=0;a<i;a++){r[a]=Math.round((r[a-1]||0)+r[a]*6e4)}r[i-1]=Infinity}function mapIndices(r,i){var a=[],c;for(c=0;c<i.length;c++){a[c]=r[i[c]]}return a}function unpack(r){var i=r.split("|"),a=i[2].split(" "),c=i[3].split(""),l=i[4].split(" ");arrayToInt(a);arrayToInt(c);arrayToInt(l);intToUntil(l,c.length);return{name:i[0],abbrs:mapIndices(i[1].split(" "),c),offsets:mapIndices(a,c),untils:l,population:i[5]|0}}function Zone(r){if(r){this._set(unpack(r))}}function closest(r,i){var a=i.length;if(r<i[0]){return 0}else if(a>1&&i[a-1]===Infinity&&r>=i[a-2]){return a-1}else if(r>=i[a-1]){return-1}var c;var l=0;var p=a-1;while(p-l>1){c=Math.floor((l+p)/2);if(i[c]<=r){l=c}else{p=c}}return p}Zone.prototype={_set:function(r){this.name=r.name;this.abbrs=r.abbrs;this.untils=r.untils;this.offsets=r.offsets;this.population=r.population},_index:function(r){var i=+r,a=this.untils,c;c=closest(i,a);if(c>=0){return c}},countries:function(){var r=this.name;return Object.keys(l).filter((function(i){return l[i].zones.indexOf(r)!==-1}))},parse:function(r){var i=+r,a=this.offsets,c=this.untils,l=c.length-1,p,d,u,A;for(A=0;A<l;A++){p=a[A];d=a[A+1];u=a[A?A-1:A];if(p<d&&tz.moveAmbiguousForward){p=d}else if(p>u&&tz.moveInvalidForward){p=u}if(i<c[A]-p*6e4){return a[A]}}return a[l]},abbr:function(r){return this.abbrs[this._index(r)]},offset:function(r){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(r)]},utcOffset:function(r){return this.offsets[this._index(r)]}};function Country(r,i){this.name=r;this.zones=i}function OffsetAt(r){var i=r.toTimeString();var a=i.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=i.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+r;this.abbr=a;this.offset=r.getTimezoneOffset()}function ZoneScore(r){this.zone=r;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(r){this.offsetScore+=Math.abs(this.zone.utcOffset(r.at)-r.offset);if(this.zone.abbr(r.at).replace(/[^A-Z]/g,"")!==r.abbr){this.abbrScore++}};function findChange(r,i){var a,c;while(c=((i.at-r.at)/12e4|0)*6e4){a=new OffsetAt(new Date(r.at+c));if(a.offset===r.offset){r=a}else{i=a}}return r}function userOffsets(){var r=(new Date).getFullYear()-2,i=new OffsetAt(new Date(r,0,1)),a=i.offset,c=[i],l,p,d,u;for(u=1;u<48;u++){d=new Date(r,u,1).getTimezoneOffset();if(d!==a){p=new OffsetAt(new Date(r,u,1));l=findChange(i,p);c.push(l);c.push(new OffsetAt(new Date(l.at+6e4)));i=p;a=d}}for(u=0;u<4;u++){c.push(new OffsetAt(new Date(r+u,0,1)));c.push(new OffsetAt(new Date(r+u,6,1)))}return c}function sortZoneScores(r,i){if(r.offsetScore!==i.offsetScore){return r.offsetScore-i.offsetScore}if(r.abbrScore!==i.abbrScore){return r.abbrScore-i.abbrScore}if(r.zone.population!==i.zone.population){return i.zone.population-r.zone.population}return i.zone.name.localeCompare(r.zone.name)}function addToGuesses(r,i){var a,c;arrayToInt(i);for(a=0;a<i.length;a++){c=i[a];d[c]=d[c]||{};d[c][r]=true}}function guessesForUserOffsets(r){var i=r.length,a={},c=[],l={},u,A,h,b;for(u=0;u<i;u++){h=r[u].offset;if(l.hasOwnProperty(h)){continue}b=d[h]||{};for(A in b){if(b.hasOwnProperty(A)){a[A]=true}}l[h]=true}for(u in a){if(a.hasOwnProperty(u)){c.push(p[u])}}return c}function rebuildGuess(){try{var r=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r&&r.length>3){var i=p[normalizeName(r)];if(i){return i}logError("Moment Timezone found "+r+" from the Intl api, but did not have that data loaded.")}}catch(r){}var a=userOffsets(),c=a.length,l=guessesForUserOffsets(a),d=[],u,A,h;for(A=0;A<l.length;A++){u=new ZoneScore(getZone(l[A]),c);for(h=0;h<c;h++){u.scoreOffsetAt(a[h])}d.push(u)}d.sort(sortZoneScores);return d.length>0?d[0].zone.name:undefined}function guess(r){if(!u||r){u=rebuildGuess()}return u}function normalizeName(r){return(r||"").toLowerCase().replace(/\//g,"_")}function addZone(r){var i,c,l,d;if(typeof r==="string"Line truncated
//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(i,a){true?r.exports=a():0})(this,(function(){"use strict";var i;function hooks(){return i.apply(null,arguments)}function setHookCallback(r){i=r}function isArray(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function isObject(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function hasOwnProp(r,i){return Object.prototype.hasOwnProperty.call(r,i)}function isObjectEmpty(r){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(r).length===0}else{var i;for(i in r){if(hasOwnProp(r,i)){return false}}return true}}function isUndefined(r){return r===void 0}function isNumber(r){return typeof r==="number"||Object.prototype.toString.call(r)==="[object Number]"}function isDate(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function map(r,i){var a=[],c,l=r.length;for(c=0;c<l;++c){a.push(i(r[c],c))}return a}function extend(r,i){for(var a in i){if(hasOwnProp(i,a)){r[a]=i[a]}}if(hasOwnProp(i,"toString")){r.toString=i.toString}if(hasOwnProp(i,"valueOf")){r.valueOf=i.valueOf}return r}function createUTC(r,i,a,c){return createLocalOrUTC(r,i,a,c,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(r){if(r._pf==null){r._pf=defaultParsingFlags()}return r._pf}var a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(r){var i=Object(this),a=i.length>>>0,c;for(c=0;c<a;c++){if(c in i&&r.call(this,i[c],c,i)){return true}}return false}}function isValid(r){var i=null,c=false,l=r._d&&!isNaN(r._d.getTime());if(l){i=getParsingFlags(r);c=a.call(i.parsedDateParts,(function(r){return r!=null}));l=i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&c);if(r._strict){l=l&&i.charsLeftOver===0&&i.unusedTokens.length===0&&i.bigHour===undefined}}if(Object.isFrozen==null||!Object.isFrozen(r)){r._isValid=l}else{return l}return r._isValid}function createInvalid(r){var i=createUTC(NaN);if(r!=null){extend(getParsingFlags(i),r)}else{getParsingFlags(i).userInvalidated=true}return i}var c=hooks.momentProperties=[],l=false;function copyConfig(r,i){var a,l,p,d=c.length;if(!isUndefined(i._isAMomentObject)){r._isAMomentObject=i._isAMomentObject}if(!isUndefined(i._i)){r._i=i._i}if(!isUndefined(i._f)){r._f=i._f}if(!isUndefined(i._l)){r._l=i._l}if(!isUndefined(i._strict)){r._strict=i._strict}if(!isUndefined(i._tzm)){r._tzm=i._tzm}if(!isUndefined(i._isUTC)){r._isUTC=i._isUTC}if(!isUndefined(i._offset)){r._offset=i._offset}if(!isUndefined(i._pf)){r._pf=getParsingFlags(i)}if(!isUndefined(i._locale)){r._locale=i._locale}if(d>0){for(a=0;a<d;a++){l=c[a];p=i[l];if(!isUndefined(p)){r[l]=p}}}return r}function Moment(r){copyConfig(this,r);this._d=new Date(r._d!=null?r._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(l===false){l=true;hooks.updateOffset(this);l=false}}function isMoment(r){return r instanceof Moment||r!=null&&r._isAMomentObject!=null}function warn(r){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+r)}}function deprecate(r,i){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,r)}if(a){var c=[],l,p,d,u=arguments.length;for(p=0;p<u;p++){l="";if(typeof arguments[p]==="object"){l+="\n["+p+"] ";for(d in arguments[0]){if(hasOwnProp(arguments[0],d)){l+=d+": "+arguments[0][d]+", "}}l=l.slice(0,-2)}else{l=arguments[p]}c.push(l)}warn(r+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack);a=false}return i.apply(this,arguments)}),i)}var p={};function deprecateSimple(r,i){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(r,i)}if(!p[r]){warn(i);p[r]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(r){return typeof Function!=="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function set(r){var i,a;for(a in r){if(hasOwnProp(r,a)){i=r[a];if(isFunction(i)){this[a]=i}else{this["_"+a]=i}}}this._config=r;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(r,i){var a=extend({},r),c;for(c in i){if(hasOwnProp(i,c)){if(isObject(r[c])&&isObject(i[c])){a[c]={};extend(a[c],r[c]);extend(a[c],i[c])}else if(i[c]!=null){a[c]=i[c]}else{delete a[c]}}}for(c in r){if(hasOwnProp(r,c)&&!hasOwnProp(i,c)&&isObject(r[c])){a[c]=extend({},a[c])}}return a}function Locale(r){if(r!=null){this.set(r)}}var d;if(Object.keys){d=Object.keys}else{d=function(r){var i,a=[];for(i in r){if(hasOwnProp(r,i)){a.push(i)}}return a}}var u={sLine truncated
//! moment.js
hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Ze;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ze;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},70744:r=>{var i=1e3;var a=i*60;var c=a*60;var l=c*24;var p=l*7;var d=l*365.25;r.exports=function(r,i){i=i||{};var a=typeof r;if(a==="string"&&r.length>0){return parse(r)}else if(a==="number"&&isFinite(r)){return i.long?fmtLong(r):fmtShort(r)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function parse(r){r=String(r);if(r.length>100){return}var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!u){return}var A=parseFloat(u[1]);var h=(u[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return A*d;case"weeks":case"week":case"w":return A*p;case"days":case"day":case"d":return A*l;case"hours":case"hour":case"hrs":case"hr":case"h":return A*c;case"minutes":case"minute":case"mins":case"min":case"m":return A*a;case"seconds":case"second":case"secs":case"sec":case"s":return A*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return A;default:return undefined}}function fmtShort(r){var p=Math.abs(r);if(p>=l){return Math.round(r/l)+"d"}if(p>=c){return Math.round(r/c)+"h"}if(p>=a){return Math.round(r/a)+"m"}if(p>=i){return Math.round(r/i)+"s"}return r+"ms"}function fmtLong(r){var p=Math.abs(r);if(p>=l){return plural(r,p,l,"day")}if(p>=c){return plural(r,p,c,"hour")}if(p>=a){return plural(r,p,a,"minute")}if(p>=i){return plural(r,p,i,"second")}return r+" ms"}function plural(r,i,a,c){var l=i>=a*1.5;return Math.round(r/a)+" "+c+(l?"s":"")}},60668:(r,i,a)=>{"use strict";
/*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var c=a(79168);var l=a(25111);var p=a(56008);var d=a(53672);r.exports=Negotiator;r.exports.Negotiator=Negotiator;function Negotiator(r){if(!(this instanceof Negotiator)){return new Negotiator(r)}this.request=r}Negotiator.prototype.charset=function charset(r){var i=this.charsets(r);return i&&i[0]};Negotiator.prototype.charsets=function charsets(r){return c(this.request.headers["accept-charset"],r)};Negotiator.prototype.encoding=function encoding(r,i){var a=this.encodings(r,i);return a&&a[0]};Negotiator.prototype.encodings=function encodings(r,i){var a=i||{};return l(this.request.headers["accept-encoding"],r,a.preferred)};Negotiator.prototype.language=function language(r){var i=this.languages(r);return i&&i[0]};Negotiator.prototype.languages=function languages(r){return p(this.request.headers["accept-language"],r)};Negotiator.prototype.mediaType=function mediaType(r){var i=this.mediaTypes(r);return i&&i[0]};Negotiator.prototype.mediaTypes=function mediaTypes(r){return d(this.request.headers.accept,r)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:r=>{"use strict";r.exports=preferredCharsets;r.exports.preferredCharsets=preferredCharsets;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(r){var i=r.split(",");for(var a=0,c=0;a<i.length;a++){var l=parseCharset(i[a].trim(),a);if(l){i[c++]=l}}i.length=c;return i}function parseCharset(r,a){var c=i.exec(r);if(!c)return null;var l=c[1];var p=1;if(c[2]){var d=c[2].split(";");for(var u=0;u<d.length;u++){var A=d[u].trim().split("=");if(A[0]==="q"){p=parseFloat(A[1]);break}}}return{charset:l,q:p,i:a}}function getCharsetPriority(r,i,a){var c={o:-1,q:0,s:0};for(var l=0;l<i.length;l++){var p=specify(r,i[l],a);if(p&&(c.s-p.s||c.q-p.q||c.o-p.o)<0){c=p}}return c}function specify(r,i,a){var c=0;if(i.charset.toLowerCase()===r.toLowerCase()){c|=1}else if(i.charset!=="*"){return null}return{i:a,o:i.i,q:i.q,s:c}}function preferredCharsets(r,i){var a=parseAcceptCharset(r===undefined?"*":r||"");if(!i){return a.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var c=i.map((function getPriority(r,i){return getCharsetPriority(r,a,i)}));return c.filter(isQuality).sort(compareSpecs).map((function getCharset(r){return i[c.indexOf(r)]}))}function compareSpecs(r,i){return i.q-r.q||i.s-r.s||r.o-i.o||r.i-i.i||0}function getFullCharset(r){return r.charset}function isQuality(r){return r.q>0}},25111:r=>{"use strict";r.exports=preferredEncodings;r.exports.preferredEncodings=preferredEncodings;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(r){var i=r.split(",");var a=false;var c=1;for(var l=0,p=0;l<i.length;l++){var d=parseEncoding(i[l].trim(),l);if(d){i[p++]=d;a=a||specify("identity",d);c=Math.min(c,d.q||1)}}if(!a){i[p++]={encoding:"identity",q:c,i:l}}i.length=p;return i}function parseEncoding(r,a){var c=i.exec(r);if(!c)return null;var l=c[1];var p=1;if(c[2]){var d=c[2].split(";");for(var u=0;u<d.length;u++){var A=d[u].trim().split("=");if(A[0]==="q"){p=parseFloat(A[1]);break}}}return{encoding:l,q:p,i:a}}function getEncodingPriority(r,i,a){var c={encoding:r,o:-1,q:0,s:0};for(var l=0;l<i.length;l++){var p=specify(r,i[l],a);if(p&&(c.s-p.s||c.q-p.q||c.o-p.o)<0){c=p}}return c}function specify(r,i,a){var c=0;if(i.encoding.toLowerCase()===r.toLowerCase()){c|=1}else if(i.encoding!=="*"){return null}return{encoding:r,i:a,o:i.i,q:i.q,s:c}}function preferredEncodings(r,i,a){var c=parseAcceptEncoding(r||"");var l=a?function comparator(r,i){if(r.q!==i.q){return i.q-r.q}var c=a.indexOf(r.encoding);var l=a.indexOf(i.encoding);if(c===-1&&l===-1){return i.s-r.s||r.o-i.o||r.i-i.i}if(c!==-1&&l!==-1){return c-l}return c===-1?1:-1}:compareSpecs;if(!i){return c.filter(isQuality).sort(l).map(getFullEncoding)}var p=i.map((function getPriority(r,i){return getEncodingPriority(r,c,i)}));return p.filter(isQuality).sort(l).map((function getEncoding(r){return i[p.indexOf(r)]}))}function compareSpecs(r,i){return i.q-r.q||i.s-r.s||r.o-i.o||r.i-i.i}function getFullEncoding(r){return r.encoding}function isQuality(r){return r.q>0}},56008:r=>{"use strict";r.exports=preferredLanguages;r.exports.preferredLanguages=preferredLanguages;var i=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function parseAcceptLanguage(r){var i=r.split(",");for(var a=0,c=0;a<i.length;a++){var l=parseLanguage(i[a].trim(),a);if(l){i[c++]=l}}i.length=c;return i}function parseLanguage(r,a){var c=i.exec(r);if(!c)return null;var l=c[1];var p=c[2];var d=l;if(p)d+="-"+p;var u=1;if(c[3]){var A=c[3].split(";");forLine truncated
/*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/
r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var a=r.length;if(a<=1)return r;var c="";if(a>4&&r[3]==="\\"){var l=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);c="//"}}var p=r.split(/[/\\]+/);if(i!==false&&p[p.length-1]===""){p.pop()}return c+p.join("/")}},55560:(r,i,a)=>{var c=a(58264);r.exports=c(once);r.exports.strict=c(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var i=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;return f}},26687:r=>{const i=Symbol("proc-log.meta");r.exports={META:i,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...r){return process.emit("output","standard",...r)},error:function(...r){return process.emit("output","error",...r)},buffer:function(...r){return process.emit("output","buffer",...r)},flush:function(...r){return process.emit("output","flush",...r)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...r){return process.emit("log","error",...r)},notice:function(...r){return process.emit("log","notice",...r)},warn:function(...r){return process.emit("log","warn",...r)},info:function(...r){return process.emit("log","info",...r)},verbose:function(...r){return process.emit("log","verbose",...r)},http:function(...r){return process.emit("log","http",...r)},silly:function(...r){return process.emit("log","silly",...r)},timing:function(...r){return process.emit("log","timing",...r)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(r,i){process.emit("time","start",r);function end(){return process.emit("time","end",r)}if(typeof i==="function"){const r=i();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(r){return process.emit("time","end",r)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(r){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof r==="function"){const i=r();if(i&&i.finally){return i.finally(end)}end();return i}return end},end:function(){return process.emit("input","end")},read:function(...r){let i,a;const c=new Promise(((r,c)=>{i=r;a=c}));process.emit("input","read",i,a,...r);return c}}}},41564:r=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,i,a,c){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var l=arguments.length;var p,d;switch(l){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,i)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,i,a)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,i,a,c)}));default:p=new Array(l-1);d=0;while(d<p.length){p[d++]=arguments[d]}return process.nextTick((function afterTick(){r.apply(null,p)}))}}},7945:r=>{r.exports=global.process},90390:(r,i,a)=>{"use strict";var c=a(14339);var l=a(5546);var p=Object.prototype.hasOwnProperty;function isRetryError(r){return r&&r.code==="EPROMISERETRY"&&p.call(r,"retried")}function promiseRetry(r,i){var a;var p;if(typeof r==="object"&&typeof i==="function"){a=i;i=r;r=a}p=l.operation(i);return new Promise((function(i,a){p.attempt((function(l){Promise.resolve().then((function(){return r((function(r){if(isRetryError(r)){r=r.retried}throw c(new Error("Retrying"),"EPROMISERETRY",{retried:r})}),l)})).then(i,(function(r){if(isRetryError(r)){r=r.retried;if(p.retry(r||new Error)){return}}a(r)}))}))}))}r.exports=promiseRetry},5506:(r,i,a)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):a(36828)},36828:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80652:(r,i,a)=>{"use strict";const{SymbolDispose:c}=a(50999);const{AbortError:l,codes:p}=a(69220);const{isNodeStream:d,isWebStream:u,kLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var a=16384;var c=[];var l;var p;var d=-1;var u=arguments.length;if(!u){return""}var A="";while(++d<u){var h=Number(arguments[d]);if(!isFinite(h)||h<0||h>1114111||i(h)!==h){throw RangeError("Invalid code point: "+h)}if(h<=65535){c.push(h)}else{h-=65536;l=(h>>10)+55296;p=h%1024+56320;c.push(l,p)}if(d+1===u||c.length>a){A+=r.apply(null,c);c.length=0}}return A};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},89379:(r,i,a)=>{"use strict";const c=Symbol("SemVer ANY");class Comparator{static get ANY(){return c}constructor(r,i){i=l(i);if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}r=r.trim().split(/\s+/).join(" ");A("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===c){this.value=""}else{this.value=this.operator+this.semver.version}A("comp",this)}parse(r){const i=this.options.loose?p[d.COMPARATORLOOSE]:p[d.COMPARATOR];const a=r.match(i);if(!a){throw new TypeError(`Invalid comparator: ${r}`)}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=c}else{this.semver=new h(a[2],this.options.loose)}}toString(){return this.value}test(r){A("Comparator.test",r,this.options.loose);if(this.semver===c||r===c){return true}if(typeof r==="string"){try{r=new h(r,this.options)}catch(r){return false}}return u(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new b(r.value,i).test(this.value)}else if(r.operator===""){if(r.value===""){return true}return new b(this.value,i).test(r.semver)}i=l(i);if(i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")){return false}if(!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&r.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&r.operator.startsWith("<")){return true}if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")){return true}if(u(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")){return true}if(u(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")){return true}return false}}r.exports=Comparator;const l=a(70356);const{safeRe:p,t:d}=a(95471);const u=a(28646);const A=a(1159);const h=a(7163);const b=a(96782)},96782:(r,i,a)=>{"use strict";const c=/\s+/g;class Range{constructor(r,i){i=d(i);if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof u){this.raw=r.value;this.set=[[r]];this.formatted=undefined;return this}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().replace(c," ");this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((r=>r.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const r=this.set[0];this.set=this.set.filter((r=>!isNullSet(r[0])));if(this.set.length===0){this.set=[r]}else if(this.set.length>1){for(const r of this.set){if(r.length===1&&isAny(r[0])){this.set=[r];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0){this.formatted+="||"}const i=this.set[r];for(let r=0;r<i.length;r++){if(r>0){this.formatted+=" "}this.formatted+=i[r].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){const i=(this.options.includePrerelease&&z)|(this.options.loose&&C);const a=i+":"+r;const c=p.get(a);if(c){return c}const l=this.options.loose;const d=l?b[g.HYPHENRANGELOOSE]:b[g.HYPHENRANGE];r=r.replace(d,hyphenReplace(this.options.includePrerelease));A("hyphen replace",r);r=r.replace(b[g.COMPARATORTRIM],M);A("comparator trim",r);r=r.replace(b[g.TILDETRIM],y);A("tilde trim",r);r=r.replace(b[g.CARETTRIM],O);A("caret trim",r);let h=r.split(" ").map((r=>parseComparator(r,this.options))).join(" ").split(/\s+/).map((r=>replaceGTE0(r,this.options)));if(l){h=h.filter((r=>{A("loose invalid filter",r,this.options);return!!r.match(b[g.COMPARATORLOOSE])}))}A("range list",h);const B=new Map;const I=h.map((r=>new u(r,this.options)));for(const r of I){if(isNullSet(r)){return[r]}B.set(r.value,r)}if(B.size>1&&B.has("")){B.delete("")}const v=[...B.values()];p.set(a,v);return v}intersects(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((a=>isSatisfiable(a,i)&&r.set.some((r=>isSatisfiable(r,i)&&a.every((a=>r.every((r=>a.inteLine truncated
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const c=a(79896);const l=a(70857);const p=a(16928);const d=a(76982);const u={fs:c.constants,os:l.constants};const A="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",h=/XXXXXX/,b=3,g=(u.O_CREAT||u.fs.O_CREAT)|(u.O_EXCL||u.fs.O_EXCL)|(u.O_RDWR||u.fs.O_RDWR),M=l.platform()==="win32",y=u.EBADF||u.os.errno.EBADF,O=u.ENOENT||u.os.errno.ENOENT,z=448,C=384,B="exit",I=[],v=c.rmdirSync.bind(c);let w=false;function rimraf(r,i){return c.rm(r,{recursive:true},i)}function FN_RIMRAF_SYNC(r){return c.rmSync(r,{recursive:true})}function tmpName(r,i){const a=_parseArguments(r,i),l=a[0],p=a[1];_assertAndSanitizeOptions(l,(function(r,i){if(r)return p(r);let a=i.tries;(function _getUniqueName(){try{const r=_generateTmpName(i);c.stat(r,(function(i){if(!i){if(a-- >0)return _getUniqueName();return p(new Error("Could not get a unique tmp filename, max tries reached "+r))}p(null,r)}))}catch(r){p(r)}})()}))}function tmpNameSync(r){const i=_parseArguments(r),a=i[0];const l=_assertAndSanitizeOptionsSync(a);let p=l.tries;do{const r=_generateTmpName(l);try{c.statSync(r)}catch(i){return r}}while(p-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(r,i){const a=_parseArguments(r,i),l=a[0],p=a[1];tmpName(l,(function _tmpNameCreated(r,i){if(r)return p(r);c.open(i,g,l.mode||C,(function _fileCreated(r,a){if(r)return p(r);if(l.discardDescriptor){return c.close(a,(function _discardCallback(r){return p(r,i,undefined,_prepareTmpFileRemoveCallback(i,-1,l,false))}))}else{const r=l.discardDescriptor||l.detachDescriptor;p(null,i,a,_prepareTmpFileRemoveCallback(i,r?-1:a,l,false))}}))}))}function fileSync(r){const i=_parseArguments(r),a=i[0];const l=a.discardDescriptor||a.detachDescriptor;const p=tmpNameSync(a);let d=c.openSync(p,g,a.mode||C);if(a.discardDescriptor){c.closeSync(d);d=undefined}return{name:p,fd:d,removeCallback:_prepareTmpFileRemoveCallback(p,l?-1:d,a,true)}}function dir(r,i){const a=_parseArguments(r,i),l=a[0],p=a[1];tmpName(l,(function _tmpNameCreated(r,i){if(r)return p(r);c.mkdir(i,l.mode||z,(function _dirCreated(r){if(r)return p(r);p(null,i,_prepareTmpDirRemoveCallback(i,l,false))}))}))}function dirSync(r){const i=_parseArguments(r),a=i[0];const l=tmpNameSync(a);c.mkdirSync(l,a.mode||z);return{name:l,removeCallback:_prepareTmpDirRemoveCallback(l,a,true)}}function _removeFileAsync(r,i){const _handler=function(r){if(r&&!_isENOENT(r)){return i(r)}i()};if(0<=r[0])c.close(r[0],(function(){c.unlink(r[1],_handler)}));else c.unlink(r[1],_handler)}function _removeFileSync(r){let i=null;try{if(0<=r[0])c.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throw r}finally{try{c.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))i=r}}if(i!==null){throw i}}function _prepareTmpFileRemoveCallback(r,i,a,c){const l=_prepareRemoveCallback(_removeFileSync,[i,r],c);const p=_prepareRemoveCallback(_removeFileAsync,[i,r],c,l);if(!a.keep)I.unshift(l);return c?l:p}function _prepareTmpDirRemoveCallback(r,i,a){const l=i.unsafeCleanup?rimraf:c.rmdir.bind(c);const p=i.unsafeCleanup?FN_RIMRAF_SYNC:v;const d=_prepareRemoveCallback(p,r,a);const u=_prepareRemoveCallback(l,r,a,d);if(!i.keep)I.unshift(d);return a?d:u}function _prepareRemoveCallback(r,i,a,c){let l=false;return function _cleanupCallback(p){if(!l){const d=c||_cleanupCallback;const u=I.indexOf(d);if(u>=0)I.splice(u,1);l=true;if(a||r===v||r===FN_RIMRAF_SYNC){return r(i)}else{return r(i,p||function(){})}}}}function _garbageCollector(){if(!w)return;while(I.length){try{I[0]()}catch(r){}}}function _randomChars(r){let i=[],a=null;try{a=d.randomBytes(r)}catch(i){a=d.pseudoRandomBytes(r)}for(let c=0;c<r;c++){i.push(A[a[c]%A.length])}return i.join("")}function _isUndefined(r){return typeof r==="undefined"}function _parseArguments(r,i){if(typeof r==="function"){return[{},r]}if(_isUndefined(r)){return[{},i]}const a={};for(const i of Object.getOwnPropertyNames(r)){a[i]=r[i]}return[a,i]}function _resolvePath(r,i,a){const l=p.isAbsolute(r)?r:p.join(i,r);c.stat(l,(function(r){if(r){c.realpath(p.dirname(l),(function(r,i){if(r)return a(r);a(null,p.join(i,p.basename(l)))}))}else{c.realpath(l,a)}}))}function _resolvePathSync(r,i){const a=p.isAbsolute(r)?r:p.join(i,r);try{c.statSync(a);return c.realpathSync(a)}catch(r){const i=c.realpathSync(p.dirname(a));return p.join(i,p.basename(a))}}function _generateTmpName(r){const i=r.tmpdir;if(!_isUndefined(r.name)){return p.join(i,r.dir,r.name)}if(!_isUndefined(r.template)){return p.join(i,r.dir,r.template).replace(h,_randomChars(6))}const a=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.postfix:""].join("");return p.join(i,r.dir,a)}function _assertOptionsBase(r){if(!_isUndefined(r.name)){const i=r.name;if(p.isAbsolute(i))throw new Error(`name option must not contain an absolute path, found "${i}".`);const a=p.basename(i);if(a===".."||a==="."||a!==i)throw new Error(`name option must not contain a path, found "${i}".`)}if(!_isUndefined(r.template)&&!r.template.match(h)){throw new Error(`Invalid templ Line truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const c=[];const l=new Uint8Array([13,10]);g=0;let p=false;for(const[i,d]of r){if(typeof d==="string"){const r=_.encode(a+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);c.push(r);g+=r.byteLength}else{const r=_.encode(`${a}; name="${escape(normalizeLinefeeds(i))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);c.push(r,d,l);if(typeof d.size==="number"){g+=r.byteLength+d.size+l.byteLength}else{p=true}}}const d=_.encode(`--${i}--`);c.push(d);g+=d.byteLength;if(p){g=null}b=r;h=async function*(){for(const r of c){if(r.stream){yield*r.stream()}else{yield r}}};M="multipart/form-data; boundary="+i}else if(d(r)){b=r;g=r.size;if(r.type){M=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(l.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}c=r instanceof T?r:p(r)}if(typeof b==="string"||l.isBuffer(b)){g=Buffer.byteLength(b)}if(h!=null){let i;c=new T({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:l}=await i.next();if(l){queueMicrotask((()=>{r.close()}))}else{if(!w(c)){r.enqueue(new Uint8Array(a))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const y={stream:c,source:b,length:g};return[y,M]}function safelyExtractBody(r,i=false){if(!T){T=a(63774).ReadableStream}if(r instanceof T){v(!l.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,a]=r.stream.tee();const c=z(a,{transfer:[a]});const[,l]=c.tee();r.stream=i;return{stream:l,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(l.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[I]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new O("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=q(i)}return new C([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[M]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,a]of this.headers)r[i.toLowerCase()]=a;const i=new g;let a;try{a=new c({headers:r,preservePath:true})}catch(r){throw new O(`${r}`,"AbortError")}a.on("field",((r,a)=>{i.append(r,a)}));a.on("file",((r,a,c,l,p)=>{const d=[];if(l==="base64"||l.toLowerCase()==="base64"){let l="";a.on("data",(r=>{l+=r.toString().replace(/[\r\n]/gm,"");const i=l.length-l.length%4;d.push(Buffer.from(l.slice(0,i),"base64"));l=l.slice(i)}));a.on("end",(()=>{d.push(Buffer.from(l,"base64"));i.append(r,new k(d,c,{type:p}))}))}else{a.on("data",(r=>{d.push(r)}));a.on("end",(()=>{i.append(r,new k(d,c,{type:p}))}))}}));const l=new Promise(((r,i)=>{a.on("finish",r);a.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[M].body))a.write(r);a.end();await l;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const a=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[M].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=a.decode(r,{stream:true})}i+=a.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new g;for(const[a,c]of r){i.append(a,c)}return i}else{await Promise.resolve();throwIfAborted(this[M]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,a){y.brandCheck(r,a);throwIfAborted(r[M]);if(bodyUnusable(r[M].body)){throw new TypeError("Body is unusable")}const c=h();const errorSteps=r=>c.reject(r);const successSteps=r=>{try{c.resolve(i(r))}catch(r){errorSteps(r)}};if(r[M].body==null){successSteps(new Uint8Array);return c.promise}await b(r[M].body,successSteps,errorSteps);return c.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||l.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=L.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[M];const a=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */p[l-4]=this.maskKey[0];p[l-3]=this.maskKey[1];p[l-2]=this.maskKey[2];p[l-1]=this.maskKey[3];p[1]=a;if(a===126){p.writeUInt16BE(i,2)}else if(a===127){p[2]=p[3]=0;p.writeUIntBE(i,4,6)}p[1]|=128;for(let r=0;r<i;r++){p[l+r]=this.frameData[r]^this.maskKey[r%4]}return p}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(r,i,a)=>{"use strict";const{Writable:c}=a(2203);const l=a(31637);const{parserStates:p,opcodes:d,states:u,emptyBuffer:A}=a(45913);const{kReadyState:h,kSentClose:b,kResponse:g,kReceivedClose:M}=a(62933);const{isValidStatusCode:y,failWebsocketConnection:O,websocketMessageReceived:z}=a(3574);const{WebsocketFrameSend:C}=a(31237);const B={};B.ping=l.channel("undici:websocket:ping");B.pong=l.channel("undici:websocket:pong");class ByteParser extends c{#o=[];#a=0;#c=p.INFO;#l={};#p=[];constructor(r){super();this.ws=r}_write(r,i,a){this.#o.push(r);this.#a+=r.length;this.run(a)}run(r){while(true){if(this.#c===p.INFO){if(this.#a<2){return r()}const i=this.consume(2);this.#l.fin=(i[0]&128)!==0;this.#l.opcode=i[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==d.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==d.BINARY&&this.#l.opcode!==d.TEXT){O(this.ws,"Invalid frame type was fragmented.");return}const a=i[1]&127;if(a<=125){this.#l.payloadLength=a;this.#c=p.READ_DATA}else if(a===126){this.#c=p.PAYLOADLENGTH_16}else if(a===127){this.#c=p.PAYLOADLENGTH_64}if(this.#l.fragmented&&a>125){O(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===d.PING||this.#l.opcode===d.PONG||this.#l.opcode===d.CLOSE)&&a>125){O(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===d.CLOSE){if(a===1){O(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(a);this.#l.closeInfo=this.parseCloseBody(false,r);if(!this.ws[b]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#l.closeInfo.code,0);const i=new C(r);this.ws[g].socket.write(i.createFrame(d.CLOSE),(r=>{if(!r){this.ws[b]=true}}))}this.ws[h]=u.CLOSING;this.ws[M]=true;this.end();return}else if(this.#l.opcode===d.PING){const i=this.consume(a);if(!this.ws[M]){const r=new C(i);this.ws[g].socket.write(r.createFrame(d.PONG));if(B.ping.hasSubscribers){B.ping.publish({payload:i})}}this.#c=p.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#l.opcode===d.PONG){const i=this.consume(a);if(B.pong.hasSubscribers){B.pong.publish({payload:i})}if(this.#a>0){continue}else{r();return}}}else if(this.#c===p.PAYLOADLENGTH_16){if(this.#a<2){return r()}const i=this.consume(2);this.#l.payloadLength=i.readUInt16BE(0);this.#c=p.READ_DATA}else if(this.#c===p.PAYLOADLENGTH_64){if(this.#a<8){return r()}const i=this.consume(8);const a=i.readUInt32BE(0);if(a>2**31-1){O(this.ws,"Received payload length > 2^31 bytes.");return}const c=i.readUInt32BE(4);this.#l.payloadLength=(a<<8)+c;this.#c=p.READ_DATA}else if(this.#c===p.READ_DATA){if(this.#a<this.#l.payloadLength){return r()}else if(this.#a>=this.#l.payloadLength){const r=this.consume(this.#l.payloadLength);this.#p.push(r);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===d.CONTINUATION){const r=Buffer.concat(this.#p);z(this.ws,this.#l.originalOpcode,r);this.#l={};this.#p.length=0}this.#c=p.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return A}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const i=Buffer.allocUnsafe(r);let a=0;while(a!==r){const c=this.#o[0];const{length:l}=c;if(l+a===r){i.set(this.#o.shift(),a);break}else if(l+a>r){i.set(c.subarray(0,r-a),a);this.#o[0]=c.subarray(r-a);break}else{i.set(this.#o.shift(),a);a+=c.length}}this.#a-=r;return i}parseCloseBody(r,i){let a;if(i.length>=2){a=i.readUInt16BE(0)}if(r){if(!y(a)){return null}return{code:a}}let c=i.subarray(2);if(c[0]===239&&c[1]===187&&c[2]===191){c=c.subarray(3)}if(a!==undefined&&!y(a)){return null}try{c=new TextDecoder("utf-8",{fatal:true}).decode(c)}catch{return null}return{code:a,reason:c}}get closingInfo(){return this.#l.closeInfo}}r.exports={ByteParser:ByteParser}},62933:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(r,i,a)=>{"use strict";const{kReadyState:c,kController:l,kResponse:p,kBinaryType:d,kWebSocketURL:u}=a(62933);const{states:A,opcodes:h}=a(45913);const{MessageEvent:b,ErrorEvent:g}=a(46255);function isEstablished(r){return r[c]===A.OPEN}function isClosing(r){return r[c]===A.CLOSING}function isClosed(r){return r[c]===A.CLOSED}function fireEvent(r,i,a=Event,c){const l=new a(r,c);i.dispatchEvent(l)}function websocketMessageReceived(r,i,a){if(r[c]!==A.OPEN){return}let l;if(i===h.TEXT){try{l=new TextDecoder("utf-8",{fatal:true}).Line truncated
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var h=function _default(r){var i="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var c=r.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(r){var i=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(i.test(r)&&a.test(r)&&a.test(r.replace(/\\[\s\S]/g,""))){return r.replace(i,"").replace(a,"")}return r}function asXRegExp(a,c){var l=c?"x":"";return r.isRegExp(a)?a[i]&&a[i].captureNames?a:r(a.source,l):r(a,l)}function interpolate(i){return i instanceof RegExp?i:r.escape(i)}function reduceToSubpatternsObject(r,i,a){r["subpattern".concat(a)]=i;return r}function embedSubpatternAfter(r,i,a){var c=i<a.length-1;return r+(c?"{{subpattern".concat(i,"}}"):"")}r.tag=function(i){return function(a){var c,l;for(var p=arguments.length,d=new Array(p>1?p-1:0),h=1;h<p;h++){d[h-1]=arguments[h]}var b=(0,A["default"])(c=(0,u["default"])(d).call(d,interpolate)).call(c,reduceToSubpatternsObject,{});var g=(0,u["default"])(l=a.raw).call(l,embedSubpatternAfter).join("");return r.build(g,b,i)}};r.build=function(l,u,A){A=A||"";var h=(0,d["default"])(A).call(A,"x");var b=/^\(\?([\w$]+)\)/.exec(l);if(b){A=r._clipDuplicates(A+b[1])}var g={};for(var M in u){if(u.hasOwnProperty(M)){var y=asXRegExp(u[M],h);g[M]={pattern:deanchor(y.source),names:y[i].captureNames||[]}}}var O=asXRegExp(l,h);var z=0;var C;var B=0;var I=[0];var v=O[i].captureNames||[];var w=O.source.replace(c,(function(r,i,c,l,d){var u=i||c;var A;var h;var b;if(u){var M;if(!g.hasOwnProperty(u)){throw new ReferenceError("Undefined property ".concat(r))}if(i){A=v[B];I[++B]=++z;h="(?<".concat(A||u,">")}else{h="(?:"}C=z;var y=g[u].pattern.replace(a,(function(r,i,a){if(i){A=g[u].names[z-C];++z;if(A){return"(?<".concat(A,">")}}else if(a){b=+a-1;return g[u].names[b]?"\\k<".concat(g[u].names[b],">"):"\\".concat(+a+C)}return r}));return(0,p["default"])(M="".concat(h)).call(M,y,")")}if(l){A=v[B];I[++B]=++z;if(A){return"(?<".concat(A,">")}}else if(d){b=+d-1;return v[b]?"\\k<".concat(v[b],">"):"\\".concat(I[+d])}return r}));return r(w,A)}};i["default"]=h;r.exports=i.default},53938:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(17012));var d=c(a(45492));var u=c(a(73157));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var A=function _default(r){function row(r,i,a,c){return{name:r,value:i,start:a,end:c}}r.matchRecursive=function(i,a,c,l,A){l=l||"";A=A||{};var h=(0,u["default"])(l).call(l,"g");var b=(0,u["default"])(l).call(l,"y");var g=l.replace(/y/g,"");var M=A,y=M.escapeChar;var O=A.valueNames;var z=[];var C=0;var B=0;var I=0;var v=0;var w;var S;var R;var N;var Q;a=r(a,g);c=r(c,g);if(y){var q,x;if(y.length>1){throw new Error("Cannot use more than one escape character")}y=r.escape(y);Q=new RegExp((0,d["default"])(q=(0,d["default"])(x="(?:".concat(y,"[\\S\\s]|(?:(?!")).call(x,r.union([a,c],"",{conjunction:"or"}).source,")[^")).call(q,y,"])+)+"),l.replace(/[^imu]+/g,""))}while(true){if(y){I+=(r.exec(i,Q,I,"sticky")||[""])[0].length}R=r.exec(i,a,I);N=r.exec(i,c,I);if(R&&N){if(R.index<=N.index){N=null}else{R=null}}if(R||N){B=(R||N).index;I=B+(R||N)[0].length}else if(!C){break}if(b&&!C&&B>v){break}if(R){if(!C){w=B;S=I}++C}else if(N&&C){if(! --C){if(O){if(O[0]&&w>v){z.push(row(O[0],(0,p["default"])(i).call(i,v,w),v,w))}if(O[1]){z.push(row(O[1],(0,p["default"])(i).call(i,w,S),w,S))}if(O[2]){z.push(row(O[2],(0,p["default"])(i).call(i,S,B),S,B))}if(O[3]){z.push(row(O[3],(0,p["default"])(i).call(i,B,I),B,I))}}else{z.push((0,p["default"])(i).call(i,S,B))}v=I;if(!h){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(B===I){++I}}if(h&&!b&&O&&O[0]&&i.length>v){z.push(row(O[0],(0,p["default"])(i).call(i,v),v,i.length))}return z}};i["default"]=A;r.exports=i.default},24594:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(28187));var d=c(a(28708));var u=c(a(79285));var A=c(a(81098));var h=c(a(66300));var b=c(a(17012));var g=c(a(73157));var M=c(a(45492));var y=c(a(60167));function _createForOfIteratorHelper(r,i){var a;if(typeof A["default"]==="undefined"||(0,u["default"])(r)==null){if((0,d["default"])(r)||(a=_unsupportedIterableToArray(r))||i&&r&&typeof r.length==="number"){if(a)r=a;var c=0;var l=function F(){};return{s:l,n:function n(){if(c>=r.length)return{done:true};return{done:false,value:r[c++]}},e:function e(r){throw r},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=true,b=false,g;return{s:function s(){a=(0,p["default"])(r)},n:function n(){var r=a.next();h=r.done;return r},e:function e(r){b=true;g=r},f:function f(){try{if(!h&&a["return"]!=null)a["return"]()}finally{if(b)throw g}}}}function _unsupportedIterableToArray(r,i){var a;if(!r)return;if(typeof r==="string")return _arrayLikeToArray(r,i);var c=(0,b["default"])(a=Object.prototype.toString.call(r)).call(a,8,-1);if(c==="Object"&&r.constructor)c=r.constructor.name;if(c==="Map"||c==="Set")return(0,h["default"])(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(r,i)}function _arrayLikeToArray(r,i){if(i==null||i>r.length)i=r.length;for(var a=0,c=new Array(i);a<i;a++){c[a]=r[a]}return c}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var O=function _default(r){var i={};var a=r._dec;var c=r._hex;var l=r._pad4;function normalize(r){return r.replace(/[- _]+/g,"").toLowerCase()}function charCode(r){var i=/^\\[xu](.+)/.exec(r);return i?a(i[1]):r.charCodeAt(r[0]==="\\"?1:0)}function invertBmp(i){var a="";var p=-1;(0,y["default"])(r).call(r,i,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(r){var i=charCode(r[1]);if(i>p+1){a+="\\u".concat(l(c(p+1)));if(i>p+2){a+="-\\u".concat(l(c(i-1)))}}p=charCode(r[2]||r[1])}));if(p<65535){a+="\\u".concat(l(c(p+1)));if(p<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(r){var a="b!";return i[r][a]||(i[r][a]=invertBmp(i[r].bmp))}function buildAstral(r,a){var c=i[r];var l="";if(c.bmp&&!c.isBmpLast){var p;l=(0,M["default"])(p="[".concat(c.bmp,"]")).call(p,c.astral?"|":"")}if(c.astral){l+=c.astral}if(c.isBmpLast&&c.bmp){var d;l+=(0,M["default"])(d="".concat(c.astral?"|":"","[")).call(d,c.bmp,"]")}return a?"(?:(?!".concat(l,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(l,")")}function cacheAstral(r,a){var c=a?"a!":"a=";return i[r][c]||(i[r][c]=buildAstral(r,a))}r.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(r,a,c){var l="Invalid double negation ";var p="Unknown Unicode token ";var d="Unicode token missing data ";var u="Astral mode required for Unicode token ";var A="Astral mode does not support Unicode tokens within character classes";var h=r[1]==="P"||!!r[2];var b=(0,g["default"])(c).call(c,"A");var y=normalize(r[4]||r[3]);var O=i[y];if(r[1]==="P"&&r[2]){throw new SyntaxError(l+r[0])}if(!i.hasOwnProperty(y)){throw new SyntaxError(p+r[0])}if(O.inverseOf){y=normalize(O.inverseOf);if(!i.hasOwnProperty(y)){var z;throw new ReferenceError((0,M["default"])(z="".concat(d+r[0]," -> ")).call(z,O.inverseOf))}O=i[y];h=!h}if(!(O.bmp||b)){throw new SyntaxError(u+r[0])}if(b){if(a==="class"){throw new SyntaxError(A)}return cacheAstral(y,h)}return a==="class"?h?cacheInvertedBmp(y):O.bmp:"".concat((h?"[^":"[")+O.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});r.addUnicodeData=function(a){var c="Unicode token requires name";var l="Unicode token has no character data ";var p=_createForOfIteratorHelper(a),d;try{for(p.s();!(d=p.n()).done;){var u=d.value;if(!u.name){throw new Error(c)}if(!(u.inverseOf||u.bmp||u.astral)){throw new Error(l+u.name)}i[normalize(u.name)]=u;if(u.alias){i[normalize(u.alias)]=u}}}catch(r){p.e(r)}finally{p.f()}r.cache.flush("patterns")};r._getUnicodeProperty=function(r){var a=normalize(r);return i[a]}};i["default"]=O;r.exports=i.default},65853:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(38657));
/*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}r.addUnicodeData(p["default"])};i["default"]=d;r.exports=i.default},87167:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(4219));
/*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}r.addUnicodeData(p["default"])};i["default"]=d;r.exports=i.default},53682:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(73862));
/*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var i=p["default"];i.push({name:"Assigned",inverseOf:"Cn"});r.addUnicodeData(i)};i["default"]=d;r.exports=i.default},57387:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(77103));
/*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}r.addUnicodeData(p["default"])};i["default"]=d;r.exports=i.default},63897:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(1240));var d=c(a(11577));var u=c(a(53938));var A=c(a(24594));var h=c(a(65853));var b=c(a(87167));var g=c(a(53682));var M=c(a(57387));(0,d["default"])(p["default"]);(0,u["default"])(p["default"]);(0,A["default"])(p["default"]);(0,h["default"])(p["default"]);(0,b["default"])(p["default"]);(0,g["default"])(p["default"]);(0,M["default"])(p["default"]);var y=p["default"];i["default"]=y;r.exports=i.default},1240:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(28187));var d=c(a(28708));var u=c(a(79285));var A=c(a(81098));var h=c(a(66300));var b=c(a(45492));var g=c(a(70738));var M=c(a(89756));var y=c(a(77768));var O=c(a(60167));var z=c(a(73157));var C=c(a(76115));var B=c(a(17012));var I=c(a(77764));var v=c(a(89505));function _createForOfIteratorHelper(r,i){var a;if(typeof A["default"]==="undefined"||(0,u["default"])(r)==null){if((0,d["default"])(r)||(a=_unsupportedIterableToArray(r))||i&&r&&typeof r.length==="number"){if(a)r=a;var c=0;var l=function F(){};return{s:l,n:function n(){if(c>=r.length)return{done:true};return{done:false,value:r[c++]}},e:function e(r){throw r},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=true,b=false,g;return{s:function s(){a=(0,p["default"])(r)},n:function n(){var r=a.next();h=r.done;return r},e:function e(r){b=true;g=r},f:function f(){try{if(!h&&a["return"]!=null)a["return"]()}finally{if(b)throw g}}}}function _unsupportedIterableToArray(r,i){var a;if(!r)return;if(typeof r==="string")return _arrayLikeToArray(r,i);var c=(0,B["default"])(a=Object.prototype.toString.call(r)).call(a,8,-1);if(c==="Object"&&r.constructor)c=r.constructor.name;if(c==="Map"||c==="Set")return(0,h["default"])(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(r,i)}function _arrayLikeToArray(r,i){if(i==null||i>r.length)i=r.length;for(var a=0,c=new Array(i);a<i;a++){c[a]=r[a]}return c}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var w="xregexp";var S={astral:false,namespacing:false};var R={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var N={};var Q={};var q={};var x=[];var T="default";var k="class";var _={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var L=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var D=R.exec.call(/()??/,"")[1]===undefined;var P=(0,v["default"])(/x/)!==undefined;var W={},U=W.toString;function hasNativeFlag(r){var i=true;try{new RegExp("",r);if(r==="y"){var a=function(){return"gy"}();var c=".a".replace(new RegExp("a",a),".")==="..";if(c){i=false}}}catch(r){i=false}return i}var H=hasNativeFlag("u");var j=hasNativeFlag("y");var G={g:true,i:true,m:true,u:H,y:j};function augment(r,i,a,c,l){var p;r[w]={captureNames:i};if(l){return r}if(r.__proto__){r.__proto__=XRegExp.prototype}else{for(var d in XRegExp.prototype){r[d]=XRegExp.prototype[d]}}r[w].source=a;r[w].flags=c?(0,I["default"])(p=c.split("")).call(p).join(""):c;return r}function clipDuplicates(r){return R.replace.call(r,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(r,i){var a;if(!XRegExp.isRegExp(r)){throw new TypeError("Type RegExp expected")}var c=r[w]||{};var l=getNativeFlags(r);var p="";var d="";var u=null;var A=null;i=i||{};if(i.removeG){d+="g"}if(i.removeY){d+="y"}if(d){l=R.replace.call(l,new RegExp("[".concat(d,"]+"),"g"),"")}if(i.addG){p+="g"}if(i.addY){p+="y"}if(p){l=clipDuplicates(l+p)}if(!i.isInternalOnly){if(c.source!==undefined){u=c.source}if((0,v["default"])(c)!=null){A=p?clipDuplicates((0,v["default"])(c)+p):(0,v["default"])(c)}}r=augment(new RegExp(i.source||r.source,l),hasNamedCapture(r)?(0,B["default"])(a=c.captureNames).call(a,0):null,u,A,i.isInternalOnly);return r}function dec(r){return(0,C["default"])(r,16)}function getContextualTokenSeparator(r,i,a){if(r.input[r.index-1]==="("||r.input[r.index+r[0].length]===")"||r.input[r.index-1]==="|"||r.input[r.index+r[0].length]==="|"||r.index<1||r.index+r[0].length>=r.input.length||R.test.call(/^\(\?[:=!]/,r.input.substr(r.index-3,3))||isQuantifierNext(r.input,r.index+r[0].length,a)){return""}return"(?:)"}function getNativeFlags(r){return P?(0,v["default"])(r):R.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(r))[1]}function hasNamedCapture(r){return!!(r[w]&&r[w].captureNames)}function hex(r){return(0,C["default"])(r,10).toString(16)}function isQuantifierNext(r,i,a){var c="\\(\\?#[^)]*\\)";var l="#[^#\\n]*";var p="[?*+]|{\\d+(?:,\\d*)?}";return R.test.call((0,z["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,B["default"])(r).call(r,i))}function isType(r,i){return U.call(r)==="[object ".concat(i,"]")}function pad4(r){while(r.length<4){r="0".concat(r)}return r}function prepareFlags(r,i){if(clipDuplicates(i)!==i){throw new SyntaxError("Invalid duplicate regex flag ".concat(i))}r=R.replace.call(r,/^\(\?([\w$]+)\)/,(function(r,a){if(R.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(r))}i=clipDuplicates(i+a);return""}));var a=_createForOfIteratorHelper(i),c;try{for(a.s();!(c=a.n()).done;){var l=c.value;if(!G[l]){throw new SyntaxError("Unknown regex flag ".concat(l))}}}catch(r){a.e(r)}finally{a.f()}return{pattern:r,flags:i}}function prepareOptions(r){var i={};if(isType(r,"String")){(0,O["default"])(XRegExp).call(XRegExp,r,/[^\s,]+/,(function(r){i[r]=true}));return i}return r}function registerFlag(r){if(!/^[\w$]$/.test(r)){throw new Error("Flag must be a single character A-Za-z0-9_$")}G[r]=true}function runTokens(r,i,a,c,l){var p=x.length;var d=r[a];var u=null;var A;var h;while(p--){h=x[p];if(h.leadChar&&h.leadChar!==d||h.scope!==c&&h.scope!=="all"||h.flag&&!(0,z["default"])(i).call(i,h.flag)){continue}A=XRegExp.exec(r,h.regex,a,"sticky");if(A){u={matchLength:A[0].length,output:h.handler.call(l,A,c,i),reparse:h.reparse};break}}return u}function setAstral(r){S.astral=r}function setNamespacing(r){S.namespacing=r}function toObject(r){if(r==null){throw new TypeError("Cannot convert null or undefined to object")}return r}function XRegExp(r,i){if(XRegExp.isRegExp(r)){if(i!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(r)}r=r===undefined?"":String(r);i=i===undefined?"":String(i);if(XRegExp.isInstalled("astral")&&!(0,z["default"])(i).call(i,"A")){i+="A"}if(!q[r]){q[r]={}}if(!q[r][i]){var a={hasNamedCapture:false,captureNames:[]};var c=T;var l="";var p=0;var d;var u=prepareFlags(r,i);var A=u.pattern;var h=(0,v["default"])(u);while(p<A.length){do{d=runTokens(A,h,p,c,a);if(d&&d.reparse){A=(0,B["default"])(A).call(A,0,p)+d.output+(0,B["default"])(A).call(A,p+d.matchLength)}}while(d&&d.reparsLine truncated
/**
* ZipStream
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var c=a(39023).inherits;var l=a(47544).ZipArchiveOutputStream;var p=a(47544).ZipArchiveEntry;var d=a(53296);var u=r.exports=function(r){if(!(this instanceof u)){return new u(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};c(u,l);u.prototype._normalizeFileData=function(r){r=d.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var a=r.type==="symlink";if(r.name){r.name=d.sanitizePath(r.name);if(!a&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||a){r.store=true}r.date=d.dateify(r.date);return r};u.prototype.entry=function(r,i,a){if(typeof a!=="function"){a=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){a(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){a(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){a(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var c=new p(i.name);c.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){c.setName(i.name,true)}if(i.store){c.setMethod(0)}if(i.comment.length>0){c.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}c.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return l.prototype.entry.call(this,c,r,a)};u.prototype.finalize=function(){this.finish()}},40788:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(){var ownKeys=function(r){ownKeys=Object.getOwnPropertyNames||function(r){var i=[];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))i[i.length]=a;return i};return ownKeys(r)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=ownKeys(r),p=0;p<a.length;p++)if(a[p]!=="default")c(i,r,a[p]);l(i,r);return i}}();var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(c.next(r))}catch(r){l(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ContextSource=void 0;i.getInputs=getInputs;i.getContext=getContext;const u=p(a(37484));const A=a(23651);const h=a(21407);const b=a(36060);function getInputs(){return{context:u.getInput("context")||g.workflow,images:A.Util.getInputList("images",{ignoreComma:true,comment:"#"}),tags:A.Util.getInputList("tags",{ignoreComma:true,comment:"#"}),flavor:A.Util.getInputList("flavor",{ignoreComma:true,comment:"#"}),labels:A.Util.getInputList("labels",{ignoreComma:true,comment:"#"}),annotations:A.Util.getInputList("annotations",{ignoreComma:true,comment:"#"}),sepTags:u.getInput("sep-tags",{trimWhitespace:false})||`\n`,sepLabels:u.getInput("sep-labels",{trimWhitespace:false})||`\n`,sepAnnotations:u.getInput("sep-annotations",{trimWhitespace:false})||`\n`,bakeTarget:u.getInput("bake-target")||`docker-metadata-action`,githubToken:u.getInput("github-token")}}var g;(function(r){r["workflow"]="workflow";r["git"]="git"})(g||(i.ContextSource=g={}));function getContext(r,i){return d(this,void 0,void 0,(function*(){switch(r){case g.workflow:return yield getContextFromWorkflow(i);case g.git:return yield getContextFromGit();default:throw new Error(`Invalid context source: ${r}`)}}))}function getContextFromWorkflow(r){return d(this,void 0,void 0,(function*(){var i,a,c;const l=b.GitHub.context;if(/pull_request_target/.test(l.eventName)){l.ref=`refs/pull/${l.payload.number}/merge`}if(/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")){if((/pull_request/.test(l.eventName)||/pull_request_target/.test(l.eventName))&&((c=(a=(i=l.payload)===null||i===void 0?void 0:i.pull_request)===null||a===void 0?void 0:a.head)===null||c===void 0?void 0:c.sha)!=undefined){l.sha=l.payload.pull_request.head.sha}}reLine truncated
//# sourceMappingURL=index.js.map
Generated Vendored
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","ownKeys","getOwnPropertyNames","ar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","url_1","diLine truncated
Generated Vendored
+5249 -1
View File
File diff suppressed because it is too large. Load diff
Generated Vendored
-1
View File
@@ -1 +0,0 @@
(()=>{var e={296:e=>{var r=Object.prototype.toString;var n=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},599:(e,r,n)=>{e=n.nmd(e);var t=n(927).SourceMapConsumer;var o=n(928);var i;try{i=n(896);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var a=n(296);function dynamicRequire(e,r){return e.require(r)}var u=false;var s=false;var l=false;var c="auto";var p={};var f={};var g=/^data:application\/json[^,]+base64,/;var d=[];var h=[];function isInBrowser(){if(c==="browser")return true;if(c==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function globalProcessVersion(){if(typeof process==="object"&&process!==null){return process.version}else{return""}}function globalProcessStderr(){if(typeof process==="object"&&process!==null){return process.stderr}}function globalProcessExit(e){if(typeof process==="object"&&process!==null&&typeof process.exit==="function"){return process.exit(e)}}function handlerExec(e){return function(r){for(var n=0;n<e.length;n++){var t=e[n](r);if(t){return t}}return null}}var m=handlerExec(d);d.push((function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,(function(e,r){return r?"":"/"}))}if(e in p){return p[e]}var r="";try{if(!i){var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);if(n.readyState===4&&n.status===200){r=n.responseText}}else if(i.existsSync(e)){r=i.readFileSync(e,"utf8")}}catch(e){}return p[e]=r}));function supportRelativeURL(e,r){if(!e)return r;var n=o.dirname(e);var t=/^\w+:\/\/[^\/]*/.exec(n);var i=t?t[0]:"";var a=n.slice(i.length);if(i&&/^\/\w\:/.test(a)){i+="/";return i+o.resolve(n.slice(i.length),r).replace(/\\/g,"/")}return i+o.resolve(n.slice(i.length),r)}function retrieveSourceMapURL(e){var r;if(isInBrowser()){try{var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);r=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t){return t}}catch(e){}}r=m(e);var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;var i,a;while(a=o.exec(r))i=a;if(!i)return null;return i[1]}var v=handlerExec(h);h.push((function(e){var r=retrieveSourceMapURL(e);if(!r)return null;var n;if(g.test(r)){var t=r.slice(r.indexOf(",")+1);n=a(t,"base64").toString();r=e}else{r=supportRelativeURL(e,r);n=m(r)}if(!n){return null}return{url:r,map:n}}));function mapSourcePosition(e){var r=f[e.source];if(!r){var n=v(e.source);if(n){r=f[e.source]={url:n.url,map:new t(n.map)};if(r.map.sourcesContent){r.map.sources.forEach((function(e,n){var t=r.map.sourcesContent[n];if(t){var o=supportRelativeURL(r.url,e);p[o]=t}}))}}else{r=f[e.source]={url:null,map:null}}}if(r&&r.map&&typeof r.map.originalPositionFor==="function"){var o=r.map.originalPositionFor(e);if(o.source!==null){o.source=supportRelativeURL(r.url,o.source);return o}}return e}function mapEvalOrigin(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){var n=mapSourcePosition({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}r=/^eval at ([^(]+) \((.+)\)$/.exec(e);if(r){return"eval at "+r[1]+" ("+mapEvalOrigin(r[2])+")"}return e}function CallSiteToString(){var e;var r="";if(this.isNative()){r="native"}else{e=this.getScriptNameOrSourceURL();if(!e&&this.isEval()){r=this.getEvalOrigin();r+=", "}if(e){r+=e}else{r+="<anonymous>"}var n=this.getLineNumber();if(n!=null){r+=":"+n;var t=this.getColumnNumber();if(t){r+=":"+t}}}var o="";var i=this.getFunctionName();var a=true;var u=this.isConstructor();var s=!(this.isToplevel()||u);if(s){var l=this.getTypeName();if(l==="[object Object]"){l="null"}var c=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"<anonymous>")}}else if(u){o+="new "+(i||"<aLine truncated
+52
View File
@@ -0,0 +1,52 @@
import {defineConfig} from 'eslint/config';
import js from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';
import vitest from '@vitest/eslint-plugin';
import globals from 'globals';
import eslintConfigPrettier from 'eslint-config-prettier/flat';
import eslintPluginPrettier from 'eslint-plugin-prettier';
export default defineConfig([
{
ignores: ['.yarn/**/*', 'coverage/**/*', 'dist/**/*']
},
js.configs.recommended,
...tseslint.configs['flat/recommended'],
eslintConfigPrettier,
{
languageOptions: {
globals: {
...globals.node
}
}
},
{
files: ['__tests__/**'],
...vitest.configs.recommended,
languageOptions: {
globals: {
...globals.node,
...vitest.environments.env.globals
}
},
rules: {
...vitest.configs.recommended.rules,
'vitest/no-conditional-expect': 'error',
'vitest/no-disabled-tests': 0
}
},
{
plugins: {
prettier: eslintPluginPrettier
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-require-imports': [
'error',
{
allowAsImport: true
}
]
}
}
]);
-31
View File
@@ -1,31 +0,0 @@
import fs from 'fs';
import os from 'os';
import path from 'path';
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
process.env = Object.assign({}, process.env, {
TEMP: tmpDir,
GITHUB_REPOSITORY: 'docker/metadata-action',
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
}) as {
[key: string]: string;
};
module.exports = {
clearMocks: true,
testEnvironment: 'node',
moduleFileExtensions: ['js', 'ts'],
setupFiles: ['dotenv/config'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
moduleNameMapper: {
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
},
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__mocks__/', '__tests__/'],
verbose: true
};
+30 -30
View File
@@ -1,16 +1,14 @@
{
"name": "docker-metadata-action",
"description": "GitHub Action to extract metadata (tags, labels) for Docker",
"type": "module",
"main": "src/main.ts",
"scripts": {
"build": "ncc build --source-map --minify --license licenses.txt",
"lint": "yarn run prettier && yarn run eslint",
"format": "yarn run prettier:fix && yarn run eslint:fix",
"eslint": "eslint --max-warnings=0 .",
"eslint:fix": "eslint --fix .",
"prettier": "prettier --check \"./**/*.ts\"",
"prettier:fix": "prettier --write \"./**/*.ts\"",
"test": "jest"
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify --keep-names && yarn run license",
"lint": "eslint --max-warnings=0 .",
"format": "eslint --fix .",
"test": "vitest run",
"license": "generate-license-file --input package.json --output dist/licenses.txt --overwrite --ci --no-spinner --eol lf"
},
"repository": {
"type": "git",
@@ -25,33 +23,35 @@
],
"author": "Docker Inc.",
"license": "Apache-2.0",
"packageManager": "yarn@4.9.2",
"packageManager": "yarn@4.15.0",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1",
"@docker/actions-toolkit": "^0.68.0",
"@actions/core": "^3.0.1",
"@actions/github": "^9.1.1",
"@docker/actions-toolkit": "^0.92.0",
"@renovate/pep440": "^1.0.0",
"csv-parse": "^6.1.0",
"handlebars": "^4.7.8",
"csv-parse": "^7.0.2",
"handlebars": "^4.7.9",
"moment": "^2.30.1",
"moment-timezone": "^0.6.0",
"semver": "^7.7.3"
"moment-timezone": "^0.6.3",
"semver": "^7.8.5"
},
"devDependencies": {
"@types/node": "^20.19.9",
"@eslint/js": "^9.39.3",
"@types/node": "^24.11.0",
"@types/semver": "^7.7.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.3",
"dotenv": "^16.6.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.2",
"eslint-plugin-jest": "^28.14.0",
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"prettier": "^3.6.2",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/eslint-plugin": "^1.6.9",
"dotenv": "^17.3.1",
"esbuild": "^0.28.0",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"generate-license-file": "^4.1.1",
"globals": "^17.3.0",
"prettier": "^3.8.1",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
}
}
+12 -10
View File
@@ -1,9 +1,11 @@
import * as core from '@actions/core';
import {Context as GithubContext} from '@actions/github/lib/context';
import {Util} from '@docker/actions-toolkit/lib/util';
import {Git} from '@docker/actions-toolkit/lib/git';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {Util} from '@docker/actions-toolkit/lib/util.js';
import {Git} from '@docker/actions-toolkit/lib/git.js';
import {GitHub} from '@docker/actions-toolkit/lib/github/github.js';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
type GithubContext = typeof GitHub.context;
export interface Context extends GithubContext {
commitDate: Date;
@@ -26,11 +28,11 @@ export interface Inputs {
export function getInputs(): Inputs {
return {
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#'}),
images: Util.getInputList('images', {ignoreComma: true, comment: '#', commentNoInfix: true}),
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#', commentNoInfix: true}),
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#', commentNoInfix: true}),
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#', commentNoInfix: true}),
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#', commentNoInfix: true}),
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
sepAnnotations: core.getInput('sep-annotations', {trimWhitespace: false}) || `\n`,
+4 -4
View File
@@ -1,11 +1,11 @@
import * as fs from 'fs';
import * as core from '@actions/core';
import * as actionsToolkit from '@docker/actions-toolkit';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {Util} from '@docker/actions-toolkit/lib/util';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
import {Util} from '@docker/actions-toolkit/lib/util.js';
import {getContext, getInputs, Inputs} from './context';
import {Meta, Version} from './meta';
import {getContext, getInputs, Inputs} from './context.js';
import {Meta, Version} from './meta.js';
actionsToolkit.run(
// main
+7 -7
View File
@@ -5,13 +5,13 @@ import moment from 'moment-timezone';
import * as pep440 from '@renovate/pep440';
import * as semver from 'semver';
import * as core from '@actions/core';
import {Context as ToolkitContext} from '@docker/actions-toolkit/lib/context';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github';
import {Context as ToolkitContext} from '@docker/actions-toolkit/lib/context.js';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github/github.js';
import {Inputs, Context} from './context';
import * as icl from './image';
import * as tcl from './tag';
import * as fcl from './flavor';
import {Inputs, Context} from './context.js';
import * as icl from './image.js';
import * as tcl from './tag.js';
import * as fcl from './flavor.js';
const defaultShortShaLength = 7;
@@ -376,7 +376,7 @@ export class Meta {
if (hp.body.length == 1 && hp.body[0].type == 'MustacheStatement') {
return hp.body[0]['path']['parts'].length == 1 && hp.body[0]['path']['parts'][0] == 'raw';
}
} catch (err) {
} catch {
return false;
}
return false;
+4 -9
View File
@@ -1,9 +1,8 @@
{
"compilerOptions": {
"module": "nodenext",
"moduleResolution": "nodenext",
"esModuleInterop": true,
"target": "es6",
"module": "commonjs",
"strict": true,
"newLine": "lf",
"outDir": "./lib",
"rootDir": "./src",
@@ -12,11 +11,7 @@
"resolveJsonModule": true,
"useUnknownInCatchVariables": false,
},
"exclude": [
"./__mocks__/**/*",
"./__tests__/**/*",
"./lib/**/*",
"node_modules",
"jest.config.ts"
"include": [
"src/**/*.ts"
]
}
+16
View File
@@ -0,0 +1,16 @@
import {defineConfig} from 'vitest/config';
export default defineConfig({
test: {
clearMocks: true,
environment: 'node',
setupFiles: ['./__tests__/setup.unit.ts'],
include: ['**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['clover'],
include: ['src/**/*.ts'],
exclude: ['src/**/main.ts']
}
}
});
+3377 -4336
View File
File diff suppressed because it is too large. Load diff