feat: use packageManager from package.json as default bun version (#152)

* Initial plan

* feat: make packageManager from package.json the default bun version

Co-authored-by: xhyrom <56601352+xhyrom@users.noreply.github.com>

* test: improve cross-platform compatibility and cleanup in utils tests

Co-authored-by: xhyrom <56601352+xhyrom@users.noreply.github.com>

* docs: update README to document automatic package.json version detection

Co-authored-by: xhyrom <56601352+xhyrom@users.noreply.github.com>

* conflicts

* ci: setup-bun-from-package-json-without-specified-field

* ci: setup-bun-from-package-json-without-specified-field

* ci: no cache

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: xhyrom <56601352+xhyrom@users.noreply.github.com>
Co-authored-by: Jozef Steinhübl <contact@xhyrom.dev>
This commit is contained in:
authored and GitHub committed 2026-01-05 12:45:25 +01:00
1 parent b02f8a8a6e
commit 563911925f
6 files changed
+181 -108

No files matched your search

+50
View File
@@ -32,6 +32,8 @@ jobs:
- name: Setup Bun
uses: ./
with:
no-cache: true
- name: Install dependencies
run: bun install
@@ -77,6 +79,7 @@ jobs:
id: setup_bun
with:
bun-version: ${{ matrix.bun-version }}
no-cache: true
- name: ▶️ Run Bun
id: run_bun
@@ -154,6 +157,53 @@ jobs:
uses: ./
with:
bun-version-file: ${{ matrix.file.file }}
no-cache: true
- name: ⚖️ Compare versions
uses: ./.github/actions/compare-bun-version
with:
bun-version: "1.1.0"
setup-bun-from-package-json-without-specified-field:
name: setup-bun from (${{ matrix.os }}, ${{ matrix.file.name }}) without specified field
runs-on: ${{ matrix.os }}
continue-on-error: true
needs: [remove-cache, tests]
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- windows-11-arm
file:
- name: package.json (packageManager bun@1.1.0)
file: package.json
run: |
echo "$(jq '. += {"packageManager": "bun@1.1.0"}' package.json)" > package.json
- name: package.json (packageManager yarn@bun@1.1.0)
file: package.json
run: |
echo "$(jq '. += {"packageManager": "yarn@bun@1.1.0"}' package.json)" > package.json
- name: package.json (engines bun@1.1.0)
file: package.json
run: |
echo "$(jq '.engines = {"bun": "1.1.0"}' package.json)" > package.json
steps:
- name: 📥 Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: 📄 Setup file
run: ${{ matrix.file.run }}
- name: 🛠️ Setup Bun
uses: ./
with:
no-cache: true
- name: ⚖️ Compare versions
uses: ./.github/actions/compare-bun-version
+21 -9
View File
@@ -4,6 +4,18 @@ Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.
## Usage
```yaml
- uses: oven-sh/setup-bun@v2
```
By default, if no version is specified, the action will:
1. Check `package.json` for the `packageManager` field (e.g., `"packageManager": "bun@1.0.25"`)
2. If `packageManager` doesn't exist, check `package.json` for `engines.bun`
3. If neither exists or `package.json` is not found, use `latest`
You can also explicitly specify a version:
```yaml
- uses: oven-sh/setup-bun@v2
with:
@@ -66,15 +78,15 @@ If you need to override the download URL, you can use the `bun-download-url` inp
## Inputs
| Name | Description | Default | Examples |
| ------------------ | --------------------------------------------------------------------------------- | --------------------- | ------------------------------------------------ |
| `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` |
| `bun-version-file` | The version of Bun to download and install from file. | `undefined` | `package.json`, `.bun-version`, `.tool-versions` |
| `bun-download-url` | URL to download .zip file for Bun release | | |
| `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` |
| `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` |
| `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` |
| `token` | Personal access token (PAT) used to fetch tags from the `oven-sh/bun` repository. | `${{ github.token }}` | `${{ secrets.GITHUB_TOKEN }}` |
| Name | Description | Default | Examples |
| ------------------ | --------------------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------ |
| `bun-version` | The version of Bun to download and install. | Version from `package.json`, or `latest` | `canary`, `1.0.0`, `1.0.x` |
| `bun-version-file` | The version of Bun to download and install from file. | `undefined` | `package.json`, `.bun-version`, `.tool-versions` |
| `bun-download-url` | URL to download .zip file for Bun release | | |
| `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` |
| `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` |
| `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` |
| `token` | Personal access token (PAT) used to fetch tags from the `oven-sh/bun` repository. | `${{ github.token }}` | `${{ secrets.GITHUB_TOKEN }}` |
## Outputs
Generated Vendored
+93 -93
View File
@@ -1,16 +1,16 @@
var KQe=Object.create;var AC=Object.defineProperty;var $Qe=Object.getOwnPropertyDescriptor;var eBe=Object.getOwnPropertyNames;var tBe=Object.getPrototypeOf,ABe=Object.prototype.hasOwnProperty;var a=(t,e)=>AC(t,"name",{value:e,configurable:!0});var Le=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gI=(t,e)=>{for(var A in e)AC(t,A,{get:e[A],enumerable:!0})},N_=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of eBe(e))!ABe.call(t,i)&&i!==A&&AC(t,i,{get:()=>e[i],enumerable:!(r=$Qe(e,i))||r.enumerable});return t};var Nr=(t,e,A)=>(A=t!=null?KQe(tBe(t)):{},N_(e||!t||!t.__esModule?AC(A,"default",{value:t,enumerable:!0}):A,t)),Zo=t=>N_(AC({},"__esModule",{value:!0}),t);var hI=E(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.toCommandProperties=Fp.toCommandValue=void 0;function rBe(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(rBe,"toCommandValue");Fp.toCommandValue=rBe;function iBe(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(iBe,"toCommandProperties");Fp.toCommandProperties=iBe});var x_=E(ws=>{"use strict";var nBe=ws&&ws.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),sBe=ws&&ws.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),aBe=ws&&ws.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&nBe(e,t,A);return sBe(e,t),e};Object.defineProperty(ws,"__esModule",{value:!0});ws.issue=ws.issueCommand=void 0;var oBe=aBe(require("os")),D_=hI();function S_(t,e,A){let r=new l4(t,e,A);process.stdout.write(r.toString()+oBe.EOL)}a(S_,"issueCommand");ws.issueCommand=S_;function cBe(t,e=""){S_(t,{},e)}a(cBe,"issue");ws.issue=cBe;var R_="::",l4=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=R_+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${dBe(i)}`)}}return e+=`${R_}${lBe(this.message)}`,e}};function lBe(t){return(0,D_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(lBe,"escapeData");function dBe(t){return(0,D_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(dBe,"escapeProperty")});var F_=E(bs=>{"use strict";var uBe=bs&&bs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),pBe=bs&&bs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u4=bs&&bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&uBe(e,t,A);return pBe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.prepareKeyValueMessage=bs.issueFileCommand=void 0;var gBe=u4(require("crypto")),v_=u4(require("fs")),d4=u4(require("os")),k_=hI();function hBe(t,e){let A=process.env[`GITHUB_${t}`];if(!A)throw new Error(`Unable to find environment variable for file command ${t}`);if(!v_.existsSync(A))throw new Error(`Missing file at path: ${A}`);v_.appendFileSync(A,`${(0,k_.toCommandValue)(e)}${d4.EOL}`,{encoding:"utf8"})}a(hBe,"issueFileCommand");bs.issueFileCommand=hBe;function EBe(t,e){let A=`ghadelimiter_${gBe.randomUUID()}`,r=(0,k_.toCommandValue)(e);if(t.includes(A))throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`);if(r.includes(A))throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`);return`${t}<<${A}${d4.EOL}${r}${d4.EOL}${A}`}a(EBe,"prepareKeyValueMessage");bs.prepareKeyValueMessage=EBe});var U_=E(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.checkBypass=Lp.getProxyUrl=void 0;function mBe(t){let e=t.protocol==="https:";if(L_(t))return;let A=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(A)try{return new URL(A)}catch{if(!A.startsWith("http://")&&!A.startsWith("https://"))return new URL(`http://${A}`)}else return}a(mBe,"getProxyUrl");Lp.getProxyUrl=mBe;function L_(t){if(!t.hostname)return!1;let e=t.hostname;if(CBe(e)Line truncated
`,u.message,u.stack);var p=new Error("tunneling socket could not be established, cause="+u.message);p.code="ECONNRESET",e.request.emit("error",p),r.removeSocket(i)}a(d,"onError")},"createSocket");Ko.prototype.removeSocket=a(function(e){var A=this.sockets.indexOf(e);if(A!==-1){this.sockets.splice(A,1);var r=this.requests.shift();r&&this.createSocket(r,function(i){r.request.onSocket(i)})}},"removeSocket");function M_(t,e){var A=this;Ko.prototype.createSocket.call(A,t,function(r){var i=t.request.getHeader("host"),n=g4({},A.options,{socket:r,servername:i?i.replace(/:.*$/,""):t.host}),s=fBe.connect(0,n);A.sockets[A.sockets.indexOf(r)]=s,e(s)})}a(M_,"createSecureSocket");function __(t,e,A){return typeof t=="string"?{host:t,port:e,localAddress:A}:t}a(__,"toOptions");function g4(t){for(var e=1,A=arguments.length;e<A;++e){var r=arguments[e];if(typeof r=="object")for(var i=Object.keys(r),n=0,s=i.length;n<s;++n){var o=i[n];r[o]!==void 0&&(t[o]=r[o])}}return t}a(g4,"mergeOptions");var al;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?al=a(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"):al=a(function(){},"debug");Up.debug=al});var rC=E((Jut,P_)=>{P_.exports=O_()});var Wt=E((Vut,q_)=>{q_.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var Pt=E((Wut,H_)=>{"use strict";var WA=class extends Error{static{a(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},h4=class t extends WA{static{a(this,"ConnectTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},E4=class t extends WA{static{a(this,"HeadersTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},m4=class t extends WA{static{a(this,"HeadersOverflowError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},C4=class t extends WA{static{a(this,"BodyTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},f4=class t extends WA{static{a(this,"ResponseStatusCodeError")}constructor(e,A,r,i){super(e),Error.captureStackTrace(this,t),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.status=A,this.statusCode=A,this.headers=r}},Q4=class t extends WA{static{a(this,"InvalidArgumentError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="InvalidArgumentError Line truncated
var KQe=Object.create;var AC=Object.defineProperty;var $Qe=Object.getOwnPropertyDescriptor;var eBe=Object.getOwnPropertyNames;var tBe=Object.getPrototypeOf,ABe=Object.prototype.hasOwnProperty;var a=(t,e)=>AC(t,"name",{value:e,configurable:!0});var Le=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gI=(t,e)=>{for(var A in e)AC(t,A,{get:e[A],enumerable:!0})},R_=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of eBe(e))!ABe.call(t,i)&&i!==A&&AC(t,i,{get:()=>e[i],enumerable:!(r=$Qe(e,i))||r.enumerable});return t};var Nr=(t,e,A)=>(A=t!=null?KQe(tBe(t)):{},R_(e||!t||!t.__esModule?AC(A,"default",{value:t,enumerable:!0}):A,t)),Zo=t=>R_(AC({},"__esModule",{value:!0}),t);var hI=E(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.toCommandProperties=Fp.toCommandValue=void 0;function rBe(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(rBe,"toCommandValue");Fp.toCommandValue=rBe;function iBe(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(iBe,"toCommandProperties");Fp.toCommandProperties=iBe});var v_=E(ws=>{"use strict";var nBe=ws&&ws.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),sBe=ws&&ws.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),aBe=ws&&ws.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&nBe(e,t,A);return sBe(e,t),e};Object.defineProperty(ws,"__esModule",{value:!0});ws.issue=ws.issueCommand=void 0;var oBe=aBe(require("os")),S_=hI();function x_(t,e,A){let r=new l4(t,e,A);process.stdout.write(r.toString()+oBe.EOL)}a(x_,"issueCommand");ws.issueCommand=x_;function cBe(t,e=""){x_(t,{},e)}a(cBe,"issue");ws.issue=cBe;var D_="::",l4=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=D_+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${dBe(i)}`)}}return e+=`${D_}${lBe(this.message)}`,e}};function lBe(t){return(0,S_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(lBe,"escapeData");function dBe(t){return(0,S_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(dBe,"escapeProperty")});var L_=E(bs=>{"use strict";var uBe=bs&&bs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),pBe=bs&&bs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u4=bs&&bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&uBe(e,t,A);return pBe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.prepareKeyValueMessage=bs.issueFileCommand=void 0;var gBe=u4(require("crypto")),k_=u4(require("fs")),d4=u4(require("os")),F_=hI();function hBe(t,e){let A=process.env[`GITHUB_${t}`];if(!A)throw new Error(`Unable to find environment variable for file command ${t}`);if(!k_.existsSync(A))throw new Error(`Missing file at path: ${A}`);k_.appendFileSync(A,`${(0,F_.toCommandValue)(e)}${d4.EOL}`,{encoding:"utf8"})}a(hBe,"issueFileCommand");bs.issueFileCommand=hBe;function EBe(t,e){let A=`ghadelimiter_${gBe.randomUUID()}`,r=(0,F_.toCommandValue)(e);if(t.includes(A))throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`);if(r.includes(A))throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`);return`${t}<<${A}${d4.EOL}${r}${d4.EOL}${A}`}a(EBe,"prepareKeyValueMessage");bs.prepareKeyValueMessage=EBe});var T_=E(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.checkBypass=Lp.getProxyUrl=void 0;function mBe(t){let e=t.protocol==="https:";if(U_(t))return;let A=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(A)try{return new URL(A)}catch{if(!A.startsWith("http://")&&!A.startsWith("https://"))return new URL(`http://${A}`)}else return}a(mBe,"getProxyUrl");Lp.getProxyUrl=mBe;function U_(t){if(!t.hostname)return!1;let e=t.hostname;if(CBe(e)Line truncated
`,u.message,u.stack);var p=new Error("tunneling socket could not be established, cause="+u.message);p.code="ECONNRESET",e.request.emit("error",p),r.removeSocket(i)}a(d,"onError")},"createSocket");Ko.prototype.removeSocket=a(function(e){var A=this.sockets.indexOf(e);if(A!==-1){this.sockets.splice(A,1);var r=this.requests.shift();r&&this.createSocket(r,function(i){r.request.onSocket(i)})}},"removeSocket");function __(t,e){var A=this;Ko.prototype.createSocket.call(A,t,function(r){var i=t.request.getHeader("host"),n=g4({},A.options,{socket:r,servername:i?i.replace(/:.*$/,""):t.host}),s=fBe.connect(0,n);A.sockets[A.sockets.indexOf(r)]=s,e(s)})}a(__,"createSecureSocket");function O_(t,e,A){return typeof t=="string"?{host:t,port:e,localAddress:A}:t}a(O_,"toOptions");function g4(t){for(var e=1,A=arguments.length;e<A;++e){var r=arguments[e];if(typeof r=="object")for(var i=Object.keys(r),n=0,s=i.length;n<s;++n){var o=i[n];r[o]!==void 0&&(t[o]=r[o])}}return t}a(g4,"mergeOptions");var al;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?al=a(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"):al=a(function(){},"debug");Up.debug=al});var rC=E((Jut,q_)=>{q_.exports=P_()});var Wt=E((Vut,H_)=>{H_.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var Pt=E((Wut,Y_)=>{"use strict";var WA=class extends Error{static{a(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},h4=class t extends WA{static{a(this,"ConnectTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},E4=class t extends WA{static{a(this,"HeadersTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},m4=class t extends WA{static{a(this,"HeadersOverflowError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},C4=class t extends WA{static{a(this,"BodyTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},f4=class t extends WA{static{a(this,"ResponseStatusCodeError")}constructor(e,A,r,i){super(e),Error.captureStackTrace(this,t),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.status=A,this.statusCode=A,this.headers=r}},Q4=class t extends WA{static{a(this,"InvalidArgumentError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="InvalidArgumentError Line truncated
\r
`),cIe=/\r\n/g,lIe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Mp(t){cO.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=oO(t,"maxHeaderPairs",2e3),this.maxHeaderSize=oO(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new aIe(oIe),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(Mp,"HeaderParser");sIe(Mp,cO);Mp.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Mp.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Mp.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Mp.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(cIe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=lIe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};lO.exports=Mp});var P4=E((apt,pO)=>{"use strict";var O4=require("node:stream").Writable,dIe=require("node:util").inherits,uIe=M4(),uO=sO(),pIe=dO(),gIe=45,hIe=Buffer.from("-"),EIe=Buffer.from(`\r
`),mIe=a(function(){},"EMPTY_FN");function Ca(t){if(!(this instanceof Ca))return new Ca(t);if(O4.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new pIe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(Ca,"Dicer");dIe(Ca,O4);Ca.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else O4.prototype.emit.apply(this,arguments)};Ca.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new uO(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(EIe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};Ca.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ca.prototype.setBoundary=function(t){let e=this;this._bparser=new uIe(`\r
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};Ca.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",mIe),this._part.resume())};Ca.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===gIe)++s,++this._dashes;else{this._dashes&&(i=hIe),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new uO(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ca.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};pO.exports=Ca});var QI=E((q4,EO)=>{"use strict";var gO=new TextDecoder("utf-8"),hO=new Map([["utf-8",gO],["utf8",gO]]);function CIe(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return nC.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return nC.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return nC.utf16le;case"base64":return nC.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return nC.other.bind(t)}}a(CIe,"getDecoder");var nC={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),hO.has(q4.toString()))try{return hO.get(q4).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function fIe(t,e,A){return t&&CIe(A)(t,e)}a(fIe,"decodeText");EO.exports=fIe});var Y4=E((lpt,BO)=>{"use strict";var BI=QI(),mO=/%[a-fA-F0-9][a-fA-F0-9]/g,QIe={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`),cIe=/\r\n/g,lIe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Mp(t){lO.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=cO(t,"maxHeaderPairs",2e3),this.maxHeaderSize=cO(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new aIe(oIe),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(Mp,"HeaderParser");sIe(Mp,lO);Mp.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Mp.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Mp.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Mp.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(cIe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=lIe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};dO.exports=Mp});var P4=E((apt,gO)=>{"use strict";var O4=require("node:stream").Writable,dIe=require("node:util").inherits,uIe=M4(),pO=aO(),pIe=uO(),gIe=45,hIe=Buffer.from("-"),EIe=Buffer.from(`\r
`),mIe=a(function(){},"EMPTY_FN");function Ca(t){if(!(this instanceof Ca))return new Ca(t);if(O4.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new pIe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(Ca,"Dicer");dIe(Ca,O4);Ca.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else O4.prototype.emit.apply(this,arguments)};Ca.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new pO(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(EIe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};Ca.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ca.prototype.setBoundary=function(t){let e=this;this._bparser=new uIe(`\r
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};Ca.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",mIe),this._part.resume())};Ca.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===gIe)++s,++this._dashes;else{this._dashes&&(i=hIe),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new pO(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ca.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};gO.exports=Ca});var QI=E((q4,mO)=>{"use strict";var hO=new TextDecoder("utf-8"),EO=new Map([["utf-8",hO],["utf8",hO]]);function CIe(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return nC.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return nC.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return nC.utf16le;case"base64":return nC.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return nC.other.bind(t)}}a(CIe,"getDecoder");var nC={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),EO.has(q4.toString()))try{return EO.get(q4).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function fIe(t,e,A){return t&&CIe(A)(t,e)}a(fIe,"decodeText");mO.exports=fIe});var Y4=E((lpt,IO)=>{"use strict";var BI=QI(),CO=/%[a-fA-F0-9][a-fA-F0-9]/g,QIe={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}a(VO,"isValidHeaderValue");function f1e(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(n1e.has(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(f1e,"setRequestReferrerPolicyOnRedirect");function Q1e(){return"allowed"}a(Q1e,"crossOriginResourcePolicyCheck");function B1e(){return"success"}a(B1e,"corsCheck");function I1e(){return"success"}a(I1e,"TAOCheck");function y1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(y1e,"appendFetchMetadata");function w1e(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Z4(t.origin)&&!Z4(cC(t))&&(e=null);break;case"same-origin":bI(t,cC(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(w1e,"appendRequestOriginHeader");function b1e(t){return o1e.now()}a(b1e,"coarsenedSharedCurrentTime");function N1e(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}}a(N1e,"createOpaqueTimingInfo");function R1e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(R1e,"makePolicyContainer");function D1e(t){return{referrerPolicy:t.referrerPolicy}}a(D1e,"clonePolicyContainer");function S1e(t){let e=t.referrerPolicy;Hp(e);let A=null;if(t.referrer==="client"){let o=a1e();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=j4(A),i=j4(A,!0);r.toString().length>4096&&(r=i);let n=bI(t,r),s=aC(r)&&!aC(t.url);switch(e){case"origin":return i??j4(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=cC(t);return bI(r,o)?r:aC(r)&&!aC(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(S1e,"determineRequestsReferrer");function j4(t,e){return Hp(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(j4,"stripURLForReferrer");function aC(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(aC,"isURLPotentiallyTrustworthy");function x1e(t,e){if(oC===void 0)return!0;let A=k1e(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=oC.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=oC.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(x1e,"bytesMatch");var v1e=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function k1e(t){let e=[],A=!0,r=oC.getHashes();for(let i of t.split(" ")){A=!1;let n=v1e.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(k1e,"parseMetadata");function F1e(t){}a(F1e,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function bI(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(bI,"sameOrigin");function L1e(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(L1e,"createDeferredPromise");function U1e(t){return t.controller.state==="aborted"}a(U1e,"isAborted");function T1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(T1e,"isCancelled");var K4={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(K4,null);function M1e(t){return K4[t.toLowerCase()]??t}a(M1e,"normalizeMethod");function _1e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Hp(typeof e=="string"),e}a(_1e,"serializeJavascriptValueToJSONString");var O1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function P1e(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this Line truncated
`||t===" "||t===" "}a($O,"isHTTPWhiteSpace");function $4(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&$O(t[r]);r++);if(A)for(;i>0&&$O(t[i]);i--);return t.slice(r,i+1)}a($4,"removeHTTPWhitespace");function eP(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(eP,"isASCIIWhitespace");function s0e(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&eP(t[r]);r++);if(A)for(;i>0&&eP(t[i]);i--);return t.slice(r,i+1)}a(s0e,"removeASCIIWhitespace");iP.exports={dataURLProcessor:A0e,URLSerializer:tP,collectASequenceOfCodePoints:DI,collectASequenceOfCodePointsFast:Yp,stringPercentDecode:AP,parseMIMEType:e6,collectAnHTTPQuotedString:rP,serializeAMimeType:n0e}});var SI=E((kpt,cP)=>{"use strict";var{Blob:aP,File:nP}=require("buffer"),{types:t6}=require("util"),{kState:Un}=ec(),{isBlobLike:oP}=Ns(),{webidl:It}=Di(),{parseMIMEType:a0e,serializeAMimeType:o0e}=fa(),{kEnumerableProperty:sP}=ct(),c0e=new TextEncoder,lC=class t extends aP{static{a(this,"File")}constructor(e,A,r={}){It.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=It.converters["sequence<BlobPart>"](e),A=It.converters.USVString(A),r=It.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=a0e(n),n==="failure"){n="";break e}n=o0e(n).toLowerCase()}s=r.lastModified}super(l0e(e,r),{type:n}),this[Un]={name:i,lastModified:s,type:n}}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get type(){return It.brandCheck(this,t),this[Un].type}},A6=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Un]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return It.brandCheck(this,t),this[Un].blobLike.stream(...e)}arrayBuffer(...e){return It.brandCheck(this,t),this[Un].blobLike.arrayBuffer(...e)}slice(...e){return It.brandCheck(this,t),this[Un].blobLike.slice(...e)}text(...e){return It.brandCheck(this,t),this[Un].blobLike.text(...e)}get size(){return It.brandCheck(this,t),this[Un].blobLike.size}get type(){return It.brandCheck(this,t),this[Un].blobLike.type}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(lC.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:sP,lastModified:sP});It.converters.Blob=It.interfaceConverter(aP);It.converters.BlobPart=function(t,e){if(It.util.Type(t)==="Object"){if(oP(t))return It.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||t6.isAnyArrayBuffer(t))return It.converters.BufferSource(t,e)}return It.converters.USVString(t,e)};It.converters["sequence<BlobPart>"]=It.sequenceConverter(It.converters.BlobPart);It.converters.FilePropertyBag=It.dictionaryConverter([{key:"lastModified",converter:It.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:It.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=It.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function l0e(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=d0e(i)),A.push(c0e.encode(i))}else t6.isAnyArrayBuffer(r)||t6.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):oP(r)&&A.push(r);return A}a(l0e,"processBlobParts");function d0e(t){let e=`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}a(WO,"isValidHeaderValue");function f1e(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(n1e.has(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(f1e,"setRequestReferrerPolicyOnRedirect");function Q1e(){return"allowed"}a(Q1e,"crossOriginResourcePolicyCheck");function B1e(){return"success"}a(B1e,"corsCheck");function I1e(){return"success"}a(I1e,"TAOCheck");function y1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(y1e,"appendFetchMetadata");function w1e(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Z4(t.origin)&&!Z4(cC(t))&&(e=null);break;case"same-origin":bI(t,cC(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(w1e,"appendRequestOriginHeader");function b1e(t){return o1e.now()}a(b1e,"coarsenedSharedCurrentTime");function N1e(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}}a(N1e,"createOpaqueTimingInfo");function R1e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(R1e,"makePolicyContainer");function D1e(t){return{referrerPolicy:t.referrerPolicy}}a(D1e,"clonePolicyContainer");function S1e(t){let e=t.referrerPolicy;Hp(e);let A=null;if(t.referrer==="client"){let o=a1e();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=j4(A),i=j4(A,!0);r.toString().length>4096&&(r=i);let n=bI(t,r),s=aC(r)&&!aC(t.url);switch(e){case"origin":return i??j4(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=cC(t);return bI(r,o)?r:aC(r)&&!aC(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(S1e,"determineRequestsReferrer");function j4(t,e){return Hp(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(j4,"stripURLForReferrer");function aC(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(aC,"isURLPotentiallyTrustworthy");function x1e(t,e){if(oC===void 0)return!0;let A=k1e(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=oC.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=oC.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(x1e,"bytesMatch");var v1e=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function k1e(t){let e=[],A=!0,r=oC.getHashes();for(let i of t.split(" ")){A=!1;let n=v1e.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(k1e,"parseMetadata");function F1e(t){}a(F1e,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function bI(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(bI,"sameOrigin");function L1e(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(L1e,"createDeferredPromise");function U1e(t){return t.controller.state==="aborted"}a(U1e,"isAborted");function T1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(T1e,"isCancelled");var K4={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(K4,null);function M1e(t){return K4[t.toLowerCase()]??t}a(M1e,"normalizeMethod");function _1e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Hp(typeof e=="string"),e}a(_1e,"serializeJavascriptValueToJSONString");var O1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function P1e(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this Line truncated
`||t===" "||t===" "}a(eP,"isHTTPWhiteSpace");function $4(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&eP(t[r]);r++);if(A)for(;i>0&&eP(t[i]);i--);return t.slice(r,i+1)}a($4,"removeHTTPWhitespace");function tP(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(tP,"isASCIIWhitespace");function s0e(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&tP(t[r]);r++);if(A)for(;i>0&&tP(t[i]);i--);return t.slice(r,i+1)}a(s0e,"removeASCIIWhitespace");nP.exports={dataURLProcessor:A0e,URLSerializer:AP,collectASequenceOfCodePoints:DI,collectASequenceOfCodePointsFast:Yp,stringPercentDecode:rP,parseMIMEType:e6,collectAnHTTPQuotedString:iP,serializeAMimeType:n0e}});var SI=E((kpt,lP)=>{"use strict";var{Blob:oP,File:sP}=require("buffer"),{types:t6}=require("util"),{kState:Un}=ec(),{isBlobLike:cP}=Ns(),{webidl:It}=Di(),{parseMIMEType:a0e,serializeAMimeType:o0e}=fa(),{kEnumerableProperty:aP}=ct(),c0e=new TextEncoder,lC=class t extends oP{static{a(this,"File")}constructor(e,A,r={}){It.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=It.converters["sequence<BlobPart>"](e),A=It.converters.USVString(A),r=It.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=a0e(n),n==="failure"){n="";break e}n=o0e(n).toLowerCase()}s=r.lastModified}super(l0e(e,r),{type:n}),this[Un]={name:i,lastModified:s,type:n}}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get type(){return It.brandCheck(this,t),this[Un].type}},A6=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Un]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return It.brandCheck(this,t),this[Un].blobLike.stream(...e)}arrayBuffer(...e){return It.brandCheck(this,t),this[Un].blobLike.arrayBuffer(...e)}slice(...e){return It.brandCheck(this,t),this[Un].blobLike.slice(...e)}text(...e){return It.brandCheck(this,t),this[Un].blobLike.text(...e)}get size(){return It.brandCheck(this,t),this[Un].blobLike.size}get type(){return It.brandCheck(this,t),this[Un].blobLike.type}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(lC.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:aP,lastModified:aP});It.converters.Blob=It.interfaceConverter(oP);It.converters.BlobPart=function(t,e){if(It.util.Type(t)==="Object"){if(cP(t))return It.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||t6.isAnyArrayBuffer(t))return It.converters.BufferSource(t,e)}return It.converters.USVString(t,e)};It.converters["sequence<BlobPart>"]=It.sequenceConverter(It.converters.BlobPart);It.converters.FilePropertyBag=It.dictionaryConverter([{key:"lastModified",converter:It.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:It.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=It.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function l0e(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=d0e(i)),A.push(c0e.encode(i))}else t6.isAnyArrayBuffer(r)||t6.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):cP(r)&&A.push(r);return A}a(l0e,"processBlobParts");function d0e(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}a(d0e,"convertLineEndingsNative");function u0e(t){return nP&&t instanceof nP||t instanceof lC||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(u0e,"isFileLike");cP.exports={File:lC,FileLike:A6,isFileLike:u0e}});var vI=E((Lpt,gP)=>{"use strict";var{isBlobLike:xI,toUSVString:p0e,makeIterator:r6}=Ns(),{kState:di}=ec(),{File:pP,FileLike:lP,isFileLike:g0e}=SI(),{webidl:Ft}=Di(),{Blob:h0e,File:i6}=require("buffer"),dP=i6??pP,Gp=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ft.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[di]=[]}append(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!xI(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=xI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?Ft.converters.USVString(r):void 0;let i=uP(e,A,r);this[di].push(i)}delete(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ft.converters.USVString(e),this[di]=this[di].filter(A=>A.name!==e)}get(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ft.converters.USVString(e);let A=this[di].findIndex(r=>r.name===e);return A===-1?null:this[di][A].value}getAll(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ft.converters.USVString(e),this[di].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ft.converters.USVString(e),this[di].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!xI(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=xI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?p0e(r):void 0;let i=uP(e,A,r),n=this[di].findIndex(s=>s.name===e);n!==-1?this[di]=[...this[di].slice(0,n),i,...this[di].slice(n+1).filter(s=>s.name!==e)]:this[di].push(i)}entries(){return Ft.brandCheck(this,t),r6(()=>this[di].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ft.brandCheck(this,t),r6(()=>this[di].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ft.brandCheck(this,t),r6(()=>this[di].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};Gp.prototype[Symbol.iterator]=Gp.prototype.entries;Object.defineProperties(Gp.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function uP(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(g0e(e)||(e=e instanceof h0e?new dP([e],"blob",{type:e.type}):new lP(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=i6&&e instanceof i6||e instanceof pP?new dP([e],A,r):new lP(e,A,r)}return{name:t,value:e}}a(uP,"makeEntry");gP.exports={FormData:Gp}});var dC=E((Tpt,yP)=>{"use strict";var E0e=LO(),Jp=ct(),{ReadableStreamFrom:m0e,isBlobLike:hP,isReadableStreamLike:C0e,readableStreamClose:f0e,createDeferredPromise:Q0e,fullyReadBody:B0e}=Ns(),{FormData:EP}=vI(),{kState:Ac}=ec(),{webidl:n6}=Di(),{DOMException:fP,structuredClone:I0e}=ll(),{Blob:y0e,File:w0e}=require("buffer"),{kBodyUsed:b0e}=Wt(),s6=require("assert"),{isErrored:N0e}=ct(),{isUint8Array:QP,isArrayBuffer:R0e}=require("util/types"),{File:D0e}=SI(),{parseMIMEType:S0e,serializeAMimeType:x0e}=fa(),tc=globalThis.ReadableStream,mP=w0e??D0e,kI=new TextEncoder,v0e=new TextDecoder;function BP(t,e=!1){tc||(tc=require("stream/web").ReadableStream);let A=null;t instanceof tc?A=t:hP(t)?A=t.stream():A=new tc({async pull(c){c.enqueue(typeof i=="string"?kI.encode(i):i),queueMicrotask(()=>f0e(c))},start(){},type:void 0}),s6(C0e(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(R0e(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Jp.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`),t.replace(/\r?\n/g,e)}a(d0e,"convertLineEndingsNative");function u0e(t){return sP&&t instanceof sP||t instanceof lC||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(u0e,"isFileLike");lP.exports={File:lC,FileLike:A6,isFileLike:u0e}});var vI=E((Lpt,hP)=>{"use strict";var{isBlobLike:xI,toUSVString:p0e,makeIterator:r6}=Ns(),{kState:di}=ec(),{File:gP,FileLike:dP,isFileLike:g0e}=SI(),{webidl:Ft}=Di(),{Blob:h0e,File:i6}=require("buffer"),uP=i6??gP,Gp=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ft.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[di]=[]}append(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!xI(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=xI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?Ft.converters.USVString(r):void 0;let i=pP(e,A,r);this[di].push(i)}delete(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ft.converters.USVString(e),this[di]=this[di].filter(A=>A.name!==e)}get(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ft.converters.USVString(e);let A=this[di].findIndex(r=>r.name===e);return A===-1?null:this[di][A].value}getAll(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ft.converters.USVString(e),this[di].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ft.converters.USVString(e),this[di].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!xI(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=xI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?p0e(r):void 0;let i=pP(e,A,r),n=this[di].findIndex(s=>s.name===e);n!==-1?this[di]=[...this[di].slice(0,n),i,...this[di].slice(n+1).filter(s=>s.name!==e)]:this[di].push(i)}entries(){return Ft.brandCheck(this,t),r6(()=>this[di].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ft.brandCheck(this,t),r6(()=>this[di].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ft.brandCheck(this,t),r6(()=>this[di].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};Gp.prototype[Symbol.iterator]=Gp.prototype.entries;Object.defineProperties(Gp.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function pP(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(g0e(e)||(e=e instanceof h0e?new uP([e],"blob",{type:e.type}):new dP(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=i6&&e instanceof i6||e instanceof gP?new uP([e],A,r):new dP(e,A,r)}return{name:t,value:e}}a(pP,"makeEntry");hP.exports={FormData:Gp}});var dC=E((Tpt,wP)=>{"use strict";var E0e=UO(),Jp=ct(),{ReadableStreamFrom:m0e,isBlobLike:EP,isReadableStreamLike:C0e,readableStreamClose:f0e,createDeferredPromise:Q0e,fullyReadBody:B0e}=Ns(),{FormData:mP}=vI(),{kState:Ac}=ec(),{webidl:n6}=Di(),{DOMException:QP,structuredClone:I0e}=ll(),{Blob:y0e,File:w0e}=require("buffer"),{kBodyUsed:b0e}=Wt(),s6=require("assert"),{isErrored:N0e}=ct(),{isUint8Array:BP,isArrayBuffer:R0e}=require("util/types"),{File:D0e}=SI(),{parseMIMEType:S0e,serializeAMimeType:x0e}=fa(),tc=globalThis.ReadableStream,CP=w0e??D0e,kI=new TextEncoder,v0e=new TextDecoder;function IP(t,e=!1){tc||(tc=require("stream/web").ReadableStream);let A=null;t instanceof tc?A=t:EP(t)?A=t.stream():A=new tc({async pull(c){c.enqueue(typeof i=="string"?kI.encode(i):i),queueMicrotask(()=>f0e(c))},start(){},type:void 0}),s6(C0e(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(R0e(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Jp.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let d=a(f=>f.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(f=>f.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],g=new Uint8Array([13,10]);n=0;let h=!1;for(let[f,B]of t)if(typeof B=="string"){let b=kI.encode(l+`; name="${d(u(f))}"\r
\r
@@ -18,14 +18,14 @@ ${u(B)}\r
`);p.push(b),n+=b.byteLength}else{let b=kI.encode(`${l}; name="${d(u(f))}"`+(B.name?`; filename="${d(B.name)}"`:"")+`\r
Content-Type: ${B.type||"application/octet-stream"}\r
\r
`);p.push(b,B,g),typeof B.size=="number"?n+=b.byteLength+B.size+g.byteLength:h=!0}let m=kI.encode(`--${c}--`);p.push(m),n+=m.byteLength,h&&(n=null),i=t,r=a(async function*(){for(let f of p)f.stream?yield*f.stream():yield f},"action"),s="multipart/form-data; boundary="+c}else if(hP(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jp.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof tc?t:m0e(t)}if((typeof i=="string"||Jp.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new tc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):N0e(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(BP,"extractBody");function k0e(t,e=!1){return tc||(tc=require("stream/web").ReadableStream),t instanceof tc&&(s6(!Jp.isDisturbed(t),"The body has already been consumed."),s6(!t.locked,"The stream is locked.")),BP(t,e)}a(k0e,"safelyExtractBody");function F0e(t){let[e,A]=t.stream.tee(),r=I0e(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(F0e,"cloneBody");async function*CP(t){if(t)if(QP(t))yield t;else{let e=t.stream;if(Jp.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[b0e]=!0,yield*e}}a(CP,"consumeBody");function a6(t){if(t.aborted)throw new fP("The operation was aborted.","AbortError")}a(a6,"throwIfAborted");function L0e(t){return{blob(){return FI(this,A=>{let r=_0e(this);return r==="failure"?r="":r&&(r=x0e(r)),new y0e([A],{type:r})},t)},arrayBuffer(){return FI(this,A=>new Uint8Array(A).buffer,t)},text(){return FI(this,IP,t)},json(){return FI(this,M0e,t)},async formData(){n6.brandCheck(this,t),a6(this[Ac]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new EP,n;try{n=new E0e({headers:r,preservePath:!0})}catch(o){throw new fP(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new mP(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new mP(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of CP(this[Ac].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of CP(this[Ac].body)){if(!QP(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new EP;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),a6(this[Ac]),n6.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(L0e,"bodyMixinMethods");function U0e(t){Object.assign(t.prototype,L0e(t))}a(U0e,"mixinBody");async function FI(t,e,A){if(n6.brandCheck(t,A),a6(t[Ac]),T0e(t[Ac].body))throw new TypeError("Body is unusable");let r=Q0e(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Ac].body==null?(n(new Uint8Array),r.promise):(await B0e(t[Ac].body,n,i),r.promise)}a(FI,"specConsumeBody");function T0e(t){return t!=null&&(t.stream.locked||Jp.isDisturbed(t.stream))}a(T0e,"bodyUnusable");function IP(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),v0e.decode(t))}a(IP,"utf8DecodeBytes");function M0e(t){return JSON.parse(IP(t))}a(M0e,"parseJSONFromBytes");function _0e(t){let{headersList:e}=t[Ac],A=e.get("content-type");return A===null?"failure":S0e(A)}a(_0e,"bodyMimeType");yP.exports={extractBody:BP,safelyExtractBody:k0e,cloneBody:F0e,mixinBody:U0e}});var RP=E((_pt,NP)=>{"use strict";var{InvalidArgumentError:zt,NotSupportedError:O0e}=Pt(),rc=require("assert"),{kHTTP2BuildRequest:P0e,kHTTP2CopyHeaders:q0e,kHTTP1BuildRequest:H0e}=Wt(),Zi=ct(),wP=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,bP=/[^\t\x20-\x7e\x80-\xff]/,Y0e=/[^\u0021-\u00ff]/,Qa=Symbol("handler"),ir={},o6;try{let t=require("diagnostics_channel");ir.create=t.channel("undici:request:create"),ir.bodySent=t.channel("undici:request:bodySent"),ir.headers=t.channel("undici:request:headers"),ir.trailers=t.channel("undici:request:trailers"),ir.error=t.channel("undici:request:error")}catch{ir.create={hasSubscribers:!1},ir.bodySent={hasSubscribers:!1},ir.headers={hasSubscribers:!1},ir.trailers={hasSubscribers:!1},ir.error={hasSLine truncated
`);p.push(b,B,g),typeof B.size=="number"?n+=b.byteLength+B.size+g.byteLength:h=!0}let m=kI.encode(`--${c}--`);p.push(m),n+=m.byteLength,h&&(n=null),i=t,r=a(async function*(){for(let f of p)f.stream?yield*f.stream():yield f},"action"),s="multipart/form-data; boundary="+c}else if(EP(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jp.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof tc?t:m0e(t)}if((typeof i=="string"||Jp.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new tc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):N0e(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(IP,"extractBody");function k0e(t,e=!1){return tc||(tc=require("stream/web").ReadableStream),t instanceof tc&&(s6(!Jp.isDisturbed(t),"The body has already been consumed."),s6(!t.locked,"The stream is locked.")),IP(t,e)}a(k0e,"safelyExtractBody");function F0e(t){let[e,A]=t.stream.tee(),r=I0e(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(F0e,"cloneBody");async function*fP(t){if(t)if(BP(t))yield t;else{let e=t.stream;if(Jp.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[b0e]=!0,yield*e}}a(fP,"consumeBody");function a6(t){if(t.aborted)throw new QP("The operation was aborted.","AbortError")}a(a6,"throwIfAborted");function L0e(t){return{blob(){return FI(this,A=>{let r=_0e(this);return r==="failure"?r="":r&&(r=x0e(r)),new y0e([A],{type:r})},t)},arrayBuffer(){return FI(this,A=>new Uint8Array(A).buffer,t)},text(){return FI(this,yP,t)},json(){return FI(this,M0e,t)},async formData(){n6.brandCheck(this,t),a6(this[Ac]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new mP,n;try{n=new E0e({headers:r,preservePath:!0})}catch(o){throw new QP(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new CP(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new CP(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of fP(this[Ac].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of fP(this[Ac].body)){if(!BP(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new mP;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),a6(this[Ac]),n6.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(L0e,"bodyMixinMethods");function U0e(t){Object.assign(t.prototype,L0e(t))}a(U0e,"mixinBody");async function FI(t,e,A){if(n6.brandCheck(t,A),a6(t[Ac]),T0e(t[Ac].body))throw new TypeError("Body is unusable");let r=Q0e(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Ac].body==null?(n(new Uint8Array),r.promise):(await B0e(t[Ac].body,n,i),r.promise)}a(FI,"specConsumeBody");function T0e(t){return t!=null&&(t.stream.locked||Jp.isDisturbed(t.stream))}a(T0e,"bodyUnusable");function yP(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),v0e.decode(t))}a(yP,"utf8DecodeBytes");function M0e(t){return JSON.parse(yP(t))}a(M0e,"parseJSONFromBytes");function _0e(t){let{headersList:e}=t[Ac],A=e.get("content-type");return A===null?"failure":S0e(A)}a(_0e,"bodyMimeType");wP.exports={extractBody:IP,safelyExtractBody:k0e,cloneBody:F0e,mixinBody:U0e}});var DP=E((_pt,RP)=>{"use strict";var{InvalidArgumentError:zt,NotSupportedError:O0e}=Pt(),rc=require("assert"),{kHTTP2BuildRequest:P0e,kHTTP2CopyHeaders:q0e,kHTTP1BuildRequest:H0e}=Wt(),Zi=ct(),bP=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,NP=/[^\t\x20-\x7e\x80-\xff]/,Y0e=/[^\u0021-\u00ff]/,Qa=Symbol("handler"),ir={},o6;try{let t=require("diagnostics_channel");ir.create=t.channel("undici:request:create"),ir.bodySent=t.channel("undici:request:bodySent"),ir.headers=t.channel("undici:request:headers"),ir.trailers=t.channel("undici:request:trailers"),ir.error=t.channel("undici:request:error")}catch{ir.create={hasSubscribers:!1},ir.bodySent={hasSubscribers:!1},ir.headers={hasSubscribers:!1},ir.trailers={hasSubscribers:!1},ir.error={hasSLine truncated
`),this.body=f.stream,this.contentLength=f.length}else Zi.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
`);Zi.validateHandler(m,r,l),this.servername=Zi.getServerName(this.host),this[Qa]=m,ir.create.hasSubscribers&&ir.create.publish({request:this})}onBodySent(e){if(this[Qa].onBodySent)try{return this[Qa].onBodySent(e)}catch(A){this.abort(A)}}onRequestSent(){if(ir.bodySent.hasSubscribers&&ir.bodySent.publish({request:this}),this[Qa].onRequestSent)try{return this[Qa].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(rc(!this.aborted),rc(!this.completed),this.error)e(this.error);else return this.abort=e,this[Qa].onConnect(e)}onHeaders(e,A,r,i){rc(!this.aborted),rc(!this.completed),ir.headers.hasSubscribers&&ir.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}});try{return this[Qa].onHeaders(e,A,r,i)}catch(n){this.abort(n)}}onData(e){rc(!this.aborted),rc(!this.completed);try{return this[Qa].onData(e)}catch(A){return this.abort(A),!1}}onUpgrade(e,A,r){return rc(!this.aborted),rc(!this.completed),this[Qa].onUpgrade(e,A,r)}onComplete(e){this.onFinally(),rc(!this.aborted),this.completed=!0,ir.trailers.hasSubscribers&&ir.trailers.publish({request:this,trailers:e});try{return this[Qa].onComplete(e)}catch(A){this.onError(A)}}onError(e){if(this.onFinally(),ir.error.hasSubscribers&&ir.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Qa].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,A){return uC(this,e,A),this}static[H0e](e,A,r){return new t(e,A,r)}static[P0e](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new zt("headers array must be even");for(let s=0;s<i.length;s+=2)uC(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];uC(n,c,i[c],!0)}}else if(i!=null)throw new zt("headers must be an object or an array");return n}static[q0e](e){let A=e.split(`\r
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function qd(t,e,A){if(e&&typeof e=="object")throw new zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",bP.exec(e)!==null)throw new zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}a(qd,"processHeaderValue");function uC(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(bP.exec(A)!==null)throw new zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=qd(e,A,r):t.headers+=qd(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new O0e("expect header not supported");if(wP.exec(e)===null)throw new zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${qd(e,A[i],r)}`:t.headers[e]=qd(e,A[i],r):t.headers+=qd(e,A[i]);else r?t.headers[e]=qd(e,A,r):t.headers+=qd(e,A)}}}a(uC,"processHeader");NP.exports=c6});var LI=E((Ppt,DP)=>{"use strict";var G0e=require("events"),l6=class extends G0e{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};DP.exports=l6});var gC=E((Hpt,SP)=>{"use strict";var J0e=LI(),{ClientDestroyedError:d6,ClientClosedError:V0e,InvalidArgumentError:Vp}=Pt(),{kDestroy:W0e,kClose:z0e,kDispatch:u6,kInterceptors:Hd}=Wt(),Wp=Symbol("destroyed"),pC=Symbol("closed"),ic=Symbol("onDestroyed"),zp=Symbol("onClosed"),UI=Symbol("Intercepted Dispatch"),p6=class extends J0e{static{a(this,"DispatcherBase")}constructor(){super(),this[Wp]=!1,this[ic]=null,this[pC]=!1,this[zp]=[]}get destroyed(){return this[Wp]}get closed(){return this[pC]}get interceptors(){return this[Hd]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[Hd][A]!="function")throw new Vp("interceptor must be an function")}this[Hd]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new Vp("invalid callback");if(this[Wp]){queueMicrotask(()=>e(new d6,null));return}if(this[pC]){this[zp]?this[zp].push(e):queueMicrotask(()=>e(null,null));return}this[pC]=!0,this[zp].push(e);let A=a(()=>{let r=this[zp];this[zp]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[z0e]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new Vp("invalid callback");if(this[Wp]){this[ic]?this[ic].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new d6),this[Wp]=!0,this[ic]=this[ic]||[],this[ic].push(A);let r=a(()=>{let i=this[ic];this[ic]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[W0e](e).then(()=>{queueMicrotask(r)})}[UI](e,A){if(!this[Hd]||this[Hd].length===0)return this[UI]=this[u6],this[u6](e,A);let r=this[u6].bind(this);for(let i=this[Hd].length-1;i>=0;i--)r=this[Hd][i](r);return this[UI]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Vp("handler must be an object");try{if(!e||typeof e!="object")throw new Vp("opts must be an object.");if(this[Wp]||this[ic])throw new d6;if(this[pC])throw new V0e;return this[UI](e,A)}catch(r){if(typeof A.onError!="function")throw new Vp("invalid onError method");return A.onError(r),!1}}};SP.exports=p6});var hC=E((Vpt,kP)=>{"use strict";var j0e=require("net"),xP=require("assert"),vP=ct(),{InvalidArgumentError:X0e,ConnectTimeoutError:Z0e}=Pt(),g6,h6;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?h6=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:h6=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function K0e({allowH2:t,maxCachedSessi Line truncated
`,this[jP]=c??3e5,this[zP]=i??3e5,this[BC]=b??!0,this[Dye]=C,this[IC]=N,this[ul]=null,this[ZP]=w>-1?w:-1,this[$a]="h1",this[Mn]=null,this[YI]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[KP]=`${this[Wr].hostname}${this[Wr].port?`:${this[Wr].port}`:""}`,this[iA]=[],this[nA]=0,this[Tn]=0}get pipelining(){return this[gl]}set pipelining(e){this[gl]=e,_n(this,!0)}get[Jd](){return this[iA].length-this[Tn]}get[yA](){return this[Tn]-this[nA]}get[Gd](){return this[iA].length-this[nA]}get[Rye](){return!!this[SA]&&!this[Zp]&&!this[SA].destroyed}get[y6](){let e=this[SA];return e&&(e[Si]||e[sc]||e[$p])||this[Gd]>=(this[gl]||1)||this[Jd]>0}[Nye](e){Aq(this),this.once("connect",e)}[vye](e,A){let r=e.origin||this[Wr].origin,i=this[$a]==="h2"?I6[Fye](r,e,A):I6[Uye](r,e,A);return this[iA].push(i),this[Yd]||(Ce.bodyLength(i.body)==null&&Ce.isIterable(i.body)?(this[Yd]=1,process.nextTick(_n,this)):_n(this,!0)),this[Yd]&&this[pl]!==2&&this[y6]&&(this[pl]=2),this[pl]<2}async[Sye](){return new Promise(e=>{this[Gd]?this[ul]=e:e(null)})}async[xye](e){return new Promise(A=>{let r=this[iA].splice(this[Tn]);for(let n=0;n<r.length;n++){let s=r[n];xi(this,s,e)}let i=a(()=>{this[ul]&&(this[ul](),this[ul]=null),A()},"callback");this[Mn]!=null&&(Ce.destroy(this[Mn],e),this[Mn]=null,this[YI]=null),this[SA]?Ce.destroy(this[SA].on("close",i),e):queueMicrotask(i),_n(this)})}};function Yye(t){re(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SA][zr]=t,WI(this[Ka],t)}a(Yye,"onHttp2SessionError");function Gye(t,e,A){let r=new Za(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[SA][zr]=r,WI(this[Ka],r))}a(Gye,"onHttp2FrameError");function Jye(){Ce.destroy(this,new Kp("other side closed")),Ce.destroy(this[SA],new Kp("other side closed"))}a(Jye,"onHttp2SessionEnd");function Vye(t){let e=this[Ka],A=new Za(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[SA]=null,e[Mn]=null,e.destroyed){re(this[Jd]===0);let r=e[iA].splice(e[nA]);for(let i=0;i<r.length;i++){let n=r[i];xi(this,n,A)}}else if(e[yA]>0){let r=e[iA][e[nA]];e[iA][e[nA]++]=null,xi(e,r,A)}e[Tn]=e[nA],re(e[yA]===0),e.emit("disconnect",e[Wr],[e],A),_n(e)}a(Vye,"onHTTP2GoAway");var za=LP(),Wye=_I(),zye=Buffer.alloc(0);async function jye(){let t=process.env.JEST_WORKER_ID?f6():void 0,e;try{e=await WebAssembly.compile(Buffer.from(qP(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||f6(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onStatus(new OI(ja.buffer,n,i))||0},wasm_on_message_begin:A=>(re.strictEqual(hr.ptr,A),hr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onHeaderField(new OI(ja.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onHeaderValue(new OI(ja.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(re.strictEqual(hr.ptr,A),hr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onBody(new OI(ja.buffer,n,i))||0},wasm_on_message_complete:A=>(re.strictEqual(hr.ptr,A),hr.onMessageComplete()||0)}})}a(jye,"lazyllhttp");var B6=null,N6=jye();N6.catch();var hr=null,ja=null,PI=0,Xa=null,eg=1,HI=2,R6=3,D6=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){re(Number.isFinite(e[qI])&&e[qI]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(za.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[qI],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ZP]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(Q6.clearTimeout(this.timeout),e?(this.timeout=Q6.setTimeout(Xye,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(re(this.ptr!=null),re(hr==null),this.llhttp.llhttp_resume(this.ptr),re(this.timeoutType===HI),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||zye),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){re(this.ptr!=null),re(hr==null),re(!this.paused);let{socket:A,llhttp:r}=this;e.length>PI&&(Xa&&r.free(Xa),PI=Math.ceil(e.length/4096)*4096,Xa=r.malloc(PI)),new Uint8Array(r.memory.buffer,Xa,PI).set(e);try{let i;try{ja=e,hr=this,i=r.llhttp_execute(this.ptr,Xa,e.length)}catch(s){throw s}finally{hr=null,ja=null}let n=r.llhttp_get_error_pos(this.ptr)-Xa;if(i===za.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===za.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e Line truncated
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function qd(t,e,A){if(e&&typeof e=="object")throw new zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",NP.exec(e)!==null)throw new zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}a(qd,"processHeaderValue");function uC(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(NP.exec(A)!==null)throw new zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=qd(e,A,r):t.headers+=qd(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new O0e("expect header not supported");if(bP.exec(e)===null)throw new zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${qd(e,A[i],r)}`:t.headers[e]=qd(e,A[i],r):t.headers+=qd(e,A[i]);else r?t.headers[e]=qd(e,A,r):t.headers+=qd(e,A)}}}a(uC,"processHeader");RP.exports=c6});var LI=E((Ppt,SP)=>{"use strict";var G0e=require("events"),l6=class extends G0e{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};SP.exports=l6});var gC=E((Hpt,xP)=>{"use strict";var J0e=LI(),{ClientDestroyedError:d6,ClientClosedError:V0e,InvalidArgumentError:Vp}=Pt(),{kDestroy:W0e,kClose:z0e,kDispatch:u6,kInterceptors:Hd}=Wt(),Wp=Symbol("destroyed"),pC=Symbol("closed"),ic=Symbol("onDestroyed"),zp=Symbol("onClosed"),UI=Symbol("Intercepted Dispatch"),p6=class extends J0e{static{a(this,"DispatcherBase")}constructor(){super(),this[Wp]=!1,this[ic]=null,this[pC]=!1,this[zp]=[]}get destroyed(){return this[Wp]}get closed(){return this[pC]}get interceptors(){return this[Hd]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[Hd][A]!="function")throw new Vp("interceptor must be an function")}this[Hd]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new Vp("invalid callback");if(this[Wp]){queueMicrotask(()=>e(new d6,null));return}if(this[pC]){this[zp]?this[zp].push(e):queueMicrotask(()=>e(null,null));return}this[pC]=!0,this[zp].push(e);let A=a(()=>{let r=this[zp];this[zp]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[z0e]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new Vp("invalid callback");if(this[Wp]){this[ic]?this[ic].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new d6),this[Wp]=!0,this[ic]=this[ic]||[],this[ic].push(A);let r=a(()=>{let i=this[ic];this[ic]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[W0e](e).then(()=>{queueMicrotask(r)})}[UI](e,A){if(!this[Hd]||this[Hd].length===0)return this[UI]=this[u6],this[u6](e,A);let r=this[u6].bind(this);for(let i=this[Hd].length-1;i>=0;i--)r=this[Hd][i](r);return this[UI]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Vp("handler must be an object");try{if(!e||typeof e!="object")throw new Vp("opts must be an object.");if(this[Wp]||this[ic])throw new d6;if(this[pC])throw new V0e;return this[UI](e,A)}catch(r){if(typeof A.onError!="function")throw new Vp("invalid onError method");return A.onError(r),!1}}};xP.exports=p6});var hC=E((Vpt,FP)=>{"use strict";var j0e=require("net"),vP=require("assert"),kP=ct(),{InvalidArgumentError:X0e,ConnectTimeoutError:Z0e}=Pt(),g6,h6;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?h6=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:h6=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function K0e({allowH2:t,maxCachedSessi Line truncated
`,this[XP]=c??3e5,this[jP]=i??3e5,this[BC]=b??!0,this[Dye]=C,this[IC]=N,this[ul]=null,this[KP]=w>-1?w:-1,this[$a]="h1",this[Mn]=null,this[YI]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[$P]=`${this[Wr].hostname}${this[Wr].port?`:${this[Wr].port}`:""}`,this[iA]=[],this[nA]=0,this[Tn]=0}get pipelining(){return this[gl]}set pipelining(e){this[gl]=e,_n(this,!0)}get[Jd](){return this[iA].length-this[Tn]}get[yA](){return this[Tn]-this[nA]}get[Gd](){return this[iA].length-this[nA]}get[Rye](){return!!this[SA]&&!this[Zp]&&!this[SA].destroyed}get[y6](){let e=this[SA];return e&&(e[Si]||e[sc]||e[$p])||this[Gd]>=(this[gl]||1)||this[Jd]>0}[Nye](e){rq(this),this.once("connect",e)}[vye](e,A){let r=e.origin||this[Wr].origin,i=this[$a]==="h2"?I6[Fye](r,e,A):I6[Uye](r,e,A);return this[iA].push(i),this[Yd]||(Ce.bodyLength(i.body)==null&&Ce.isIterable(i.body)?(this[Yd]=1,process.nextTick(_n,this)):_n(this,!0)),this[Yd]&&this[pl]!==2&&this[y6]&&(this[pl]=2),this[pl]<2}async[Sye](){return new Promise(e=>{this[Gd]?this[ul]=e:e(null)})}async[xye](e){return new Promise(A=>{let r=this[iA].splice(this[Tn]);for(let n=0;n<r.length;n++){let s=r[n];xi(this,s,e)}let i=a(()=>{this[ul]&&(this[ul](),this[ul]=null),A()},"callback");this[Mn]!=null&&(Ce.destroy(this[Mn],e),this[Mn]=null,this[YI]=null),this[SA]?Ce.destroy(this[SA].on("close",i),e):queueMicrotask(i),_n(this)})}};function Yye(t){re(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SA][zr]=t,WI(this[Ka],t)}a(Yye,"onHttp2SessionError");function Gye(t,e,A){let r=new Za(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[SA][zr]=r,WI(this[Ka],r))}a(Gye,"onHttp2FrameError");function Jye(){Ce.destroy(this,new Kp("other side closed")),Ce.destroy(this[SA],new Kp("other side closed"))}a(Jye,"onHttp2SessionEnd");function Vye(t){let e=this[Ka],A=new Za(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[SA]=null,e[Mn]=null,e.destroyed){re(this[Jd]===0);let r=e[iA].splice(e[nA]);for(let i=0;i<r.length;i++){let n=r[i];xi(this,n,A)}}else if(e[yA]>0){let r=e[iA][e[nA]];e[iA][e[nA]++]=null,xi(e,r,A)}e[Tn]=e[nA],re(e[yA]===0),e.emit("disconnect",e[Wr],[e],A),_n(e)}a(Vye,"onHTTP2GoAway");var za=UP(),Wye=_I(),zye=Buffer.alloc(0);async function jye(){let t=process.env.JEST_WORKER_ID?f6():void 0,e;try{e=await WebAssembly.compile(Buffer.from(HP(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||f6(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onStatus(new OI(ja.buffer,n,i))||0},wasm_on_message_begin:A=>(re.strictEqual(hr.ptr,A),hr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onHeaderField(new OI(ja.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onHeaderValue(new OI(ja.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(re.strictEqual(hr.ptr,A),hr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-Xa+ja.byteOffset;return hr.onBody(new OI(ja.buffer,n,i))||0},wasm_on_message_complete:A=>(re.strictEqual(hr.ptr,A),hr.onMessageComplete()||0)}})}a(jye,"lazyllhttp");var B6=null,N6=jye();N6.catch();var hr=null,ja=null,PI=0,Xa=null,eg=1,HI=2,R6=3,D6=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){re(Number.isFinite(e[qI])&&e[qI]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(za.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[qI],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[KP]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(Q6.clearTimeout(this.timeout),e?(this.timeout=Q6.setTimeout(Xye,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(re(this.ptr!=null),re(hr==null),this.llhttp.llhttp_resume(this.ptr),re(this.timeoutType===HI),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||zye),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){re(this.ptr!=null),re(hr==null),re(!this.paused);let{socket:A,llhttp:r}=this;e.length>PI&&(Xa&&r.free(Xa),PI=Math.ceil(e.length/4096)*4096,Xa=r.malloc(PI)),new Uint8Array(r.memory.buffer,Xa,PI).set(e);try{let i;try{ja=e,hr=this,i=r.llhttp_execute(this.ptr,Xa,e.length)}catch(s){throw s}finally{hr=null,ja=null}let n=r.llhttp_get_error_pos(this.ptr)-Xa;if(i===za.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===za.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e Line truncated
`;return typeof n=="string"?h+=`host: ${n}\r
`:h+=t[JP],s?h+=`connection: upgrade\r
`:h+=t[VP],s?h+=`connection: upgrade\r
upgrade: ${s}\r
`:t[gl]&&!g[Si]?h+=`connection: keep-alive\r
`:h+=`connection: close\r
@@ -34,9 +34,9 @@ upgrade: ${s}\r
`,"latin1"):(re(p===null,"no body must not have content length"),g.write(`${h}\r
`,"latin1")),e.onRequestSent()):Ce.isBuffer(A)?(re(p===A.byteLength,"buffer body must have content length"),g.cork(),g.write(`${h}content-length: ${p}\r
\r
`,"latin1"),g.write(A),g.uncork(),e.onBodySent(A),e.onRequestSent(),d||(g[Si]=!0)):Ce.isBlobLike(A)?typeof A.stream=="function"?JI({body:A.stream(),client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):nq({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isStream(A)?iq({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isIterable(A)?JI({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):re(!1),!0}a(Kye,"write");function $ye(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=I6[Lye](d.trim()):u=d,o)return xi(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||xi(t,A,b||new x6)})}catch(b){xi(t,A,b)}if(A.aborted)return!1;let p,g=t[YI];if(u[Tye]=s||t[KP],u[Mye]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[_ye]=n,u[Oye]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=Ce.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),rq(i)&&m>0&&A.contentLength!=null&&A.contentLength!==m){if(t[BC])return xi(t,A,new nc),!1;process.emitWarning(new nc)}m!=null&&(re(r,"no body must not have content length"),u[Pye]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[qye]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{let{[Hye]:I,...C}=b;A.onHeaders(Number(I),C,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new Za(`HTTP/2: "frameError" received - type ${b}, code ${I}`);xi(t,A,C),t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,C))}),!0;function B(){r?Ce.isBuffer(r)?(re(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):Ce.isBlobLike(r)?typeof r.stream=="function"?JI({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[SA],header:""}):nq({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[SA]}):Ce.isStream(r)?iq({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[SA],h2stream:p,header:""}):Ce.isIterable(r)?JI({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[SA]}):re(!1):A.onRequestSent()}a(B,"writeBodyH2")}a($ye,"writeH2");function iq({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(re(n!==0||A[yA]===0,"stream body cannot be pipelined"),A[$a]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=Eye(e,t,f=>{f?(Ce.destroy(e,f),Ce.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),Ce.destroy(h)});return}let c=!1,l=new VI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){Ce.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){if(c)return;let h=new x6;queueMicrotask(()=>g(h))},"onAbort"),g=a(function(h){if(!c){if(c=!0,re(i.destroyed||i[sc]&&A[yA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Ce.destroy(e,h):Ce.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(iq,"writeStream");async function nq({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n===e.size,"blob body must have content length");let c=A[$a]==="h2";try{if(n!=null&&n!==e.size)throw new nc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
`,"latin1"),g.write(A),g.uncork(),e.onBodySent(A),e.onRequestSent(),d||(g[Si]=!0)):Ce.isBlobLike(A)?typeof A.stream=="function"?JI({body:A.stream(),client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):sq({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isStream(A)?nq({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isIterable(A)?JI({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):re(!1),!0}a(Kye,"write");function $ye(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=I6[Lye](d.trim()):u=d,o)return xi(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||xi(t,A,b||new x6)})}catch(b){xi(t,A,b)}if(A.aborted)return!1;let p,g=t[YI];if(u[Tye]=s||t[$P],u[Mye]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[_ye]=n,u[Oye]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=Ce.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),iq(i)&&m>0&&A.contentLength!=null&&A.contentLength!==m){if(t[BC])return xi(t,A,new nc),!1;process.emitWarning(new nc)}m!=null&&(re(r,"no body must not have content length"),u[Pye]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[qye]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{let{[Hye]:I,...C}=b;A.onHeaders(Number(I),C,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new Za(`HTTP/2: "frameError" received - type ${b}, code ${I}`);xi(t,A,C),t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,C))}),!0;function B(){r?Ce.isBuffer(r)?(re(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):Ce.isBlobLike(r)?typeof r.stream=="function"?JI({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[SA],header:""}):sq({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[SA]}):Ce.isStream(r)?nq({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[SA],h2stream:p,header:""}):Ce.isIterable(r)?JI({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[SA]}):re(!1):A.onRequestSent()}a(B,"writeBodyH2")}a($ye,"writeH2");function nq({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(re(n!==0||A[yA]===0,"stream body cannot be pipelined"),A[$a]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=Eye(e,t,f=>{f?(Ce.destroy(e,f),Ce.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),Ce.destroy(h)});return}let c=!1,l=new VI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){Ce.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){if(c)return;let h=new x6;queueMicrotask(()=>g(h))},"onAbort"),g=a(function(h){if(!c){if(c=!0,re(i.destroyed||i[sc]&&A[yA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Ce.destroy(e,h):Ce.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(nq,"writeStream");async function sq({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n===e.size,"blob body must have content length");let c=A[$a]==="h2";try{if(n!=null&&n!==e.size)throw new nc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
\r
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Si]=!0),_n(A)}catch(l){Ce.destroy(c?t:i,l)}}a(nq,"writeBlob");async function JI({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n!==0||A[yA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{re(c===null),i[zr]?g(i[zr]):c=p}),"waitForDrain");if(A[$a]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[zr])throw i[zr];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new VI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[zr])throw i[zr];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(JI,"writeIterable");var VI=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[sc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[zr])throw A[zr];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[BC])throw new nc;process.emitWarning(new nc)}A.cork(),s===0&&(o||(A[Si]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Si]=!0),_n(A)}catch(l){Ce.destroy(c?t:i,l)}}a(sq,"writeBlob");async function JI({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n!==0||A[yA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{re(c===null),i[zr]?g(i[zr]):c=p}),"waitForDrain");if(A[$a]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[zr])throw i[zr];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new VI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[zr])throw i[zr];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(JI,"writeIterable");var VI=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[sc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[zr])throw A[zr];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[BC])throw new nc;process.emitWarning(new nc)}A.cork(),s===0&&(o||(A[Si]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
`,"latin1"):A.write(`${c}content-length: ${i}\r
\r
`,"latin1")),i===null&&A.write(`\r
@@ -47,27 +47,27 @@ ${l.toString(16)}\r
`,"latin1"):A===null&&e.write(`\r
0\r
\r
`,"latin1"),A!==null&&i!==A){if(r[BC])throw new nc;process.emitWarning(new nc)}e[DA].timeout&&e[DA].timeoutType===eg&&e[DA].timeout.refresh&&e[DA].timeout.refresh(),_n(r)}}destroy(e){let{socket:A,client:r}=this;A[sc]=!1,e&&(re(r[yA]<=1,"pipeline should only contain this request"),Ce.destroy(A,e))}};function xi(t,e,A){try{e.onError(A),re(e.aborted)}catch(r){t.emit("error",r)}}a(xi,"errorRequest");sq.exports=b6});var oq=E((sgt,aq)=>{"use strict";var zI=class{static{a(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)}};aq.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new zI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new zI),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var lq=E((ogt,cq)=>{var{kFree:e2e,kConnected:t2e,kPending:A2e,kQueued:r2e,kRunning:i2e,kSize:n2e}=Wt(),Vd=Symbol("pool"),v6=class{static{a(this,"PoolStats")}constructor(e){this[Vd]=e}get connected(){return this[Vd][t2e]}get free(){return this[Vd][e2e]}get pending(){return this[Vd][A2e]}get queued(){return this[Vd][r2e]}get running(){return this[Vd][i2e]}get size(){return this[Vd][n2e]}};cq.exports=v6});var M6=E((lgt,Qq)=>{"use strict";var s2e=gC(),a2e=oq(),{kConnected:k6,kSize:dq,kRunning:uq,kPending:pq,kQueued:wC,kBusy:o2e,kFree:c2e,kUrl:l2e,kClose:d2e,kDestroy:u2e,kDispatch:p2e}=Wt(),g2e=lq(),Ki=Symbol("clients"),vi=Symbol("needDrain"),bC=Symbol("queue"),F6=Symbol("closed resolve"),L6=Symbol("onDrain"),gq=Symbol("onConnect"),hq=Symbol("onDisconnect"),Eq=Symbol("onConnectionError"),U6=Symbol("get dispatcher"),Cq=Symbol("add client"),fq=Symbol("remove client"),mq=Symbol("stats"),T6=class extends s2e{static{a(this,"PoolBase")}constructor(){super(),this[bC]=new a2e,this[Ki]=[],this[wC]=0;let e=this;this[L6]=a(function(r,i){let n=e[bC],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[wC]--,s=!this.dispatch(o.opts,o.handler)}this[vi]=s,!this[vi]&&e[vi]&&(e[vi]=!1,e.emit("drain",r,[e,...i])),e[F6]&&n.isEmpty()&&Promise.all(e[Ki].map(o=>o.close())).then(e[F6])},"onDrain"),this[gq]=(A,r)=>{e.emit("connect",A,[e,...r])},this[hq]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[Eq]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[mq]=new g2e(this)}get[o2e](){return this[vi]}get[k6](){return this[Ki].filter(e=>e[k6]).length}get[c2e](){return this[Ki].filter(e=>e[k6]&&!e[vi]).length}get[pq](){let e=this[wC];for(let{[pq]:A}of this[Ki])e+=A;return e}get[uq](){let e=0;for(let{[uq]:A}of this[Ki])e+=A;return e}get[dq](){let e=this[wC];for(let{[dq]:A}of this[Ki])e+=A;return e}get stats(){return this[mq]}async[d2e](){return this[bC].isEmpty()?Promise.all(this[Ki].map(e=>e.close())):new Promise(e=>{this[F6]=e})}async[u2e](e){for(;;){let A=this[bC].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Ki].map(A=>A.destroy(e)))}[p2e](e,A){let r=this[U6]();return r?r.dispatch(e,A)||(r[vi]=!0,this[vi]=!this[U6]()):(this[vi]=!0,this[bC].push({opts:e,handler:A}),this[wC]++),!this[vi]}[Cq](e){return e.on("drain",this[L6]).on("connect",this[gq]).on("disconnect",this[hq]).on("connectionError",this[Eq]),this[Ki].push(e),this[vi]&&process.nextTick(()=>{this[vi]&&this[L6](e[l2e],[this,e])}),this}[fq](e){e.close(()=>{let A=this[Ki].indexOf(e);A!==-1&&this[Ki].splice(A,1)}),this[vi]=this[Ki].some(A=>!A[vi]&&A.closed!==!0&&A.destroyed!==!0)}};Qq.exports={PoolBase:T6,kClients:Ki,kNeedDrain:vi,kAddClient:Cq,kRemoveClient:fq,kGetDispatcher:U6}});var tg=E((ugt,wq)=>{"use strict";var{PoolBase:h2e,kClients:Bq,kNeedDrain:E2e,kAddClient:m2e,kGetDispatcher:C2e}=M6(),f2e=yC(),{InvalidArgumentError:_6}=Pt(),O6=ct(),{kUrl:Iq,kInterceptors:Q2e}=Wt(),B2e=hC(),P6=Symbol("options"),q6=Symbol("connections"),yq=Symbol("factory");function I2e(t,e){return new f2e(t,e)}a(I2e,"defaultFactory");var H6=class extends h2e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=I2e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new _6("invalid connections");if(typeof r!="function")throw new _6("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new _6("connect must be a function or an object");typeof i!="function"&&(i=B2e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n,...O6.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[Q2e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[q6]=A||null,this[Iq]=O6.parseOrigin(e),this[P6]={...O6.dee Line truncated
`,"latin1"),A!==null&&i!==A){if(r[BC])throw new nc;process.emitWarning(new nc)}e[DA].timeout&&e[DA].timeoutType===eg&&e[DA].timeout.refresh&&e[DA].timeout.refresh(),_n(r)}}destroy(e){let{socket:A,client:r}=this;A[sc]=!1,e&&(re(r[yA]<=1,"pipeline should only contain this request"),Ce.destroy(A,e))}};function xi(t,e,A){try{e.onError(A),re(e.aborted)}catch(r){t.emit("error",r)}}a(xi,"errorRequest");aq.exports=b6});var cq=E((sgt,oq)=>{"use strict";var zI=class{static{a(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)}};oq.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new zI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new zI),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var dq=E((ogt,lq)=>{var{kFree:e2e,kConnected:t2e,kPending:A2e,kQueued:r2e,kRunning:i2e,kSize:n2e}=Wt(),Vd=Symbol("pool"),v6=class{static{a(this,"PoolStats")}constructor(e){this[Vd]=e}get connected(){return this[Vd][t2e]}get free(){return this[Vd][e2e]}get pending(){return this[Vd][A2e]}get queued(){return this[Vd][r2e]}get running(){return this[Vd][i2e]}get size(){return this[Vd][n2e]}};lq.exports=v6});var M6=E((lgt,Bq)=>{"use strict";var s2e=gC(),a2e=cq(),{kConnected:k6,kSize:uq,kRunning:pq,kPending:gq,kQueued:wC,kBusy:o2e,kFree:c2e,kUrl:l2e,kClose:d2e,kDestroy:u2e,kDispatch:p2e}=Wt(),g2e=dq(),Ki=Symbol("clients"),vi=Symbol("needDrain"),bC=Symbol("queue"),F6=Symbol("closed resolve"),L6=Symbol("onDrain"),hq=Symbol("onConnect"),Eq=Symbol("onDisconnect"),mq=Symbol("onConnectionError"),U6=Symbol("get dispatcher"),fq=Symbol("add client"),Qq=Symbol("remove client"),Cq=Symbol("stats"),T6=class extends s2e{static{a(this,"PoolBase")}constructor(){super(),this[bC]=new a2e,this[Ki]=[],this[wC]=0;let e=this;this[L6]=a(function(r,i){let n=e[bC],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[wC]--,s=!this.dispatch(o.opts,o.handler)}this[vi]=s,!this[vi]&&e[vi]&&(e[vi]=!1,e.emit("drain",r,[e,...i])),e[F6]&&n.isEmpty()&&Promise.all(e[Ki].map(o=>o.close())).then(e[F6])},"onDrain"),this[hq]=(A,r)=>{e.emit("connect",A,[e,...r])},this[Eq]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[mq]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Cq]=new g2e(this)}get[o2e](){return this[vi]}get[k6](){return this[Ki].filter(e=>e[k6]).length}get[c2e](){return this[Ki].filter(e=>e[k6]&&!e[vi]).length}get[gq](){let e=this[wC];for(let{[gq]:A}of this[Ki])e+=A;return e}get[pq](){let e=0;for(let{[pq]:A}of this[Ki])e+=A;return e}get[uq](){let e=this[wC];for(let{[uq]:A}of this[Ki])e+=A;return e}get stats(){return this[Cq]}async[d2e](){return this[bC].isEmpty()?Promise.all(this[Ki].map(e=>e.close())):new Promise(e=>{this[F6]=e})}async[u2e](e){for(;;){let A=this[bC].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Ki].map(A=>A.destroy(e)))}[p2e](e,A){let r=this[U6]();return r?r.dispatch(e,A)||(r[vi]=!0,this[vi]=!this[U6]()):(this[vi]=!0,this[bC].push({opts:e,handler:A}),this[wC]++),!this[vi]}[fq](e){return e.on("drain",this[L6]).on("connect",this[hq]).on("disconnect",this[Eq]).on("connectionError",this[mq]),this[Ki].push(e),this[vi]&&process.nextTick(()=>{this[vi]&&this[L6](e[l2e],[this,e])}),this}[Qq](e){e.close(()=>{let A=this[Ki].indexOf(e);A!==-1&&this[Ki].splice(A,1)}),this[vi]=this[Ki].some(A=>!A[vi]&&A.closed!==!0&&A.destroyed!==!0)}};Bq.exports={PoolBase:T6,kClients:Ki,kNeedDrain:vi,kAddClient:fq,kRemoveClient:Qq,kGetDispatcher:U6}});var tg=E((ugt,bq)=>{"use strict";var{PoolBase:h2e,kClients:Iq,kNeedDrain:E2e,kAddClient:m2e,kGetDispatcher:C2e}=M6(),f2e=yC(),{InvalidArgumentError:_6}=Pt(),O6=ct(),{kUrl:yq,kInterceptors:Q2e}=Wt(),B2e=hC(),P6=Symbol("options"),q6=Symbol("connections"),wq=Symbol("factory");function I2e(t,e){return new f2e(t,e)}a(I2e,"defaultFactory");var H6=class extends h2e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=I2e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new _6("invalid connections");if(typeof r!="function")throw new _6("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new _6("connect must be a function or an object");typeof i!="function"&&(i=B2e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n,...O6.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[Q2e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[q6]=A||null,this[yq]=O6.parseOrigin(e),this[P6]={...O6.dee Line truncated
${r.count} ${r.noun} ${r.is} pending:
${e.format(A)}
`.trim())}};AY.exports=NS});var cY=E((rht,oY)=>{"use strict";var{kProxy:ybe,kClose:wbe,kDestroy:bbe,kInterceptors:Nbe}=Wt(),{URL:iY}=require("url"),nY=RC(),Rbe=tg(),Dbe=gC(),{InvalidArgumentError:kC,RequestAbortedError:Sbe}=Pt(),sY=hC(),xC=Symbol("proxy agent"),h1=Symbol("proxy client"),vC=Symbol("proxy headers"),RS=Symbol("request tls settings"),xbe=Symbol("proxy tls settings"),aY=Symbol("connect endpoint function");function vbe(t){return t==="https:"?443:80}a(vbe,"defaultProtocolPort");function kbe(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new kC("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(kbe,"buildProxyOptions");function Fbe(t,e){return new Rbe(t,e)}a(Fbe,"defaultFactory");var DS=class extends Dbe{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[ybe]=kbe(e),this[xC]=new nY(e),this[Nbe]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new kC("Proxy opts.uri is mandatory");let{clientFactory:A=Fbe}=e;if(typeof A!="function")throw new kC("Proxy opts.clientFactory must be a function.");this[RS]=e.requestTls,this[xbe]=e.proxyTls,this[vC]=e.headers||{};let r=new iY(e.uri),{origin:i,port:n,host:s,username:o,password:c}=r;if(e.auth&&e.token)throw new kC("opts.auth cannot be used in combination with opts.token");e.auth?this[vC]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[vC]["proxy-authorization"]=e.token:o&&c&&(this[vC]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(c)}`).toString("base64")}`);let l=sY({...e.proxyTls});this[aY]=sY({...e.requestTls}),this[h1]=A(r,{connect:l}),this[xC]=new nY({...e,connect:async(d,u)=>{let p=d.host;d.port||(p+=`:${vbe(d.protocol)}`);try{let{socket:g,statusCode:h}=await this[h1].connect({origin:i,port:n,path:p,signal:d.signal,headers:{...this[vC],host:s}});if(h!==200&&(g.on("error",()=>{}).destroy(),u(new Sbe(`Proxy response (${h}) !== 200 when HTTP Tunneling`))),d.protocol!=="https:"){u(null,g);return}let m;this[RS]?m=this[RS].servername:m=d.servername,this[aY]({...d,servername:m,httpSocket:g},u)}catch(g){u(g)}}})}dispatch(e,A){let{host:r}=new iY(e.origin),i=Lbe(e.headers);return Ube(i),this[xC].dispatch({...e,headers:{...i,host:r}},A)}async[wbe](){await this[xC].close(),await this[h1].close()}async[bbe](){await this[xC].destroy(),await this[h1].destroy()}};function Lbe(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(Lbe,"buildHeaders");function Ube(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new kC("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Ube,"throwIfProxyAuthIsSent");oY.exports=DS});var gY=E((nht,pY)=>{var Kd=require("assert"),{kRetryHandlerDefaultRetry:lY}=Wt(),{RequestRetryError:E1}=Pt(),{isDisturbed:dY,parseHeaders:Tbe,parseRangeHeader:uY}=ct();function Mbe(t){let e=Date.now();return new Date(t).getTime()-e}a(Mbe,"calculateRetryAfterHeader");var SS=class t{static{a(this,"RetryHandler")}constructor(e,A){let{retryOptions:r,...i}=e,{retry:n,maxRetries:s,maxTimeout:o,minTimeout:c,timeoutFactor:l,methods:d,errorCodes:u,retryAfter:p,statusCodes:g}=r??{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[lY],retryAfter:p??!0,maxTimeout:o??30*1e3,timeout:c??500,timeoutFactor:l??2,maxRetries:s??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:g??[500,502,503,504,429],errorCodes:u??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,A,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[lY](e,{state:A,opts:r},i){let{statusCode:n,code:s,headers:o}=e,{method:c,retryOptions:l}=r,{maxRetries:d,timeout:u,maxTimeout:p,timeoutFactor:g,statusCodes:h,errorCodes:m,methods:f}=l,{counter:B,currentTimeout:b}=A;if(b=b!=null&&b>0?b:u,s&&s!=="UND_ERR_REQ_RETRY"&&s!=="UND_ERR_SOCKET"&&!m.includes(s)){i(e);return}if(Array.isArray(f)&&!f.includes(c)){i(e);return}if(n!=null&&Array.isArray(h)&&!h.includes(n)){i(e);return}if(B>d){i(e);return}let I=o!=null&&o["retry-after"];I&&(I=Number(I),I=isNaN(I)?Mbe(I):I*1e3);let C=I>0?Math.min(I,p):Math.min(b*g**B,p);A.currentTimeout=C,setTimeout(()=>i(null),C)}onHeaders(e,A,r,i){let n=Tbe(A);if(this.retryCount+=1,e>=300)return this.abort(new E1("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=uY(n["content-range"]);if(!o)return this.abort(new E1(" Line truncated
`.trim())}};rY.exports=NS});var lY=E((rht,cY)=>{"use strict";var{kProxy:ybe,kClose:wbe,kDestroy:bbe,kInterceptors:Nbe}=Wt(),{URL:nY}=require("url"),sY=RC(),Rbe=tg(),Dbe=gC(),{InvalidArgumentError:kC,RequestAbortedError:Sbe}=Pt(),aY=hC(),xC=Symbol("proxy agent"),h1=Symbol("proxy client"),vC=Symbol("proxy headers"),RS=Symbol("request tls settings"),xbe=Symbol("proxy tls settings"),oY=Symbol("connect endpoint function");function vbe(t){return t==="https:"?443:80}a(vbe,"defaultProtocolPort");function kbe(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new kC("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(kbe,"buildProxyOptions");function Fbe(t,e){return new Rbe(t,e)}a(Fbe,"defaultFactory");var DS=class extends Dbe{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[ybe]=kbe(e),this[xC]=new sY(e),this[Nbe]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new kC("Proxy opts.uri is mandatory");let{clientFactory:A=Fbe}=e;if(typeof A!="function")throw new kC("Proxy opts.clientFactory must be a function.");this[RS]=e.requestTls,this[xbe]=e.proxyTls,this[vC]=e.headers||{};let r=new nY(e.uri),{origin:i,port:n,host:s,username:o,password:c}=r;if(e.auth&&e.token)throw new kC("opts.auth cannot be used in combination with opts.token");e.auth?this[vC]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[vC]["proxy-authorization"]=e.token:o&&c&&(this[vC]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(c)}`).toString("base64")}`);let l=aY({...e.proxyTls});this[oY]=aY({...e.requestTls}),this[h1]=A(r,{connect:l}),this[xC]=new sY({...e,connect:async(d,u)=>{let p=d.host;d.port||(p+=`:${vbe(d.protocol)}`);try{let{socket:g,statusCode:h}=await this[h1].connect({origin:i,port:n,path:p,signal:d.signal,headers:{...this[vC],host:s}});if(h!==200&&(g.on("error",()=>{}).destroy(),u(new Sbe(`Proxy response (${h}) !== 200 when HTTP Tunneling`))),d.protocol!=="https:"){u(null,g);return}let m;this[RS]?m=this[RS].servername:m=d.servername,this[oY]({...d,servername:m,httpSocket:g},u)}catch(g){u(g)}}})}dispatch(e,A){let{host:r}=new nY(e.origin),i=Lbe(e.headers);return Ube(i),this[xC].dispatch({...e,headers:{...i,host:r}},A)}async[wbe](){await this[xC].close(),await this[h1].close()}async[bbe](){await this[xC].destroy(),await this[h1].destroy()}};function Lbe(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(Lbe,"buildHeaders");function Ube(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new kC("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Ube,"throwIfProxyAuthIsSent");cY.exports=DS});var hY=E((nht,gY)=>{var Kd=require("assert"),{kRetryHandlerDefaultRetry:dY}=Wt(),{RequestRetryError:E1}=Pt(),{isDisturbed:uY,parseHeaders:Tbe,parseRangeHeader:pY}=ct();function Mbe(t){let e=Date.now();return new Date(t).getTime()-e}a(Mbe,"calculateRetryAfterHeader");var SS=class t{static{a(this,"RetryHandler")}constructor(e,A){let{retryOptions:r,...i}=e,{retry:n,maxRetries:s,maxTimeout:o,minTimeout:c,timeoutFactor:l,methods:d,errorCodes:u,retryAfter:p,statusCodes:g}=r??{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[dY],retryAfter:p??!0,maxTimeout:o??30*1e3,timeout:c??500,timeoutFactor:l??2,maxRetries:s??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:g??[500,502,503,504,429],errorCodes:u??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,A,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[dY](e,{state:A,opts:r},i){let{statusCode:n,code:s,headers:o}=e,{method:c,retryOptions:l}=r,{maxRetries:d,timeout:u,maxTimeout:p,timeoutFactor:g,statusCodes:h,errorCodes:m,methods:f}=l,{counter:B,currentTimeout:b}=A;if(b=b!=null&&b>0?b:u,s&&s!=="UND_ERR_REQ_RETRY"&&s!=="UND_ERR_SOCKET"&&!m.includes(s)){i(e);return}if(Array.isArray(f)&&!f.includes(c)){i(e);return}if(n!=null&&Array.isArray(h)&&!h.includes(n)){i(e);return}if(B>d){i(e);return}let I=o!=null&&o["retry-after"];I&&(I=Number(I),I=isNaN(I)?Mbe(I):I*1e3);let C=I>0?Math.min(I,p):Math.min(b*g**B,p);A.currentTimeout=C,setTimeout(()=>i(null),C)}onHeaders(e,A,r,i){let n=Tbe(A);if(this.retryCount+=1,e>=300)return this.abort(new E1("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=pY(n["content-range"]);if(!o)return this.abort(new E1(" Line truncated
Error Code : ${s.statusCode}
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return BJ(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}(0,IJ.debug)(`ID token url is ${A}`);let r=yield t.getCall(A);return(0,IJ.setSecret)(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Rg.OidcClient=C9});var I9=E(rn=>{"use strict";var f9=rn&&rn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(rn,"__esModule",{value:!0});rn.summary=rn.markdownSummary=rn.SUMMARY_DOCS_URL=rn.SUMMARY_ENV_VAR=void 0;var k4e=require("os"),Q9=require("fs"),{access:F4e,appendFile:L4e,writeFile:U4e}=Q9.promises;rn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";rn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var B9=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return f9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[rn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${rn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield F4e(e,Q9.constants.R_OK|Q9.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return f9(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?U4e:L4e)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return f9(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(k4e.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},wJ=new B9;rn.markdownSummary=wJ;rn.summary=wJ});var bJ=E(nn=>{"use strict";var T4e=nn&&nn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),M4e=nn&&nn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_4e=nn&&nn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&T4e(e,t,A);return M4e(e,t),e};Object.defineProperty(nn,"__esModule",{value:!0});nn.toPlatformPath=nn.toWin32Path=nn.toPosixPath=void 0;var O4e=_4e(require("path"));function P4e(t){return t.replace(/[\\]/g,"/")}a(P4e,"toPosixPath");nn.toPosixPath=P4e;function q4e(t){return t.replace(/[/]/g,"\\")}a(q4e,"toWin32Path");nn.toWin32Path=q4e;function H4e(t){return t.replace(/[/\\]/g,O4e.sep)}a(H4e,"toPlatformPath");nn.toPlatformPath=H4e});var w9=E(oe=>{"use strict";var Y4e=oe&&oe.__createBinding||(Object.create?functioLine truncated
`);return{name:e,version:A}}),"getLinuxInfo");lt.platform=YJ.default.platform();lt.arch=YJ.default.arch();lt.isWindows=lt.platform==="win32";lt.isMacOS=lt.platform==="darwin";lt.isLinux=lt.platform==="linux";function B6e(){return d0(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield lt.isWindows?C6e():lt.isMacOS?f6e():Q6e()),{platform:lt.platform,arch:lt.arch,isWindows:lt.isWindows,isMacOS:lt.isMacOS,isLinux:lt.isLinux})})}a(B6e,"getDetails");lt.getDetails=B6e});var hi=E(ie=>{"use strict";var I6e=ie&&ie.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),y6e=ie&&ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),S9=ie&&ie.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&I6e(e,t,A);return y6e(e,t),e},JJ=ie&&ie.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ie,"__esModule",{value:!0});ie.platform=ie.toPlatformPath=ie.toWin32Path=ie.toPosixPath=ie.markdownSummary=ie.summary=ie.getIDToken=ie.getState=ie.saveState=ie.group=ie.endGroup=ie.startGroup=ie.info=ie.notice=ie.warning=ie.error=ie.debug=ie.isDebug=ie.setFailed=ie.setCommandEcho=ie.setOutput=ie.getBooleanInput=ie.getMultilineInput=ie.getInput=ie.addPath=ie.setSecret=ie.exportVariable=ie.ExitCode=void 0;var Fs=x_(),nu=F_(),xg=hI(),VJ=S9(require("os")),w6e=S9(require("path")),b6e=yJ(),D9;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(D9||(ie.ExitCode=D9={}));function N6e(t,e){let A=(0,xg.toCommandValue)(e);if(process.env[t]=A,process.env.GITHUB_ENV||"")return(0,nu.issueFileCommand)("ENV",(0,nu.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("set-env",{name:t},A)}a(N6e,"exportVariable");ie.exportVariable=N6e;function R6e(t){(0,Fs.issueCommand)("add-mask",{},t)}a(R6e,"setSecret");ie.setSecret=R6e;function D6e(t){process.env.GITHUB_PATH||""?(0,nu.issueFileCommand)("PATH",t):(0,Fs.issueCommand)("add-path",{},t),process.env.PATH=`${t}${w6e.delimiter}${process.env.PATH}`}a(D6e,"addPath");ie.addPath=D6e;function x9(t,e){let A=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!A)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?A:A.trim()}a(x9,"getInput");ie.getInput=x9;function S6e(t,e){let A=x9(t,e).split(`
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return IJ(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}(0,yJ.debug)(`ID token url is ${A}`);let r=yield t.getCall(A);return(0,yJ.setSecret)(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Rg.OidcClient=C9});var I9=E(rn=>{"use strict";var f9=rn&&rn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(rn,"__esModule",{value:!0});rn.summary=rn.markdownSummary=rn.SUMMARY_DOCS_URL=rn.SUMMARY_ENV_VAR=void 0;var k4e=require("os"),Q9=require("fs"),{access:F4e,appendFile:L4e,writeFile:U4e}=Q9.promises;rn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";rn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var B9=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return f9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[rn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${rn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield F4e(e,Q9.constants.R_OK|Q9.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return f9(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?U4e:L4e)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return f9(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(k4e.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},bJ=new B9;rn.markdownSummary=bJ;rn.summary=bJ});var NJ=E(nn=>{"use strict";var T4e=nn&&nn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),M4e=nn&&nn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_4e=nn&&nn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&T4e(e,t,A);return M4e(e,t),e};Object.defineProperty(nn,"__esModule",{value:!0});nn.toPlatformPath=nn.toWin32Path=nn.toPosixPath=void 0;var O4e=_4e(require("path"));function P4e(t){return t.replace(/[\\]/g,"/")}a(P4e,"toPosixPath");nn.toPosixPath=P4e;function q4e(t){return t.replace(/[/]/g,"\\")}a(q4e,"toWin32Path");nn.toWin32Path=q4e;function H4e(t){return t.replace(/[/\\]/g,O4e.sep)}a(H4e,"toPlatformPath");nn.toPlatformPath=H4e});var w9=E(oe=>{"use strict";var Y4e=oe&&oe.__createBinding||(Object.create?functioLine truncated
`);return{name:e,version:A}}),"getLinuxInfo");lt.platform=GJ.default.platform();lt.arch=GJ.default.arch();lt.isWindows=lt.platform==="win32";lt.isMacOS=lt.platform==="darwin";lt.isLinux=lt.platform==="linux";function B6e(){return d0(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield lt.isWindows?C6e():lt.isMacOS?f6e():Q6e()),{platform:lt.platform,arch:lt.arch,isWindows:lt.isWindows,isMacOS:lt.isMacOS,isLinux:lt.isLinux})})}a(B6e,"getDetails");lt.getDetails=B6e});var hi=E(ie=>{"use strict";var I6e=ie&&ie.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),y6e=ie&&ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),S9=ie&&ie.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&I6e(e,t,A);return y6e(e,t),e},VJ=ie&&ie.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ie,"__esModule",{value:!0});ie.platform=ie.toPlatformPath=ie.toWin32Path=ie.toPosixPath=ie.markdownSummary=ie.summary=ie.getIDToken=ie.getState=ie.saveState=ie.group=ie.endGroup=ie.startGroup=ie.info=ie.notice=ie.warning=ie.error=ie.debug=ie.isDebug=ie.setFailed=ie.setCommandEcho=ie.setOutput=ie.getBooleanInput=ie.getMultilineInput=ie.getInput=ie.addPath=ie.setSecret=ie.exportVariable=ie.ExitCode=void 0;var Fs=v_(),nu=L_(),xg=hI(),WJ=S9(require("os")),w6e=S9(require("path")),b6e=wJ(),D9;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(D9||(ie.ExitCode=D9={}));function N6e(t,e){let A=(0,xg.toCommandValue)(e);if(process.env[t]=A,process.env.GITHUB_ENV||"")return(0,nu.issueFileCommand)("ENV",(0,nu.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("set-env",{name:t},A)}a(N6e,"exportVariable");ie.exportVariable=N6e;function R6e(t){(0,Fs.issueCommand)("add-mask",{},t)}a(R6e,"setSecret");ie.setSecret=R6e;function D6e(t){process.env.GITHUB_PATH||""?(0,nu.issueFileCommand)("PATH",t):(0,Fs.issueCommand)("add-path",{},t),process.env.PATH=`${t}${w6e.delimiter}${process.env.PATH}`}a(D6e,"addPath");ie.addPath=D6e;function x9(t,e){let A=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!A)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?A:A.trim()}a(x9,"getInput");ie.getInput=x9;function S6e(t,e){let A=x9(t,e).split(`
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(S6e,"getMultilineInput");ie.getMultilineInput=S6e;function x6e(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=x9(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(x6e,"getBooleanInput");ie.getBooleanInput=x6e;function v6e(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,nu.issueFileCommand)("OUTPUT",(0,nu.prepareKeyValueMessage)(t,e));process.stdout.write(VJ.EOL),(0,Fs.issueCommand)("set-output",{name:t},(0,xg.toCommandValue)(e))}a(v6e,"setOutput");ie.setOutput=v6e;function k6e(t){(0,Fs.issue)("echo",t?"on":"off")}a(k6e,"setCommandEcho");ie.setCommandEcho=k6e;function F6e(t){process.exitCode=D9.Failure,WJ(t)}a(F6e,"setFailed");ie.setFailed=F6e;function L6e(){return process.env.RUNNER_DEBUG==="1"}a(L6e,"isDebug");ie.isDebug=L6e;function U6e(t){(0,Fs.issueCommand)("debug",{},t)}a(U6e,"debug");ie.debug=U6e;function WJ(t,e={}){(0,Fs.issueCommand)("error",(0,xg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(WJ,"error");ie.error=WJ;function T6e(t,e={}){(0,Fs.issueCommand)("warning",(0,xg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(T6e,"warning");ie.warning=T6e;function M6e(t,e={}){(0,Fs.issueCommand)("notice",(0,xg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(M6e,"notice");ie.notice=M6e;function _6e(t){process.stdout.write(t+VJ.EOL)}a(_6e,"info");ie.info=_6e;function zJ(t){(0,Fs.issue)("group",t)}a(zJ,"startGroup");ie.startGroup=zJ;function jJ(){(0,Fs.issue)("endgroup")}a(jJ,"endGroup");ie.endGroup=jJ;function O6e(t,e){return JJ(this,void 0,void 0,function*(){zJ(t);let A;try{A=yield e()}finally{jJ()}return A})}a(O6e,"group");ie.group=O6e;function P6e(t,e){if(process.env.GITHUB_STATE||"")return(0,nu.issueFileCommand)("STATE",(0,nu.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("save-state",{name:t},(0,xg.toCommandValue)(e))}a(P6e,"saveState");ie.saveState=P6e;function q6e(t){return process.env[`STATE_${t}`]||""}a(q6e,"getState");ie.getState=q6e;function H6e(t){return JJ(this,void 0,void 0,function*(){return yield b6e.OidcClient.getIDToken(t)})}a(H6e,"getIDToken");ie.getIDToken=H6e;var Y6e=I9();Object.defineProperty(ie,"summary",{enumerable:!0,get:function(){return Y6e.summary}});var G6e=I9();Object.defineProperty(ie,"markdownSummary",{enumerable:!0,get:function(){return G6e.markdownSummary}});var v9=bJ();Object.defineProperty(ie,"toPosixPath",{enumerable:!0,get:function(){return v9.toPosixPath}});Object.defineProperty(ie,"toWin32Path",{enumerable:!0,get:function(){return v9.toWin32Path}});Object.defineProperty(ie,"toPlatformPath",{enumerable:!0,get:function(){return v9.toPlatformPath}});ie.platform=S9(GJ())});var u0=E(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.toCommandProperties=vg.toCommandValue=void 0;function J6e(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(J6e,"toCommandValue");vg.toCommandValue=J6e;function V6e(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(V6e,"toCommandProperties");vg.toCommandProperties=V6e});var $J=E(Ls=>{"use strict";var W6e=Ls&&Ls.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),z6e=Ls&&Ls.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),j6e=Ls&&Ls.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&W6e(e,t,A);return z6e(e,t),e};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.issue=Ls.issueCommand=void 0;var X6e=j6e(require("os")),ZJ=u0();function KJ(t,e,A){let r=new k9(t,e,A);process.stdout.write(r.toString()+X6e.EOL)}a(KJ,"issueCommand");Ls.issueCommand=KJ;function Z6e(t,e=""){KJ(t,{},e)}a(Z6e,"issue");Ls.issue=Z6e;var XJ="::",k9=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=XJ+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${$6e(i)}`)}}return e+=`${XJ}${K6e(this.message)}`,e}};function K6e(t){return ZJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(K6e,"escapeData");function $6e(t){return ZJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a($6e,"escapeProperty")});function WC(){return p0>g0.length-16&&(eV.default.randomFillSync(g0),p0=0),g0.slice(p0,p0+=16)}var eV,g0,p0,F9=Le(()=>{eV=Nr(require("crypto")),g0=new Uint8Array(256),p0=g0.length;a(WC,"rng")});var tV,AV=Le(()=>{tV=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function eSe(t){return typeof t=="string"&&tV.test(t)}var Il,zC=Le(()=>{AV();a(eSe,"validate");Il=eSe});fLine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(x6e,"getBooleanInput");ie.getBooleanInput=x6e;function v6e(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,nu.issueFileCommand)("OUTPUT",(0,nu.prepareKeyValueMessage)(t,e));process.stdout.write(WJ.EOL),(0,Fs.issueCommand)("set-output",{name:t},(0,xg.toCommandValue)(e))}a(v6e,"setOutput");ie.setOutput=v6e;function k6e(t){(0,Fs.issue)("echo",t?"on":"off")}a(k6e,"setCommandEcho");ie.setCommandEcho=k6e;function F6e(t){process.exitCode=D9.Failure,zJ(t)}a(F6e,"setFailed");ie.setFailed=F6e;function L6e(){return process.env.RUNNER_DEBUG==="1"}a(L6e,"isDebug");ie.isDebug=L6e;function U6e(t){(0,Fs.issueCommand)("debug",{},t)}a(U6e,"debug");ie.debug=U6e;function zJ(t,e={}){(0,Fs.issueCommand)("error",(0,xg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(zJ,"error");ie.error=zJ;function T6e(t,e={}){(0,Fs.issueCommand)("warning",(0,xg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(T6e,"warning");ie.warning=T6e;function M6e(t,e={}){(0,Fs.issueCommand)("notice",(0,xg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(M6e,"notice");ie.notice=M6e;function _6e(t){process.stdout.write(t+WJ.EOL)}a(_6e,"info");ie.info=_6e;function jJ(t){(0,Fs.issue)("group",t)}a(jJ,"startGroup");ie.startGroup=jJ;function XJ(){(0,Fs.issue)("endgroup")}a(XJ,"endGroup");ie.endGroup=XJ;function O6e(t,e){return VJ(this,void 0,void 0,function*(){jJ(t);let A;try{A=yield e()}finally{XJ()}return A})}a(O6e,"group");ie.group=O6e;function P6e(t,e){if(process.env.GITHUB_STATE||"")return(0,nu.issueFileCommand)("STATE",(0,nu.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("save-state",{name:t},(0,xg.toCommandValue)(e))}a(P6e,"saveState");ie.saveState=P6e;function q6e(t){return process.env[`STATE_${t}`]||""}a(q6e,"getState");ie.getState=q6e;function H6e(t){return VJ(this,void 0,void 0,function*(){return yield b6e.OidcClient.getIDToken(t)})}a(H6e,"getIDToken");ie.getIDToken=H6e;var Y6e=I9();Object.defineProperty(ie,"summary",{enumerable:!0,get:function(){return Y6e.summary}});var G6e=I9();Object.defineProperty(ie,"markdownSummary",{enumerable:!0,get:function(){return G6e.markdownSummary}});var v9=NJ();Object.defineProperty(ie,"toPosixPath",{enumerable:!0,get:function(){return v9.toPosixPath}});Object.defineProperty(ie,"toWin32Path",{enumerable:!0,get:function(){return v9.toWin32Path}});Object.defineProperty(ie,"toPlatformPath",{enumerable:!0,get:function(){return v9.toPlatformPath}});ie.platform=S9(JJ())});var u0=E(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.toCommandProperties=vg.toCommandValue=void 0;function J6e(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(J6e,"toCommandValue");vg.toCommandValue=J6e;function V6e(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(V6e,"toCommandProperties");vg.toCommandProperties=V6e});var eV=E(Ls=>{"use strict";var W6e=Ls&&Ls.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),z6e=Ls&&Ls.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),j6e=Ls&&Ls.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&W6e(e,t,A);return z6e(e,t),e};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.issue=Ls.issueCommand=void 0;var X6e=j6e(require("os")),KJ=u0();function $J(t,e,A){let r=new k9(t,e,A);process.stdout.write(r.toString()+X6e.EOL)}a($J,"issueCommand");Ls.issueCommand=$J;function Z6e(t,e=""){$J(t,{},e)}a(Z6e,"issue");Ls.issue=Z6e;var ZJ="::",k9=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=ZJ+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${$6e(i)}`)}}return e+=`${ZJ}${K6e(this.message)}`,e}};function K6e(t){return KJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(K6e,"escapeData");function $6e(t){return KJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a($6e,"escapeProperty")});function WC(){return p0>g0.length-16&&(tV.default.randomFillSync(g0),p0=0),g0.slice(p0,p0+=16)}var tV,g0,p0,F9=Le(()=>{tV=Nr(require("crypto")),g0=new Uint8Array(256),p0=g0.length;a(WC,"rng")});var AV,rV=Le(()=>{AV=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function eSe(t){return typeof t=="string"&&AV.test(t)}var Il,zC=Le(()=>{rV();a(eSe,"validate");Il=eSe});fLine truncated
\r
`),A9e=/\r\n/g,r9e=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Lg(t){KV.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=ZV(t,"maxHeaderPairs",2e3),this.maxHeaderSize=ZV(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new e9e(t9e),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(Lg,"HeaderParser");$Se(Lg,KV);Lg.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Lg.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Lg.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Lg.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(A9e),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=r9e.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};$V.exports=Lg});var lx=E((Ymt,AW)=>{"use strict";var cx=require("node:stream").Writable,i9e=require("node:util").inherits,n9e=ax(),tW=jV(),s9e=eW(),a9e=45,o9e=Buffer.from("-"),c9e=Buffer.from(`\r
`),l9e=a(function(){},"EMPTY_FN");function wa(t){if(!(this instanceof wa))return new wa(t);if(cx.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new s9e(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(wa,"Dicer");i9e(wa,cx);wa.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else cx.prototype.emit.apply(this,arguments)};wa.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new tW(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(c9e),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};wa.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};wa.prototype.setBoundary=function(t){let e=this;this._bparser=new n9e(`\r
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};wa.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",l9e),this._part.resume())};wa.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===a9e)++s,++this._dashes;else{this._dashes&&(i=o9e),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new tW(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};wa.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};AW.exports=wa});var I0=E((Jmt,iW)=>{"use strict";var rW=new TextDecoder("utf-8"),B0=new Map([["utf-8",rW],["utf8",rW]]);function d9e(t,e,A){if(t)if(B0.has(A))try{return B0.get(A).decode(Buffer.from(t,e))}catch{}else try{return B0.set(A,new TextDecoder(A)),B0.get(A).decode(Buffer.from(t,e))}catch{}return t}a(d9e,"decodeText");iW.exports=d9e});var dx=E((Wmt,aW)=>{"use strict";var y0=I0(),nW=/%([a-fA-F0-9]{2})/g;function sW(t,e){return String.fromCharCode(parseInt(e,16))}a(sW,"encodedReplacer");function u9e(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=y0(o.replace(nW,sW),"binary",r)),r=""):o.length&&(o=y0(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=y0(o.replace(nW,sW),"binary",r):o&&(o=y0(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(u9e,"parseParams");aW.exports=u9e});var cW=E((jmt,oW)=>{"use strict";oW.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var pW=E((Zmt,uW)=>{"use strict";var{Readable:dW}=require("node:stream"),{inherits:p9e}=require("node:util"),g9e=lx(),lW=dx(),h9e=I0(),E9e=cW(),au=Q0(),m9e=/^boundary$/i,C9e=/^form-data$/i,f9e=/^charset$/i,Q9e=/^filename$/i,B9e=/^name$/i;w0.detect=/^multipart\/form-data/i;function w0(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&m9e.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=au(s,"fieldSize",1*1024*1024),h=au(s,"fileSize",1/0),m=au(s,"files",1/0),f=au(s,"fields",1/0),B=au(s,"parts",1/0),b=au(s,"headerPairs",2e3),I=au(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new g9e(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",Ug),t.hitPartsLimit=!0,t.emit("partsLimit"),Ug(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=lW(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(f9e.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=lW(L["content-disposition"][0]),!C9e.test(_[0 Line truncated
`))}a(bW,"isValidHeaderValue");function lxe(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(Z9e.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(lxe,"setRequestReferrerPolicyOnRedirect");function dxe(){return"allowed"}a(dxe,"crossOriginResourcePolicyCheck");function uxe(){return"success"}a(uxe,"corsCheck");function pxe(){return"success"}a(pxe,"TAOCheck");function gxe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(gxe,"appendFetchMetadata");function hxe(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&fx(t.origin)&&!fx(tf(t))&&(e=null);break;case"same-origin":N0(t,tf(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(hxe,"appendRequestOriginHeader");function Exe(t){return $9e.now()}a(Exe,"coarsenedSharedCurrentTime");function mxe(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}}a(mxe,"createOpaqueTimingInfo");function Cxe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(Cxe,"makePolicyContainer");function fxe(t){return{referrerPolicy:t.referrerPolicy}}a(fxe,"clonePolicyContainer");function Qxe(t){let e=t.referrerPolicy;Og(e);let A=null;if(t.referrer==="client"){let o=K9e();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=mx(A),i=mx(A,!0);r.toString().length>4096&&(r=i);let n=N0(t,r),s=$C(r)&&!$C(t.url);switch(e){case"origin":return i??mx(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=tf(t);return N0(r,o)?r:$C(r)&&!$C(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(Qxe,"determineRequestsReferrer");function mx(t,e){return Og(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(mx,"stripURLForReferrer");function $C(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a($C,"isURLPotentiallyTrustworthy");function Bxe(t,e){if(ef===void 0)return!0;let A=yxe(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=ef.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=ef.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(Bxe,"bytesMatch");var Ixe=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function yxe(t){let e=[],A=!0,r=ef.getHashes();for(let i of t.split(" ")){A=!1;let n=Ixe.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(yxe,"parseMetadata");function wxe(t){}a(wxe,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function N0(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(N0,"sameOrigin");function bxe(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(bxe,"createDeferredPromise");function Nxe(t){return t.controller.state==="aborted"}a(Nxe,"isAborted");function Rxe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Rxe,"isCancelled");function Dxe(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(Dxe,"normalizeMethod");function Sxe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Og(typeof e=="string"),e}a(Sxe,"serializeJavascriptValueToJSONString");var xxe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function vxe(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.len Line truncated
`||t===" "||t===" "}a(kW,"isHTTPWhiteSpace");function Qx(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&kW(t[r]);r++);if(A)for(;i>0&&kW(t[i]);i--);return t.slice(r,i+1)}a(Qx,"removeHTTPWhitespace");function FW(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(FW,"isASCIIWhitespace");function Zxe(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&FW(t[r]);r++);if(A)for(;i>0&&FW(t[i]);i--);return t.slice(r,i+1)}a(Zxe,"removeASCIIWhitespace");MW.exports={dataURLProcessor:Wxe,URLSerializer:LW,collectASequenceOfCodePoints:S0,collectASequenceOfCodePointsFast:Pg,stringPercentDecode:UW,parseMIMEType:Bx,collectAnHTTPQuotedString:TW,serializeAMimeType:Xxe}});var x0=E((hCt,HW)=>{"use strict";var{Blob:PW,File:_W}=require("buffer"),{types:Ix}=require("util"),{kState:Jn}=uc(),{isBlobLike:qW}=Ts(),{webidl:wt}=Ui(),{parseMIMEType:Kxe,serializeAMimeType:$xe}=ba(),{kEnumerableProperty:OW}=dt(),Af=class t extends PW{static{a(this,"File")}constructor(e,A,r={}){wt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=wt.converters["sequence<BlobPart>"](e),A=wt.converters.USVString(A),r=wt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=Kxe(n),n==="failure"){n="";break e}n=$xe(n).toLowerCase()}s=r.lastModified}super(eve(e,r),{type:n}),this[Jn]={name:i,lastModified:s,type:n}}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get type(){return wt.brandCheck(this,t),this[Jn].type}},yx=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Jn]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return wt.brandCheck(this,t),this[Jn].blobLike.stream(...e)}arrayBuffer(...e){return wt.brandCheck(this,t),this[Jn].blobLike.arrayBuffer(...e)}slice(...e){return wt.brandCheck(this,t),this[Jn].blobLike.slice(...e)}text(...e){return wt.brandCheck(this,t),this[Jn].blobLike.text(...e)}get size(){return wt.brandCheck(this,t),this[Jn].blobLike.size}get type(){return wt.brandCheck(this,t),this[Jn].blobLike.type}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(Af.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:OW,lastModified:OW});wt.converters.Blob=wt.interfaceConverter(PW);wt.converters.BlobPart=function(t,e){if(wt.util.Type(t)==="Object"){if(qW(t))return wt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ix.isAnyArrayBuffer(t))return wt.converters.BufferSource(t,e)}return wt.converters.USVString(t,e)};wt.converters["sequence<BlobPart>"]=wt.sequenceConverter(wt.converters.BlobPart);wt.converters.FilePropertyBag=wt.dictionaryConverter([{key:"lastModified",converter:wt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:wt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=wt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function eve(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=tve(i)),A.push(new TextEncoder().encode(i))}else Ix.isAnyArrayBuffer(r)||Ix.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):qW(r)&&A.push(r);return A}a(eve,"processBlobParts");function tve(t){let e=`
`),A9e=/\r\n/g,r9e=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Lg(t){$V.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=KV(t,"maxHeaderPairs",2e3),this.maxHeaderSize=KV(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new e9e(t9e),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(Lg,"HeaderParser");$Se(Lg,$V);Lg.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Lg.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Lg.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Lg.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(A9e),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=r9e.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};eW.exports=Lg});var lx=E((Ymt,rW)=>{"use strict";var cx=require("node:stream").Writable,i9e=require("node:util").inherits,n9e=ax(),AW=XV(),s9e=tW(),a9e=45,o9e=Buffer.from("-"),c9e=Buffer.from(`\r
`),l9e=a(function(){},"EMPTY_FN");function wa(t){if(!(this instanceof wa))return new wa(t);if(cx.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new s9e(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(wa,"Dicer");i9e(wa,cx);wa.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else cx.prototype.emit.apply(this,arguments)};wa.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new AW(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(c9e),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};wa.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};wa.prototype.setBoundary=function(t){let e=this;this._bparser=new n9e(`\r
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};wa.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",l9e),this._part.resume())};wa.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===a9e)++s,++this._dashes;else{this._dashes&&(i=o9e),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new AW(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};wa.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};rW.exports=wa});var I0=E((Jmt,nW)=>{"use strict";var iW=new TextDecoder("utf-8"),B0=new Map([["utf-8",iW],["utf8",iW]]);function d9e(t,e,A){if(t)if(B0.has(A))try{return B0.get(A).decode(Buffer.from(t,e))}catch{}else try{return B0.set(A,new TextDecoder(A)),B0.get(A).decode(Buffer.from(t,e))}catch{}return t}a(d9e,"decodeText");nW.exports=d9e});var dx=E((Wmt,oW)=>{"use strict";var y0=I0(),sW=/%([a-fA-F0-9]{2})/g;function aW(t,e){return String.fromCharCode(parseInt(e,16))}a(aW,"encodedReplacer");function u9e(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=y0(o.replace(sW,aW),"binary",r)),r=""):o.length&&(o=y0(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=y0(o.replace(sW,aW),"binary",r):o&&(o=y0(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(u9e,"parseParams");oW.exports=u9e});var lW=E((jmt,cW)=>{"use strict";cW.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var gW=E((Zmt,pW)=>{"use strict";var{Readable:uW}=require("node:stream"),{inherits:p9e}=require("node:util"),g9e=lx(),dW=dx(),h9e=I0(),E9e=lW(),au=Q0(),m9e=/^boundary$/i,C9e=/^form-data$/i,f9e=/^charset$/i,Q9e=/^filename$/i,B9e=/^name$/i;w0.detect=/^multipart\/form-data/i;function w0(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&m9e.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=au(s,"fieldSize",1*1024*1024),h=au(s,"fileSize",1/0),m=au(s,"files",1/0),f=au(s,"fields",1/0),B=au(s,"parts",1/0),b=au(s,"headerPairs",2e3),I=au(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new g9e(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",Ug),t.hitPartsLimit=!0,t.emit("partsLimit"),Ug(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=dW(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(f9e.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=dW(L["content-disposition"][0]),!C9e.test(_[0 Line truncated
`))}a(NW,"isValidHeaderValue");function lxe(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(Z9e.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(lxe,"setRequestReferrerPolicyOnRedirect");function dxe(){return"allowed"}a(dxe,"crossOriginResourcePolicyCheck");function uxe(){return"success"}a(uxe,"corsCheck");function pxe(){return"success"}a(pxe,"TAOCheck");function gxe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(gxe,"appendFetchMetadata");function hxe(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&fx(t.origin)&&!fx(tf(t))&&(e=null);break;case"same-origin":N0(t,tf(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(hxe,"appendRequestOriginHeader");function Exe(t){return $9e.now()}a(Exe,"coarsenedSharedCurrentTime");function mxe(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}}a(mxe,"createOpaqueTimingInfo");function Cxe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(Cxe,"makePolicyContainer");function fxe(t){return{referrerPolicy:t.referrerPolicy}}a(fxe,"clonePolicyContainer");function Qxe(t){let e=t.referrerPolicy;Og(e);let A=null;if(t.referrer==="client"){let o=K9e();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=mx(A),i=mx(A,!0);r.toString().length>4096&&(r=i);let n=N0(t,r),s=$C(r)&&!$C(t.url);switch(e){case"origin":return i??mx(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=tf(t);return N0(r,o)?r:$C(r)&&!$C(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(Qxe,"determineRequestsReferrer");function mx(t,e){return Og(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(mx,"stripURLForReferrer");function $C(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a($C,"isURLPotentiallyTrustworthy");function Bxe(t,e){if(ef===void 0)return!0;let A=yxe(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=ef.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=ef.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(Bxe,"bytesMatch");var Ixe=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function yxe(t){let e=[],A=!0,r=ef.getHashes();for(let i of t.split(" ")){A=!1;let n=Ixe.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(yxe,"parseMetadata");function wxe(t){}a(wxe,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function N0(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(N0,"sameOrigin");function bxe(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(bxe,"createDeferredPromise");function Nxe(t){return t.controller.state==="aborted"}a(Nxe,"isAborted");function Rxe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Rxe,"isCancelled");function Dxe(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(Dxe,"normalizeMethod");function Sxe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Og(typeof e=="string"),e}a(Sxe,"serializeJavascriptValueToJSONString");var xxe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function vxe(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.len Line truncated
`||t===" "||t===" "}a(FW,"isHTTPWhiteSpace");function Qx(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&FW(t[r]);r++);if(A)for(;i>0&&FW(t[i]);i--);return t.slice(r,i+1)}a(Qx,"removeHTTPWhitespace");function LW(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(LW,"isASCIIWhitespace");function Zxe(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&LW(t[r]);r++);if(A)for(;i>0&&LW(t[i]);i--);return t.slice(r,i+1)}a(Zxe,"removeASCIIWhitespace");_W.exports={dataURLProcessor:Wxe,URLSerializer:UW,collectASequenceOfCodePoints:S0,collectASequenceOfCodePointsFast:Pg,stringPercentDecode:TW,parseMIMEType:Bx,collectAnHTTPQuotedString:MW,serializeAMimeType:Xxe}});var x0=E((hCt,YW)=>{"use strict";var{Blob:qW,File:OW}=require("buffer"),{types:Ix}=require("util"),{kState:Jn}=uc(),{isBlobLike:HW}=Ts(),{webidl:wt}=Ui(),{parseMIMEType:Kxe,serializeAMimeType:$xe}=ba(),{kEnumerableProperty:PW}=dt(),Af=class t extends qW{static{a(this,"File")}constructor(e,A,r={}){wt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=wt.converters["sequence<BlobPart>"](e),A=wt.converters.USVString(A),r=wt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=Kxe(n),n==="failure"){n="";break e}n=$xe(n).toLowerCase()}s=r.lastModified}super(eve(e,r),{type:n}),this[Jn]={name:i,lastModified:s,type:n}}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get type(){return wt.brandCheck(this,t),this[Jn].type}},yx=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Jn]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return wt.brandCheck(this,t),this[Jn].blobLike.stream(...e)}arrayBuffer(...e){return wt.brandCheck(this,t),this[Jn].blobLike.arrayBuffer(...e)}slice(...e){return wt.brandCheck(this,t),this[Jn].blobLike.slice(...e)}text(...e){return wt.brandCheck(this,t),this[Jn].blobLike.text(...e)}get size(){return wt.brandCheck(this,t),this[Jn].blobLike.size}get type(){return wt.brandCheck(this,t),this[Jn].blobLike.type}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(Af.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:PW,lastModified:PW});wt.converters.Blob=wt.interfaceConverter(qW);wt.converters.BlobPart=function(t,e){if(wt.util.Type(t)==="Object"){if(HW(t))return wt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ix.isAnyArrayBuffer(t))return wt.converters.BufferSource(t,e)}return wt.converters.USVString(t,e)};wt.converters["sequence<BlobPart>"]=wt.sequenceConverter(wt.converters.BlobPart);wt.converters.FilePropertyBag=wt.dictionaryConverter([{key:"lastModified",converter:wt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:wt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=wt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function eve(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=tve(i)),A.push(new TextEncoder().encode(i))}else Ix.isAnyArrayBuffer(r)||Ix.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):HW(r)&&A.push(r);return A}a(eve,"processBlobParts");function tve(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}a(tve,"convertLineEndingsNative");function Ave(t){return _W&&t instanceof _W||t instanceof Af||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(Ave,"isFileLike");HW.exports={File:Af,FileLike:yx,isFileLike:Ave}});var k0=E((mCt,WW)=>{"use strict";var{isBlobLike:v0,toUSVString:rve,makeIterator:wx}=Ts(),{kState:Ei}=uc(),{File:VW,FileLike:YW,isFileLike:ive}=x0(),{webidl:Lt}=Ui(),{Blob:nve,File:bx}=require("buffer"),GW=bx??VW,qg=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Lt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Ei]=[]}append(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!v0(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=v0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?Lt.converters.USVString(r):void 0;let i=JW(e,A,r);this[Ei].push(i)}delete(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Lt.converters.USVString(e),this[Ei]=this[Ei].filter(A=>A.name!==e)}get(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Lt.converters.USVString(e);let A=this[Ei].findIndex(r=>r.name===e);return A===-1?null:this[Ei][A].value}getAll(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Lt.converters.USVString(e),this[Ei].filter(A=>A.name===e).map(A=>A.value)}has(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Lt.converters.USVString(e),this[Ei].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!v0(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=v0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?rve(r):void 0;let i=JW(e,A,r),n=this[Ei].findIndex(s=>s.name===e);n!==-1?this[Ei]=[...this[Ei].slice(0,n),i,...this[Ei].slice(n+1).filter(s=>s.name!==e)]:this[Ei].push(i)}entries(){return Lt.brandCheck(this,t),wx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Lt.brandCheck(this,t),wx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key")}values(){return Lt.brandCheck(this,t),wx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};qg.prototype[Symbol.iterator]=qg.prototype.entries;Object.defineProperties(qg.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function JW(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(ive(e)||(e=e instanceof nve?new GW([e],"blob",{type:e.type}):new YW(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=bx&&e instanceof bx||e instanceof VW?new GW([e],A,r):new YW(e,A,r)}return{name:t,value:e}}a(JW,"makeEntry");WW.exports={FormData:qg}});var rf=E((fCt,Az)=>{"use strict";var sve=QW(),Hg=dt(),{ReadableStreamFrom:ave,isBlobLike:zW,isReadableStreamLike:ove,readableStreamClose:cve,createDeferredPromise:lve,fullyReadBody:dve}=Ts(),{FormData:jW}=k0(),{kState:gc}=uc(),{webidl:Nx}=Ui(),{DOMException:KW,structuredClone:uve}=Nl(),{Blob:pve,File:gve}=require("buffer"),{kBodyUsed:hve}=hA(),Rx=require("assert"),{isErrored:Eve}=dt(),{isUint8Array:$W,isArrayBuffer:mve}=require("util/types"),{File:Cve}=x0(),{parseMIMEType:fve,serializeAMimeType:Qve}=ba(),pc=globalThis.ReadableStream,XW=gve??Cve;function ez(t,e=!1){pc||(pc=require("stream/web").ReadableStream);let A=null;t instanceof pc?A=t:zW(t)?A=t.stream():A=new pc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>cve(c))},start(){},type:void 0}),Rx(ove(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(mve(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Hg.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`),t.replace(/\r?\n/g,e)}a(tve,"convertLineEndingsNative");function Ave(t){return OW&&t instanceof OW||t instanceof Af||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(Ave,"isFileLike");YW.exports={File:Af,FileLike:yx,isFileLike:Ave}});var k0=E((mCt,zW)=>{"use strict";var{isBlobLike:v0,toUSVString:rve,makeIterator:wx}=Ts(),{kState:Ei}=uc(),{File:WW,FileLike:GW,isFileLike:ive}=x0(),{webidl:Lt}=Ui(),{Blob:nve,File:bx}=require("buffer"),JW=bx??WW,qg=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Lt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Ei]=[]}append(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!v0(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=v0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?Lt.converters.USVString(r):void 0;let i=VW(e,A,r);this[Ei].push(i)}delete(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Lt.converters.USVString(e),this[Ei]=this[Ei].filter(A=>A.name!==e)}get(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Lt.converters.USVString(e);let A=this[Ei].findIndex(r=>r.name===e);return A===-1?null:this[Ei][A].value}getAll(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Lt.converters.USVString(e),this[Ei].filter(A=>A.name===e).map(A=>A.value)}has(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Lt.converters.USVString(e),this[Ei].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!v0(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=v0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?rve(r):void 0;let i=VW(e,A,r),n=this[Ei].findIndex(s=>s.name===e);n!==-1?this[Ei]=[...this[Ei].slice(0,n),i,...this[Ei].slice(n+1).filter(s=>s.name!==e)]:this[Ei].push(i)}entries(){return Lt.brandCheck(this,t),wx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Lt.brandCheck(this,t),wx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key")}values(){return Lt.brandCheck(this,t),wx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};qg.prototype[Symbol.iterator]=qg.prototype.entries;Object.defineProperties(qg.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function VW(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(ive(e)||(e=e instanceof nve?new JW([e],"blob",{type:e.type}):new GW(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=bx&&e instanceof bx||e instanceof WW?new JW([e],A,r):new GW(e,A,r)}return{name:t,value:e}}a(VW,"makeEntry");zW.exports={FormData:qg}});var rf=E((fCt,rz)=>{"use strict";var sve=BW(),Hg=dt(),{ReadableStreamFrom:ave,isBlobLike:jW,isReadableStreamLike:ove,readableStreamClose:cve,createDeferredPromise:lve,fullyReadBody:dve}=Ts(),{FormData:XW}=k0(),{kState:gc}=uc(),{webidl:Nx}=Ui(),{DOMException:$W,structuredClone:uve}=Nl(),{Blob:pve,File:gve}=require("buffer"),{kBodyUsed:hve}=hA(),Rx=require("assert"),{isErrored:Eve}=dt(),{isUint8Array:ez,isArrayBuffer:mve}=require("util/types"),{File:Cve}=x0(),{parseMIMEType:fve,serializeAMimeType:Qve}=ba(),pc=globalThis.ReadableStream,ZW=gve??Cve;function tz(t,e=!1){pc||(pc=require("stream/web").ReadableStream);let A=null;t instanceof pc?A=t:jW(t)?A=t.stream():A=new pc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>cve(c))},start(){},type:void 0}),Rx(ove(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(mve(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Hg.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let d=a(B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(B=>B.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=new TextEncoder,g=[],h=new Uint8Array([13,10]);n=0;let m=!1;for(let[B,b]of t)if(typeof b=="string"){let I=p.encode(l+`; name="${d(u(B))}"\r
\r
@@ -75,25 +75,25 @@ ${u(b)}\r
`);g.push(I),n+=I.byteLength}else{let I=p.encode(`${l}; name="${d(u(B))}"`+(b.name?`; filename="${d(b.name)}"`:"")+`\r
Content-Type: ${b.type||"application/octet-stream"}\r
\r
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(zW(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Hg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof pc?t:ave(t)}if((typeof i=="string"||Hg.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new pc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):Eve(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(ez,"extractBody");function Bve(t,e=!1){return pc||(pc=require("stream/web").ReadableStream),t instanceof pc&&(Rx(!Hg.isDisturbed(t),"The body has already been consumed."),Rx(!t.locked,"The stream is locked.")),ez(t,e)}a(Bve,"safelyExtractBody");function Ive(t){let[e,A]=t.stream.tee(),r=uve(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(Ive,"cloneBody");async function*ZW(t){if(t)if($W(t))yield t;else{let e=t.stream;if(Hg.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[hve]=!0,yield*e}}a(ZW,"consumeBody");function Dx(t){if(t.aborted)throw new KW("The operation was aborted.","AbortError")}a(Dx,"throwIfAborted");function yve(t){return{blob(){return F0(this,A=>{let r=Rve(this);return r==="failure"?r="":r&&(r=Qve(r)),new pve([A],{type:r})},t)},arrayBuffer(){return F0(this,A=>new Uint8Array(A).buffer,t)},text(){return F0(this,tz,t)},json(){return F0(this,Nve,t)},async formData(){Nx.brandCheck(this,t),Dx(this[gc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new jW,n;try{n=new sve({headers:r,preservePath:!0})}catch(o){throw new KW(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new XW(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new XW(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of ZW(this[gc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of ZW(this[gc].body)){if(!$W(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new jW;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),Dx(this[gc]),Nx.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(yve,"bodyMixinMethods");function wve(t){Object.assign(t.prototype,yve(t))}a(wve,"mixinBody");async function F0(t,e,A){if(Nx.brandCheck(t,A),Dx(t[gc]),bve(t[gc].body))throw new TypeError("Body is unusable");let r=lve(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[gc].body==null?(n(new Uint8Array),r.promise):(await dve(t[gc].body,n,i),r.promise)}a(F0,"specConsumeBody");function bve(t){return t!=null&&(t.stream.locked||Hg.isDisturbed(t.stream))}a(bve,"bodyUnusable");function tz(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(tz,"utf8DecodeBytes");function Nve(t){return JSON.parse(tz(t))}a(Nve,"parseJSONFromBytes");function Rve(t){let{headersList:e}=t[gc],A=e.get("content-type");return A===null?"failure":fve(A)}a(Rve,"bodyMimeType");Az.exports={extractBody:ez,safelyExtractBody:Bve,cloneBody:Ive,mixinBody:wve}});var sz=E((BCt,nz)=>{"use strict";var{InvalidArgumentError:Zt,NotSupportedError:Dve}=Xt(),hc=require("assert"),{kHTTP2BuildRequest:Sve,kHTTP2CopyHeaders:xve,kHTTP1BuildRequest:vve}=hA(),Vn=dt(),rz=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,iz=/[^\t\x20-\x7e\x80-\xff]/,kve=/[^\u0021-\u00ff]/,Ec=Symbol("handler"),ar={},Sx;try{let t=require("diagnostics_channel");ar.create=t.channel("undici:request:create"),ar.bodySent=t.channel("undici:request:bodySent"),ar.headers=t.channel("undici:request:headers"),ar.trailers=t.channel("undici:request:trailers"),ar.error=t.channel("undici:request:error")}catch{ar.create={hasSubscribers:!1},ar.bodySent={hasSubscribers:!1},ar.headers={hasSubscribers:!1},ar.trailers={hasSubscribers:!1},aLine truncated
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(jW(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Hg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof pc?t:ave(t)}if((typeof i=="string"||Hg.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new pc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):Eve(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(tz,"extractBody");function Bve(t,e=!1){return pc||(pc=require("stream/web").ReadableStream),t instanceof pc&&(Rx(!Hg.isDisturbed(t),"The body has already been consumed."),Rx(!t.locked,"The stream is locked.")),tz(t,e)}a(Bve,"safelyExtractBody");function Ive(t){let[e,A]=t.stream.tee(),r=uve(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(Ive,"cloneBody");async function*KW(t){if(t)if(ez(t))yield t;else{let e=t.stream;if(Hg.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[hve]=!0,yield*e}}a(KW,"consumeBody");function Dx(t){if(t.aborted)throw new $W("The operation was aborted.","AbortError")}a(Dx,"throwIfAborted");function yve(t){return{blob(){return F0(this,A=>{let r=Rve(this);return r==="failure"?r="":r&&(r=Qve(r)),new pve([A],{type:r})},t)},arrayBuffer(){return F0(this,A=>new Uint8Array(A).buffer,t)},text(){return F0(this,Az,t)},json(){return F0(this,Nve,t)},async formData(){Nx.brandCheck(this,t),Dx(this[gc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new XW,n;try{n=new sve({headers:r,preservePath:!0})}catch(o){throw new $W(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new ZW(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new ZW(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of KW(this[gc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of KW(this[gc].body)){if(!ez(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new XW;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),Dx(this[gc]),Nx.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(yve,"bodyMixinMethods");function wve(t){Object.assign(t.prototype,yve(t))}a(wve,"mixinBody");async function F0(t,e,A){if(Nx.brandCheck(t,A),Dx(t[gc]),bve(t[gc].body))throw new TypeError("Body is unusable");let r=lve(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[gc].body==null?(n(new Uint8Array),r.promise):(await dve(t[gc].body,n,i),r.promise)}a(F0,"specConsumeBody");function bve(t){return t!=null&&(t.stream.locked||Hg.isDisturbed(t.stream))}a(bve,"bodyUnusable");function Az(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(Az,"utf8DecodeBytes");function Nve(t){return JSON.parse(Az(t))}a(Nve,"parseJSONFromBytes");function Rve(t){let{headersList:e}=t[gc],A=e.get("content-type");return A===null?"failure":fve(A)}a(Rve,"bodyMimeType");rz.exports={extractBody:tz,safelyExtractBody:Bve,cloneBody:Ive,mixinBody:wve}});var az=E((BCt,sz)=>{"use strict";var{InvalidArgumentError:Zt,NotSupportedError:Dve}=Xt(),hc=require("assert"),{kHTTP2BuildRequest:Sve,kHTTP2CopyHeaders:xve,kHTTP1BuildRequest:vve}=hA(),Vn=dt(),iz=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,nz=/[^\t\x20-\x7e\x80-\xff]/,kve=/[^\u0021-\u00ff]/,Ec=Symbol("handler"),ar={},Sx;try{let t=require("diagnostics_channel");ar.create=t.channel("undici:request:create"),ar.bodySent=t.channel("undici:request:bodySent"),ar.headers=t.channel("undici:request:headers"),ar.trailers=t.channel("undici:request:trailers"),ar.error=t.channel("undici:request:error")}catch{ar.create={hasSubscribers:!1},ar.bodySent={hasSubscribers:!1},ar.headers={hasSubscribers:!1},ar.trailers={hasSubscribers:!1},aLine truncated
`),this.body=f.stream,this.contentLength=f.length}else Vn.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
`);Vn.validateHandler(m,r,l),this.servername=Vn.getServerName(this.host),this[Ec]=m,ar.create.hasSubscribers&&ar.create.publish({request:this})}onBodySent(e){if(this[Ec].onBodySent)try{this[Ec].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){ar.bodySent.hasSubscribers&&ar.bodySent.publish({request:this})}onConnect(e){return hc(!this.aborted),hc(!this.completed),this[Ec].onConnect(e)}onHeaders(e,A,r,i){return hc(!this.aborted),hc(!this.completed),ar.headers.hasSubscribers&&ar.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[Ec].onHeaders(e,A,r,i)}onData(e){return hc(!this.aborted),hc(!this.completed),this[Ec].onData(e)}onUpgrade(e,A,r){return hc(!this.aborted),hc(!this.completed),this[Ec].onUpgrade(e,A,r)}onComplete(e){return hc(!this.aborted),this.completed=!0,ar.trailers.hasSubscribers&&ar.trailers.publish({request:this,trailers:e}),this[Ec].onComplete(e)}onError(e){if(ar.error.hasSubscribers&&ar.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Ec].onError(e)}addHeader(e,A){return nf(this,e,A),this}static[vve](e,A,r){return new t(e,A,r)}static[Sve](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new Zt("headers array must be even");for(let s=0;s<i.length;s+=2)nf(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];nf(n,c,i[c],!0)}}else if(i!=null)throw new Zt("headers must be an object or an array");return n}static[xve](e){let A=e.split(`\r
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function ou(t,e,A){if(e&&typeof e=="object")throw new Zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",iz.exec(e)!==null)throw new Zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}a(ou,"processHeaderValue");function nf(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new Zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(iz.exec(A)!==null)throw new Zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new Zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=ou(e,A,r):t.headers+=ou(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new Dve("expect header not supported");if(rz.exec(e)===null)throw new Zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${ou(e,A[i],r)}`:t.headers[e]=ou(e,A[i],r):t.headers+=ou(e,A[i]);else r?t.headers[e]=ou(e,A,r):t.headers+=ou(e,A)}}}a(nf,"processHeader");nz.exports=xx});var L0=E((yCt,az)=>{"use strict";var Fve=require("events"),vx=class extends Fve{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};az.exports=vx});var af=E((bCt,oz)=>{"use strict";var Lve=L0(),{ClientDestroyedError:kx,ClientClosedError:Uve,InvalidArgumentError:Yg}=Xt(),{kDestroy:Tve,kClose:Mve,kDispatch:Fx,kInterceptors:cu}=hA(),Gg=Symbol("destroyed"),sf=Symbol("closed"),mc=Symbol("onDestroyed"),Jg=Symbol("onClosed"),U0=Symbol("Intercepted Dispatch"),Lx=class extends Lve{static{a(this,"DispatcherBase")}constructor(){super(),this[Gg]=!1,this[mc]=null,this[sf]=!1,this[Jg]=[]}get destroyed(){return this[Gg]}get closed(){return this[sf]}get interceptors(){return this[cu]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[cu][A]!="function")throw new Yg("interceptor must be an function")}this[cu]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new Yg("invalid callback");if(this[Gg]){queueMicrotask(()=>e(new kx,null));return}if(this[sf]){this[Jg]?this[Jg].push(e):queueMicrotask(()=>e(null,null));return}this[sf]=!0,this[Jg].push(e);let A=a(()=>{let r=this[Jg];this[Jg]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[Mve]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new Yg("invalid callback");if(this[Gg]){this[mc]?this[mc].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new kx),this[Gg]=!0,this[mc]=this[mc]||[],this[mc].push(A);let r=a(()=>{let i=this[mc];this[mc]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[Tve](e).then(()=>{queueMicrotask(r)})}[U0](e,A){if(!this[cu]||this[cu].length===0)return this[U0]=this[Fx],this[Fx](e,A);let r=this[Fx].bind(this);for(let i=this[cu].length-1;i>=0;i--)r=this[cu][i](r);return this[U0]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Yg("handler must be an object");try{if(!e||typeof e!="object")throw new Yg("opts must be an object.");if(this[Gg]||this[mc])throw new kx;if(this[sf])throw new Uve;return this[U0](e,A)}catch(r){if(typeof A.onError!="function")throw new Yg("invalid onError method");return A.onError(r),!1}}};oz.exports=Lx});var of=E((SCt,dz)=>{"use strict";var _ve=require("net"),cz=require("assert"),lz=dt(),{InvalidArgumentError:Ove,ConnectTimeoutError:Pve}=Xt(),Ux,Tx;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Tx=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:Tx=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function qve({allowH2:t,maxCachedSessi Line truncated
`,this[Dz]=c??3e5,this[Rz]=i??3e5,this[gf]=b??!0,this[m3e]=C,this[hf]=N,this[Dl]=null,this[xz]=w>-1?w:-1,this[go]="h1",this[zn]=null,this[Y0]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[vz]=`${this[Kr].hostname}${this[Kr].port?`:${this[Kr].port}`:""}`,this[aA]=[],this[oA]=0,this[Wn]=0}get pipelining(){return this[xl]}set pipelining(e){this[xl]=e,jn(this,!0)}get[uu](){return this[aA].length-this[Wn]}get[wA](){return this[Wn]-this[oA]}get[du](){return this[aA].length-this[oA]}get[E3e](){return!!this[kA]&&!this[zg]&&!this[kA].destroyed}get[Gx](){let e=this[kA];return e&&(e[Ti]||e[fc]||e[Xg])||this[du]>=(this[xl]||1)||this[uu]>0}[h3e](e){Uz(this),this.once("connect",e)}[Q3e](e,A){let r=e.origin||this[Kr].origin,i=this[go]==="h2"?Yx[I3e](r,e,A):Yx[w3e](r,e,A);return this[aA].push(i),this[lu]||(ge.bodyLength(i.body)==null&&ge.isIterable(i.body)?(this[lu]=1,process.nextTick(jn,this)):jn(this,!0)),this[lu]&&this[Sl]!==2&&this[Gx]&&(this[Sl]=2),this[Sl]<2}async[C3e](){return new Promise(e=>{this[du]?this[Dl]=e:e(null)})}async[f3e](e){return new Promise(A=>{let r=this[aA].splice(this[Wn]);for(let n=0;n<r.length;n++){let s=r[n];ei(this,s,e)}let i=a(()=>{this[Dl]&&(this[Dl](),this[Dl]=null),A()},"callback");this[zn]!=null&&(ge.destroy(this[zn],e),this[zn]=null,this[Y0]=null),this[kA]?ge.destroy(this[kA].on("close",i),e):queueMicrotask(i),jn(this)})}};function k3e(t){te(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kA][$r]=t,W0(this[po],t)}a(k3e,"onHttp2SessionError");function F3e(t,e,A){let r=new uo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[kA][$r]=r,W0(this[po],r))}a(F3e,"onHttp2FrameError");function L3e(){ge.destroy(this,new jg("other side closed")),ge.destroy(this[kA],new jg("other side closed"))}a(L3e,"onHttp2SessionEnd");function U3e(t){let e=this[po],A=new uo(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[kA]=null,e[zn]=null,e.destroyed){te(this[uu]===0);let r=e[aA].splice(e[oA]);for(let i=0;i<r.length;i++){let n=r[i];ei(this,n,A)}}else if(e[wA]>0){let r=e[aA][e[oA]];e[aA][e[oA]++]=null,ei(e,r,A)}e[Wn]=e[oA],te(e[wA]===0),e.emit("disconnect",e[Kr],[e],A),jn(e)}a(U3e,"onHTTP2GoAway");var oo=pz(),T3e=_0(),M3e=Buffer.alloc(0);async function _3e(){let t=process.env.JEST_WORKER_ID?Px():void 0,e;try{e=await WebAssembly.compile(Buffer.from(Qz(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Px(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onStatus(new O0(co.buffer,n,i))||0},wasm_on_message_begin:A=>(te.strictEqual(Er.ptr,A),Er.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onHeaderField(new O0(co.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onHeaderValue(new O0(co.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(te.strictEqual(Er.ptr,A),Er.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onBody(new O0(co.buffer,n,i))||0},wasm_on_message_complete:A=>(te.strictEqual(Er.ptr,A),Er.onMessageComplete()||0)}})}a(_3e,"lazyllhttp");var Hx=null,Wx=_3e();Wx.catch();var Er=null,co=null,P0=0,lo=null,Zg=1,H0=2,zx=3,jx=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){te(Number.isFinite(e[q0])&&e[q0]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(oo.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[q0],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[xz]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(qx.clearTimeout(this.timeout),e?(this.timeout=qx.setTimeout(O3e,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(te(this.ptr!=null),te(Er==null),this.llhttp.llhttp_resume(this.ptr),te(this.timeoutType===H0),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||M3e),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){te(this.ptr!=null),te(Er==null),te(!this.paused);let{socket:A,llhttp:r}=this;e.length>P0&&(lo&&r.free(lo),P0=Math.ceil(e.length/4096)*4096,lo=r.malloc(P0)),new Uint8Array(r.memory.buffer,lo,P0).set(e);try{let i;try{co=e,Er=this,i=r.llhttp_execute(this.ptr,lo,e.length)}catch(s){throw s}finally{Er=null,co=null}let n=r.llhttp_get_error_pos(this.ptr)-lo;if(i===oo.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===oo.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e Line truncated
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function ou(t,e,A){if(e&&typeof e=="object")throw new Zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",nz.exec(e)!==null)throw new Zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}a(ou,"processHeaderValue");function nf(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new Zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(nz.exec(A)!==null)throw new Zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new Zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=ou(e,A,r):t.headers+=ou(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new Dve("expect header not supported");if(iz.exec(e)===null)throw new Zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${ou(e,A[i],r)}`:t.headers[e]=ou(e,A[i],r):t.headers+=ou(e,A[i]);else r?t.headers[e]=ou(e,A,r):t.headers+=ou(e,A)}}}a(nf,"processHeader");sz.exports=xx});var L0=E((yCt,oz)=>{"use strict";var Fve=require("events"),vx=class extends Fve{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};oz.exports=vx});var af=E((bCt,cz)=>{"use strict";var Lve=L0(),{ClientDestroyedError:kx,ClientClosedError:Uve,InvalidArgumentError:Yg}=Xt(),{kDestroy:Tve,kClose:Mve,kDispatch:Fx,kInterceptors:cu}=hA(),Gg=Symbol("destroyed"),sf=Symbol("closed"),mc=Symbol("onDestroyed"),Jg=Symbol("onClosed"),U0=Symbol("Intercepted Dispatch"),Lx=class extends Lve{static{a(this,"DispatcherBase")}constructor(){super(),this[Gg]=!1,this[mc]=null,this[sf]=!1,this[Jg]=[]}get destroyed(){return this[Gg]}get closed(){return this[sf]}get interceptors(){return this[cu]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[cu][A]!="function")throw new Yg("interceptor must be an function")}this[cu]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new Yg("invalid callback");if(this[Gg]){queueMicrotask(()=>e(new kx,null));return}if(this[sf]){this[Jg]?this[Jg].push(e):queueMicrotask(()=>e(null,null));return}this[sf]=!0,this[Jg].push(e);let A=a(()=>{let r=this[Jg];this[Jg]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[Mve]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new Yg("invalid callback");if(this[Gg]){this[mc]?this[mc].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new kx),this[Gg]=!0,this[mc]=this[mc]||[],this[mc].push(A);let r=a(()=>{let i=this[mc];this[mc]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[Tve](e).then(()=>{queueMicrotask(r)})}[U0](e,A){if(!this[cu]||this[cu].length===0)return this[U0]=this[Fx],this[Fx](e,A);let r=this[Fx].bind(this);for(let i=this[cu].length-1;i>=0;i--)r=this[cu][i](r);return this[U0]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Yg("handler must be an object");try{if(!e||typeof e!="object")throw new Yg("opts must be an object.");if(this[Gg]||this[mc])throw new kx;if(this[sf])throw new Uve;return this[U0](e,A)}catch(r){if(typeof A.onError!="function")throw new Yg("invalid onError method");return A.onError(r),!1}}};cz.exports=Lx});var of=E((SCt,uz)=>{"use strict";var _ve=require("net"),lz=require("assert"),dz=dt(),{InvalidArgumentError:Ove,ConnectTimeoutError:Pve}=Xt(),Ux,Tx;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Tx=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:Tx=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function qve({allowH2:t,maxCachedSessi Line truncated
`,this[Sz]=c??3e5,this[Dz]=i??3e5,this[gf]=b??!0,this[m3e]=C,this[hf]=N,this[Dl]=null,this[vz]=w>-1?w:-1,this[go]="h1",this[zn]=null,this[Y0]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[kz]=`${this[Kr].hostname}${this[Kr].port?`:${this[Kr].port}`:""}`,this[aA]=[],this[oA]=0,this[Wn]=0}get pipelining(){return this[xl]}set pipelining(e){this[xl]=e,jn(this,!0)}get[uu](){return this[aA].length-this[Wn]}get[wA](){return this[Wn]-this[oA]}get[du](){return this[aA].length-this[oA]}get[E3e](){return!!this[kA]&&!this[zg]&&!this[kA].destroyed}get[Gx](){let e=this[kA];return e&&(e[Ti]||e[fc]||e[Xg])||this[du]>=(this[xl]||1)||this[uu]>0}[h3e](e){Tz(this),this.once("connect",e)}[Q3e](e,A){let r=e.origin||this[Kr].origin,i=this[go]==="h2"?Yx[I3e](r,e,A):Yx[w3e](r,e,A);return this[aA].push(i),this[lu]||(ge.bodyLength(i.body)==null&&ge.isIterable(i.body)?(this[lu]=1,process.nextTick(jn,this)):jn(this,!0)),this[lu]&&this[Sl]!==2&&this[Gx]&&(this[Sl]=2),this[Sl]<2}async[C3e](){return new Promise(e=>{this[du]?this[Dl]=e:e(null)})}async[f3e](e){return new Promise(A=>{let r=this[aA].splice(this[Wn]);for(let n=0;n<r.length;n++){let s=r[n];ei(this,s,e)}let i=a(()=>{this[Dl]&&(this[Dl](),this[Dl]=null),A()},"callback");this[zn]!=null&&(ge.destroy(this[zn],e),this[zn]=null,this[Y0]=null),this[kA]?ge.destroy(this[kA].on("close",i),e):queueMicrotask(i),jn(this)})}};function k3e(t){te(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kA][$r]=t,W0(this[po],t)}a(k3e,"onHttp2SessionError");function F3e(t,e,A){let r=new uo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[kA][$r]=r,W0(this[po],r))}a(F3e,"onHttp2FrameError");function L3e(){ge.destroy(this,new jg("other side closed")),ge.destroy(this[kA],new jg("other side closed"))}a(L3e,"onHttp2SessionEnd");function U3e(t){let e=this[po],A=new uo(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[kA]=null,e[zn]=null,e.destroyed){te(this[uu]===0);let r=e[aA].splice(e[oA]);for(let i=0;i<r.length;i++){let n=r[i];ei(this,n,A)}}else if(e[wA]>0){let r=e[aA][e[oA]];e[aA][e[oA]++]=null,ei(e,r,A)}e[Wn]=e[oA],te(e[wA]===0),e.emit("disconnect",e[Kr],[e],A),jn(e)}a(U3e,"onHTTP2GoAway");var oo=gz(),T3e=_0(),M3e=Buffer.alloc(0);async function _3e(){let t=process.env.JEST_WORKER_ID?Px():void 0,e;try{e=await WebAssembly.compile(Buffer.from(Bz(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Px(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onStatus(new O0(co.buffer,n,i))||0},wasm_on_message_begin:A=>(te.strictEqual(Er.ptr,A),Er.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onHeaderField(new O0(co.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onHeaderValue(new O0(co.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(te.strictEqual(Er.ptr,A),Er.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-lo+co.byteOffset;return Er.onBody(new O0(co.buffer,n,i))||0},wasm_on_message_complete:A=>(te.strictEqual(Er.ptr,A),Er.onMessageComplete()||0)}})}a(_3e,"lazyllhttp");var Hx=null,Wx=_3e();Wx.catch();var Er=null,co=null,P0=0,lo=null,Zg=1,H0=2,zx=3,jx=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){te(Number.isFinite(e[q0])&&e[q0]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(oo.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[q0],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[vz]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(qx.clearTimeout(this.timeout),e?(this.timeout=qx.setTimeout(O3e,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(te(this.ptr!=null),te(Er==null),this.llhttp.llhttp_resume(this.ptr),te(this.timeoutType===H0),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||M3e),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){te(this.ptr!=null),te(Er==null),te(!this.paused);let{socket:A,llhttp:r}=this;e.length>P0&&(lo&&r.free(lo),P0=Math.ceil(e.length/4096)*4096,lo=r.malloc(P0)),new Uint8Array(r.memory.buffer,lo,P0).set(e);try{let i;try{co=e,Er=this,i=r.llhttp_execute(this.ptr,lo,e.length)}catch(s){throw s}finally{Er=null,co=null}let n=r.llhttp_get_error_pos(this.ptr)-lo;if(i===oo.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===oo.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e Line truncated
`;return typeof n=="string"?g+=`host: ${n}\r
`:g+=t[wz],s?g+=`connection: upgrade\r
`:g+=t[bz],s?g+=`connection: upgrade\r
upgrade: ${s}\r
`:t[xl]&&!p[Ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,o&&(g+=o),mi.sendHeaders.hasSubscribers&&mi.sendHeaders.publish({request:e,headers:g,socket:p}),A?ge.isBuffer(A)?(te(u===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${g}content-length: ${u}\r
\r
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Ti]=!0)):ge.isBlobLike(A)?typeof A.stream=="function"?J0({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):Mz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isStream(A)?Tz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isIterable(A)?J0({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):te(!1):(u===0?p.write(`${g}content-length: 0\r
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Ti]=!0)):ge.isBlobLike(A)?typeof A.stream=="function"?J0({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):_z({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isStream(A)?Mz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isIterable(A)?J0({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):te(!1):(u===0?p.write(`${g}content-length: 0\r
\r
`,"latin1"):(te(u===null,"no body must not have content length"),p.write(`${g}\r
`,"latin1")),e.onRequestSent()),!0}a(q3e,"write");function H3e(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=Yx[y3e](d.trim()):u=d,o)return ei(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||ei(t,A,b||new Zx)})}catch(b){ei(t,A,b)}if(A.aborted)return!1;let p,g=t[Y0];if(u[b3e]=s||t[vz],u[N3e]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[R3e]=n,u[D3e]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=ge.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[gf])return ei(t,A,new Cc),!1;process.emitWarning(new Cc)}m!=null&&(te(r,"no body must not have content length"),u[S3e]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[x3e]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[v3e]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new uo(`HTTP/2: "frameError" received - type ${b}, code ${I}`);ei(t,A,C),t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,C))}),!0;function B(){r?ge.isBuffer(r)?(te(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):ge.isBlobLike(r)?typeof r.stream=="function"?J0({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[kA],header:""}):Mz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[kA]}):ge.isStream(r)?Tz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[kA],h2stream:p,header:""}):ge.isIterable(r)?J0({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[kA]}):te(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(H3e,"writeH2");function Tz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(te(n!==0||A[wA]===0,"stream body cannot be pipelined"),A[go]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=n3e(e,t,f=>{f?(ge.destroy(e,f),ge.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),ge.destroy(h)});return}let c=!1,l=new V0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){ge.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new Zx)},"onAbort"),g=a(function(h){if(!c){if(c=!0,te(i.destroyed||i[fc]&&A[wA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?ge.destroy(e,h):ge.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(Tz,"writeStream");async function Mz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n===e.size,"blob body must have content length");let c=A[go]==="h2";try{if(n!=null&&n!==e.size)throw new Cc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
`,"latin1")),e.onRequestSent()),!0}a(q3e,"write");function H3e(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=Yx[y3e](d.trim()):u=d,o)return ei(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||ei(t,A,b||new Zx)})}catch(b){ei(t,A,b)}if(A.aborted)return!1;let p,g=t[Y0];if(u[b3e]=s||t[kz],u[N3e]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[R3e]=n,u[D3e]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=ge.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[gf])return ei(t,A,new Cc),!1;process.emitWarning(new Cc)}m!=null&&(te(r,"no body must not have content length"),u[S3e]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[x3e]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[v3e]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new uo(`HTTP/2: "frameError" received - type ${b}, code ${I}`);ei(t,A,C),t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,C))}),!0;function B(){r?ge.isBuffer(r)?(te(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):ge.isBlobLike(r)?typeof r.stream=="function"?J0({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[kA],header:""}):_z({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[kA]}):ge.isStream(r)?Mz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[kA],h2stream:p,header:""}):ge.isIterable(r)?J0({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[kA]}):te(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(H3e,"writeH2");function Mz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(te(n!==0||A[wA]===0,"stream body cannot be pipelined"),A[go]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=n3e(e,t,f=>{f?(ge.destroy(e,f),ge.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),ge.destroy(h)});return}let c=!1,l=new V0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){ge.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new Zx)},"onAbort"),g=a(function(h){if(!c){if(c=!0,te(i.destroyed||i[fc]&&A[wA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?ge.destroy(e,h):ge.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(Mz,"writeStream");async function _z({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n===e.size,"blob body must have content length");let c=A[go]==="h2";try{if(n!=null&&n!==e.size)throw new Cc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
\r
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Ti]=!0),jn(A)}catch(l){ge.destroy(c?t:i,l)}}a(Mz,"writeBlob");async function J0({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n!==0||A[wA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{te(c===null),i[$r]?g(i[$r]):c=p}),"waitForDrain");if(A[go]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[$r])throw i[$r];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new V0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[$r])throw i[$r];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(J0,"writeIterable");var V0=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[fc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[$r])throw A[$r];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[gf])throw new Cc;process.emitWarning(new Cc)}A.cork(),s===0&&(o||(A[Ti]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Ti]=!0),jn(A)}catch(l){ge.destroy(c?t:i,l)}}a(_z,"writeBlob");async function J0({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n!==0||A[wA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{te(c===null),i[$r]?g(i[$r]):c=p}),"waitForDrain");if(A[go]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[$r])throw i[$r];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new V0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[$r])throw i[$r];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(J0,"writeIterable");var V0=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[fc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[$r])throw A[$r];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[gf])throw new Cc;process.emitWarning(new Cc)}A.cork(),s===0&&(o||(A[Ti]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
`,"latin1"):A.write(`${c}content-length: ${i}\r
\r
`,"latin1")),i===null&&A.write(`\r
@@ -104,69 +104,69 @@ ${l.toString(16)}\r
`,"latin1"):A===null&&e.write(`\r
0\r
\r
`,"latin1"),A!==null&&i!==A){if(r[gf])throw new Cc;process.emitWarning(new Cc)}e[vA].timeout&&e[vA].timeoutType===Zg&&e[vA].timeout.refresh&&e[vA].timeout.refresh(),jn(r)}}destroy(e){let{socket:A,client:r}=this;A[fc]=!1,e&&(te(r[wA]<=1,"pipeline should only contain this request"),ge.destroy(A,e))}};function ei(t,e,A){try{e.onError(A),te(e.aborted)}catch(r){t.emit("error",r)}}a(ei,"errorRequest");_z.exports=Vx});var Pz=E((YCt,Oz)=>{"use strict";var z0=class{static{a(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)}};Oz.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new z0}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new z0),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var Hz=E((JCt,qz)=>{var{kFree:Y3e,kConnected:G3e,kPending:J3e,kQueued:V3e,kRunning:W3e,kSize:z3e}=hA(),pu=Symbol("pool"),Kx=class{static{a(this,"PoolStats")}constructor(e){this[pu]=e}get connected(){return this[pu][G3e]}get free(){return this[pu][Y3e]}get pending(){return this[pu][J3e]}get queued(){return this[pu][V3e]}get running(){return this[pu][W3e]}get size(){return this[pu][z3e]}};qz.exports=Kx});var iv=E((WCt,Kz)=>{"use strict";var j3e=af(),X3e=Pz(),{kConnected:$x,kSize:Yz,kRunning:Gz,kPending:Jz,kQueued:mf,kBusy:Z3e,kFree:K3e,kUrl:$3e,kClose:e8e,kDestroy:t8e,kDispatch:A8e}=hA(),r8e=Hz(),cn=Symbol("clients"),Mi=Symbol("needDrain"),Cf=Symbol("queue"),ev=Symbol("closed resolve"),tv=Symbol("onDrain"),Vz=Symbol("onConnect"),Wz=Symbol("onDisconnect"),zz=Symbol("onConnectionError"),Av=Symbol("get dispatcher"),Xz=Symbol("add client"),Zz=Symbol("remove client"),jz=Symbol("stats"),rv=class extends j3e{static{a(this,"PoolBase")}constructor(){super(),this[Cf]=new X3e,this[cn]=[],this[mf]=0;let e=this;this[tv]=a(function(r,i){let n=e[Cf],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[mf]--,s=!this.dispatch(o.opts,o.handler)}this[Mi]=s,!this[Mi]&&e[Mi]&&(e[Mi]=!1,e.emit("drain",r,[e,...i])),e[ev]&&n.isEmpty()&&Promise.all(e[cn].map(o=>o.close())).then(e[ev])},"onDrain"),this[Vz]=(A,r)=>{e.emit("connect",A,[e,...r])},this[Wz]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[zz]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[jz]=new r8e(this)}get[Z3e](){return this[Mi]}get[$x](){return this[cn].filter(e=>e[$x]).length}get[K3e](){return this[cn].filter(e=>e[$x]&&!e[Mi]).length}get[Jz](){let e=this[mf];for(let{[Jz]:A}of this[cn])e+=A;return e}get[Gz](){let e=0;for(let{[Gz]:A}of this[cn])e+=A;return e}get[Yz](){let e=this[mf];for(let{[Yz]:A}of this[cn])e+=A;return e}get stats(){return this[jz]}async[e8e](){return this[Cf].isEmpty()?Promise.all(this[cn].map(e=>e.close())):new Promise(e=>{this[ev]=e})}async[t8e](e){for(;;){let A=this[Cf].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[cn].map(A=>A.destroy(e)))}[A8e](e,A){let r=this[Av]();return r?r.dispatch(e,A)||(r[Mi]=!0,this[Mi]=!this[Av]()):(this[Mi]=!0,this[Cf].push({opts:e,handler:A}),this[mf]++),!this[Mi]}[Xz](e){return e.on("drain",this[tv]).on("connect",this[Vz]).on("disconnect",this[Wz]).on("connectionError",this[zz]),this[cn].push(e),this[Mi]&&process.nextTick(()=>{this[Mi]&&this[tv](e[$3e],[this,e])}),this}[Zz](e){e.close(()=>{let A=this[cn].indexOf(e);A!==-1&&this[cn].splice(A,1)}),this[Mi]=this[cn].some(A=>!A[Mi]&&A.closed!==!0&&A.destroyed!==!0)}};Kz.exports={PoolBase:rv,kClients:cn,kNeedDrain:Mi,kAddClient:Xz,kRemoveClient:Zz,kGetDispatcher:Av}});var Kg=E((jCt,Aj)=>{"use strict";var{PoolBase:i8e,kClients:$z,kNeedDrain:n8e,kAddClient:s8e,kGetDispatcher:a8e}=iv(),o8e=Ef(),{InvalidArgumentError:nv}=Xt(),sv=dt(),{kUrl:ej,kInterceptors:c8e}=hA(),l8e=of(),av=Symbol("options"),ov=Symbol("connections"),tj=Symbol("factory");function d8e(t,e){return new o8e(t,e)}a(d8e,"defaultFactory");var cv=class extends i8e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=d8e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new nv("invalid connections");if(typeof r!="function")throw new nv("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new nv("connect must be a function or an object");typeof i!="function"&&(i=l8e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...sv.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[c8e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[ov]=A||null,this[ej]=sv.parseOrigin(e),this[av]={...s Line truncated
`,"latin1"),A!==null&&i!==A){if(r[gf])throw new Cc;process.emitWarning(new Cc)}e[vA].timeout&&e[vA].timeoutType===Zg&&e[vA].timeout.refresh&&e[vA].timeout.refresh(),jn(r)}}destroy(e){let{socket:A,client:r}=this;A[fc]=!1,e&&(te(r[wA]<=1,"pipeline should only contain this request"),ge.destroy(A,e))}};function ei(t,e,A){try{e.onError(A),te(e.aborted)}catch(r){t.emit("error",r)}}a(ei,"errorRequest");Oz.exports=Vx});var qz=E((YCt,Pz)=>{"use strict";var z0=class{static{a(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)}};Pz.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new z0}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new z0),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var Yz=E((JCt,Hz)=>{var{kFree:Y3e,kConnected:G3e,kPending:J3e,kQueued:V3e,kRunning:W3e,kSize:z3e}=hA(),pu=Symbol("pool"),Kx=class{static{a(this,"PoolStats")}constructor(e){this[pu]=e}get connected(){return this[pu][G3e]}get free(){return this[pu][Y3e]}get pending(){return this[pu][J3e]}get queued(){return this[pu][V3e]}get running(){return this[pu][W3e]}get size(){return this[pu][z3e]}};Hz.exports=Kx});var iv=E((WCt,$z)=>{"use strict";var j3e=af(),X3e=qz(),{kConnected:$x,kSize:Gz,kRunning:Jz,kPending:Vz,kQueued:mf,kBusy:Z3e,kFree:K3e,kUrl:$3e,kClose:e8e,kDestroy:t8e,kDispatch:A8e}=hA(),r8e=Yz(),cn=Symbol("clients"),Mi=Symbol("needDrain"),Cf=Symbol("queue"),ev=Symbol("closed resolve"),tv=Symbol("onDrain"),Wz=Symbol("onConnect"),zz=Symbol("onDisconnect"),jz=Symbol("onConnectionError"),Av=Symbol("get dispatcher"),Zz=Symbol("add client"),Kz=Symbol("remove client"),Xz=Symbol("stats"),rv=class extends j3e{static{a(this,"PoolBase")}constructor(){super(),this[Cf]=new X3e,this[cn]=[],this[mf]=0;let e=this;this[tv]=a(function(r,i){let n=e[Cf],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[mf]--,s=!this.dispatch(o.opts,o.handler)}this[Mi]=s,!this[Mi]&&e[Mi]&&(e[Mi]=!1,e.emit("drain",r,[e,...i])),e[ev]&&n.isEmpty()&&Promise.all(e[cn].map(o=>o.close())).then(e[ev])},"onDrain"),this[Wz]=(A,r)=>{e.emit("connect",A,[e,...r])},this[zz]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[jz]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Xz]=new r8e(this)}get[Z3e](){return this[Mi]}get[$x](){return this[cn].filter(e=>e[$x]).length}get[K3e](){return this[cn].filter(e=>e[$x]&&!e[Mi]).length}get[Vz](){let e=this[mf];for(let{[Vz]:A}of this[cn])e+=A;return e}get[Jz](){let e=0;for(let{[Jz]:A}of this[cn])e+=A;return e}get[Gz](){let e=this[mf];for(let{[Gz]:A}of this[cn])e+=A;return e}get stats(){return this[Xz]}async[e8e](){return this[Cf].isEmpty()?Promise.all(this[cn].map(e=>e.close())):new Promise(e=>{this[ev]=e})}async[t8e](e){for(;;){let A=this[Cf].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[cn].map(A=>A.destroy(e)))}[A8e](e,A){let r=this[Av]();return r?r.dispatch(e,A)||(r[Mi]=!0,this[Mi]=!this[Av]()):(this[Mi]=!0,this[Cf].push({opts:e,handler:A}),this[mf]++),!this[Mi]}[Zz](e){return e.on("drain",this[tv]).on("connect",this[Wz]).on("disconnect",this[zz]).on("connectionError",this[jz]),this[cn].push(e),this[Mi]&&process.nextTick(()=>{this[Mi]&&this[tv](e[$3e],[this,e])}),this}[Kz](e){e.close(()=>{let A=this[cn].indexOf(e);A!==-1&&this[cn].splice(A,1)}),this[Mi]=this[cn].some(A=>!A[Mi]&&A.closed!==!0&&A.destroyed!==!0)}};$z.exports={PoolBase:rv,kClients:cn,kNeedDrain:Mi,kAddClient:Zz,kRemoveClient:Kz,kGetDispatcher:Av}});var Kg=E((jCt,rj)=>{"use strict";var{PoolBase:i8e,kClients:ej,kNeedDrain:n8e,kAddClient:s8e,kGetDispatcher:a8e}=iv(),o8e=Ef(),{InvalidArgumentError:nv}=Xt(),sv=dt(),{kUrl:tj,kInterceptors:c8e}=hA(),l8e=of(),av=Symbol("options"),ov=Symbol("connections"),Aj=Symbol("factory");function d8e(t,e){return new o8e(t,e)}a(d8e,"defaultFactory");var cv=class extends i8e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=d8e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new nv("invalid connections");if(typeof r!="function")throw new nv("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new nv("connect must be a function or an object");typeof i!="function"&&(i=l8e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...sv.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[c8e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[ov]=A||null,this[tj]=sv.parseOrigin(e),this[av]={...s Line truncated
${r.count} ${r.noun} ${r.is} pending:
${e.format(A)}
`.trim())}};LX.exports=Wv});var qX=E((Pft,PX)=>{"use strict";var{kProxy:uke,kClose:pke,kDestroy:gke,kInterceptors:hke}=hA(),{URL:TX}=require("url"),MX=Qf(),Eke=Kg(),mke=af(),{InvalidArgumentError:wf,RequestAbortedError:Cke}=Xt(),_X=of(),yf=Symbol("proxy agent"),py=Symbol("proxy client"),gy=Symbol("proxy headers"),zv=Symbol("request tls settings"),fke=Symbol("proxy tls settings"),OX=Symbol("connect endpoint function");function Qke(t){return t==="https:"?443:80}a(Qke,"defaultProtocolPort");function Bke(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new wf("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(Bke,"buildProxyOptions");function Ike(t,e){return new Eke(t,e)}a(Ike,"defaultFactory");var jv=class extends mke{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[uke]=Bke(e),this[yf]=new MX(e),this[hke]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new wf("Proxy opts.uri is mandatory");let{clientFactory:A=Ike}=e;if(typeof A!="function")throw new wf("Proxy opts.clientFactory must be a function.");if(this[zv]=e.requestTls,this[fke]=e.proxyTls,this[gy]=e.headers||{},e.auth&&e.token)throw new wf("opts.auth cannot be used in combination with opts.token");e.auth?this[gy]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[gy]["proxy-authorization"]=e.token);let r=new TX(e.uri),{origin:i,port:n,host:s}=r,o=_X({...e.proxyTls});this[OX]=_X({...e.requestTls}),this[py]=A(r,{connect:o}),this[yf]=new MX({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${Qke(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[py].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[gy],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new Cke("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[zv]?g=this[zv].servername:g=c.servername,this[OX]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new TX(e.origin),i=yke(e.headers);return wke(i),this[yf].dispatch({...e,headers:{...i,host:r}},A)}async[pke](){await this[yf].close(),await this[py].close()}async[gke](){await this[yf].destroy(),await this[py].destroy()}};function yke(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(yke,"buildHeaders");function wke(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new wf("Proxy-Authorization should be sent in ProxyAgent constructor")}a(wke,"throwIfProxyAuthIsSent");PX.exports=jv});var oh=E((Hft,JX)=>{"use strict";var HX=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bke}=Xt(),Nke=Qf();GX()===void 0&&YX(new Nke);function YX(t){if(!t||typeof t.dispatch!="function")throw new bke("Argument agent must implement Agent");Object.defineProperty(globalThis,HX,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(YX,"setGlobalDispatcher");function GX(){return globalThis[HX]}a(GX,"getGlobalDispatcher");JX.exports={setGlobalDispatcher:YX,getGlobalDispatcher:GX}});var WX=E((Jft,VX)=>{"use strict";VX.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Qu=E((Wft,ZX)=>{"use strict";var{kHeadersList:ln}=hA(),{kGuard:fu}=uc(),{kEnumerableProperty:Eo}=dt(),{makeIterator:Xv,isValidHeaderName:bf,isValidHeaderValue:zX}=Ts(),{webidl:Ze}=Ui(),Rke=require("assert"),dn=Symbol("headers map"),un=Symbol("headers map sorted");function jX(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(jX,"headerValueNormalize");function XX(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ze.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ze.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(XX,"fill");var hy=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[dn]=new Map(e[dn]),this[un]=e[un],this.cookies=e.cookies):(this[dn]=new Map(e),this[un]=null)}contains(e){return e=e.toLowerCase(),this[dn].has(e)}clear(){this[dn].clear(),this[un]=null,this.cookies=null}append(e,A){this[un]=null;let r=e.toLowerCase(),i=this[dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[dn].set(r,{name:e,value:A});r==="set-cookie" Line truncated
`.trim())}};UX.exports=Wv});var HX=E((Pft,qX)=>{"use strict";var{kProxy:uke,kClose:pke,kDestroy:gke,kInterceptors:hke}=hA(),{URL:MX}=require("url"),_X=Qf(),Eke=Kg(),mke=af(),{InvalidArgumentError:wf,RequestAbortedError:Cke}=Xt(),OX=of(),yf=Symbol("proxy agent"),py=Symbol("proxy client"),gy=Symbol("proxy headers"),zv=Symbol("request tls settings"),fke=Symbol("proxy tls settings"),PX=Symbol("connect endpoint function");function Qke(t){return t==="https:"?443:80}a(Qke,"defaultProtocolPort");function Bke(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new wf("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(Bke,"buildProxyOptions");function Ike(t,e){return new Eke(t,e)}a(Ike,"defaultFactory");var jv=class extends mke{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[uke]=Bke(e),this[yf]=new _X(e),this[hke]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new wf("Proxy opts.uri is mandatory");let{clientFactory:A=Ike}=e;if(typeof A!="function")throw new wf("Proxy opts.clientFactory must be a function.");if(this[zv]=e.requestTls,this[fke]=e.proxyTls,this[gy]=e.headers||{},e.auth&&e.token)throw new wf("opts.auth cannot be used in combination with opts.token");e.auth?this[gy]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[gy]["proxy-authorization"]=e.token);let r=new MX(e.uri),{origin:i,port:n,host:s}=r,o=OX({...e.proxyTls});this[PX]=OX({...e.requestTls}),this[py]=A(r,{connect:o}),this[yf]=new _X({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${Qke(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[py].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[gy],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new Cke("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[zv]?g=this[zv].servername:g=c.servername,this[PX]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new MX(e.origin),i=yke(e.headers);return wke(i),this[yf].dispatch({...e,headers:{...i,host:r}},A)}async[pke](){await this[yf].close(),await this[py].close()}async[gke](){await this[yf].destroy(),await this[py].destroy()}};function yke(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(yke,"buildHeaders");function wke(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new wf("Proxy-Authorization should be sent in ProxyAgent constructor")}a(wke,"throwIfProxyAuthIsSent");qX.exports=jv});var oh=E((Hft,VX)=>{"use strict";var YX=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bke}=Xt(),Nke=Qf();JX()===void 0&&GX(new Nke);function GX(t){if(!t||typeof t.dispatch!="function")throw new bke("Argument agent must implement Agent");Object.defineProperty(globalThis,YX,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(GX,"setGlobalDispatcher");function JX(){return globalThis[YX]}a(JX,"getGlobalDispatcher");VX.exports={setGlobalDispatcher:GX,getGlobalDispatcher:JX}});var zX=E((Jft,WX)=>{"use strict";WX.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Qu=E((Wft,KX)=>{"use strict";var{kHeadersList:ln}=hA(),{kGuard:fu}=uc(),{kEnumerableProperty:Eo}=dt(),{makeIterator:Xv,isValidHeaderName:bf,isValidHeaderValue:jX}=Ts(),{webidl:Ze}=Ui(),Rke=require("assert"),dn=Symbol("headers map"),un=Symbol("headers map sorted");function XX(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(XX,"headerValueNormalize");function ZX(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ze.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ze.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(ZX,"fill");var hy=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[dn]=new Map(e[dn]),this[un]=e[un],this.cookies=e.cookies):(this[dn]=new Map(e),this[un]=null)}contains(e){return e=e.toLowerCase(),this[dn].has(e)}clear(){this[dn].clear(),this[un]=null,this.cookies=null}append(e,A){this[un]=null;let r=e.toLowerCase(),i=this[dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[dn].set(r,{name:e,value:A});r==="set-cookie" Line truncated
Error Code : ${s.statusCode}
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return jK(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}XK.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return XK.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Ih.OidcClient=P3});var G3=E(hn=>{"use strict";var q3=hn&&hn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(hn,"__esModule",{value:!0});hn.summary=hn.markdownSummary=hn.SUMMARY_DOCS_URL=hn.SUMMARY_ENV_VAR=void 0;var pTe=require("os"),H3=require("fs"),{access:gTe,appendFile:hTe,writeFile:ETe}=H3.promises;hn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";hn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Y3=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return q3(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[hn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${hn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield gTe(e,H3.constants.R_OK|H3.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return q3(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?ETe:hTe)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return q3(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(pTe.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},KK=new Y3;hn.markdownSummary=KK;hn.summary=KK});var $K=E(En=>{"use strict";var mTe=En&&En.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),CTe=En&&En.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),fTe=En&&En.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&mTe(e,t,A);return CTe(e,t),e};Object.defineProperty(En,"__esModule",{value:!0});En.toPlatformPath=En.toWin32Path=En.toPosixPath=void 0;var QTe=fTe(require("path"));function BTe(t){return t.replace(/[\\]/g,"/")}a(BTe,"toPosixPath");En.toPosixPath=BTe;function ITe(t){return t.replace(/[/]/g,"\\")}a(ITe,"toWin32Path");En.toWin32Path=ITe;function yTe(t){return t.replace(/[/\\]/g,QTe.sep)}a(yTe,"toPlatformPath");En.toPlatformPath=yTe});var r2=E(de=>{"use strict";var wTe=de&&de.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===voiLine truncated
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return XK(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}ZK.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return ZK.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Ih.OidcClient=P3});var G3=E(hn=>{"use strict";var q3=hn&&hn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(hn,"__esModule",{value:!0});hn.summary=hn.markdownSummary=hn.SUMMARY_DOCS_URL=hn.SUMMARY_ENV_VAR=void 0;var pTe=require("os"),H3=require("fs"),{access:gTe,appendFile:hTe,writeFile:ETe}=H3.promises;hn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";hn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Y3=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return q3(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[hn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${hn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield gTe(e,H3.constants.R_OK|H3.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return q3(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?ETe:hTe)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return q3(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(pTe.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},$K=new Y3;hn.markdownSummary=$K;hn.summary=$K});var e$=E(En=>{"use strict";var mTe=En&&En.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),CTe=En&&En.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),fTe=En&&En.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&mTe(e,t,A);return CTe(e,t),e};Object.defineProperty(En,"__esModule",{value:!0});En.toPlatformPath=En.toWin32Path=En.toPosixPath=void 0;var QTe=fTe(require("path"));function BTe(t){return t.replace(/[\\]/g,"/")}a(BTe,"toPosixPath");En.toPosixPath=BTe;function ITe(t){return t.replace(/[/]/g,"\\")}a(ITe,"toWin32Path");En.toWin32Path=ITe;function yTe(t){return t.replace(/[/\\]/g,QTe.sep)}a(yTe,"toPlatformPath");En.toPlatformPath=yTe});var r2=E(de=>{"use strict";var wTe=de&&de.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===voiLine truncated
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(vTe,"getMultilineInput");de.getMultilineInput=vTe;function kTe(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=J3(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(kTe,"getBooleanInput");de.getBooleanInput=kTe;function FTe(t,e){if(process.env.GITHUB_OUTPUT||"")return Nu.issueFileCommand("OUTPUT",Nu.prepareKeyValueMessage(t,e));process.stdout.write(A$.EOL),Ys.issueCommand("set-output",{name:t},yh.toCommandValue(e))}a(FTe,"setOutput");de.setOutput=FTe;function LTe(t){Ys.issue("echo",t?"on":"off")}a(LTe,"setCommandEcho");de.setCommandEcho=LTe;function UTe(t){process.exitCode=r$.Failure,i$(t)}a(UTe,"setFailed");de.setFailed=UTe;function TTe(){return process.env.RUNNER_DEBUG==="1"}a(TTe,"isDebug");de.isDebug=TTe;function MTe(t){Ys.issueCommand("debug",{},t)}a(MTe,"debug");de.debug=MTe;function i$(t,e={}){Ys.issueCommand("error",yh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(i$,"error");de.error=i$;function _Te(t,e={}){Ys.issueCommand("warning",yh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(_Te,"warning");de.warning=_Te;function OTe(t,e={}){Ys.issueCommand("notice",yh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(OTe,"notice");de.notice=OTe;function PTe(t){process.stdout.write(t+A$.EOL)}a(PTe,"info");de.info=PTe;function n$(t){Ys.issue("group",t)}a(n$,"startGroup");de.startGroup=n$;function s$(){Ys.issue("endgroup")}a(s$,"endGroup");de.endGroup=s$;function qTe(t,e){return t$(this,void 0,void 0,function*(){n$(t);let A;try{A=yield e()}finally{s$()}return A})}a(qTe,"group");de.group=qTe;function HTe(t,e){if(process.env.GITHUB_STATE||"")return Nu.issueFileCommand("STATE",Nu.prepareKeyValueMessage(t,e));Ys.issueCommand("save-state",{name:t},yh.toCommandValue(e))}a(HTe,"saveState");de.saveState=HTe;function YTe(t){return process.env[`STATE_${t}`]||""}a(YTe,"getState");de.getState=YTe;function GTe(t){return t$(this,void 0,void 0,function*(){return yield RTe.OidcClient.getIDToken(t)})}a(GTe,"getIDToken");de.getIDToken=GTe;var JTe=G3();Object.defineProperty(de,"summary",{enumerable:!0,get:function(){return JTe.summary}});var VTe=G3();Object.defineProperty(de,"markdownSummary",{enumerable:!0,get:function(){return VTe.markdownSummary}});var V3=$K();Object.defineProperty(de,"toPosixPath",{enumerable:!0,get:function(){return V3.toPosixPath}});Object.defineProperty(de,"toWin32Path",{enumerable:!0,get:function(){return V3.toWin32Path}});Object.defineProperty(de,"toPlatformPath",{enumerable:!0,get:function(){return V3.toPlatformPath}})});var a$=E(Qo=>{"use strict";var WTe=Qo&&Qo.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),zTe=Qo&&Qo.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),jTe=Qo&&Qo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&WTe(e,t,A);return zTe(e,t),e};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.getOptions=void 0;var W3=jTe(r2());function XTe(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,W3.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,W3.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,W3.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}a(XTe,"getOptions");Qo.getOptions=XTe});var n2=E(FA=>{"use strict";var ZTe=FA&&FA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),KTe=FA&&FA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),$Te=FA&&FA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ZTe(e,t,A);return KTe(e,t),e},e7e=FA&&FA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FA,"__esModule",{value:!0});FA.safeTrimTrailingSeparator=FA.normalizeSeparators=FA.hasRoot=FA.hasAbsoluteRoot=FA.ensureAbsoluteRoot=FA.dirname=void 0;var i2=$Te(require("path")),Ru=e7e(require("assert")),Ml=process.platform==="win32";function t7e(t){if(t=j3(t),Ml&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=i2.dirname(t);return Ml&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=j3(e)),e}a(t7e,"dirname");FA.dirname=t7e;function A7e(t,e){if(Ru.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ru.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),z3(e))return e;if(Ml){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let A=process.cwd();returnLine truncated
%s`,Q,Q,b,r);var N=b.type==="*"?$3:b.type==="?"?K3:"\\"+b.type;i=!0,r=r.slice(0,b.reStart)+N+"\\("+Q}h(),n&&(r+="\\\\");var S=!1;switch(r.charAt(0)){case"[":case".":case"(":S=!0}for(var w=o.length-1;w>-1;w--){var k=o[w],D=r.slice(0,k.reStart),v=r.slice(k.reStart,k.reEnd-8),x=r.slice(k.reEnd-8,k.reEnd),L=r.slice(k.reEnd);x+=L;var q=D.split("(").length-1,le=L;for(m=0;m<q;m++)le=le.replace(/\)[+*?]?/,"");L=le;var _="";L===""&&e!==a2&&(_="$");var rt=D+v+L+_+x;r=rt}if(r!==""&&i&&(r="(?=.)"+r),S&&(r=p+r),e===a2)return[r,i];if(!i)return v7e(t);var Se=A.nocase?"i":"";try{var vt=new RegExp("^"+r+"$",Se)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=r,vt}a(S7e,"parse");As.makeRe=function(t,e){return new ti(t,e||{}).makeRe()};ti.prototype.makeRe=x7e;function x7e(){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,A=e.noglobstar?$3:e.dot?I7e:y7e,r=e.nocase?"i":"",i=t.map(function(n){return n.map(function(s){return s===e8?A:typeof s=="string"?k7e(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch{this.regexp=!1}return this.regexp}a(x7e,"makeRe");As.match=function(t,e,A){A=A||{};var r=new ti(e,A);return t=t.filter(function(i){return r.match(i)}),r.options.nonull&&!t.length&&t.push(e),t};ti.prototype.match=a(function(e,A){if(typeof A>"u"&&(A=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&A)return!0;var r=this.options;Pf.sep!=="/"&&(e=e.split(Pf.sep).join("/")),e=e.split(D$),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<i.length;s++){var o=i[s],c=e;r.matchBase&&o.length===1&&(c=[n]);var l=this.matchOne(c,o,A);if(l)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},"match");ti.prototype.matchOne=function(t,e,A){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,n=0,s=t.length,o=e.length;i<s&&n<o;i++,n++){this.debug("matchOne loop");var c=e[n],l=t[i];if(this.debug(e,c,l),c===!1)return!1;if(c===e8){this.debug("GLOBSTAR",[e,c,l]);var d=i,u=n+1;if(u===o){for(this.debug("** at the end");i<s;i++)if(t[i]==="."||t[i]===".."||!r.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<s;){var p=t[d];if(this.debug(`
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(kTe,"getBooleanInput");de.getBooleanInput=kTe;function FTe(t,e){if(process.env.GITHUB_OUTPUT||"")return Nu.issueFileCommand("OUTPUT",Nu.prepareKeyValueMessage(t,e));process.stdout.write(r$.EOL),Ys.issueCommand("set-output",{name:t},yh.toCommandValue(e))}a(FTe,"setOutput");de.setOutput=FTe;function LTe(t){Ys.issue("echo",t?"on":"off")}a(LTe,"setCommandEcho");de.setCommandEcho=LTe;function UTe(t){process.exitCode=i$.Failure,n$(t)}a(UTe,"setFailed");de.setFailed=UTe;function TTe(){return process.env.RUNNER_DEBUG==="1"}a(TTe,"isDebug");de.isDebug=TTe;function MTe(t){Ys.issueCommand("debug",{},t)}a(MTe,"debug");de.debug=MTe;function n$(t,e={}){Ys.issueCommand("error",yh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(n$,"error");de.error=n$;function _Te(t,e={}){Ys.issueCommand("warning",yh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(_Te,"warning");de.warning=_Te;function OTe(t,e={}){Ys.issueCommand("notice",yh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(OTe,"notice");de.notice=OTe;function PTe(t){process.stdout.write(t+r$.EOL)}a(PTe,"info");de.info=PTe;function s$(t){Ys.issue("group",t)}a(s$,"startGroup");de.startGroup=s$;function a$(){Ys.issue("endgroup")}a(a$,"endGroup");de.endGroup=a$;function qTe(t,e){return A$(this,void 0,void 0,function*(){s$(t);let A;try{A=yield e()}finally{a$()}return A})}a(qTe,"group");de.group=qTe;function HTe(t,e){if(process.env.GITHUB_STATE||"")return Nu.issueFileCommand("STATE",Nu.prepareKeyValueMessage(t,e));Ys.issueCommand("save-state",{name:t},yh.toCommandValue(e))}a(HTe,"saveState");de.saveState=HTe;function YTe(t){return process.env[`STATE_${t}`]||""}a(YTe,"getState");de.getState=YTe;function GTe(t){return A$(this,void 0,void 0,function*(){return yield RTe.OidcClient.getIDToken(t)})}a(GTe,"getIDToken");de.getIDToken=GTe;var JTe=G3();Object.defineProperty(de,"summary",{enumerable:!0,get:function(){return JTe.summary}});var VTe=G3();Object.defineProperty(de,"markdownSummary",{enumerable:!0,get:function(){return VTe.markdownSummary}});var V3=e$();Object.defineProperty(de,"toPosixPath",{enumerable:!0,get:function(){return V3.toPosixPath}});Object.defineProperty(de,"toWin32Path",{enumerable:!0,get:function(){return V3.toWin32Path}});Object.defineProperty(de,"toPlatformPath",{enumerable:!0,get:function(){return V3.toPlatformPath}})});var o$=E(Qo=>{"use strict";var WTe=Qo&&Qo.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),zTe=Qo&&Qo.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),jTe=Qo&&Qo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&WTe(e,t,A);return zTe(e,t),e};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.getOptions=void 0;var W3=jTe(r2());function XTe(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,W3.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,W3.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,W3.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}a(XTe,"getOptions");Qo.getOptions=XTe});var n2=E(FA=>{"use strict";var ZTe=FA&&FA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),KTe=FA&&FA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),$Te=FA&&FA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ZTe(e,t,A);return KTe(e,t),e},e7e=FA&&FA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FA,"__esModule",{value:!0});FA.safeTrimTrailingSeparator=FA.normalizeSeparators=FA.hasRoot=FA.hasAbsoluteRoot=FA.ensureAbsoluteRoot=FA.dirname=void 0;var i2=$Te(require("path")),Ru=e7e(require("assert")),Ml=process.platform==="win32";function t7e(t){if(t=j3(t),Ml&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=i2.dirname(t);return Ml&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=j3(e)),e}a(t7e,"dirname");FA.dirname=t7e;function A7e(t,e){if(Ru.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ru.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),z3(e))return e;if(Ml){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let A=process.cwd();returnLine truncated
%s`,Q,Q,b,r);var N=b.type==="*"?$3:b.type==="?"?K3:"\\"+b.type;i=!0,r=r.slice(0,b.reStart)+N+"\\("+Q}h(),n&&(r+="\\\\");var S=!1;switch(r.charAt(0)){case"[":case".":case"(":S=!0}for(var w=o.length-1;w>-1;w--){var k=o[w],D=r.slice(0,k.reStart),v=r.slice(k.reStart,k.reEnd-8),x=r.slice(k.reEnd-8,k.reEnd),L=r.slice(k.reEnd);x+=L;var q=D.split("(").length-1,le=L;for(m=0;m<q;m++)le=le.replace(/\)[+*?]?/,"");L=le;var _="";L===""&&e!==a2&&(_="$");var rt=D+v+L+_+x;r=rt}if(r!==""&&i&&(r="(?=.)"+r),S&&(r=p+r),e===a2)return[r,i];if(!i)return v7e(t);var Se=A.nocase?"i":"";try{var vt=new RegExp("^"+r+"$",Se)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=r,vt}a(S7e,"parse");As.makeRe=function(t,e){return new ti(t,e||{}).makeRe()};ti.prototype.makeRe=x7e;function x7e(){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,A=e.noglobstar?$3:e.dot?I7e:y7e,r=e.nocase?"i":"",i=t.map(function(n){return n.map(function(s){return s===e8?A:typeof s=="string"?k7e(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch{this.regexp=!1}return this.regexp}a(x7e,"makeRe");As.match=function(t,e,A){A=A||{};var r=new ti(e,A);return t=t.filter(function(i){return r.match(i)}),r.options.nonull&&!t.length&&t.push(e),t};ti.prototype.match=a(function(e,A){if(typeof A>"u"&&(A=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&A)return!0;var r=this.options;Pf.sep!=="/"&&(e=e.split(Pf.sep).join("/")),e=e.split(S$),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<i.length;s++){var o=i[s],c=e;r.matchBase&&o.length===1&&(c=[n]);var l=this.matchOne(c,o,A);if(l)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},"match");ti.prototype.matchOne=function(t,e,A){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,n=0,s=t.length,o=e.length;i<s&&n<o;i++,n++){this.debug("matchOne loop");var c=e[n],l=t[i];if(this.debug(e,c,l),c===!1)return!1;if(c===e8){this.debug("GLOBSTAR",[e,c,l]);var d=i,u=n+1;if(u===o){for(this.debug("** at the end");i<s;i++)if(t[i]==="."||t[i]===".."||!r.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<s;){var p=t[d];if(this.debug(`
globstar while`,t,d,e,u,p),this.matchOne(t.slice(d),e.slice(u),A))return this.debug("globstar found match!",d,s,p),!0;if(p==="."||p===".."||!r.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,d,e,u);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(A&&(this.debug(`
>>> no match, partial?`,t,d,e,u),d===s))}var g;if(typeof c=="string"?(g=l===c,this.debug("string match",c,l,g)):(g=l.match(c),this.debug("pattern match",c,l,g)),!g)return!1}if(i===s&&n===o)return!0;if(i===s)return A;if(n===o)return i===s-1&&t[i]==="";throw new Error("wtf?")};function v7e(t){return t.replace(/\\(.)/g,"$1")}a(v7e,"globUnescape");function k7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}a(k7e,"regExpEscape")});var F$=E(Gs=>{"use strict";var F7e=Gs&&Gs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),L7e=Gs&&Gs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),k$=Gs&&Gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&F7e(e,t,A);return L7e(e,t),e},U7e=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Path=void 0;var qf=k$(require("path")),Ol=k$(n2()),Hf=U7e(require("assert")),T7e=process.platform==="win32",t8=class{static{a(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(Hf.default(e,"Parameter 'itemPath' must not be empty"),e=Ol.safeTrimTrailingSeparator(e),!Ol.hasRoot(e))this.segments=e.split(qf.sep);else{let A=e,r=Ol.dirname(A);for(;r!==A;){let i=qf.basename(A);this.segments.unshift(i),A=r,r=Ol.dirname(A)}this.segments.unshift(A)}else{Hf.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let A=0;A<e.length;A++){let r=e[A];Hf.default(r,"Parameter 'itemPath' must not contain any empty segments"),r=Ol.normalizeSeparators(e[A]),A===0&&Ol.hasRoot(r)?(r=Ol.safeTrimTrailingSeparator(r),Hf.default(r===Ol.dirname(r),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(r)):(Hf.default(!r.includes(qf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(r))}}}toString(){let e=this.segments[0],A=e.endsWith(qf.sep)||T7e&&/^[A-Z]:$/i.test(e);for(let r=1;r<this.segments.length;r++)A?A=!1:e+=qf.sep,e+=this.segments[r];return e}};Gs.Path=t8});var L$=E(Js=>{"use strict";var M7e=Js&&Js.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),_7e=Js&&Js.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i8=Js&&Js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&M7e(e,t,A);return _7e(e,t),e},O7e=Js&&Js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Js,"__esModule",{value:!0});Js.Pattern=void 0;var P7e=i8(require("os")),Yf=i8(require("path")),Cn=i8(n2()),Du=O7e(require("assert")),q7e=v$(),A8=s2(),c2=F$(),wc=process.platform==="win32",r8=class t{static{a(this,"Pattern")}constructor(e,A=!1,r,i){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{r=r||[],Du.default(r.length,"Parameter 'segments' must not empty");let l=t.getLiteral(r[0]);Du.default(l&&Cn.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new c2.Path(r).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,i),this.segments=new c2.Path(n).segments,this.trailingSeparator=Cn.normalizeSeparators(n).endsWith(Yf.sep),n=Cn.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new c2.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),wc?"i":""),this.isImplicitPattern=A;let c={dot:!0,nobrace:!0,nocase:wc,nocomment:!0,noext:!0,nonegate:!0};n=wc?n.replace(/\\/g,"/"):n,this.minimatch=new q7e.Minimatch(n,c)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Cn.normalizeSeparators(e),!e.endsWith(Yf.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Yf.sep}`)):e=Cn.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?A8.MatchKind.Directory:A8.MatchKind.All:A8.MatchKind.None}partialMatch(e){return e=Cn.safeTrimTrailingSeparator(e),Cn.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(wc?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(wc?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,A){Du.default(e,"pattern cannot be empty");let r=new c2.Path(e).segments.map(i=>t.getLiteral(i));if(Du.default(r.every((i,n)=>(i!=="."||n===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Du.default(!Cn.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contLine truncated
>>> no match, partial?`,t,d,e,u),d===s))}var g;if(typeof c=="string"?(g=l===c,this.debug("string match",c,l,g)):(g=l.match(c),this.debug("pattern match",c,l,g)),!g)return!1}if(i===s&&n===o)return!0;if(i===s)return A;if(n===o)return i===s-1&&t[i]==="";throw new Error("wtf?")};function v7e(t){return t.replace(/\\(.)/g,"$1")}a(v7e,"globUnescape");function k7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}a(k7e,"regExpEscape")});var L$=E(Gs=>{"use strict";var F7e=Gs&&Gs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),L7e=Gs&&Gs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),F$=Gs&&Gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&F7e(e,t,A);return L7e(e,t),e},U7e=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Path=void 0;var qf=F$(require("path")),Ol=F$(n2()),Hf=U7e(require("assert")),T7e=process.platform==="win32",t8=class{static{a(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(Hf.default(e,"Parameter 'itemPath' must not be empty"),e=Ol.safeTrimTrailingSeparator(e),!Ol.hasRoot(e))this.segments=e.split(qf.sep);else{let A=e,r=Ol.dirname(A);for(;r!==A;){let i=qf.basename(A);this.segments.unshift(i),A=r,r=Ol.dirname(A)}this.segments.unshift(A)}else{Hf.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let A=0;A<e.length;A++){let r=e[A];Hf.default(r,"Parameter 'itemPath' must not contain any empty segments"),r=Ol.normalizeSeparators(e[A]),A===0&&Ol.hasRoot(r)?(r=Ol.safeTrimTrailingSeparator(r),Hf.default(r===Ol.dirname(r),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(r)):(Hf.default(!r.includes(qf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(r))}}}toString(){let e=this.segments[0],A=e.endsWith(qf.sep)||T7e&&/^[A-Z]:$/i.test(e);for(let r=1;r<this.segments.length;r++)A?A=!1:e+=qf.sep,e+=this.segments[r];return e}};Gs.Path=t8});var U$=E(Js=>{"use strict";var M7e=Js&&Js.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),_7e=Js&&Js.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i8=Js&&Js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&M7e(e,t,A);return _7e(e,t),e},O7e=Js&&Js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Js,"__esModule",{value:!0});Js.Pattern=void 0;var P7e=i8(require("os")),Yf=i8(require("path")),Cn=i8(n2()),Du=O7e(require("assert")),q7e=k$(),A8=s2(),c2=L$(),wc=process.platform==="win32",r8=class t{static{a(this,"Pattern")}constructor(e,A=!1,r,i){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{r=r||[],Du.default(r.length,"Parameter 'segments' must not empty");let l=t.getLiteral(r[0]);Du.default(l&&Cn.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new c2.Path(r).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,i),this.segments=new c2.Path(n).segments,this.trailingSeparator=Cn.normalizeSeparators(n).endsWith(Yf.sep),n=Cn.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new c2.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),wc?"i":""),this.isImplicitPattern=A;let c={dot:!0,nobrace:!0,nocase:wc,nocomment:!0,noext:!0,nonegate:!0};n=wc?n.replace(/\\/g,"/"):n,this.minimatch=new q7e.Minimatch(n,c)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Cn.normalizeSeparators(e),!e.endsWith(Yf.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Yf.sep}`)):e=Cn.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?A8.MatchKind.Directory:A8.MatchKind.All:A8.MatchKind.None}partialMatch(e){return e=Cn.safeTrimTrailingSeparator(e),Cn.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(wc?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(wc?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,A){Du.default(e,"pattern cannot be empty");let r=new c2.Path(e).segments.map(i=>t.getLiteral(i));if(Du.default(r.every((i,n)=>(i!=="."||n===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Du.default(!Cn.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contLine truncated
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||r.patterns.push(new _$.Pattern(n));return r.searchPaths.push(...d2.getSearchPaths(r.patterns)),r})}static stat(e,A,r){return s8(this,void 0,void 0,function*(){let i;if(A.followSymbolicLinks)try{i=yield Gf.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(A.omitBrokenSymbolicLinks){a8.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield Gf.promises.lstat(e.path);if(i.isDirectory()&&A.followSymbolicLinks){let n=yield Gf.promises.realpath(e.path);for(;r.length>=e.level;)r.pop();if(r.some(s=>s===n)){a8.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}r.push(n)}return i})}};xr.DefaultGlobber=o8});var q$=E(bh=>{"use strict";var z7e=bh&&bh.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(bh,"__esModule",{value:!0});bh.create=void 0;var j7e=P$();function X7e(t,e){return z7e(this,void 0,void 0,function*(){return yield j7e.DefaultGlobber.create(t,e)})}a(X7e,"create");bh.create=X7e});var E2=E((Fe,V$)=>{Fe=V$.exports=Ve;var Nt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Nt=a(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Nt=a(function(){},"debug");Fe.SEMVER_SPEC_VERSION="2.0.0";var Vf=256,u2=Number.MAX_SAFE_INTEGER||9007199254740991,c8=16,Z7e=Vf-6,Nh=Fe.re=[],bt=Fe.safeRe=[],T=Fe.src=[],U=Fe.tokens={},G$=0;function $e(t){U[t]=G$++}a($e,"tok");var d8="[a-zA-Z0-9-]",l8=[["\\s",1],["\\d",Vf],[d8,Z7e]];function zf(t){for(var e=0;e<l8.length;e++){var A=l8[e][0],r=l8[e][1];t=t.split(A+"*").join(A+"{0,"+r+"}").split(A+"+").join(A+"{1,"+r+"}")}return t}a(zf,"makeSafeRe");$e("NUMERICIDENTIFIER");T[U.NUMERICIDENTIFIER]="0|[1-9]\\d*";$e("NUMERICIDENTIFIERLOOSE");T[U.NUMERICIDENTIFIERLOOSE]="\\d+";$e("NONNUMERICIDENTIFIER");T[U.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+d8+"*";$e("MAINVERSION");T[U.MAINVERSION]="("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")";$e("MAINVERSIONLOOSE");T[U.MAINVERSIONLOOSE]="("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")";$e("PRERELEASEIDENTIFIER");T[U.PRERELEASEIDENTIFIER]="(?:"+T[U.NUMERICIDENTIFIER]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASEIDENTIFIERLOOSE");T[U.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[U.NUMERICIDENTIFIERLOOSE]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASE");T[U.PRERELEASE]="(?:-("+T[U.PRERELEASEIDENTIFIER]+"(?:\\."+T[U.PRERELEASEIDENTIFIER]+")*))";$e("PRERELEASELOOSE");T[U.PRERELEASELOOSE]="(?:-?("+T[U.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[U.PRERELEASEIDENTIFIERLOOSE]+")*))";$e("BUILDIDENTIFIER");T[U.BUILDIDENTIFIER]=d8+"+";$e("BUILD");T[U.BUILD]="(?:\\+("+T[U.BUILDIDENTIFIER]+"(?:\\."+T[U.BUILDIDENTIFIER]+")*))";$e("FULL");$e("FULLPLAIN");T[U.FULLPLAIN]="v?"+T[U.MAINVERSION]+T[U.PRERELEASE]+"?"+T[U.BUILD]+"?";T[U.FULL]="^"+T[U.FULLPLAIN]+"$";$e("LOOSEPLAIN");T[U.LOOSEPLAIN]="[v=\\s]*"+T[U.MAINVERSIONLOOSE]+T[U.PRERELEASELOOSE]+"?"+T[U.BUILD]+"?";$e("LOOSE");T[U.LOOSE]="^"+T[U.LOOSEPLAIN]+"$";$e("GTLT");T[U.GTLT]="((?:<|>)?=?)";$e("XRANGEIDENTIFIERLOOSE");T[U.XRANGEIDENTIFIERLOOSE]=T[U.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";$e("XRANGEIDENTIFIER");T[U.XRANGEIDENTIFIER]=T[U.NUMERICIDENTIFIER]+"|x|X|\\*";$e("XRANGEPLAIN");T[U.XRANGEPLAIN]="[v=\\s]*("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:"+T[U.PRERELEASE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGEPLAINLOOSE");T[U.XRANGEPLAINLOOSE]="[v=\\s]*("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:"+T[U.PRERELEASELOOSE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGE");T[U.XRANGE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAIN]+"$";$e("XRANGELOOSE");T[U.XRANGELOOSE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAINLOOSE]+"$";$e("COERCE");T[U.COERCE]="(^|[^\\d])(\\d{1,"+c8+"})(?:\\.(\\d{1,"+c8+"}))?(?:\\.(\\d{1,"+c8+"}))?(?:$|[^\\d])";$e("COERCERTL");Nh[U.COERCERTL]=new RegExp(T[U.COERCE],"g");bt[U.COERCERTL]=new RegExp(zf(T[U.COERCE]),"g");$e("LONETILDE");T[U.LONETILDE]="(?:~>?)";$e("TILDETRIM");T[U.TILDETRIM]="(\\s*)"+T[U.LONETILDE]+"\\s+";Nh[U.TILDETRIM]=new RegExp(T[U.TILDETRIM],"g");bt[U.TILDETRIM]=new RegExp(zf(T[U.TILDETRIM]),"g");var K7e="$1~";$e("TILDE");T[U.TILDE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAIN]+"$";$e("TILDELOOSE");T[U.TILDELOOSE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAINLOOSE]+"$";$e("LONECARET");T[U.LONECARET]="(?:\\^)";$e("CARETTRIM");T[U.CARETTRIM]="(\\s*)"+T[U.LONECARET]+"\\s+";Nh[U.CARET Line truncated
`),{implicitDescendants:!1});try{for(var l=!0,d=TMe(c.globGenerator()),u;u=yield d.next(),e=u.done,!e;l=!0){i=u.value,l=!1;let p=i,g=m2.relative(o,p).replace(new RegExp(`\\${m2.sep}`,"g"),"/");jf.debug(`Matched: ${g}`),g===""?s.push("."):s.push(`${g}`)}}catch(p){A={error:p}}finally{try{!l&&!e&&(r=d.return)&&(yield r.call(d))}finally{if(A)throw A.error}}return s})}a(GMe,"resolvePaths");Et.resolvePaths=GMe;function JMe(t){return Sh(this,void 0,void 0,function*(){return PMe.promisify(E8.unlink)(t)})}a(JMe,"unlinkFile");Et.unlinkFile=JMe;function K$(t,e=[]){return Sh(this,void 0,void 0,function*(){let A="";e.push("--version"),jf.debug(`Checking ${t} ${e.join(" ")}`);try{yield MMe.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:r=>A+=r.toString(),stderr:r=>A+=r.toString()}})}catch(r){jf.debug(r.message)}return A=A.trim(),jf.debug(A),A})}a(K$,"getVersion");function VMe(){return Sh(this,void 0,void 0,function*(){let t=yield K$("zstd",["--quiet"]),e=OMe.clean(t);return jf.debug(`zstd version: ${e}`),t===""?vu.CompressionMethod.Gzip:vu.CompressionMethod.ZstdWithoutLong})}a(VMe,"getCompressionMethod");Et.getCompressionMethod=VMe;function WMe(t){return t===vu.CompressionMethod.Gzip?vu.CacheFilename.Gzip:vu.CacheFilename.Zstd}a(WMe,"getCacheFileName");Et.getCacheFileName=WMe;function zMe(){return Sh(this,void 0,void 0,function*(){return E8.existsSync(vu.GnuTarPathOnWindows)?vu.GnuTarPathOnWindows:(yield K$("tar")).toLowerCase().includes("gnu tar")?X$.which("tar"):""})}a(zMe,"getGnuTarPathOnWindows");Et.getGnuTarPathOnWindows=zMe;function jMe(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}a(jMe,"assertDefined");Et.assertDefined=jMe;function XMe(t,e,A=!1){let r=t.slice();return e&&r.push(e),process.platform==="win32"&&!A&&r.push("windows-only"),r.push(qMe),Z$.createHash("sha256").update(r.join("|")).digest("hex")}a(XMe,"getCacheVersion");Et.getCacheVersion=XMe;function ZMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}a(ZMe,"getRuntimeToken");Et.getRuntimeToken=ZMe});function Xf(){return C2>f2.length-16&&($$.default.randomFillSync(f2),C2=0),f2.slice(C2,C2+=16)}var $$,f2,C2,m8=Le(()=>{$$=Nr(require("crypto")),f2=new Uint8Array(256),C2=f2.length;a(Xf,"rng")});var eee,tee=Le(()=>{eee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function KMe(t){return typeof t=="string"&&eee.test(t)}var ql,Zf=Le(()=>{tee();a(KMe,"validate");ql=KMe});function $Me(t,e=0){let A=(Ai[t[e+0]]+Ai[t[e+1]]+Ai[t[e+2]]+Ai[t[e+3]]+"-"+Ai[t[e+4]]+Ai[t[e+5]]+"-"+Ai[t[e+6]]+Ai[t[e+7]]+"-"+Ai[t[e+8]]+Ai[t[e+9]]+"-"+Ai[t[e+10]]+Ai[t[e+11]]+Ai[t[e+12]]+Ai[t[e+13]]+Ai[t[e+14]]+Ai[t[e+15]]).toLowerCase();if(!ql(A))throw TypeError("Stringified UUID is invalid");return A}var Ai,Hl,Kf=Le(()=>{Zf();Ai=[];for(let t=0;t<256;++t)Ai.push((t+256).toString(16).substr(1));a($Me,"stringify");Hl=$Me});function e_e(t,e,A){let r=e&&A||0,i=e||new Array(16);t=t||{};let n=t.node||Aee,s=t.clockseq!==void 0?t.clockseq:C8;if(n==null||s==null){let p=t.random||(t.rng||Xf)();n==null&&(n=Aee=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),s==null&&(s=C8=(p[6]<<8|p[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:Q8+1,l=o-f8+(c-Q8)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||o>f8)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f8=o,Q8=c,C8=s,o+=122192928e5;let d=((o&268435455)*1e4+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let u=o/4294967296*1e4&268435455;i[r++]=u>>>8&255,i[r++]=u&255,i[r++]=u>>>24&15|16,i[r++]=u>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let p=0;p<6;++p)i[r+p]=n[p];return e||Hl(i)}var Aee,C8,f8,Q8,ree,iee=Le(()=>{m8();Kf();f8=0,Q8=0;a(e_e,"v1");ree=e_e});function t_e(t){if(!ql(t))throw TypeError("Invalid UUID");let e,A=new Uint8Array(16);return A[0]=(e=parseInt(t.slice(0,8),16))>>>24,A[1]=e>>>16&255,A[2]=e>>>8&255,A[3]=e&255,A[4]=(e=parseInt(t.slice(9,13),16))>>>8,A[5]=e&255,A[6]=(e=parseInt(t.slice(14,18),16))>>>8,A[7]=e&255,A[8]=(e=parseInt(t.slice(19,23),16))>>>8,A[9]=e&255,A[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,A[11]=e/4294967296&255,A[12]=e>>>24&255,A[13]=e>>>16&255,A[14]=e>>>8&255,A[15]=e&255,A}var Q2,B8=Le(()=>{Zf();a(t_e,"parse");Q2=t_e});function A_e(t){t=unescape(encodeURIComponent(t));let e=[];for(let A=0;A<t.length;++A)e.push(t.charCodeAt(A));return e}function $f(t,e,A){function r(i,n,s,o){if(typeof i=="string"&&(i=A_e(i)),typeof n=="string"&&(n=Q2(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(n),c.set(i,n.length),c=A(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,s){o=o||0;for(let l=0;l<16;++l)s[o+l]=c[l];return s}return Hl(c)}a(r,"generateUUID");try{r.name=t}catch{}return r.DNS=r_e,r.URL=i_e,r}var r_e,i_e,I8=Le(()=>{Kf();B8();a(A_e,"st Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(b8)});var Io=E((Jee,Yl)=>{(function(){var t,e,A,r,i,n,s,o=[].slice,c={}.hasOwnProperty;t=a(function(){var l,d,u,p,g,h;if(h=arguments[0],g=2<=arguments.length?o.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(l=0,u=g.length;l<u;l++)if(p=g[l],p!=null)for(d in p)c.call(p,d)&&(h[d]=p[d]);return h},"assign"),i=a(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=a(function(l){var d;return!!l&&((d=typeof l)=="function"||d==="object")},"isObject"),A=a(function(l){return i(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),r=a(function(l){var d;if(A(l))return!l.length;for(d in l)if(c.call(l,d))return!1;return!0},"isEmpty"),s=a(function(l){var d,u;return n(l)&&(u=Object.getPrototypeOf(l))&&(d=u.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},"isPlainObject"),e=a(function(l){return i(l.valueOf)?l.valueOf():l},"getValue"),Yl.exports.assign=t,Yl.exports.isFunction=i,Yl.exports.isObject=n,Yl.exports.isArray=A,Yl.exports.isEmpty=r,Yl.exports.isPlainObject=s,Yl.exports.getValue=e}).call(Jee)});var N8=E((Vee,Wee)=>{(function(){var t;Wee.exports=t=function(){function e(){}return a(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(A,r){return!0},e.prototype.createDocumentType=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(A,r){throw new Error("This DOM method is not implemented.")},e}()}).call(Vee)});var Xee=E((zee,jee)=>{(function(){var t;jee.exports=t=function(){function e(){}return a(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(A){throw new Error(A)},e}()}).call(zee)});var $ee=E((Zee,Kee)=>{(function(){var t;Kee.exports=t=function(){function e(A){this.arr=A||[]}return a(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(A){return this.arr[A]||null},e.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},e}()}).call(Zee)});var Ate=E((ete,tte)=>{(function(){var t,e,A;e=Xee(),A=$ee(),tte.exports=t=function(){function r(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return a(r,"XMLDOMConfiguration"),Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},r.prototype.canSetParameter=function(i,n){return!0},r.prototype.setParameter=function(i,n){return n!=null?this.params[i]=n:delete this.params[i]},r}()}).call(ete)});var KA=E((rte,ite)=>{(function(){ite.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(rte)});var R8=E((nte,ste)=>{(function(){var t,e,A;t=KA(),A=rs(),ste.exports=e=function(){function r(i,n,s){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return a(r,"XMLAttribute"),Object.defineProperty(r.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(r.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"specified",{get:function(){return!0}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},r.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},r.prototype.isEqualNode=function(i Line truncated
`,C.offset=(S=I.offset)!=null?S:0,C.dontPrettyTextNodes=(w=(k=I.dontPrettyTextNodes)!=null?k:I.dontprettytextnodes)!=null?w:0,C.spaceBeforeSlash=(D=(v=I.spaceBeforeSlash)!=null?v:I.spacebeforeslash)!=null?D:"",C.spaceBeforeSlash===!0&&(C.spaceBeforeSlash=" "),C.suppressPrettyCount=0,C.user={},C.state=e.None,C},b.prototype.indent=function(I,C,Q){var N;return!C.pretty||C.suppressPrettyCount?"":C.pretty&&(N=(Q||0)+C.offset+1,N>0)?new Array(N).join(C.indent):""},b.prototype.endline=function(I,C,Q){return!C.pretty||C.suppressPrettyCount?"":C.newline},b.prototype.attribute=function(I,C,Q){var N;return this.openAttribute(I,C,Q),N=" "+I.name+'="'+I.value+'"',this.closeAttribute(I,C,Q),N},b.prototype.cdata=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<![CDATA[",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+="]]>"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.comment=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!-- ",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=" -->"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.declaration=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?xml",C.state=e.InsideTag,N+=' version="'+I.version+'"',I.encoding!=null&&(N+=' encoding="'+I.encoding+'"'),I.standalone!=null&&(N+=' standalone="'+I.standalone+'"'),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.docType=function(I,C,Q){var N,S,w,k,D;if(Q||(Q=0),this.openNode(I,C,Q),C.state=e.OpenTag,k=this.indent(I,C,Q),k+="<!DOCTYPE "+I.root().name,I.pubID&&I.sysID?k+=' PUBLIC "'+I.pubID+'" "'+I.sysID+'"':I.sysID&&(k+=' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(k+=" [",k+=this.endline(I,C,Q),C.state=e.InsideTag,D=I.children,S=0,w=D.length;S<w;S++)N=D[S],k+=this.writeChildNode(N,C,Q+1);C.state=e.CloseTag,k+="]"}return C.state=e.CloseTag,k+=C.spaceBeforeSlash+">",k+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),k},b.prototype.element=function(I,C,Q){var N,S,w,k,D,v,x,L,q,le,_,rt,Se,vt;Q||(Q=0),le=!1,_="",this.openNode(I,C,Q),C.state=e.OpenTag,_+=this.indent(I,C,Q)+"<"+I.name,rt=I.attribs;for(q in rt)B.call(rt,q)&&(N=rt[q],_+=this.attribute(N,C,Q));if(w=I.children.length,k=w===0?null:I.children[0],w===0||I.children.every(function(ht){return(ht.type===t.Text||ht.type===t.Raw)&&ht.value===""}))C.allowEmpty?(_+=">",C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q)):(C.state=e.CloseTag,_+=C.spaceBeforeSlash+"/>"+this.endline(I,C,Q));else if(C.pretty&&w===1&&(k.type===t.Text||k.type===t.Raw)&&k.value!=null)_+=">",C.state=e.InsideTag,C.suppressPrettyCount++,le=!0,_+=this.writeChildNode(k,C,Q+1),C.suppressPrettyCount--,le=!1,C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q);else{if(C.dontPrettyTextNodes){for(Se=I.children,D=0,x=Se.length;D<x;D++)if(S=Se[D],(S.type===t.Text||S.type===t.Raw)&&S.value!=null){C.suppressPrettyCount++,le=!0;break}}for(_+=">"+this.endline(I,C,Q),C.state=e.InsideTag,vt=I.children,v=0,L=vt.length;v<L;v++)S=vt[v],_+=this.writeChildNode(S,C,Q+1);C.state=e.CloseTag,_+=this.indent(I,C,Q)+"</"+I.name+">",le&&C.suppressPrettyCount--,_+=this.endline(I,C,Q),C.state=e.None}return this.closeNode(I,C,Q),_},b.prototype.writeChildNode=function(I,C,Q){switch(I.type){case t.CData:return this.cdata(I,C,Q);case t.Comment:return this.comment(I,C,Q);case t.Element:return this.element(I,C,Q);case t.Raw:return this.raw(I,C,Q);case t.Text:return this.text(I,C,Q);case t.ProcessingInstruction:return this.processingInstruction(I,C,Q);case t.Dummy:return"";case t.Declaration:return this.declaration(I,C,Q);case t.DocType:return this.docType(I,C,Q);case t.AttributeDeclaration:return this.dtdAttList(I,C,Q);case t.ElementDeclaration:return this.dtdElement(I,C,Q);case t.EntityDeclaration:return this.dtdEntity(I,C,Q);case t.NotationDeclaration:return this.dtdNotation(I,C,Q);default:throw new Error("Unknown XML node type: "+I.constructor.name)}},b.prototype.processingInstruction=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?",C.state=e.InsideTag,N+=I.target,I.value&&(N+=" "+I.value),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.raw=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.text=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.dtdAttList=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!ATTLIST",C.state=e.InsideTag,N+=" "+I.elementName+" "+I.attributeName+" "+I.attributeTyp Line truncated
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||r.patterns.push(new O$.Pattern(n));return r.searchPaths.push(...d2.getSearchPaths(r.patterns)),r})}static stat(e,A,r){return s8(this,void 0,void 0,function*(){let i;if(A.followSymbolicLinks)try{i=yield Gf.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(A.omitBrokenSymbolicLinks){a8.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield Gf.promises.lstat(e.path);if(i.isDirectory()&&A.followSymbolicLinks){let n=yield Gf.promises.realpath(e.path);for(;r.length>=e.level;)r.pop();if(r.some(s=>s===n)){a8.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}r.push(n)}return i})}};xr.DefaultGlobber=o8});var H$=E(bh=>{"use strict";var z7e=bh&&bh.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(bh,"__esModule",{value:!0});bh.create=void 0;var j7e=q$();function X7e(t,e){return z7e(this,void 0,void 0,function*(){return yield j7e.DefaultGlobber.create(t,e)})}a(X7e,"create");bh.create=X7e});var E2=E((Fe,W$)=>{Fe=W$.exports=Ve;var Nt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Nt=a(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Nt=a(function(){},"debug");Fe.SEMVER_SPEC_VERSION="2.0.0";var Vf=256,u2=Number.MAX_SAFE_INTEGER||9007199254740991,c8=16,Z7e=Vf-6,Nh=Fe.re=[],bt=Fe.safeRe=[],T=Fe.src=[],U=Fe.tokens={},J$=0;function $e(t){U[t]=J$++}a($e,"tok");var d8="[a-zA-Z0-9-]",l8=[["\\s",1],["\\d",Vf],[d8,Z7e]];function zf(t){for(var e=0;e<l8.length;e++){var A=l8[e][0],r=l8[e][1];t=t.split(A+"*").join(A+"{0,"+r+"}").split(A+"+").join(A+"{1,"+r+"}")}return t}a(zf,"makeSafeRe");$e("NUMERICIDENTIFIER");T[U.NUMERICIDENTIFIER]="0|[1-9]\\d*";$e("NUMERICIDENTIFIERLOOSE");T[U.NUMERICIDENTIFIERLOOSE]="\\d+";$e("NONNUMERICIDENTIFIER");T[U.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+d8+"*";$e("MAINVERSION");T[U.MAINVERSION]="("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")";$e("MAINVERSIONLOOSE");T[U.MAINVERSIONLOOSE]="("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")";$e("PRERELEASEIDENTIFIER");T[U.PRERELEASEIDENTIFIER]="(?:"+T[U.NUMERICIDENTIFIER]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASEIDENTIFIERLOOSE");T[U.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[U.NUMERICIDENTIFIERLOOSE]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASE");T[U.PRERELEASE]="(?:-("+T[U.PRERELEASEIDENTIFIER]+"(?:\\."+T[U.PRERELEASEIDENTIFIER]+")*))";$e("PRERELEASELOOSE");T[U.PRERELEASELOOSE]="(?:-?("+T[U.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[U.PRERELEASEIDENTIFIERLOOSE]+")*))";$e("BUILDIDENTIFIER");T[U.BUILDIDENTIFIER]=d8+"+";$e("BUILD");T[U.BUILD]="(?:\\+("+T[U.BUILDIDENTIFIER]+"(?:\\."+T[U.BUILDIDENTIFIER]+")*))";$e("FULL");$e("FULLPLAIN");T[U.FULLPLAIN]="v?"+T[U.MAINVERSION]+T[U.PRERELEASE]+"?"+T[U.BUILD]+"?";T[U.FULL]="^"+T[U.FULLPLAIN]+"$";$e("LOOSEPLAIN");T[U.LOOSEPLAIN]="[v=\\s]*"+T[U.MAINVERSIONLOOSE]+T[U.PRERELEASELOOSE]+"?"+T[U.BUILD]+"?";$e("LOOSE");T[U.LOOSE]="^"+T[U.LOOSEPLAIN]+"$";$e("GTLT");T[U.GTLT]="((?:<|>)?=?)";$e("XRANGEIDENTIFIERLOOSE");T[U.XRANGEIDENTIFIERLOOSE]=T[U.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";$e("XRANGEIDENTIFIER");T[U.XRANGEIDENTIFIER]=T[U.NUMERICIDENTIFIER]+"|x|X|\\*";$e("XRANGEPLAIN");T[U.XRANGEPLAIN]="[v=\\s]*("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:"+T[U.PRERELEASE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGEPLAINLOOSE");T[U.XRANGEPLAINLOOSE]="[v=\\s]*("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:"+T[U.PRERELEASELOOSE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGE");T[U.XRANGE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAIN]+"$";$e("XRANGELOOSE");T[U.XRANGELOOSE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAINLOOSE]+"$";$e("COERCE");T[U.COERCE]="(^|[^\\d])(\\d{1,"+c8+"})(?:\\.(\\d{1,"+c8+"}))?(?:\\.(\\d{1,"+c8+"}))?(?:$|[^\\d])";$e("COERCERTL");Nh[U.COERCERTL]=new RegExp(T[U.COERCE],"g");bt[U.COERCERTL]=new RegExp(zf(T[U.COERCE]),"g");$e("LONETILDE");T[U.LONETILDE]="(?:~>?)";$e("TILDETRIM");T[U.TILDETRIM]="(\\s*)"+T[U.LONETILDE]+"\\s+";Nh[U.TILDETRIM]=new RegExp(T[U.TILDETRIM],"g");bt[U.TILDETRIM]=new RegExp(zf(T[U.TILDETRIM]),"g");var K7e="$1~";$e("TILDE");T[U.TILDE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAIN]+"$";$e("TILDELOOSE");T[U.TILDELOOSE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAINLOOSE]+"$";$e("LONECARET");T[U.LONECARET]="(?:\\^)";$e("CARETTRIM");T[U.CARETTRIM]="(\\s*)"+T[U.LONECARET]+"\\s+";Nh[U.CARET Line truncated
`),{implicitDescendants:!1});try{for(var l=!0,d=TMe(c.globGenerator()),u;u=yield d.next(),e=u.done,!e;l=!0){i=u.value,l=!1;let p=i,g=m2.relative(o,p).replace(new RegExp(`\\${m2.sep}`,"g"),"/");jf.debug(`Matched: ${g}`),g===""?s.push("."):s.push(`${g}`)}}catch(p){A={error:p}}finally{try{!l&&!e&&(r=d.return)&&(yield r.call(d))}finally{if(A)throw A.error}}return s})}a(GMe,"resolvePaths");Et.resolvePaths=GMe;function JMe(t){return Sh(this,void 0,void 0,function*(){return PMe.promisify(E8.unlink)(t)})}a(JMe,"unlinkFile");Et.unlinkFile=JMe;function $$(t,e=[]){return Sh(this,void 0,void 0,function*(){let A="";e.push("--version"),jf.debug(`Checking ${t} ${e.join(" ")}`);try{yield MMe.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:r=>A+=r.toString(),stderr:r=>A+=r.toString()}})}catch(r){jf.debug(r.message)}return A=A.trim(),jf.debug(A),A})}a($$,"getVersion");function VMe(){return Sh(this,void 0,void 0,function*(){let t=yield $$("zstd",["--quiet"]),e=OMe.clean(t);return jf.debug(`zstd version: ${e}`),t===""?vu.CompressionMethod.Gzip:vu.CompressionMethod.ZstdWithoutLong})}a(VMe,"getCompressionMethod");Et.getCompressionMethod=VMe;function WMe(t){return t===vu.CompressionMethod.Gzip?vu.CacheFilename.Gzip:vu.CacheFilename.Zstd}a(WMe,"getCacheFileName");Et.getCacheFileName=WMe;function zMe(){return Sh(this,void 0,void 0,function*(){return E8.existsSync(vu.GnuTarPathOnWindows)?vu.GnuTarPathOnWindows:(yield $$("tar")).toLowerCase().includes("gnu tar")?Z$.which("tar"):""})}a(zMe,"getGnuTarPathOnWindows");Et.getGnuTarPathOnWindows=zMe;function jMe(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}a(jMe,"assertDefined");Et.assertDefined=jMe;function XMe(t,e,A=!1){let r=t.slice();return e&&r.push(e),process.platform==="win32"&&!A&&r.push("windows-only"),r.push(qMe),K$.createHash("sha256").update(r.join("|")).digest("hex")}a(XMe,"getCacheVersion");Et.getCacheVersion=XMe;function ZMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}a(ZMe,"getRuntimeToken");Et.getRuntimeToken=ZMe});function Xf(){return C2>f2.length-16&&(eee.default.randomFillSync(f2),C2=0),f2.slice(C2,C2+=16)}var eee,f2,C2,m8=Le(()=>{eee=Nr(require("crypto")),f2=new Uint8Array(256),C2=f2.length;a(Xf,"rng")});var tee,Aee=Le(()=>{tee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function KMe(t){return typeof t=="string"&&tee.test(t)}var ql,Zf=Le(()=>{Aee();a(KMe,"validate");ql=KMe});function $Me(t,e=0){let A=(Ai[t[e+0]]+Ai[t[e+1]]+Ai[t[e+2]]+Ai[t[e+3]]+"-"+Ai[t[e+4]]+Ai[t[e+5]]+"-"+Ai[t[e+6]]+Ai[t[e+7]]+"-"+Ai[t[e+8]]+Ai[t[e+9]]+"-"+Ai[t[e+10]]+Ai[t[e+11]]+Ai[t[e+12]]+Ai[t[e+13]]+Ai[t[e+14]]+Ai[t[e+15]]).toLowerCase();if(!ql(A))throw TypeError("Stringified UUID is invalid");return A}var Ai,Hl,Kf=Le(()=>{Zf();Ai=[];for(let t=0;t<256;++t)Ai.push((t+256).toString(16).substr(1));a($Me,"stringify");Hl=$Me});function e_e(t,e,A){let r=e&&A||0,i=e||new Array(16);t=t||{};let n=t.node||ree,s=t.clockseq!==void 0?t.clockseq:C8;if(n==null||s==null){let p=t.random||(t.rng||Xf)();n==null&&(n=ree=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),s==null&&(s=C8=(p[6]<<8|p[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:Q8+1,l=o-f8+(c-Q8)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||o>f8)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f8=o,Q8=c,C8=s,o+=122192928e5;let d=((o&268435455)*1e4+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let u=o/4294967296*1e4&268435455;i[r++]=u>>>8&255,i[r++]=u&255,i[r++]=u>>>24&15|16,i[r++]=u>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let p=0;p<6;++p)i[r+p]=n[p];return e||Hl(i)}var ree,C8,f8,Q8,iee,nee=Le(()=>{m8();Kf();f8=0,Q8=0;a(e_e,"v1");iee=e_e});function t_e(t){if(!ql(t))throw TypeError("Invalid UUID");let e,A=new Uint8Array(16);return A[0]=(e=parseInt(t.slice(0,8),16))>>>24,A[1]=e>>>16&255,A[2]=e>>>8&255,A[3]=e&255,A[4]=(e=parseInt(t.slice(9,13),16))>>>8,A[5]=e&255,A[6]=(e=parseInt(t.slice(14,18),16))>>>8,A[7]=e&255,A[8]=(e=parseInt(t.slice(19,23),16))>>>8,A[9]=e&255,A[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,A[11]=e/4294967296&255,A[12]=e>>>24&255,A[13]=e>>>16&255,A[14]=e>>>8&255,A[15]=e&255,A}var Q2,B8=Le(()=>{Zf();a(t_e,"parse");Q2=t_e});function A_e(t){t=unescape(encodeURIComponent(t));let e=[];for(let A=0;A<t.length;++A)e.push(t.charCodeAt(A));return e}function $f(t,e,A){function r(i,n,s,o){if(typeof i=="string"&&(i=A_e(i)),typeof n=="string"&&(n=Q2(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(n),c.set(i,n.length),c=A(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,s){o=o||0;for(let l=0;l<16;++l)s[o+l]=c[l];return s}return Hl(c)}a(r,"generateUUID");try{r.name=t}catch{}return r.DNS=r_e,r.URL=i_e,r}var r_e,i_e,I8=Le(()=>{Kf();B8();a(A_e, Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(b8)});var Io=E((Vee,Yl)=>{(function(){var t,e,A,r,i,n,s,o=[].slice,c={}.hasOwnProperty;t=a(function(){var l,d,u,p,g,h;if(h=arguments[0],g=2<=arguments.length?o.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(l=0,u=g.length;l<u;l++)if(p=g[l],p!=null)for(d in p)c.call(p,d)&&(h[d]=p[d]);return h},"assign"),i=a(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=a(function(l){var d;return!!l&&((d=typeof l)=="function"||d==="object")},"isObject"),A=a(function(l){return i(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),r=a(function(l){var d;if(A(l))return!l.length;for(d in l)if(c.call(l,d))return!1;return!0},"isEmpty"),s=a(function(l){var d,u;return n(l)&&(u=Object.getPrototypeOf(l))&&(d=u.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},"isPlainObject"),e=a(function(l){return i(l.valueOf)?l.valueOf():l},"getValue"),Yl.exports.assign=t,Yl.exports.isFunction=i,Yl.exports.isObject=n,Yl.exports.isArray=A,Yl.exports.isEmpty=r,Yl.exports.isPlainObject=s,Yl.exports.getValue=e}).call(Vee)});var N8=E((Wee,zee)=>{(function(){var t;zee.exports=t=function(){function e(){}return a(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(A,r){return!0},e.prototype.createDocumentType=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(A,r){throw new Error("This DOM method is not implemented.")},e}()}).call(Wee)});var Zee=E((jee,Xee)=>{(function(){var t;Xee.exports=t=function(){function e(){}return a(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(A){throw new Error(A)},e}()}).call(jee)});var ete=E((Kee,$ee)=>{(function(){var t;$ee.exports=t=function(){function e(A){this.arr=A||[]}return a(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(A){return this.arr[A]||null},e.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},e}()}).call(Kee)});var rte=E((tte,Ate)=>{(function(){var t,e,A;e=Zee(),A=ete(),Ate.exports=t=function(){function r(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return a(r,"XMLDOMConfiguration"),Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},r.prototype.canSetParameter=function(i,n){return!0},r.prototype.setParameter=function(i,n){return n!=null?this.params[i]=n:delete this.params[i]},r}()}).call(tte)});var KA=E((ite,nte)=>{(function(){nte.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(ite)});var R8=E((ste,ate)=>{(function(){var t,e,A;t=KA(),A=rs(),ate.exports=e=function(){function r(i,n,s){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return a(r,"XMLAttribute"),Object.defineProperty(r.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(r.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"specified",{get:function(){return!0}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},r.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},r.prototype.isEqualNode=function(i Line truncated
`,C.offset=(S=I.offset)!=null?S:0,C.dontPrettyTextNodes=(w=(k=I.dontPrettyTextNodes)!=null?k:I.dontprettytextnodes)!=null?w:0,C.spaceBeforeSlash=(D=(v=I.spaceBeforeSlash)!=null?v:I.spacebeforeslash)!=null?D:"",C.spaceBeforeSlash===!0&&(C.spaceBeforeSlash=" "),C.suppressPrettyCount=0,C.user={},C.state=e.None,C},b.prototype.indent=function(I,C,Q){var N;return!C.pretty||C.suppressPrettyCount?"":C.pretty&&(N=(Q||0)+C.offset+1,N>0)?new Array(N).join(C.indent):""},b.prototype.endline=function(I,C,Q){return!C.pretty||C.suppressPrettyCount?"":C.newline},b.prototype.attribute=function(I,C,Q){var N;return this.openAttribute(I,C,Q),N=" "+I.name+'="'+I.value+'"',this.closeAttribute(I,C,Q),N},b.prototype.cdata=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<![CDATA[",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+="]]>"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.comment=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!-- ",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=" -->"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.declaration=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?xml",C.state=e.InsideTag,N+=' version="'+I.version+'"',I.encoding!=null&&(N+=' encoding="'+I.encoding+'"'),I.standalone!=null&&(N+=' standalone="'+I.standalone+'"'),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.docType=function(I,C,Q){var N,S,w,k,D;if(Q||(Q=0),this.openNode(I,C,Q),C.state=e.OpenTag,k=this.indent(I,C,Q),k+="<!DOCTYPE "+I.root().name,I.pubID&&I.sysID?k+=' PUBLIC "'+I.pubID+'" "'+I.sysID+'"':I.sysID&&(k+=' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(k+=" [",k+=this.endline(I,C,Q),C.state=e.InsideTag,D=I.children,S=0,w=D.length;S<w;S++)N=D[S],k+=this.writeChildNode(N,C,Q+1);C.state=e.CloseTag,k+="]"}return C.state=e.CloseTag,k+=C.spaceBeforeSlash+">",k+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),k},b.prototype.element=function(I,C,Q){var N,S,w,k,D,v,x,L,q,le,_,rt,Se,vt;Q||(Q=0),le=!1,_="",this.openNode(I,C,Q),C.state=e.OpenTag,_+=this.indent(I,C,Q)+"<"+I.name,rt=I.attribs;for(q in rt)B.call(rt,q)&&(N=rt[q],_+=this.attribute(N,C,Q));if(w=I.children.length,k=w===0?null:I.children[0],w===0||I.children.every(function(ht){return(ht.type===t.Text||ht.type===t.Raw)&&ht.value===""}))C.allowEmpty?(_+=">",C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q)):(C.state=e.CloseTag,_+=C.spaceBeforeSlash+"/>"+this.endline(I,C,Q));else if(C.pretty&&w===1&&(k.type===t.Text||k.type===t.Raw)&&k.value!=null)_+=">",C.state=e.InsideTag,C.suppressPrettyCount++,le=!0,_+=this.writeChildNode(k,C,Q+1),C.suppressPrettyCount--,le=!1,C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q);else{if(C.dontPrettyTextNodes){for(Se=I.children,D=0,x=Se.length;D<x;D++)if(S=Se[D],(S.type===t.Text||S.type===t.Raw)&&S.value!=null){C.suppressPrettyCount++,le=!0;break}}for(_+=">"+this.endline(I,C,Q),C.state=e.InsideTag,vt=I.children,v=0,L=vt.length;v<L;v++)S=vt[v],_+=this.writeChildNode(S,C,Q+1);C.state=e.CloseTag,_+=this.indent(I,C,Q)+"</"+I.name+">",le&&C.suppressPrettyCount--,_+=this.endline(I,C,Q),C.state=e.None}return this.closeNode(I,C,Q),_},b.prototype.writeChildNode=function(I,C,Q){switch(I.type){case t.CData:return this.cdata(I,C,Q);case t.Comment:return this.comment(I,C,Q);case t.Element:return this.element(I,C,Q);case t.Raw:return this.raw(I,C,Q);case t.Text:return this.text(I,C,Q);case t.ProcessingInstruction:return this.processingInstruction(I,C,Q);case t.Dummy:return"";case t.Declaration:return this.declaration(I,C,Q);case t.DocType:return this.docType(I,C,Q);case t.AttributeDeclaration:return this.dtdAttList(I,C,Q);case t.ElementDeclaration:return this.dtdElement(I,C,Q);case t.EntityDeclaration:return this.dtdEntity(I,C,Q);case t.NotationDeclaration:return this.dtdNotation(I,C,Q);default:throw new Error("Unknown XML node type: "+I.constructor.name)}},b.prototype.processingInstruction=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?",C.state=e.InsideTag,N+=I.target,I.value&&(N+=" "+I.value),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.raw=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.text=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.dtdAttList=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!ATTLIST",C.state=e.InsideTag,N+=" "+I.elementName+" "+I.attributeName+" "+I.attributeTyp Line truncated
`||R==="\r"||R===" "}a(I,"isWhitespace");function C(R){return R==='"'||R==="'"}a(C,"isQuote");function Q(R){return R===">"||I(R)}a(Q,"isAttribEnd");function N(R,y){return R.test(y)}a(N,"isMatch");function S(R,y){return!N(R,y)}a(S,"notMatch");var w=0;t.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var y=t.ENTITIES[R],M=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[R]=M});for(var k in t.STATE)t.STATE[t.STATE[k]]=k;w=t.STATE;function D(R,y,M){R[y]&&R[y](M)}a(D,"emit");function v(R,y,M){R.textNode&&x(R),D(R,y,M)}a(v,"emitNode");function x(R){R.textNode=L(R.opt,R.textNode),R.textNode&&D(R,"ontext",R.textNode),R.textNode=""}a(x,"closeText");function L(R,y){return R.trim&&(y=y.trim()),R.normalize&&(y=y.replace(/\s+/g," ")),y}a(L,"textopts");function q(R,y){return x(R),R.trackPosition&&(y+=`
Line: `+R.line+`
Column: `+R.column+`
Char: `+R.c),y=new Error(y),R.error=y,D(R,"onerror",y),R}a(q,"error");function le(R){return R.sawRoot&&!R.closedRoot&&_(R,"Unclosed root tag"),R.state!==w.BEGIN&&R.state!==w.BEGIN_WHITESPACE&&R.state!==w.TEXT&&q(R,"Unexpected end"),x(R),R.c="",R.closed=!0,D(R,"onend"),A.call(R,R.strict,R.opt),R}a(le,"end");function _(R,y){if(typeof R!="object"||!(R instanceof A))throw new Error("bad call to strictFail");R.strict&&q(R,y)}a(_,"strictFail");function rt(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var y=R.tags[R.tags.length-1]||R,M=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(M.ns=y.ns),R.attribList.length=0,v(R,"onopentagstart",M)}a(rt,"newTag");function Se(R,y){var M=R.indexOf(":"),F=M<0?["",R]:R.split(":"),kt=F[0],pr=F[1];return y&&R==="xmlns"&&(kt="xmlns",pr=""),{prefix:kt,local:pr}}a(Se,"qname");function vt(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var y=Se(R.attribName,!0),M=y.prefix,F=y.local;if(M==="xmlns")if(F==="xml"&&R.attribValue!==p)_(R,"xml: prefix must be bound to "+p+`
Actual: `+R.attribValue);else if(F==="xmlns"&&R.attribValue!==g)_(R,"xmlns: prefix must be bound to "+g+`
Actual: `+R.attribValue);else{var kt=R.tag,pr=R.tags[R.tags.length-1]||R;kt.ns===pr.ns&&(kt.ns=Object.create(pr.ns)),kt.ns[F]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,v(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}a(vt,"attrib");function ht(R,y){if(R.opt.xmlns){var M=R.tag,F=Se(R.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(_(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),M.uri=F.prefix);var kt=R.tags[R.tags.length-1]||R;M.ns&&kt.ns!==M.ns&&Object.keys(M.ns).forEach(function(b_){v(R,"onopennamespace",{prefix:b_,uri:M.ns[b_]})});for(var pr=0,gr=R.attribList.length;pr<gr;pr++){var Xi=R.attribList[pr],ys=Xi[0],kp=Xi[1],Jr=Se(ys,!0),Xo=Jr.prefix,ZQe=Jr.local,w_=Xo===""?"":M.ns[Xo]||"",c4={name:ys,value:kp,prefix:Xo,local:ZQe,uri:w_};Xo&&Xo!=="xmlns"&&!w_&&(_(R,"Unbound namespace prefix: "+JSON.stringify(Xo)),c4.uri=Xo),R.tag.attributes[ys]=c4,v(R,"onattribute",c4)}R.attribList.length=0}R.tag.isSelfClosing=!!y,R.sawRoot=!0,R.tags.push(R.tag),v(R,"onopentag",R.tag),y||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=w.SCRIPT:R.state=w.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}a(ht,"openTag");function wr(R){if(!R.tagName){_(R,"Weird empty close tag."),R.textNode+="</>",R.state=w.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=w.SCRIPT;return}v(R,"onscript",R.script),R.script=""}var y=R.tags.length,M=R.tagName;R.strict||(M=M[R.looseCase]());for(var F=M;y--;){var kt=R.tags[y];if(kt.name!==F)_(R,"Unexpected close tag");else break}if(y<0){_(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=w.TEXT;return}R.tagName=M;for(var pr=R.tags.length;pr-- >y;){var gr=R.tag=R.tags.pop();R.tagName=R.tag.name,v(R,"onclosetag",R.tagName);var Xi={};for(var ys in gr.ns)Xi[ys]=gr.ns[ys];var kp=R.tags[R.tags.length-1]||R;R.opt.xmlns&&gr.ns!==kp.ns&&Object.keys(gr.ns).forEach(function(Jr){var Xo=gr.ns[Jr];v(R,"onclosenamespace",{prefix:Jr,uri:Xo})})}y===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=w.TEXT}a(wr,"closeTag");function br(R){var y=R.entity,M=y.toLowerCase(),F,kt="";return R.ENTITIES[y]?R.ENTITIES[y]:R.ENTITIES[M]?R.ENTITIES[M]:(y=M,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),F=parseInt(y,16),kt=F.toString(16)):(y=y.slice(1),F=parseInt(y,10),kt=F.toString(10))),y=y.replace(/^0+/,""),isNaN(F)||kt.toLowerCase()!==y?(_(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(F))}a(br,"parseEntity");function pe(R,y){y==="<"?(R.state=w.OPEN_WAKA,R.startTagPosition=R.position):I(y)||(_(R,"Non-whitespace before first tag."),R.textNode=y,R.state=w.TEXT)}a(pe,"beginWhiteSpace");function ot(R,y){var M="";return y<R.length&&(M=R.charAt(y)),M}a(ot,"charAt");function Ct(R){var y=this;if(this.error)throw this.error;if(y.closed)return q(y,"Cannot write after close. Assign an onready handler.");if(R===null)return le(y);typeof R=="object"&&(R=R.toString());for(var M=0,F="";F=ot(R,M++),y.c=F,!!F;)switch(y.trackPosition&&(y.position++,F===`
Actual: `+R.attribValue);else{var kt=R.tag,pr=R.tags[R.tags.length-1]||R;kt.ns===pr.ns&&(kt.ns=Object.create(pr.ns)),kt.ns[F]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,v(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}a(vt,"attrib");function ht(R,y){if(R.opt.xmlns){var M=R.tag,F=Se(R.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(_(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),M.uri=F.prefix);var kt=R.tags[R.tags.length-1]||R;M.ns&&kt.ns!==M.ns&&Object.keys(M.ns).forEach(function(N_){v(R,"onopennamespace",{prefix:N_,uri:M.ns[N_]})});for(var pr=0,gr=R.attribList.length;pr<gr;pr++){var Xi=R.attribList[pr],ys=Xi[0],kp=Xi[1],Jr=Se(ys,!0),Xo=Jr.prefix,ZQe=Jr.local,b_=Xo===""?"":M.ns[Xo]||"",c4={name:ys,value:kp,prefix:Xo,local:ZQe,uri:b_};Xo&&Xo!=="xmlns"&&!b_&&(_(R,"Unbound namespace prefix: "+JSON.stringify(Xo)),c4.uri=Xo),R.tag.attributes[ys]=c4,v(R,"onattribute",c4)}R.attribList.length=0}R.tag.isSelfClosing=!!y,R.sawRoot=!0,R.tags.push(R.tag),v(R,"onopentag",R.tag),y||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=w.SCRIPT:R.state=w.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}a(ht,"openTag");function wr(R){if(!R.tagName){_(R,"Weird empty close tag."),R.textNode+="</>",R.state=w.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=w.SCRIPT;return}v(R,"onscript",R.script),R.script=""}var y=R.tags.length,M=R.tagName;R.strict||(M=M[R.looseCase]());for(var F=M;y--;){var kt=R.tags[y];if(kt.name!==F)_(R,"Unexpected close tag");else break}if(y<0){_(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=w.TEXT;return}R.tagName=M;for(var pr=R.tags.length;pr-- >y;){var gr=R.tag=R.tags.pop();R.tagName=R.tag.name,v(R,"onclosetag",R.tagName);var Xi={};for(var ys in gr.ns)Xi[ys]=gr.ns[ys];var kp=R.tags[R.tags.length-1]||R;R.opt.xmlns&&gr.ns!==kp.ns&&Object.keys(gr.ns).forEach(function(Jr){var Xo=gr.ns[Jr];v(R,"onclosenamespace",{prefix:Jr,uri:Xo})})}y===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=w.TEXT}a(wr,"closeTag");function br(R){var y=R.entity,M=y.toLowerCase(),F,kt="";return R.ENTITIES[y]?R.ENTITIES[y]:R.ENTITIES[M]?R.ENTITIES[M]:(y=M,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),F=parseInt(y,16),kt=F.toString(16)):(y=y.slice(1),F=parseInt(y,10),kt=F.toString(10))),y=y.replace(/^0+/,""),isNaN(F)||kt.toLowerCase()!==y?(_(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(F))}a(br,"parseEntity");function pe(R,y){y==="<"?(R.state=w.OPEN_WAKA,R.startTagPosition=R.position):I(y)||(_(R,"Non-whitespace before first tag."),R.textNode=y,R.state=w.TEXT)}a(pe,"beginWhiteSpace");function ot(R,y){var M="";return y<R.length&&(M=R.charAt(y)),M}a(ot,"charAt");function Ct(R){var y=this;if(this.error)throw this.error;if(y.closed)return q(y,"Cannot write after close. Assign an onready handler.");if(R===null)return le(y);typeof R=="object"&&(R=R.toString());for(var M=0,F="";F=ot(R,M++),y.c=F,!!F;)switch(y.trackPosition&&(y.position++,F===`
`?(y.line++,y.column=0):y.column++),y.state){case w.BEGIN:if(y.state=w.BEGIN_WHITESPACE,F==="\uFEFF")continue;pe(y,F);continue;case w.BEGIN_WHITESPACE:pe(y,F);continue;case w.TEXT:if(y.sawRoot&&!y.closedRoot){for(var kt=M-1;F&&F!=="<"&&F!=="&";)F=ot(R,M++),F&&y.trackPosition&&(y.position++,F===`
`?(y.line++,y.column=0):y.column++);y.textNode+=R.substring(kt,M-1)}F==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=w.OPEN_WAKA,y.startTagPosition=y.position):(!I(F)&&(!y.sawRoot||y.closedRoot)&&_(y,"Text data outside of root node."),F==="&"?y.state=w.TEXT_ENTITY:y.textNode+=F);continue;case w.SCRIPT:F==="<"?y.state=w.SCRIPT_ENDING:y.script+=F;continue;case w.SCRIPT_ENDING:F==="/"?y.state=w.CLOSE_TAG:(y.script+="<"+F,y.state=w.SCRIPT);continue;case w.OPEN_WAKA:if(F==="!")y.state=w.SGML_DECL,y.sgmlDecl="";else if(!I(F))if(N(m,F))y.state=w.OPEN_TAG,y.tagName=F;else if(F==="/")y.state=w.CLOSE_TAG,y.tagName="";else if(F==="?")y.state=w.PROC_INST,y.procInstName=y.procInstBody="";else{if(_(y,"Unencoded <"),y.startTagPosition+1<y.position){var pr=y.position-y.startTagPosition;F=new Array(pr).join(" ")+F}y.textNode+="<"+F,y.state=w.TEXT}continue;case w.SGML_DECL:(y.sgmlDecl+F).toUpperCase()===d?(v(y,"onopencdata"),y.state=w.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+F==="--"?(y.state=w.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+F).toUpperCase()===u?(y.state=w.DOCTYPE,(y.doctype||y.sawRoot)&&_(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):F===">"?(v(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=w.TEXT):(C(F)&&(y.state=w.SGML_DECL_QUOTED),y.sgmlDecl+=F);continue;case w.SGML_DECL_QUOTED:F===y.q&&(y.state=w.SGML_DECL,y.q=""),y.sgmlDecl+=F;continue;case w.DOCTYPE:F===">"?(y.state=w.TEXT,v(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=F,F==="["?y.state=w.DOCTYPE_DTD:C(F)&&(y.state=w.DOCTYPE_QUOTED,y.q=F));continue;case w.DOCTYPE_QUOTED:y.doctype+=F,F===y.q&&(y.q="",y.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:y.doctype+=F,F==="]"?y.state=w.DOCTYPE:C(F)&&(y.state=w.DOCTYPE_DTD_QUOTED,y.q=F);continue;case w.DOCTYPE_DTD_QUOTED:y.doctype+=F,F===y.q&&(y.state=w.DOCTYPE_DTD,y.q="");continue;case w.COMMENT:F==="-"?y.state=w.COMMENT_ENDING:y.comment+=F;continue;case w.COMMENT_ENDING:F==="-"?(y.state=w.COMMENT_ENDED,y.comment=L(y.opt,y.comment),y.comment&&v(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+F,y.state=w.COMMENT);continue;case w.COMMENT_ENDED:F!==">"?(_(y,"Malformed comment"),y.comment+="--"+F,y.state=w.COMMENT):y.state=w.TEXT;continue;case w.CDATA:F==="]"?y.state=w.CDATA_ENDING:y.cdata+=F;continue;case w.CDATA_ENDING:F==="]"?y.state=w.CDATA_ENDING_2:(y.cdata+="]"+F,y.state=w.CDATA);continue;case w.CDATA_ENDING_2:F===">"?(y.cdata&&v(y,"oncdata",y.cdata),v(y,"onclosecdata"),y.cdata="",y.state=w.TEXT):F==="]"?y.cdata+="]":(y.cdata+="]]"+F,y.state=w.CDATA);continue;case w.PROC_INST:F==="?"?y.state=w.PROC_INST_ENDING:I(F)?y.state=w.PROC_INST_BODY:y.procInstName+=F;continue;case w.PROC_INST_BODY:if(!y.procInstBody&&I(F))continue;F==="?"?y.state=w.PROC_INST_ENDING:y.procInstBody+=F;continue;case w.PROC_INST_ENDING:F===">"?(v(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=w.TEXT):(y.procInstBody+="?"+F,y.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:N(f,F)?y.tagName+=F:(rt(y),F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:(I(F)||_(y,"Invalid character in tag name"),y.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:F===">"?(ht(y,!0),wr(y)):(_(y,"Forward-slash in opening tag not followed by >"),y.state=w.ATTRIB);continue;case w.ATTRIB:if(I(F))continue;F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME:F==="="?y.state=w.ATTRIB_VALUE:F===">"?(_(y,"Attribute without value"),y.attribValue=y.attribName,vt(y),ht(y)):I(F)?y.state=w.ATTRIB_NAME_SAW_WHITE:N(f,F)?y.attribName+=F:_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if(F==="=")y.state=w.ATTRIB_VALUE;else{if(I(F))continue;_(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",v(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",F===">"?ht(y):N(m,F)?(y.attribName=F,y.state=w.ATTRIB_NAME):(_(y,"Invalid attribute name"),y.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(I(F))continue;C(F)?(y.q=F,y.state=w.ATTRIB_VALUE_QUOTED):(_(y,"Unquoted attribute value"),y.state=w.ATTRIB_VALUE_UNQUOTED,y.attribValue=F);continue;case w.ATTRIB_VALUE_QUOTED:if(F!==y.q){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=F;continue}vt(y),y.q="",y.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:I(F)?y.state=w.ATTRIB:F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(_(y,"No whitespace between attributes"),y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!Q(F)){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_U:y.attribValue+=F;continue}vt(y),F===">"?ht(y):y.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(y.tagName)F===">"?wr(y):N(f,F)?y.tagName+=F:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=w.SCRIPT):(I(F)||_(y,"Invalid tagname in closing tag"),y.state=w.CLOSE_TAG_SAW_WHITE);else{if(I(F))continue;S Line truncated
`;ut.DEFAULT_CONTENT_TYPE="application/octet-stream";ut.prototype.append=function(t,e,A){A=A||{},typeof A=="string"&&(A={filename:A});var r=s5.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),vre.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,A),n=this._multiPartFooter();r(i),r(e),r(n),this._trackLength(i,e,A)};ut.prototype._trackLength=function(t,e,A){var r=0;A.knownLength!=null?r+=+A.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+ut.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof GOe))&&(A.knownLength||this._valuesToMeasure.push(e))};ut.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):YOe.stat(t.path,function(A,r){var i;if(A){e(A);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(A){t.pause(),e(null,+A.headers["content-length"])}),t.resume()):e("Unknown stream")};ut.prototype._multiPartHeader=function(t,e,A){if(typeof A.header=="string")return A.header;var r=this._getContentDisposition(e,A),i=this._getContentType(e,A),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof A.header=="object"&&n5(s,A.header);var o;for(var c in s)s.hasOwnProperty(c)&&(o=s[c],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=c+": "+o.join("; ")+ut.LINE_BREAK)));return"--"+this.getBoundary()+ut.LINE_BREAK+n+ut.LINE_BREAK};ut.prototype._getContentDisposition=function(t,e){var A,r;return typeof e.filepath=="string"?A=r5.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?A=r5.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(A=r5.basename(t.client._httpMessage.path||"")),A&&(r='filename="'+A+'"'),r};ut.prototype._getContentType=function(t,e){var A=e.contentType;return!A&&t.name&&(A=i5.lookup(t.name)),!A&&t.path&&(A=i5.lookup(t.path)),!A&&t.readable&&t.hasOwnProperty("httpVersion")&&(A=t.headers["content-type"]),!A&&(e.filepath||e.filename)&&(A=i5.lookup(e.filepath||e.filename)),!A&&typeof t=="object"&&(A=ut.DEFAULT_CONTENT_TYPE),A};ut.prototype._multiPartFooter=function(){return function(t){var e=ut.LINE_BREAK,A=this._streams.length===0;A&&(e+=this._lastBoundary()),t(e)}.bind(this)};ut.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ut.LINE_BREAK};ut.prototype.getHeaders=function(t){var e,A={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(A[e.toLowerCase()]=t[e]);return A};ut.prototype.setBoundary=function(t){this._boundary=t};ut.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ut.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),A=0,r=this._streams.length;A<r;A++)typeof this._streams[A]!="function"&&(Buffer.isBuffer(this._streams[A])?t=Buffer.concat([t,this._streams[A]]):t=Buffer.concat([t,Buffer.from(this._streams[A])]),(typeof this._streams[A]!="string"||this._streams[A].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ut.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ut.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ut.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ut.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ut.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}JOe.parallel(this._valuesToMeasure,this._lengthRetriever,function(A,r){if(A){t(A);return}r.forEach(function(i){e+=i}),t(null,e)})};ut.prototype.submit=function(t,e){var A,r,i={method:"post"};return typeof t=="string"?(t=HOe(t),r=n5({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},i)):(r=n5(t,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(t.headers),r.protocol=="https:"?A=qOe.request(r):A=POe.request(r),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&A.setHeader("Content-Length",s),this.pipe(A),e){var o,c=a(function(l,d){return A.removeListener("error",c),A.removeListener("response",o),e.call(this,l,d)},"callback");o=c.bind(this,null),A.on("error",c),A.on("response",o)}}.bind(this)),A};ut.prototype._error=function(t){this.error||(this.error=t,this.pause(),th Line truncated
${_Ye.sanitize(this)}`}};ss.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ss.PARSE_ERROR="PARSE_ERROR";var La=THe.createClientLogger("core-http");function kne(t,e){return t?e.httpsAgent:e.httpAgent}a(kne,"getCachedAgent");var sb=class extends qHe.Transform{static{a(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,A,r){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),r(void 0)}};function $w(t){return t&&typeof t.pipe=="function"}a($w,"isReadableStream");function Fne(t,e){return new Promise(A=>{t.once("close",()=>{e?.abort(),A()}),t.once("end",A),t.once("error",A)})}a(Fne,"isStreamComplete");function OYe(t){let e=new Kl;return t.forEach((A,r)=>{e.set(r,A)}),e}a(OYe,"parseHeaders");var ab=class{static{a(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var A;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let r=new eb.AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new eb.AbortError("The operation was aborted.");i=a(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}if(e.timeout&&setTimeout(()=>{r.abort()},e.timeout),e.formData){let l=e.formData,d=new GHe.default,u=a((g,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?d.append(g,h.value,h.options):d.append(g,h)},"appendFormValue");for(let g of Object.keys(l)){let h=l[g];if(Array.isArray(h))for(let m=0;m<h.length;m++)u(g,h[m]);else u(g,h)}e.body=d,e.formData=void 0;let p=e.headers.get("Content-Type");p&&p.indexOf("multipart/form-data")!==-1&&(typeof d.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${d.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,d=new sb(l);$w(n)?n.pipe(d):d.end(n),n=d}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:r.signal,redirect:"manual"},s),c;try{let l=await this.fetch(e.url,o),d=OYe(l.headers),u=((A=e.streamResponseStatusCodes)===null||A===void 0?void 0:A.has(l.status))||e.streamResponseBody;c={headers:d,request:e,status:l.status,readableStreamBody:u?l.body:void 0,bodyAsText:u?void 0:await l.text()};let p=e.onDownloadProgress;if(p){let g=l.body||void 0;if($w(g)){let h=new sb(p);g.pipe(h),c.readableStreamBody=h}else{let h=parseInt(d.get("Content-Length"))||void 0;h&&p({loadedBytes:h})}}return await this.processRequest(c),c}catch(l){let d=l;throw d.code==="ENOTFOUND"?new ss(d.message,ss.REQUEST_SEND_ERROR,void 0,e):d.type==="aborted"?new eb.AbortError("The operation was aborted."):d}finally{if(e.abortSignal&&i){let l=Promise.resolve();$w(n)&&(l=Fne(n));let d=Promise.resolve();$w(c?.readableStreamBody)&&(d=Fne(c.readableStreamBody,r)),Promise.all([l,d]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",i)}).catch(u=>{La.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var A;let r=hk(e.url);if(e.proxySettings){let{host:i,port:n,username:s,password:o}=e.proxySettings,c=`${i}:${n}:${s}:${o}`,l=(A=this.proxyAgentMap.get(c))!==null&&A!==void 0?A:{},d=kne(r,l);if(d)return d;let u=LYe(e.url,e.proxySettings,e.headers);return d=u.agent,u.isHttps?l.httpsAgent=u.agent:l.httpAgent=u.agent,this.proxyAgentMap.set(c,l),d}else if(e.keepAlive){let i=kne(r,this.keepAliveAgents);if(i)return i;let n={keepAlive:e.keepAlive};return r?i=this.keepAliveAgents.httpsAgent=new Rne.Agent(n):i=this.keepAliveAgents.httpAgent=new Nne.Agent(n),i}else return r?Rne.globalAgent:Nne.globalAgent}async fetch(e,A){return JHe.default(e,A)}async prepareRequest(e){let A={};return A.agent=this.getOrCreateAgent(e),A.compress=e.decompressResponse,A}async processRequest(e){}};Z.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(Z.HttpPipelineLogLevel||(Z.HttpPipelineLogLevel={}));function PYe(t){let{requestOptions:e,tracingOptions:A}=t,i=LHe.__rest(t,["requestOptions","tracingOptions"]);return e&&(i=Object.assign(Object.assign({},i),e)),A&&(i.tracingContext=A.tracingContext,i.spanOptions=A?.spanOptions),i}a(PYe,"operationOptionsToRequestOptionsBase");var fr=class{static{a(this,"BaseRequestPolicy")}constructor(e,A){this._nextPolicy=e,this._options=A}shouldLog(e){return this._options.shouldLog(e)}log(e,A){this._options.log(e,A)}},ob=class{static{a(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==Z.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,A){this._logger&&this.shouldLog(e)&&this._logger.log(e,A)}},$ne={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:C Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},Ab=Object.assign({},$ne);Ab.explicitArray=!1;var NQ=Object.assign({},$ne);NQ.explicitArray=!1;NQ.renderOpts={pretty:!1};function Ek(t,e={}){var A;return NQ.rootName=e.rootName,NQ.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc,new Hne.Builder(NQ).buildObject(t)}a(Ek,"stringifyXML");function ese(t,e={}){var A;Ab.explicitRoot=!!e.includeRoot,Ab.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc;let r=new Hne.Parser(Ab);return new Promise((i,n)=>{t?r.parseString(t,(s,o)=>{s?n(s):i(o)}):n(new Error("Document is empty"))})}a(ese,"parseXML");function Pk(t,e){return{create:(A,r)=>new mk(A,r,t,e)}}a(Pk,"deserializationPolicy");var tse=["application/json","text/json"],Ase=["application/xml","application/atom+xml"],qYe={expectedContentTypes:{json:tse,xml:Ase}},mk=class extends fr{static{a(this,"DeserializationPolicy")}constructor(e,A,r,i={}){var n;super(e,A),this.jsonContentTypes=r&&r.json||tse,this.xmlContentTypes=r&&r.xml||Ase,this.xmlCharKey=(n=i.xmlCharKey)!==null&&n!==void 0?n:Uc}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(A=>rse(this.jsonContentTypes,this.xmlContentTypes,A,{xmlCharKey:this.xmlCharKey}))}};function HYe(t){let e,A=t.request,r=A.operationSpec;if(r){let i=A.operationResponseGetter;i?e=i(r,t):e=r.responses[t.status]}return e}a(HYe,"getOperationResponse");function YYe(t){let e=t.request.shouldDeserialize,A;return e===void 0?A=!0:typeof e=="boolean"?A=e:A=e(t),A}a(YYe,"shouldDeserializeResponse");function rse(t,e,A,r={}){var i,n,s;let o={rootName:(i=r.rootName)!==null&&i!==void 0?i:"",includeRoot:(n=r.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=r.xmlCharKey)!==null&&s!==void 0?s:Uc};return VYe(t,e,A,o).then(c=>{if(!YYe(c))return c;let l=c.request.operationSpec;if(!l||!l.responses)return c;let d=HYe(c),{error:u,shouldReturnResponse:p}=JYe(c,l,d);if(u)throw u;if(p)return c;if(d){if(d.bodyMapper){let g=c.parsedBody;l.isXML&&d.bodyMapper.type.name===Yu.Sequence&&(g=typeof g=="object"?g[d.bodyMapper.xmlElementName]:[]);try{c.parsedBody=l.serializer.deserialize(d.bodyMapper,g,"operationRes.parsedBody",r)}catch(h){throw new ss(`Error ${h} occurred in deserializing the responseBody - ${c.bodyAsText}`,void 0,c.status,c.request,c)}}else l.httpMethod==="HEAD"&&(c.parsedBody=A.status>=200&&A.status<300);d.headersMapper&&(c.parsedHeaders=l.serializer.deserialize(d.headersMapper,c.headers.toJson(),"operationRes.parsedHeaders",r))}return c})}a(rse,"deserializeResponseBody");function GYe(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}a(GYe,"isOperationSpecEmpty");function JYe(t,e,A){var r;let i=200<=t.status&&t.status<300;if(GYe(e)?i:!!A)if(A){if(!A.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=A??e.responses.default,c=((r=t.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new ss(c,void 0,t.status,t.request,t);if(!s)throw l;let d=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,g;if(d){let m=p;e.isXML&&d.type.name===Yu.Sequence&&(m=typeof p=="object"?p[d.xmlElementName]:[]),g=e.serializer.deserialize(d,m,"error.response.parsedBody")}let h=p.error||g||p;l.code=h.code,h.message&&(l.message=h.message),d&&(l.response.parsedBody=g)}t.headers&&u&&(l.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}a(JYe,"handleErrorResponse");function VYe(t,e,A,r){var i;let n=a(o=>{let c=`Error "${o}" occurred while parsing the response body - ${A.bodyAsText}.`,l=o.code||ss.PARSE_ERROR,d=new ss(c,l,A.status,A.request,A);return Promise.reject(d)},"errorHandler");if(!(((i=A.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(A.status))||A.request.streamResponseBody)&&A.bodyAsText){let o=A.bodyAsText,c=A.headers.get("Content-Type")||"",l=c?c.split(";").map(d=>d.toLowerCase()):[];if(l.length===0||l.some(d=>t.indexOf(d)!==-1))return new Promise(d=>{A.parsedBody=JSON.parse(o),d(A)}).catch(n);if(l.some(d=>e.indexOf(d)!==-1))return ese(o,r).then(d=>(A.parsedBody=d,A)).catch(n)}return Promise.resolve(A)}a(VYe,"parse");var ise={enable:!0};function nse(t){return{create:(e,A)=>new Ck(e,A,t||ise)}}a(nse,"keepAlivePolicy");var Ck=class extends fr{static{a(this,"KeepAlivePolicy")}constructor(e,A,r){super(e,A),this.keepAliveOptions=r}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Lne=["GET","HEAD"],WYe={handleRedirects:!0,maxRetries:20};function qk(t=20){return{create:(e,A)=>new fk(e,A,t)}}a(qk,"redirectPolicy");var fk=class extends fr{static{a(this,"RedirectPolicy")}constructor(e,A,r=20){super(e,A),this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendReq Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},use=[],pse=!1,sGe=new Map;function aGe(){if(!process)return;let t=tb(Xs.HTTPS_PROXY),e=tb(Xs.ALL_PROXY),A=tb(Xs.HTTP_PROXY);return t||e||A}a(aGe,"loadEnvironmentProxyValue");function oGe(t,e,A){if(e.length===0)return!1;let r=So.parse(t).getHost();if(A?.has(r))return A.get(r);let i=!1;for(let n of e)n[0]==="."?(r.endsWith(n)||r.length===n.length-1&&r===n.slice(1))&&(i=!0):r===n&&(i=!0);return A?.set(r,i),i}a(oGe,"isBypassed");function cGe(){let t=tb(Xs.NO_PROXY);return pse=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}a(cGe,"loadNoProxy");function gse(t){if(!t&&(t=aGe(),!t))return;let{username:e,password:A,urlWithoutAuth:r}=lGe(t),i=So.parse(r);return{host:(i.getScheme()?i.getScheme()+"://":"")+i.getHost(),port:Number.parseInt(i.getPort()||"80"),username:e,password:A}}a(gse,"getDefaultProxySettings");function jk(t,e){return t||(t=gse()),pse||use.push(...cGe()),{create:(A,r)=>new Rk(A,r,t,e?.customNoProxyList)}}a(jk,"proxyPolicy");function lGe(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let A=t.indexOf("://"),r=A!==-1?A+3:0,i=t.substring(r,e),n=i.indexOf(":"),s=n!==-1,o=s?i.substring(0,n):i,c=s?i.substring(n+1):void 0,l=t.substring(0,r)+t.substring(e+1);return{username:o,password:c,urlWithoutAuth:l}}a(lGe,"extractAuthFromUrl");var Rk=class extends fr{static{a(this,"ProxyPolicy")}constructor(e,A,r,i){super(e,A),this.proxySettings=r,this.customNoProxyList=i}sendRequest(e){var A;return!e.proxySettings&&!oGe(e.url,(A=this.customNoProxyList)!==null&&A!==void 0?A:use,this.customNoProxyList?void 0:sGe)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function dGe(t=30){return{create:(e,A)=>new Dk(e,A,t)}}a(dGe,"rpRegistrationPolicy");var Dk=class extends fr{static{a(this,"RPRegistrationPolicy")}constructor(e,A,r=30){super(e,A),this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(A=>uGe(this,e,A))}};function uGe(t,e,A){if(A.status===409){let r=pGe(A.bodyAsText);if(r){let i=gGe(e.url);return hGe(t,i,r,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",db()),t._nextPolicy.sendRequest(e.clone())):A)}}return Promise.resolve(A)}a(uGe,"registerIfNeeded");function hse(t,e=!1){let A=t.clone();return e&&(A.url=t.url),A.headers.set("x-ms-client-request-id",db()),A.headers.set("Content-Type","application/json; charset=utf-8"),A}a(hse,"getRequestEssentials");function pGe(t){let e,A;if(t){try{A=JSON.parse(t)}catch{}if(A&&A.error&&A.error.message&&A.error.code&&A.error.code==="MissingSubscriptionRegistration"){let r=A.error.message.match(/.*'(.*)'/i);r&&(e=r.pop())}}return e}a(pGe,"checkRPNotRegisteredError");function gGe(t){let e,A=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(A&&A[0])e=A[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}a(gGe,"extractSubscriptionUrl");async function hGe(t,e,A,r){let i=`${e}providers/${A}/register?api-version=2016-02-01`,n=`${e}providers/${A}?api-version=2016-02-01`,s=hse(r);if(s.method="POST",s.url=i,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${A} failed. Please try registering manually.`);return Ese(t,n,r)}a(hGe,"registerRP");async function Ese(t,e,A){let r=hse(A);r.url=e,r.method="GET";let i=await t._nextPolicy.sendRequest(r),n=i.parsedBody;return i.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Do.delay(t._retryTimeout*1e3),Ese(t,e,A))}a(Ese,"getRegistrationStatus");function mse(t){return{create:(e,A)=>new Sk(e,A,t)}}a(mse,"signingPolicy");var Sk=class extends fr{static{a(this,"SigningPolicy")}constructor(e,A,r){super(e,A),this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(A=>this._nextPolicy.sendRequest(A))}};function Xk(t,e,A,r){return{create:(i,n)=>new xk(i,n,t,e,A,r)}}a(Xk,"systemErrorRetryPolicy");var xk=class extends fr{static{a(this,"SystemErrorRetryPolicy")}constructor(e,A,r,i,n,s){super(e,A),this.retryCount=Hu(r)?r:Hk,this.retryInterval=Hu(i)?i:Yk,this.minRetryInterval=Hu(n)?n:zYe,this.maxRetryInterval=Hu(s)?s:Gk}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(A=>Cse(this,e,A.response,A))}};async function Cse(t,e,A,r,i){i=ose(t,i,r);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(a(n,"shouldPolicyRetry"),ase(t.retryCount,n,i,A,r))try{return await Do.delay(i.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return Cse(t,e,A,s,i)}else return r?Promise.reject(i.error):A}a(Cse,"retry");var EGe=3,Une=Xs.HttpConstants.StatusCodes;function Zk(){return{create:(t,e)=>new vk(t,e)}}a(Zk,"throttlingRetryPolicy");var Tne="The operation was aborted.",vk=class t extends fr{static{a(this,"ThrottlingRetryPolicy")}constructor(e,A,r){super(e,A),this.numberOfRetries=0,this._handleResponse=r||this._defa Line truncated
`?(y.line++,y.column=0):y.column++);y.textNode+=R.substring(kt,M-1)}F==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=w.OPEN_WAKA,y.startTagPosition=y.position):(!I(F)&&(!y.sawRoot||y.closedRoot)&&_(y,"Text data outside of root node."),F==="&"?y.state=w.TEXT_ENTITY:y.textNode+=F);continue;case w.SCRIPT:F==="<"?y.state=w.SCRIPT_ENDING:y.script+=F;continue;case w.SCRIPT_ENDING:F==="/"?y.state=w.CLOSE_TAG:(y.script+="<"+F,y.state=w.SCRIPT);continue;case w.OPEN_WAKA:if(F==="!")y.state=w.SGML_DECL,y.sgmlDecl="";else if(!I(F))if(N(m,F))y.state=w.OPEN_TAG,y.tagName=F;else if(F==="/")y.state=w.CLOSE_TAG,y.tagName="";else if(F==="?")y.state=w.PROC_INST,y.procInstName=y.procInstBody="";else{if(_(y,"Unencoded <"),y.startTagPosition+1<y.position){var pr=y.position-y.startTagPosition;F=new Array(pr).join(" ")+F}y.textNode+="<"+F,y.state=w.TEXT}continue;case w.SGML_DECL:(y.sgmlDecl+F).toUpperCase()===d?(v(y,"onopencdata"),y.state=w.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+F==="--"?(y.state=w.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+F).toUpperCase()===u?(y.state=w.DOCTYPE,(y.doctype||y.sawRoot)&&_(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):F===">"?(v(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=w.TEXT):(C(F)&&(y.state=w.SGML_DECL_QUOTED),y.sgmlDecl+=F);continue;case w.SGML_DECL_QUOTED:F===y.q&&(y.state=w.SGML_DECL,y.q=""),y.sgmlDecl+=F;continue;case w.DOCTYPE:F===">"?(y.state=w.TEXT,v(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=F,F==="["?y.state=w.DOCTYPE_DTD:C(F)&&(y.state=w.DOCTYPE_QUOTED,y.q=F));continue;case w.DOCTYPE_QUOTED:y.doctype+=F,F===y.q&&(y.q="",y.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:y.doctype+=F,F==="]"?y.state=w.DOCTYPE:C(F)&&(y.state=w.DOCTYPE_DTD_QUOTED,y.q=F);continue;case w.DOCTYPE_DTD_QUOTED:y.doctype+=F,F===y.q&&(y.state=w.DOCTYPE_DTD,y.q="");continue;case w.COMMENT:F==="-"?y.state=w.COMMENT_ENDING:y.comment+=F;continue;case w.COMMENT_ENDING:F==="-"?(y.state=w.COMMENT_ENDED,y.comment=L(y.opt,y.comment),y.comment&&v(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+F,y.state=w.COMMENT);continue;case w.COMMENT_ENDED:F!==">"?(_(y,"Malformed comment"),y.comment+="--"+F,y.state=w.COMMENT):y.state=w.TEXT;continue;case w.CDATA:F==="]"?y.state=w.CDATA_ENDING:y.cdata+=F;continue;case w.CDATA_ENDING:F==="]"?y.state=w.CDATA_ENDING_2:(y.cdata+="]"+F,y.state=w.CDATA);continue;case w.CDATA_ENDING_2:F===">"?(y.cdata&&v(y,"oncdata",y.cdata),v(y,"onclosecdata"),y.cdata="",y.state=w.TEXT):F==="]"?y.cdata+="]":(y.cdata+="]]"+F,y.state=w.CDATA);continue;case w.PROC_INST:F==="?"?y.state=w.PROC_INST_ENDING:I(F)?y.state=w.PROC_INST_BODY:y.procInstName+=F;continue;case w.PROC_INST_BODY:if(!y.procInstBody&&I(F))continue;F==="?"?y.state=w.PROC_INST_ENDING:y.procInstBody+=F;continue;case w.PROC_INST_ENDING:F===">"?(v(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=w.TEXT):(y.procInstBody+="?"+F,y.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:N(f,F)?y.tagName+=F:(rt(y),F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:(I(F)||_(y,"Invalid character in tag name"),y.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:F===">"?(ht(y,!0),wr(y)):(_(y,"Forward-slash in opening tag not followed by >"),y.state=w.ATTRIB);continue;case w.ATTRIB:if(I(F))continue;F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME:F==="="?y.state=w.ATTRIB_VALUE:F===">"?(_(y,"Attribute without value"),y.attribValue=y.attribName,vt(y),ht(y)):I(F)?y.state=w.ATTRIB_NAME_SAW_WHITE:N(f,F)?y.attribName+=F:_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if(F==="=")y.state=w.ATTRIB_VALUE;else{if(I(F))continue;_(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",v(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",F===">"?ht(y):N(m,F)?(y.attribName=F,y.state=w.ATTRIB_NAME):(_(y,"Invalid attribute name"),y.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(I(F))continue;C(F)?(y.q=F,y.state=w.ATTRIB_VALUE_QUOTED):(_(y,"Unquoted attribute value"),y.state=w.ATTRIB_VALUE_UNQUOTED,y.attribValue=F);continue;case w.ATTRIB_VALUE_QUOTED:if(F!==y.q){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=F;continue}vt(y),y.q="",y.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:I(F)?y.state=w.ATTRIB:F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(_(y,"No whitespace between attributes"),y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!Q(F)){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_U:y.attribValue+=F;continue}vt(y),F===">"?ht(y):y.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(y.tagName)F===">"?wr(y):N(f,F)?y.tagName+=F:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=w.SCRIPT):(I(F)||_(y,"Invalid tagname in closing tag"),y.state=w.CLOSE_TAG_SAW_WHITE);else{if(I(F))continue;S Line truncated
`;ut.DEFAULT_CONTENT_TYPE="application/octet-stream";ut.prototype.append=function(t,e,A){A=A||{},typeof A=="string"&&(A={filename:A});var r=s5.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),kre.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,A),n=this._multiPartFooter();r(i),r(e),r(n),this._trackLength(i,e,A)};ut.prototype._trackLength=function(t,e,A){var r=0;A.knownLength!=null?r+=+A.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+ut.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof GOe))&&(A.knownLength||this._valuesToMeasure.push(e))};ut.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):YOe.stat(t.path,function(A,r){var i;if(A){e(A);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(A){t.pause(),e(null,+A.headers["content-length"])}),t.resume()):e("Unknown stream")};ut.prototype._multiPartHeader=function(t,e,A){if(typeof A.header=="string")return A.header;var r=this._getContentDisposition(e,A),i=this._getContentType(e,A),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof A.header=="object"&&n5(s,A.header);var o;for(var c in s)s.hasOwnProperty(c)&&(o=s[c],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=c+": "+o.join("; ")+ut.LINE_BREAK)));return"--"+this.getBoundary()+ut.LINE_BREAK+n+ut.LINE_BREAK};ut.prototype._getContentDisposition=function(t,e){var A,r;return typeof e.filepath=="string"?A=r5.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?A=r5.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(A=r5.basename(t.client._httpMessage.path||"")),A&&(r='filename="'+A+'"'),r};ut.prototype._getContentType=function(t,e){var A=e.contentType;return!A&&t.name&&(A=i5.lookup(t.name)),!A&&t.path&&(A=i5.lookup(t.path)),!A&&t.readable&&t.hasOwnProperty("httpVersion")&&(A=t.headers["content-type"]),!A&&(e.filepath||e.filename)&&(A=i5.lookup(e.filepath||e.filename)),!A&&typeof t=="object"&&(A=ut.DEFAULT_CONTENT_TYPE),A};ut.prototype._multiPartFooter=function(){return function(t){var e=ut.LINE_BREAK,A=this._streams.length===0;A&&(e+=this._lastBoundary()),t(e)}.bind(this)};ut.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ut.LINE_BREAK};ut.prototype.getHeaders=function(t){var e,A={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(A[e.toLowerCase()]=t[e]);return A};ut.prototype.setBoundary=function(t){this._boundary=t};ut.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ut.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),A=0,r=this._streams.length;A<r;A++)typeof this._streams[A]!="function"&&(Buffer.isBuffer(this._streams[A])?t=Buffer.concat([t,this._streams[A]]):t=Buffer.concat([t,Buffer.from(this._streams[A])]),(typeof this._streams[A]!="string"||this._streams[A].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ut.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ut.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ut.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ut.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ut.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}JOe.parallel(this._valuesToMeasure,this._lengthRetriever,function(A,r){if(A){t(A);return}r.forEach(function(i){e+=i}),t(null,e)})};ut.prototype.submit=function(t,e){var A,r,i={method:"post"};return typeof t=="string"?(t=HOe(t),r=n5({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},i)):(r=n5(t,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(t.headers),r.protocol=="https:"?A=qOe.request(r):A=POe.request(r),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&A.setHeader("Content-Length",s),this.pipe(A),e){var o,c=a(function(l,d){return A.removeListener("error",c),A.removeListener("response",o),e.call(this,l,d)},"callback");o=c.bind(this,null),A.on("error",c),A.on("response",o)}}.bind(this)),A};ut.prototype._error=function(t){this.error||(this.error=t,this.pause(),th Line truncated
${_Ye.sanitize(this)}`}};ss.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ss.PARSE_ERROR="PARSE_ERROR";var La=THe.createClientLogger("core-http");function Fne(t,e){return t?e.httpsAgent:e.httpAgent}a(Fne,"getCachedAgent");var sb=class extends qHe.Transform{static{a(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,A,r){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),r(void 0)}};function $w(t){return t&&typeof t.pipe=="function"}a($w,"isReadableStream");function Lne(t,e){return new Promise(A=>{t.once("close",()=>{e?.abort(),A()}),t.once("end",A),t.once("error",A)})}a(Lne,"isStreamComplete");function OYe(t){let e=new Kl;return t.forEach((A,r)=>{e.set(r,A)}),e}a(OYe,"parseHeaders");var ab=class{static{a(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var A;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let r=new eb.AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new eb.AbortError("The operation was aborted.");i=a(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}if(e.timeout&&setTimeout(()=>{r.abort()},e.timeout),e.formData){let l=e.formData,d=new GHe.default,u=a((g,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?d.append(g,h.value,h.options):d.append(g,h)},"appendFormValue");for(let g of Object.keys(l)){let h=l[g];if(Array.isArray(h))for(let m=0;m<h.length;m++)u(g,h[m]);else u(g,h)}e.body=d,e.formData=void 0;let p=e.headers.get("Content-Type");p&&p.indexOf("multipart/form-data")!==-1&&(typeof d.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${d.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,d=new sb(l);$w(n)?n.pipe(d):d.end(n),n=d}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:r.signal,redirect:"manual"},s),c;try{let l=await this.fetch(e.url,o),d=OYe(l.headers),u=((A=e.streamResponseStatusCodes)===null||A===void 0?void 0:A.has(l.status))||e.streamResponseBody;c={headers:d,request:e,status:l.status,readableStreamBody:u?l.body:void 0,bodyAsText:u?void 0:await l.text()};let p=e.onDownloadProgress;if(p){let g=l.body||void 0;if($w(g)){let h=new sb(p);g.pipe(h),c.readableStreamBody=h}else{let h=parseInt(d.get("Content-Length"))||void 0;h&&p({loadedBytes:h})}}return await this.processRequest(c),c}catch(l){let d=l;throw d.code==="ENOTFOUND"?new ss(d.message,ss.REQUEST_SEND_ERROR,void 0,e):d.type==="aborted"?new eb.AbortError("The operation was aborted."):d}finally{if(e.abortSignal&&i){let l=Promise.resolve();$w(n)&&(l=Lne(n));let d=Promise.resolve();$w(c?.readableStreamBody)&&(d=Lne(c.readableStreamBody,r)),Promise.all([l,d]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",i)}).catch(u=>{La.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var A;let r=hk(e.url);if(e.proxySettings){let{host:i,port:n,username:s,password:o}=e.proxySettings,c=`${i}:${n}:${s}:${o}`,l=(A=this.proxyAgentMap.get(c))!==null&&A!==void 0?A:{},d=Fne(r,l);if(d)return d;let u=LYe(e.url,e.proxySettings,e.headers);return d=u.agent,u.isHttps?l.httpsAgent=u.agent:l.httpAgent=u.agent,this.proxyAgentMap.set(c,l),d}else if(e.keepAlive){let i=Fne(r,this.keepAliveAgents);if(i)return i;let n={keepAlive:e.keepAlive};return r?i=this.keepAliveAgents.httpsAgent=new Dne.Agent(n):i=this.keepAliveAgents.httpAgent=new Rne.Agent(n),i}else return r?Dne.globalAgent:Rne.globalAgent}async fetch(e,A){return JHe.default(e,A)}async prepareRequest(e){let A={};return A.agent=this.getOrCreateAgent(e),A.compress=e.decompressResponse,A}async processRequest(e){}};Z.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(Z.HttpPipelineLogLevel||(Z.HttpPipelineLogLevel={}));function PYe(t){let{requestOptions:e,tracingOptions:A}=t,i=LHe.__rest(t,["requestOptions","tracingOptions"]);return e&&(i=Object.assign(Object.assign({},i),e)),A&&(i.tracingContext=A.tracingContext,i.spanOptions=A?.spanOptions),i}a(PYe,"operationOptionsToRequestOptionsBase");var fr=class{static{a(this,"BaseRequestPolicy")}constructor(e,A){this._nextPolicy=e,this._options=A}shouldLog(e){return this._options.shouldLog(e)}log(e,A){this._options.log(e,A)}},ob=class{static{a(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==Z.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,A){this._logger&&this.shouldLog(e)&&this._logger.log(e,A)}},ese={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:C Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},Ab=Object.assign({},ese);Ab.explicitArray=!1;var NQ=Object.assign({},ese);NQ.explicitArray=!1;NQ.renderOpts={pretty:!1};function Ek(t,e={}){var A;return NQ.rootName=e.rootName,NQ.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc,new Yne.Builder(NQ).buildObject(t)}a(Ek,"stringifyXML");function tse(t,e={}){var A;Ab.explicitRoot=!!e.includeRoot,Ab.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc;let r=new Yne.Parser(Ab);return new Promise((i,n)=>{t?r.parseString(t,(s,o)=>{s?n(s):i(o)}):n(new Error("Document is empty"))})}a(tse,"parseXML");function Pk(t,e){return{create:(A,r)=>new mk(A,r,t,e)}}a(Pk,"deserializationPolicy");var Ase=["application/json","text/json"],rse=["application/xml","application/atom+xml"],qYe={expectedContentTypes:{json:Ase,xml:rse}},mk=class extends fr{static{a(this,"DeserializationPolicy")}constructor(e,A,r,i={}){var n;super(e,A),this.jsonContentTypes=r&&r.json||Ase,this.xmlContentTypes=r&&r.xml||rse,this.xmlCharKey=(n=i.xmlCharKey)!==null&&n!==void 0?n:Uc}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(A=>ise(this.jsonContentTypes,this.xmlContentTypes,A,{xmlCharKey:this.xmlCharKey}))}};function HYe(t){let e,A=t.request,r=A.operationSpec;if(r){let i=A.operationResponseGetter;i?e=i(r,t):e=r.responses[t.status]}return e}a(HYe,"getOperationResponse");function YYe(t){let e=t.request.shouldDeserialize,A;return e===void 0?A=!0:typeof e=="boolean"?A=e:A=e(t),A}a(YYe,"shouldDeserializeResponse");function ise(t,e,A,r={}){var i,n,s;let o={rootName:(i=r.rootName)!==null&&i!==void 0?i:"",includeRoot:(n=r.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=r.xmlCharKey)!==null&&s!==void 0?s:Uc};return VYe(t,e,A,o).then(c=>{if(!YYe(c))return c;let l=c.request.operationSpec;if(!l||!l.responses)return c;let d=HYe(c),{error:u,shouldReturnResponse:p}=JYe(c,l,d);if(u)throw u;if(p)return c;if(d){if(d.bodyMapper){let g=c.parsedBody;l.isXML&&d.bodyMapper.type.name===Yu.Sequence&&(g=typeof g=="object"?g[d.bodyMapper.xmlElementName]:[]);try{c.parsedBody=l.serializer.deserialize(d.bodyMapper,g,"operationRes.parsedBody",r)}catch(h){throw new ss(`Error ${h} occurred in deserializing the responseBody - ${c.bodyAsText}`,void 0,c.status,c.request,c)}}else l.httpMethod==="HEAD"&&(c.parsedBody=A.status>=200&&A.status<300);d.headersMapper&&(c.parsedHeaders=l.serializer.deserialize(d.headersMapper,c.headers.toJson(),"operationRes.parsedHeaders",r))}return c})}a(ise,"deserializeResponseBody");function GYe(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}a(GYe,"isOperationSpecEmpty");function JYe(t,e,A){var r;let i=200<=t.status&&t.status<300;if(GYe(e)?i:!!A)if(A){if(!A.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=A??e.responses.default,c=((r=t.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new ss(c,void 0,t.status,t.request,t);if(!s)throw l;let d=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,g;if(d){let m=p;e.isXML&&d.type.name===Yu.Sequence&&(m=typeof p=="object"?p[d.xmlElementName]:[]),g=e.serializer.deserialize(d,m,"error.response.parsedBody")}let h=p.error||g||p;l.code=h.code,h.message&&(l.message=h.message),d&&(l.response.parsedBody=g)}t.headers&&u&&(l.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}a(JYe,"handleErrorResponse");function VYe(t,e,A,r){var i;let n=a(o=>{let c=`Error "${o}" occurred while parsing the response body - ${A.bodyAsText}.`,l=o.code||ss.PARSE_ERROR,d=new ss(c,l,A.status,A.request,A);return Promise.reject(d)},"errorHandler");if(!(((i=A.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(A.status))||A.request.streamResponseBody)&&A.bodyAsText){let o=A.bodyAsText,c=A.headers.get("Content-Type")||"",l=c?c.split(";").map(d=>d.toLowerCase()):[];if(l.length===0||l.some(d=>t.indexOf(d)!==-1))return new Promise(d=>{A.parsedBody=JSON.parse(o),d(A)}).catch(n);if(l.some(d=>e.indexOf(d)!==-1))return tse(o,r).then(d=>(A.parsedBody=d,A)).catch(n)}return Promise.resolve(A)}a(VYe,"parse");var nse={enable:!0};function sse(t){return{create:(e,A)=>new Ck(e,A,t||nse)}}a(sse,"keepAlivePolicy");var Ck=class extends fr{static{a(this,"KeepAlivePolicy")}constructor(e,A,r){super(e,A),this.keepAliveOptions=r}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Une=["GET","HEAD"],WYe={handleRedirects:!0,maxRetries:20};function qk(t=20){return{create:(e,A)=>new fk(e,A,t)}}a(qk,"redirectPolicy");var fk=class extends fr{static{a(this,"RedirectPolicy")}constructor(e,A,r=20){super(e,A),this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendReq Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},pse=[],gse=!1,sGe=new Map;function aGe(){if(!process)return;let t=tb(Xs.HTTPS_PROXY),e=tb(Xs.ALL_PROXY),A=tb(Xs.HTTP_PROXY);return t||e||A}a(aGe,"loadEnvironmentProxyValue");function oGe(t,e,A){if(e.length===0)return!1;let r=So.parse(t).getHost();if(A?.has(r))return A.get(r);let i=!1;for(let n of e)n[0]==="."?(r.endsWith(n)||r.length===n.length-1&&r===n.slice(1))&&(i=!0):r===n&&(i=!0);return A?.set(r,i),i}a(oGe,"isBypassed");function cGe(){let t=tb(Xs.NO_PROXY);return gse=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}a(cGe,"loadNoProxy");function hse(t){if(!t&&(t=aGe(),!t))return;let{username:e,password:A,urlWithoutAuth:r}=lGe(t),i=So.parse(r);return{host:(i.getScheme()?i.getScheme()+"://":"")+i.getHost(),port:Number.parseInt(i.getPort()||"80"),username:e,password:A}}a(hse,"getDefaultProxySettings");function jk(t,e){return t||(t=hse()),gse||pse.push(...cGe()),{create:(A,r)=>new Rk(A,r,t,e?.customNoProxyList)}}a(jk,"proxyPolicy");function lGe(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let A=t.indexOf("://"),r=A!==-1?A+3:0,i=t.substring(r,e),n=i.indexOf(":"),s=n!==-1,o=s?i.substring(0,n):i,c=s?i.substring(n+1):void 0,l=t.substring(0,r)+t.substring(e+1);return{username:o,password:c,urlWithoutAuth:l}}a(lGe,"extractAuthFromUrl");var Rk=class extends fr{static{a(this,"ProxyPolicy")}constructor(e,A,r,i){super(e,A),this.proxySettings=r,this.customNoProxyList=i}sendRequest(e){var A;return!e.proxySettings&&!oGe(e.url,(A=this.customNoProxyList)!==null&&A!==void 0?A:pse,this.customNoProxyList?void 0:sGe)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function dGe(t=30){return{create:(e,A)=>new Dk(e,A,t)}}a(dGe,"rpRegistrationPolicy");var Dk=class extends fr{static{a(this,"RPRegistrationPolicy")}constructor(e,A,r=30){super(e,A),this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(A=>uGe(this,e,A))}};function uGe(t,e,A){if(A.status===409){let r=pGe(A.bodyAsText);if(r){let i=gGe(e.url);return hGe(t,i,r,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",db()),t._nextPolicy.sendRequest(e.clone())):A)}}return Promise.resolve(A)}a(uGe,"registerIfNeeded");function Ese(t,e=!1){let A=t.clone();return e&&(A.url=t.url),A.headers.set("x-ms-client-request-id",db()),A.headers.set("Content-Type","application/json; charset=utf-8"),A}a(Ese,"getRequestEssentials");function pGe(t){let e,A;if(t){try{A=JSON.parse(t)}catch{}if(A&&A.error&&A.error.message&&A.error.code&&A.error.code==="MissingSubscriptionRegistration"){let r=A.error.message.match(/.*'(.*)'/i);r&&(e=r.pop())}}return e}a(pGe,"checkRPNotRegisteredError");function gGe(t){let e,A=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(A&&A[0])e=A[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}a(gGe,"extractSubscriptionUrl");async function hGe(t,e,A,r){let i=`${e}providers/${A}/register?api-version=2016-02-01`,n=`${e}providers/${A}?api-version=2016-02-01`,s=Ese(r);if(s.method="POST",s.url=i,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${A} failed. Please try registering manually.`);return mse(t,n,r)}a(hGe,"registerRP");async function mse(t,e,A){let r=Ese(A);r.url=e,r.method="GET";let i=await t._nextPolicy.sendRequest(r),n=i.parsedBody;return i.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Do.delay(t._retryTimeout*1e3),mse(t,e,A))}a(mse,"getRegistrationStatus");function Cse(t){return{create:(e,A)=>new Sk(e,A,t)}}a(Cse,"signingPolicy");var Sk=class extends fr{static{a(this,"SigningPolicy")}constructor(e,A,r){super(e,A),this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(A=>this._nextPolicy.sendRequest(A))}};function Xk(t,e,A,r){return{create:(i,n)=>new xk(i,n,t,e,A,r)}}a(Xk,"systemErrorRetryPolicy");var xk=class extends fr{static{a(this,"SystemErrorRetryPolicy")}constructor(e,A,r,i,n,s){super(e,A),this.retryCount=Hu(r)?r:Hk,this.retryInterval=Hu(i)?i:Yk,this.minRetryInterval=Hu(n)?n:zYe,this.maxRetryInterval=Hu(s)?s:Gk}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(A=>fse(this,e,A.response,A))}};async function fse(t,e,A,r,i){i=cse(t,i,r);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(a(n,"shouldPolicyRetry"),ose(t.retryCount,n,i,A,r))try{return await Do.delay(i.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return fse(t,e,A,s,i)}else return r?Promise.reject(i.error):A}a(fse,"retry");var EGe=3,Tne=Xs.HttpConstants.StatusCodes;function Zk(){return{create:(t,e)=>new vk(t,e)}}a(Zk,"throttlingRetryPolicy");var Mne="The operation was aborted.",vk=class t extends fr{static{a(this,"ThrottlingRetryPolicy")}constructor(e,A,r){super(e,A),this.numberOfRetries=0,this._handleResponse=r||this._defa Line truncated
Polling from: ${A.config.operationLocation}
Operation status: ${d}
Polling status: ${Sse.terminalStates.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let u=s(l,A);if(u!==void 0)return{response:await e(u).catch(Dse({state:A,stateProxy:r,isOperationError:o})),status:d}}return{response:l,status:d}}a(LGe,"pollOperationHelper");async function UGe(t){let{poll:e,state:A,stateProxy:r,options:i,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:c,withOperationLocation:l,getPollingInterval:d,processResult:u,getError:p,updateState:g,setDelay:h,isDone:m,setErrorAsResult:f}=t,{operationLocation:B}=A.config;if(B!==void 0){let{response:b,status:I}=await LGe({poll:e,getOperationStatus:n,state:A,stateProxy:r,operationLocation:B,getResourceLocation:s,isOperationError:c,options:i});if(xse({status:I,response:b,state:A,stateProxy:r,isDone:m,processResult:u,getError:p,setErrorAsResult:f}),!Sse.terminalStates.includes(I)){let C=d?.(b);C&&h(C);let Q=o?.(b,A);if(Q!==void 0){let N=B!==Q;A.config.operationLocation=Q,l?.(Q,N)}else l?.(B,!1)}g?.(A,b)}}a(UGe,"pollOperation");td.pollOperation=UGe});var AF=E(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.pollHttpOperation=_A.isOperationError=_A.getResourceLocation=_A.getOperationStatus=_A.getOperationLocation=_A.initHttpOperation=_A.getStatusFromInitialResponse=_A.getErrorFromResponse=_A.parseRetryAfter=_A.inferLroMode=void 0;var vse=Qb(),$k=Cb();function kse(t){let{azureAsyncOperation:e,operationLocation:A}=t;return A??e}a(kse,"getOperationLocationPollingUrl");function Fse(t){return t.headers.location}a(Fse,"getLocationHeader");function Lse(t){return t.headers["operation-location"]}a(Lse,"getOperationLocationHeader");function Use(t){return t.headers["azure-asyncoperation"]}a(Use,"getAzureAsyncOperationHeader");function TGe(t){let{location:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t;switch(A){case"PUT":return r;case"DELETE":return;case"PATCH":return n()??r;default:return n()}function n(){switch(i){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return e}}a(n,"getDefault")}a(TGe,"findResourceLocation");function Tse(t){let{rawResponse:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t,n=Lse(e),s=Use(e),o=kse({operationLocation:n,azureAsyncOperation:s}),c=Fse(e),l=A?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:TGe({requestMethod:l,location:c,requestPath:r,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&r?{mode:"Body",operationLocation:r}:void 0}a(Tse,"inferLroMode");_A.inferLroMode=Tse;function Mse(t){let{status:e,statusCode:A}=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 eF(A);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 $k.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}a(Mse,"transformStatus");function MGe(t){let{status:e}=t.body??{};return Mse({status:e,statusCode:t.statusCode})}a(MGe,"getStatus");function _Ge(t){let{properties:e,provisioningState:A}=t.body??{},r=e?.provisioningState??A;return Mse({status:r,statusCode:t.statusCode})}a(_Ge,"getProvisioningState");function eF(t){return t===202?"running":t<300?"succeeded":"failed"}a(eF,"toOperationStatus");function _se({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let A=parseInt(e);return isNaN(A)?OGe(new Date(e)):A*1e3}}a(_se,"parseRetryAfter");_A.parseRetryAfter=_se;function Ose(t){let e=Hse(t,"error");if(!e){$k.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){$k.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}a(Ose,"getErrorFromResponse");_A.getErrorFromResponse=Ose;function OGe(t){let e=Math.floor(new Date().getTime()),A=t.getTime();if(e<A)return A-e}a(OGe,"calculatePollingIntervalFromDate");function Pse(t){let{response:e,state:A,operationLocation:r}=t;function i(){switch(A.config.metadata?.mode){case void 0:return eF(e.rawResponse.statusCode);case"Body":return tF(e,A);default:return"running"}}a(i,"helper");let n=i();return n==="running"&&r===void 0?"succeeded":n}a(Pse,"getStatusFromInitialResponse");_A.getStatusFromInitialResponse=Pse;async function PGe(t){let{stateProxy:e,resourceLocationConfig:A,processResult:r,lro:i,setErrorAsResult:n}=t;return(0,vse.initOperation)({init:async()=>{let s=await i.sendInitialRequest(),o=Tse({rawResponse:s.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethoLine truncated
`,Kle="HTTP/1.1",yze="AES256",wze="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",bze=["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-if-tags","x-ms-source-if-tags"],Nze=["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"],Rze="BlobUsesCustomerSpecifiedEncryption",Dze="BlobDoesNotUseCustomerSpecifiedEncryption",Sze=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function xze(t){let e=O.URLBuilder.parse(t),A=e.getPath();return A=A||"/",A=kze(A),e.setPath(A),e.toString()}a(xze,"escapeURLPath");function vze(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let A=t.split(";");for(let r of A)r.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}a(vze,"getProxyUriFromDevConnString");function Vu(t,e){let A=t.split(";");for(let r of A)if(r.trim().startsWith(e))return r.trim().match(e+"=(.*)")[1];return""}a(Vu,"getValueInConnString");function bE(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=vze(t),t=wze);let A=Vu(t,"BlobEndpoint");if(A=A.endsWith("/")?A.slice(0,-1):A,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let r="",i="",n=Buffer.from("accountKey","base64"),s="";if(i=Vu(t,"AccountName"),n=Buffer.from(Vu(t,"AccountKey"),"base64"),!A){r=Vu(t,"DefaultEndpointsProtocol");let o=r.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Vu(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");A=`${r}://${i}.blob.${s}`}if(i){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:A,accountName:i,accountKey:n,proxyUri:e}}else{let r=Vu(t,"SharedAccessSignature"),i=Vu(t,"AccountName");if(i||(i=ede(A)),A){if(!r)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:A,accountName:i,accountSas:r}}}a(bE,"extractConnectionStringParts");function kze(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}a(kze,"escape");function NA(t,e){let A=O.URLBuilder.parse(t),r=A.getPath();return r=r?r.endsWith("/")?`${r}${e}`:`${r}/${e}`:e,A.setPath(r),new URL(A.toString()).toStr Line truncated
Polling status: ${xse.terminalStates.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let u=s(l,A);if(u!==void 0)return{response:await e(u).catch(Sse({state:A,stateProxy:r,isOperationError:o})),status:d}}return{response:l,status:d}}a(LGe,"pollOperationHelper");async function UGe(t){let{poll:e,state:A,stateProxy:r,options:i,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:c,withOperationLocation:l,getPollingInterval:d,processResult:u,getError:p,updateState:g,setDelay:h,isDone:m,setErrorAsResult:f}=t,{operationLocation:B}=A.config;if(B!==void 0){let{response:b,status:I}=await LGe({poll:e,getOperationStatus:n,state:A,stateProxy:r,operationLocation:B,getResourceLocation:s,isOperationError:c,options:i});if(vse({status:I,response:b,state:A,stateProxy:r,isDone:m,processResult:u,getError:p,setErrorAsResult:f}),!xse.terminalStates.includes(I)){let C=d?.(b);C&&h(C);let Q=o?.(b,A);if(Q!==void 0){let N=B!==Q;A.config.operationLocation=Q,l?.(Q,N)}else l?.(B,!1)}g?.(A,b)}}a(UGe,"pollOperation");td.pollOperation=UGe});var AF=E(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.pollHttpOperation=_A.isOperationError=_A.getResourceLocation=_A.getOperationStatus=_A.getOperationLocation=_A.initHttpOperation=_A.getStatusFromInitialResponse=_A.getErrorFromResponse=_A.parseRetryAfter=_A.inferLroMode=void 0;var kse=Qb(),$k=Cb();function Fse(t){let{azureAsyncOperation:e,operationLocation:A}=t;return A??e}a(Fse,"getOperationLocationPollingUrl");function Lse(t){return t.headers.location}a(Lse,"getLocationHeader");function Use(t){return t.headers["operation-location"]}a(Use,"getOperationLocationHeader");function Tse(t){return t.headers["azure-asyncoperation"]}a(Tse,"getAzureAsyncOperationHeader");function TGe(t){let{location:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t;switch(A){case"PUT":return r;case"DELETE":return;case"PATCH":return n()??r;default:return n()}function n(){switch(i){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return e}}a(n,"getDefault")}a(TGe,"findResourceLocation");function Mse(t){let{rawResponse:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t,n=Use(e),s=Tse(e),o=Fse({operationLocation:n,azureAsyncOperation:s}),c=Lse(e),l=A?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:TGe({requestMethod:l,location:c,requestPath:r,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&r?{mode:"Body",operationLocation:r}:void 0}a(Mse,"inferLroMode");_A.inferLroMode=Mse;function _se(t){let{status:e,statusCode:A}=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 eF(A);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 $k.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}a(_se,"transformStatus");function MGe(t){let{status:e}=t.body??{};return _se({status:e,statusCode:t.statusCode})}a(MGe,"getStatus");function _Ge(t){let{properties:e,provisioningState:A}=t.body??{},r=e?.provisioningState??A;return _se({status:r,statusCode:t.statusCode})}a(_Ge,"getProvisioningState");function eF(t){return t===202?"running":t<300?"succeeded":"failed"}a(eF,"toOperationStatus");function Ose({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let A=parseInt(e);return isNaN(A)?OGe(new Date(e)):A*1e3}}a(Ose,"parseRetryAfter");_A.parseRetryAfter=Ose;function Pse(t){let e=Yse(t,"error");if(!e){$k.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){$k.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}a(Pse,"getErrorFromResponse");_A.getErrorFromResponse=Pse;function OGe(t){let e=Math.floor(new Date().getTime()),A=t.getTime();if(e<A)return A-e}a(OGe,"calculatePollingIntervalFromDate");function qse(t){let{response:e,state:A,operationLocation:r}=t;function i(){switch(A.config.metadata?.mode){case void 0:return eF(e.rawResponse.statusCode);case"Body":return tF(e,A);default:return"running"}}a(i,"helper");let n=i();return n==="running"&&r===void 0?"succeeded":n}a(qse,"getStatusFromInitialResponse");_A.getStatusFromInitialResponse=qse;async function PGe(t){let{stateProxy:e,resourceLocationConfig:A,processResult:r,lro:i,setErrorAsResult:n}=t;return(0,kse.initOperation)({init:async()=>{let s=await i.sendInitialRequest(),o=Mse({rawResponse:s.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethoLine truncated
`,$le="HTTP/1.1",yze="AES256",wze="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",bze=["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-if-tags","x-ms-source-if-tags"],Nze=["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"],Rze="BlobUsesCustomerSpecifiedEncryption",Dze="BlobDoesNotUseCustomerSpecifiedEncryption",Sze=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function xze(t){let e=O.URLBuilder.parse(t),A=e.getPath();return A=A||"/",A=kze(A),e.setPath(A),e.toString()}a(xze,"escapeURLPath");function vze(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let A=t.split(";");for(let r of A)r.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}a(vze,"getProxyUriFromDevConnString");function Vu(t,e){let A=t.split(";");for(let r of A)if(r.trim().startsWith(e))return r.trim().match(e+"=(.*)")[1];return""}a(Vu,"getValueInConnString");function bE(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=vze(t),t=wze);let A=Vu(t,"BlobEndpoint");if(A=A.endsWith("/")?A.slice(0,-1):A,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let r="",i="",n=Buffer.from("accountKey","base64"),s="";if(i=Vu(t,"AccountName"),n=Buffer.from(Vu(t,"AccountKey"),"base64"),!A){r=Vu(t,"DefaultEndpointsProtocol");let o=r.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Vu(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");A=`${r}://${i}.blob.${s}`}if(i){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:A,accountName:i,accountKey:n,proxyUri:e}}else{let r=Vu(t,"SharedAccessSignature"),i=Vu(t,"AccountName");if(i||(i=tde(A)),A){if(!r)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:A,accountName:i,accountSas:r}}}a(bE,"extractConnectionStringParts");function kze(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}a(kze,"escape");function NA(t,e){let A=O.URLBuilder.parse(t),r=A.getPath();return r=r?r.endsWith("/")?`${r}${e}`:`${r}/${e}`:e,A.setPath(r),new URL(A.toString()).toStr Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),r=this.factory.computeHMACSHA256(A);return e.headers.set($t.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`),e}getHeaderValueToSign(e,A){let r=e.headers.get(A);return!r||A===$t.CONTENT_LENGTH&&r==="0"?"":r}getCanonicalizedHeadersString(e){let A=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith($t.PREFIX_FOR_STORAGE));A.sort((i,n)=>i.name.toLowerCase().localeCompare(n.name.toLowerCase())),A=A.filter((i,n,s)=>!(n>0&&i.name.toLowerCase()===s[n-1].name.toLowerCase()));let r="";return A.forEach(i=>{r+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),r}getCanonicalizedResourceString(e){let A=mL(e.url)||"/",r="";r+=`/${this.factory.accountName}${A}`;let i=Tze(e.url),n={};if(i){let s=[];for(let o in i)if(Object.prototype.hasOwnProperty.call(i,o)){let c=o.toLowerCase();n[c]=i[o],s.push(c)}s.sort();for(let o of s)r+=`
${o}:${decodeURIComponent(n[o])}`}return r}},PA=class extends TQ{static{a(this,"StorageSharedKeyCredential")}constructor(e,A){super(),this.accountName=e,this.accountKey=Buffer.from(A,"base64")}create(e,A){return new Wb(e,A,this)}computeHMACSHA256(e){return vae.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},Zze="azure-storage-blob",Kze="12.17.0",_Q=class extends W.ServiceClient{static{a(this,"StorageClientContext")}constructor(e,A){if(e===void 0)throw new Error("'url' cannot be null");if(A||(A={}),!A.userAgent){let r=W.getDefaultUserAgentValue();A.userAgent=`${Zze}/${Kze} ${r}`}super(void 0,A),this.requestContentType="application/json; charset=utf-8",this.baseUri=A.endpoint||"{url}",this.url=e,this.version=A.version||"2023-11-03"}},OQ=class{static{a(this,"StorageClient")}constructor(e,A){this.url=xze(e),this.accountName=ede(e),this.pipeline=A,this.storageClientContext=new _Q(this.url,A.toServiceClientOptions()),this.isHttps=$le(Lze(this.url)||"","https"),this.credential=new _t;for(let i of this.pipeline.factories)O.isNode&&i instanceof PA||i instanceof _t?this.credential=i:O.isTokenCredential(i.credential)&&(this.credential=i.credential);let r=this.storageClientContext;r.requestContentType=void 0}},J=P.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function ne(t){var e,A;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(A=t?.tracingOptions)===null||A===void 0?void 0:A.tracingContext}}a(ne,"convertTracingToRequestOptionsBase");var _c=class t{static{a(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"x":A.deleteVersion=!0;break;case"t":A.tag=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Oc=class t{static{a(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"l":A.list=!0;break;case"t":A.tag=!0;break;case"x":A.deleteVersion=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;case"f":A.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.list&&(A.list=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),e.filterByTags&&(A.filterByTags=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},DF=class{static{a(this,"UserDelegationKeyCredential")}constructor(e,A){this.accountName=e,this.userDelegationKey=A,this.key=Buffer.from(A.value,"base64")}computeHMACSHA256(e){return vae.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Pc(t){return t.end?`${t.start}-${t.end}`:t.start}a(Pc,"ipRangeToString");ce.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(ce.SASProtocol||(ce.SASProtocol={}));var vo=class{static{a(this,"SASQueryParameters")}constructor(e,A,r,i,n,s,o, Line truncated
${o}:${decodeURIComponent(n[o])}`}return r}},PA=class extends TQ{static{a(this,"StorageSharedKeyCredential")}constructor(e,A){super(),this.accountName=e,this.accountKey=Buffer.from(A,"base64")}create(e,A){return new Wb(e,A,this)}computeHMACSHA256(e){return kae.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},Zze="azure-storage-blob",Kze="12.17.0",_Q=class extends W.ServiceClient{static{a(this,"StorageClientContext")}constructor(e,A){if(e===void 0)throw new Error("'url' cannot be null");if(A||(A={}),!A.userAgent){let r=W.getDefaultUserAgentValue();A.userAgent=`${Zze}/${Kze} ${r}`}super(void 0,A),this.requestContentType="application/json; charset=utf-8",this.baseUri=A.endpoint||"{url}",this.url=e,this.version=A.version||"2023-11-03"}},OQ=class{static{a(this,"StorageClient")}constructor(e,A){this.url=xze(e),this.accountName=tde(e),this.pipeline=A,this.storageClientContext=new _Q(this.url,A.toServiceClientOptions()),this.isHttps=ede(Lze(this.url)||"","https"),this.credential=new _t;for(let i of this.pipeline.factories)O.isNode&&i instanceof PA||i instanceof _t?this.credential=i:O.isTokenCredential(i.credential)&&(this.credential=i.credential);let r=this.storageClientContext;r.requestContentType=void 0}},J=P.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function ne(t){var e,A;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(A=t?.tracingOptions)===null||A===void 0?void 0:A.tracingContext}}a(ne,"convertTracingToRequestOptionsBase");var _c=class t{static{a(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"x":A.deleteVersion=!0;break;case"t":A.tag=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Oc=class t{static{a(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"l":A.list=!0;break;case"t":A.tag=!0;break;case"x":A.deleteVersion=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;case"f":A.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.list&&(A.list=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),e.filterByTags&&(A.filterByTags=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},DF=class{static{a(this,"UserDelegationKeyCredential")}constructor(e,A){this.accountName=e,this.userDelegationKey=A,this.key=Buffer.from(A.value,"base64")}computeHMACSHA256(e){return kae.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Pc(t){return t.end?`${t.start}-${t.end}`:t.start}a(Pc,"ipRangeToString");ce.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(ce.SASProtocol||(ce.SASProtocol={}));var vo=class{static{a(this,"SASQueryParameters")}constructor(e,A,r,i,n,s,o, Line truncated
`),n=e.computeHMACSHA256(i);return new vo(t.version,n,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}a($ze,"generateBlobSASQueryParameters20150405");function eje(t,e){if(t=RE(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 A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",NE(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new vo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}a(eje,"generateBlobSASQueryParameters20181109");function tje(t,e){if(t=RE(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 A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",NE(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new vo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}a(tje,"generateBlobSASQueryParameters20201206");function Aje(t,e){if(t=RE(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",NE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new vo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}a(Aje,"generateBlobSASQueryParametersUDK20181109");function rje(t,e){if(t=RE(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",NE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new vo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}a(rje,"generateBlobSASQueryParametersUDK20200210");function ije(t,e){if(t=RE(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",NE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new vo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}a(ije,"generateBlobSASQueryParametersUDK20201206");function NE(t,e,A){let r=[`/blob/${t}/${e}`];return A&&r.push(`/${A}`),r.join("")}a(NE,"getCanonicalName");function RE(t){let e=t.version?t.version:hL;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}a(RE,"SASSignatureValuesSanityCheckAndAutofill");var PQ=class{static{a(this,"BlobLeaseClient")}constructor(e,A){let r=new _Q(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Xu(r)):(this._isContainer=!1,this._containerOrBlobOperation=new FQ(r)),A||(A=O.generateUuid()),this._leaseId=A}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-acquireLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==xo||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==xo||!((o=A.conditions)===null||o===void 0)&&o.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:A.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions}),proposedLeaseId:this._leaseId},ne(d)))}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async changeLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-changeLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==xo||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==xo||!((o=A.conditions)===null||o===void 0)&&o.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.");try{let u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:A.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions})},ne(d)));return this._leaseId=e,u}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async releaseLease(e={}){var A,r,i,n,s,o;let{span:c,updatedOptions:l}=J("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((A=e.conditions)===null||A===void 0)&&A.ifMatch&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==xo||!((i=e.conditions)===null||i===void 0)&&i.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==xo||!((s=e.conditions)===null||s===void 0)&&s.tag Line truncated
`),s=e.computeHMACSHA256(n);return new vo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}a(ije,"generateBlobSASQueryParametersUDK20201206");function NE(t,e,A){let r=[`/blob/${t}/${e}`];return A&&r.push(`/${A}`),r.join("")}a(NE,"getCanonicalName");function RE(t){let e=t.version?t.version:hL;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}a(RE,"SASSignatureValuesSanityCheckAndAutofill");var PQ=class{static{a(this,"BlobLeaseClient")}constructor(e,A){let r=new _Q(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Xu(r)):(this._isContainer=!1,this._containerOrBlobOperation=new FQ(r)),A||(A=O.generateUuid()),this._leaseId=A}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-acquireLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==xo||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==xo||!((o=A.conditions)===null||o===void 0)&&o.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:A.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions}),proposedLeaseId:this._leaseId},ne(d)))}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async changeLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-changeLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==xo||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==xo||!((o=A.conditions)===null||o===void 0)&&o.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.");try{let u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:A.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions})},ne(d)));return this._leaseId=e,u}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async releaseLease(e={}){var A,r,i,n,s,o;let{span:c,updatedOptions:l}=J("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((A=e.conditions)===null||A===void 0)&&A.ifMatch&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==xo||!((i=e.conditions)===null||i===void 0)&&i.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==xo||!((s=e.conditions)===null||s===void 0)&&s.tag Line truncated
`):s=[e.accountName,r,i,n,t.startsOn?Rt(t.startsOn,!1):"",Rt(t.expiresOn,!1),t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",A,""].join(`
`);let o=e.computeHMACSHA256(s);return new vo(A,o,r.toString(),i,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}a(Ade,"generateAccountSASQueryParameters");var ZF=class t extends OQ{static{a(this,"BlobServiceClient")}constructor(e,A,r){let i;pd(A)?i=A:O.isNode&&A instanceof PA||A instanceof _t||O.isTokenCredential(A)?i=Gt(A,r):i=Gt(new _t,r),super(e,i),this.serviceContext=new Pb(this.storageClientContext)}static fromConnectionString(e,A){A=A||{};let r=bE(e);if(r.kind==="AccountConnString")if(O.isNode){let i=new PA(r.accountName,r.accountKey);A.proxyOptions||(A.proxyOptions=O.getDefaultProxySettings(r.proxyUri));let n=Gt(i,A);return new t(r.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(r.kind==="SASConnString"){let i=Gt(new _t,A);return new t(r.url+"?"+r.accountSas,i)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new jb(NA(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-createContainer",A);try{let n=this.getContainerClient(e),s=await n.create(i);return{containerClient:n,containerCreateResponse:s}}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async deleteContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-deleteContainer",A);try{return await this.getContainerClient(e).delete(i)}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async undeleteContainer(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-undeleteContainer",r);try{let s=this.getContainerClient(r.destinationContainerName||e),c=await new Xu(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:A},n));return{containerClient:s,containerUndeleteResponse:c}}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async renameContainer(e,A,r={}){var i;let{span:n,updatedOptions:s}=J("BlobServiceClient-renameContainer",r);try{let o=this.getContainerClient(A),l=await new Xu(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:o,containerRenameResponse:l}}catch(o){throw n.setStatus({code:P.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async setProperties(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-setProperties",A);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:A.abortSignal},ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async getStatistics(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async getAccountInfo(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async listContainersSegment(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-listContainersSegment",A);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:A.abortSignal,marker:e},A),{include:typeof A.include=="string"?[A.include]:A.include}),ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async findBlobsByTagsSegment(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-findBlobsByTagsSegment",r);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:A,maxPageSize:r.maxPageSize},ne(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(c=>{var l;let d="";return((l=c.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(d=c.tags.blobTagSet[0].value),Object.assign(Object.assign({},c),{tags:xQ(c.tags),tagValue:d})})})}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}findBlobsByTagsSegments(e,A,r={}){return V.__asyncGenerator(this,arguments,a(function*(){let n;if(A||A===void 0)do n=yield V.__await(this.findBlobsByTagsSegment(e,A,r)),n.blobs=n.blobs||[],A=n.continuationToken,yield yield V.__awai Line truncated
`);let o=e.computeHMACSHA256(s);return new vo(A,o,r.toString(),i,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}a(rde,"generateAccountSASQueryParameters");var ZF=class t extends OQ{static{a(this,"BlobServiceClient")}constructor(e,A,r){let i;pd(A)?i=A:O.isNode&&A instanceof PA||A instanceof _t||O.isTokenCredential(A)?i=Gt(A,r):i=Gt(new _t,r),super(e,i),this.serviceContext=new Pb(this.storageClientContext)}static fromConnectionString(e,A){A=A||{};let r=bE(e);if(r.kind==="AccountConnString")if(O.isNode){let i=new PA(r.accountName,r.accountKey);A.proxyOptions||(A.proxyOptions=O.getDefaultProxySettings(r.proxyUri));let n=Gt(i,A);return new t(r.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(r.kind==="SASConnString"){let i=Gt(new _t,A);return new t(r.url+"?"+r.accountSas,i)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new jb(NA(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-createContainer",A);try{let n=this.getContainerClient(e),s=await n.create(i);return{containerClient:n,containerCreateResponse:s}}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async deleteContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-deleteContainer",A);try{return await this.getContainerClient(e).delete(i)}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async undeleteContainer(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-undeleteContainer",r);try{let s=this.getContainerClient(r.destinationContainerName||e),c=await new Xu(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:A},n));return{containerClient:s,containerUndeleteResponse:c}}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async renameContainer(e,A,r={}){var i;let{span:n,updatedOptions:s}=J("BlobServiceClient-renameContainer",r);try{let o=this.getContainerClient(A),l=await new Xu(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:o,containerRenameResponse:l}}catch(o){throw n.setStatus({code:P.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async setProperties(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-setProperties",A);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:A.abortSignal},ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async getStatistics(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async getAccountInfo(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async listContainersSegment(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-listContainersSegment",A);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:A.abortSignal,marker:e},A),{include:typeof A.include=="string"?[A.include]:A.include}),ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async findBlobsByTagsSegment(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-findBlobsByTagsSegment",r);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:A,maxPageSize:r.maxPageSize},ne(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(c=>{var l;let d="";return((l=c.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(d=c.tags.blobTagSet[0].value),Object.assign(Object.assign({},c),{tags:xQ(c.tags),tagValue:d})})})}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}findBlobsByTagsSegments(e,A,r={}){return V.__asyncGenerator(this,arguments,a(function*(){let n;if(A||A===void 0)do n=yield V.__await(this.findBlobsByTagsSegment(e,A,r)),n.blobs=n.blobs||[],A=n.continuationToken,yield yield V.__awai 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(A),this.code=e,this.name="NetworkError"}};Bn.NetworkError=iN;iN.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var nN=class extends Error{static{a(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Bn.UsageError=nN;nN.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var rde=E(In=>{"use strict";var Cje=In&&In.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),fje=In&&In.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qje=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&Cje(e,t,A);return fje(e,t),e},Bje=In&&In.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(In,"__esModule",{value:!0});In.uploadCacheArchiveSDK=In.UploadProgress=void 0;var RL=Qje(hi()),Ije=BL(),yje=NL(),sN=class{static{a(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,A=(100*(e/this.contentLength)).toFixed(1),r=Date.now()-this.startTime,i=(e/(1024*1024)/(r/1e3)).toFixed(1);RL.info(`Sent ${e} of ${this.contentLength} (${A}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let A=a(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(A,e))},"displayCallback");this.timeoutHandle=setTimeout(A,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};In.UploadProgress=sN;function wje(t,e,A){var r;return Bje(this,void 0,void 0,function*(){let i=new Ije.BlobClient(t),n=i.getBlockBlobClient(),s=new sN((r=A?.archiveSizeBytes)!==null&&r!==void 0?r:0),o={blockSize:A?.uploadChunkSize,concurrency:A?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),RL.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,o);if(c._response.status>=400)throw new yje.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw RL.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{s.stopDisplayTimer()}})}a(wje,"uploadCacheArchiveSDK");In.uploadCacheArchiveSDK=wje});var SL=E(qA=>{"use strict";var bje=qA&&qA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Nje=qA&&qA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rje=qA&&qA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&bje(e,t,A);return Nje(e,t),e},oN=qA&&qA.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(qA,"__esModule",{value:!0});qA.retryHttpClientResponse=qA.retryTypedResponse=qA.retry=qA.isRetryableStatusCode=qA.isServerErrorStatusCode=qA.isSuccessStatusCode=void 0;var ide=Rje(hi()),aN=Ng(),DE=Dh();function Dje(t){return t?t>=200&&t<300:!1}a(Dje,"isSuccessStatusCode");qA.isSuccessStatusCode=Dje;function nde(t){return t?t>=500:!0}a(nde,"isServerErrorStatusCode");qA.isServerErrorStatusCode=nde;function sde(t){return t?[aN.HttpCodes.BadGateway,aN.HttpCodes.ServiceUnavailable,aN.HttpCodes.GatewayTimeout].includes(t):!1}a(sde,"isRetryableStatusCode");qA.isRetryableStatusCode=sde;function Sje(t){return oN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}a(Sje,"sleep");function DL(t,e,A,r=DE.DefaultRetryAttempts Line truncated
Other caches with similar key:`);for(let o of n?.artifactCaches||[])cs.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}a(dXe,"printCachesListForDiagnostics");function uXe(t,e,A){return yn(this,void 0,void 0,function*(){let r=new iXe.URL(t),i=(0,LL.getDownloadOptions)(A);r.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield(0,dN.downloadCacheStorageSDK)(t,e,i):i.concurrentBlobDownloads?yield(0,dN.downloadCacheHttpClientConcurrent)(t,e,i):yield(0,dN.downloadCacheHttpClient)(t,e):yield(0,dN.downloadCacheHttpClient)(t,e)})}a(uXe,"downloadCache");Or.downloadCache=uXe;function pXe(t,e,A){return yn(this,void 0,void 0,function*(){let r=UL(),i=xE.getCacheVersion(e,A?.compressionMethod,A?.enableCrossOsArchive),n={key:t,version:i,cacheSize:A?.cacheSize};return yield(0,hd.retryTypedResponse)("reserveCache",()=>yn(this,void 0,void 0,function*(){return r.postJson($Q("caches"),n)}))})}a(pXe,"reserveCache");Or.reserveCache=pXe;function Ede(t,e){return`bytes ${t}-${e}/*`}a(Ede,"getContentRange");function gXe(t,e,A,r,i){return yn(this,void 0,void 0,function*(){cs.debug(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${Ede(r,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":Ede(r,i)},s=yield(0,hd.retryHttpClientResponse)(`uploadChunk (start: ${r}, end: ${i})`,()=>yn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,A(),n)}));if(!(0,hd.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}a(gXe,"uploadChunk");function hXe(t,e,A,r){return yn(this,void 0,void 0,function*(){let i=xE.getArchiveFileSizeInBytes(A),n=$Q(`caches/${e.toString()}`),s=kL.openSync(A,"r"),o=(0,LL.getUploadOptions)(r),c=xE.assertDefined("uploadConcurrency",o.uploadConcurrency),l=xE.assertDefined("uploadChunkSize",o.uploadChunkSize),d=[...new Array(c).keys()];cs.debug("Awaiting all uploads");let u=0;try{yield Promise.all(d.map(()=>yn(this,void 0,void 0,function*(){for(;u<i;){let p=Math.min(i-u,l),g=u,h=u+p-1;u+=l,yield gXe(t,n,()=>kL.createReadStream(A,{fd:s,start:g,end:h,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),g,h)}})))}finally{kL.closeSync(s)}})}a(hXe,"uploadFile");function EXe(t,e,A){return yn(this,void 0,void 0,function*(){let r={size:A};return yield(0,hd.retryTypedResponse)("commitCache",()=>yn(this,void 0,void 0,function*(){return t.postJson($Q(`caches/${e.toString()}`),r)}))})}a(EXe,"commitCache");function mXe(t,e,A,r){return yn(this,void 0,void 0,function*(){if((0,LL.getUploadOptions)(r).useAzureSdk){if(!A)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,nXe.uploadCacheArchiveSDK)(A,e,r)}else{let n=UL();cs.debug("Upload cache"),yield hXe(n,t,e,r),cs.debug("Commiting cache");let s=xE.getArchiveFileSizeInBytes(e);cs.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let o=yield EXe(n,t,s);if(!(0,hd.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);cs.info("Cache saved successfully")}})}a(mXe,"saveCache");Or.saveCache=mXe});var uN=E(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.isJsonObject=vE.typeofJsonValue=void 0;function CXe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}a(CXe,"typeofJsonValue");vE.typeofJsonValue=CXe;function fXe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}a(fXe,"isJsonObject");vE.isJsonObject=fXe});var gN=E(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.base64encode=kE.base64decode=void 0;var Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pN=[];for(let t=0;t<Gc.length;t++)pN[Gc[t].charCodeAt(0)]=t;pN[45]=Gc.indexOf("+");pN[95]=Gc.indexOf("/");function QXe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let A=new Uint8Array(e),r=0,i=0,n,s=0;for(let o=0;o<t.length;o++){if(n=pN[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":i=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:s=n,i=1;break;case 1:A[r++]=s<<2|(n&48)>>4,s=n,i=2;break;case 2:A[r++]=(s&15)<<4|(n&60)>>2,s=n,i=3;break;case 3:A[r++]=(s&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return A.subarray(0,r)}a(QXe,"base64decode");kE.base64decode=QXe;function BXe(t){let e="",A=0,r,i=0;for(let n=0;n<t.length;n++)switch(r=t[n],A){case 0:e+=Gc[r>>2],i=(r&3)<<4,A=1;break;case 1:e+=Gc[i|r>>4],i=(r&15)<<2,A=2;break;case 2:e+=Gc[i|r>>6],e+=Gc[r&63],A=0;break}return A&&(e+=Gc[i],e+="=",A==1&&(e+="=")),e}a(BXe,"base64encode");kE.base64encode=BXe});var Cde=E(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.utf8read=void 0;var TL=a(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function IXe(t){if(t.length<1)return"";let e=0,A=[],r=[],i=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?r[i++]=n:n>191&&n<224?r[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,r[i++]=55296+(n>>10),r[i++]=56320+(n&1023)):r[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(A.push(TL(r)),i=0);return A.length?(i&&A.push(TL(r.slice(0,i))),A.join("")):TL(r.slice(0,i))}a(IXe,"utf8read");hN.utf8read=IXe});var eB=E(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.WireType=Fo.mergeBinaryOptions=Fo.UnknownFieldHandler=void 0;var yXe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(A,r,i,n,s)=>{(e(r)?r[t.symbol]:r[t.symbol]=[]).push({no:i,wireType:n,data:s})},t.onWrite=(A,r,i)=>{for(let{no:n,wireType:s,data:o}of t.list(r))i.tag(n,s).raw(o)},t.list=(A,r)=>{if(e(A)){let i=A[t.symbol];return r?i.filter(n=>n.no==r):i}return[]},t.last=(A,r)=>t.list(A,r).slice(-1)[0];let e=a(A=>A&&Array.isArray(A[t.symbol]),"is")})(yXe=Fo.UnknownFieldHandler||(Fo.UnknownFieldHandler={}));function wXe(t,e){return Object.assign(Object.assign({},t),e)}a(wXe,"mergeBinaryOptions");Fo.mergeBinaryOptions=wXe;var bXe;(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"})(bXe=Fo.WireType||(Fo.WireType={}))});var mN=E(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.varint32read=wn.varint32write=wn.int64toString=wn.int64fromString=wn.varint64write=wn.varint64read=void 0;function NXe(){let t=0,e=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}let A=this.buf[this.pos++];if(t|=(A&15)<<28,e=(A&112)>>4,!(A&128))return this.assertBounds(),[t,e];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}a(NXe,"varint64read");wn.varint64read=NXe;function RXe(t,e,A){for(let n=0;n<28;n=n+7){let s=t>>>n,o=!(!(s>>>7)&&e==0),c=(o?s|128:s)&255;if(A.push(c),!o)return}let r=t>>>28&15|(e&7)<<4,i=!!(e>>3);if(A.push((i?r|128:r)&255),!!i){for(let n=3;n<31;n=n+7){let s=e>>>n,o=!!(s>>>7),c=(o?s|128:s)&255;if(A.push(c),!o)return}A.push(e>>>31&1)}}a(RXe,"varint64write");wn.varint64write=RXe;var EN=65536*65536;function DXe(t){let e=t[0]=="-";e&&(t=t.slice(1));let A=1e6,r=0,i=0;function n(s,o){let c=Number(t.slice(s,o));i*=A,r=r*A+c,r>=EN&&(i=i+(r/EN|0),r=r%EN)}return a(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,r,i]}a(DXe,"int64fromString");wn.int64fromString=DXe;function SXe(t,e){if(e>>>0<=2097151)return""+(EN*e+(t>>>0));let A=t&16777215,r=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=A+r*6777216+i*6710656,s=r+i*8147497,o=i*2,c=1e7;n>=c&&(s+=Math.floor(n/c),n%=c),s>=c&&(o+=Math.floor(s/c),s%=c);function l(d,u){let p=d?String(d):"";return u?"0000000".slice(p.length)+p:p}return a(l,"decimalFrom1e7"),l(o,0)+l(s,o)+l(n,1)}a(SXe,"int64toString");wn.int64toString=SXe;function xXe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let A=0;A<9;A++)e.push(t&127|128),t=t>>7;e.push(1)}}a(xXe,"varint32write");wn.varint32write=xXe;function vXe(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let A=5;t&128&&A<10;A++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}a(vXe,"varint32read");wn.varint32read=vXe});var md=E(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.PbLong=Ed.PbULong=Ed.detectBi=void 0;var tB=mN(),Jt;function fde(){let t=new DataView(new ArrayBuffer(8));Jt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMA Line truncated
`)}};GN.RpcError=cU});var dU=E(VN=>{"use strict";Object.defineProperty(VN,"__esModule",{value:!0});VN.mergeRpcOptions=void 0;var Zde=tr();function $Ze(t,e){if(!e)return t;let A={};JN(t,A),JN(e,A);for(let r of Object.keys(e)){let i=e[r];switch(r){case"jsonOptions":A.jsonOptions=Zde.mergeJsonOptions(t.jsonOptions,A.jsonOptions);break;case"binaryOptions":A.binaryOptions=Zde.mergeBinaryOptions(t.binaryOptions,A.binaryOptions);break;case"meta":A.meta={},JN(t.meta,A.meta),JN(e.meta,A.meta);break;case"interceptors":A.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return A}a($Ze,"mergeRpcOptions");VN.mergeRpcOptions=$Ze;function JN(t,e){if(!t)return;let A=e;for(let[r,i]of Object.entries(t))i instanceof Date?A[r]=new Date(i.getTime()):Array.isArray(i)?A[r]=i.concat():A[r]=i}a(JN,"copy")});var pU=E(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.Deferred=np.DeferredState=void 0;var To;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(To=np.DeferredState||(np.DeferredState={}));var uU=class{static{a(this,"Deferred")}constructor(e=!0){this._state=To.PENDING,this._promise=new Promise((A,r)=>{this._resolve=A,this._reject=r}),e&&this._promise.catch(A=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==To.PENDING)throw new Error(`cannot resolve ${To[this.state].toLowerCase()}`);this._resolve(e),this._state=To.RESOLVED}reject(e){if(this.state!==To.PENDING)throw new Error(`cannot reject ${To[this.state].toLowerCase()}`);this._reject(e),this._state=To.REJECTED}resolvePending(e){this._state===To.PENDING&&this.resolve(e)}rejectPending(e){this._state===To.PENDING&&this.reject(e)}};np.Deferred=uU});var hU=E(WN=>{"use strict";Object.defineProperty(WN,"__esModule",{value:!0});WN.RpcOutputStreamController=void 0;var Kde=pU(),sp=tr(),gU=class{static{a(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,A){return A.push(e),()=>{let r=A.indexOf(e);r>=0&&A.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,A,r){sp.assert((e?1:0)+(A?1:0)+(r?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),A&&this.notifyError(A),r&&this.notifyComplete()}notifyMessage(e){sp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(A=>A(e)),this._lis.nxt.forEach(A=>A(e,void 0,!1))}notifyError(e){sp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(A=>A(e)),this._lis.nxt.forEach(A=>A(void 0,e,!1)),this.clearLis()}notifyComplete(){sp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;sp.assert(e,"bad state"),sp.assert(!e.p,"iterator contract broken");let A=e.q.shift();return A?"value"in A?Promise.resolve(A):Promise.reject(A):(e.p=new Kde.Deferred,e.p.promise)}}}pushIt(e){let A=this._itState;if(A.p){let r=A.p;sp.assert(r.state==Kde.DeferredState.PENDING,"iterator contract broken"),"value"in e?r.resolve(e):r.reject(e),delete A.p}else A.q.push(e)}};WN.RpcOutputStreamController=gU});var mU=E(OE=>{"use strict";var eKe=OE&&OE.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(OE,"__esModule",{value:!0});OE.UnaryCall=void 0;var EU=class{static{a(this,"UnaryCall")}constructor(e,A,r,i,n,s,o){this.method=e,this.requestHeaders=A,this.request=r,this.headers=i,this.response=n,this.status=s,this.trailers=o}then(e,A){return this.promiseFinished().then(r=>e?Promise.resolve(e(r)):r,r=>A?Promise.resolve(A(r)):Promise.reject(r))}promiseFinished(){return eKe(this,void 0,void 0,function*(){let[e,A,r,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:A,status:r,trailers:i}})}};OE.UnaryCall=EU});var fU=E(PE=>{"use strict";var tKe=PE&&PE.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l Line truncated
`));let r=yield qU(A,"create");yield HU(r,t)})}a(jKe,"createTar");yi.createTar=jKe});var Que=E(cr=>{"use strict";var XKe=cr&&cr.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),ZKe=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hB=cr&&cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&XKe(e,t,A);return ZKe(e,t),e},tm=cr&&cr.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(cr,"__esModule",{value:!0});cr.saveCache=cr.restoreCache=cr.isFeatureAvailable=cr.ReserveCacheError=cr.ValidationError=void 0;var Me=hB(hi()),tR=hB(require("path")),QA=hB(xh()),em=hB(mde()),Cue=hB(gue()),AR=cN(),Qd=mue(),KKe=Dh(),ia=class t extends Error{static{a(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};cr.ValidationError=ia;var ap=class t extends Error{static{a(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};cr.ReserveCacheError=ap;function fue(t){if(!t||t.length===0)throw new ia("Path Validation Error: At least one directory or file path is required")}a(fue,"checkPaths");function YU(t){if(t.length>512)throw new ia(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ia(`Key Validation Error: ${t} cannot contain commas.`)}a(YU,"checkKey");function $Ke(){return!!process.env.ACTIONS_CACHE_URL}a($Ke,"isFeatureAvailable");cr.isFeatureAvailable=$Ke;function e$e(t,e,A,r,i=!1){return tm(this,void 0,void 0,function*(){let n=(0,AR.getCacheServiceVersion)();switch(Me.debug(`Cache service version: ${n}`),fue(t),n){case"v2":return yield A$e(t,e,A,r,i);case"v1":default:return yield t$e(t,e,A,r,i)}})}a(e$e,"restoreCache");cr.restoreCache=e$e;function t$e(t,e,A,r,i=!1){return tm(this,void 0,void 0,function*(){A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let c of n)YU(c);let s=yield QA.getCompressionMethod(),o="";try{let c=yield em.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:i});if(!c?.archiveLocation)return;if(r?.lookupOnly)return Me.info("Lookup only - skipping download"),c.cacheKey;o=tR.join(yield QA.createTempDirectory(),QA.getCacheFileName(s)),Me.debug(`Archive Path: ${o}`),yield em.downloadCache(c.archiveLocation,o,r),Me.isDebug()&&(yield(0,Qd.listTar)(o,s));let l=QA.getArchiveFileSizeInBytes(o);return Me.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,Qd.extractTar)(o,s),Me.info("Cache restored successfully"),c.cacheKey}catch(c){if(c.name===ia.name)throw c;Me.warning(`Failed to restore: ${c.message}`)}finally{try{yield QA.unlinkFile(o)}catch(c){Me.debug(`Failed to delete archive: ${c}`)}}})}a(t$e,"restoreCacheV1");function A$e(t,e,A,r,i=!1){return tm(this,void 0,void 0,function*(){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)YU(o);let s="";try{let o=Cue.internalCacheTwirpClient(),c=yield QA.getCompressionMethod(),l={key:e,restoreKeys:A,version:QA.getCacheVersion(t,c,i)},d=yield o.GetCacheEntryDownloadURL(l);if(!d.ok){Me.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(Me.info(`Cache hit for: ${l.key}`),r?.lookupOnly)return Me.info("Lookup only - skipping download"),d.matchedKey;s=tR.join(yield QA.createTempDirectory(),QA.getCacheFileName(c)),Me.debug(`Archive path: ${s}`),Me.debug(`Starting download of archive to: ${s}`),yield em.downloadCache(d.signedDownloadUrl,s,r);let u=QA.getArchiveFileSizeInBytes(s);return Me.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),Me.isDebug()&&(yield(0,Qd.listTar)(s,c)),yield(0,Qd.extractTar)(s,c),Me.info("Cache restored successfully"),d.matchedKey}catch(o){if(o.name===ia.name)throw o;Me.warning(`Failed to restore: ${o.message}`)}finally{try{s&&(yield QA.unlinkFile(s))}catch(o){Me.debug(`Failed to delete archive: ${o}`)}}})}a(A$e,"restoreCacheV2");function r$e(t,e,A,r=!1){return tm(this,void 0,void 0,function*(){let i=(0,AR.getCacheServiceVersion)( Line truncated
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"}};Bn.UsageError=nN;nN.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var ide=E(In=>{"use strict";var Cje=In&&In.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),fje=In&&In.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qje=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&Cje(e,t,A);return fje(e,t),e},Bje=In&&In.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(In,"__esModule",{value:!0});In.uploadCacheArchiveSDK=In.UploadProgress=void 0;var RL=Qje(hi()),Ije=BL(),yje=NL(),sN=class{static{a(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,A=(100*(e/this.contentLength)).toFixed(1),r=Date.now()-this.startTime,i=(e/(1024*1024)/(r/1e3)).toFixed(1);RL.info(`Sent ${e} of ${this.contentLength} (${A}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let A=a(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(A,e))},"displayCallback");this.timeoutHandle=setTimeout(A,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};In.UploadProgress=sN;function wje(t,e,A){var r;return Bje(this,void 0,void 0,function*(){let i=new Ije.BlobClient(t),n=i.getBlockBlobClient(),s=new sN((r=A?.archiveSizeBytes)!==null&&r!==void 0?r:0),o={blockSize:A?.uploadChunkSize,concurrency:A?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),RL.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,o);if(c._response.status>=400)throw new yje.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw RL.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{s.stopDisplayTimer()}})}a(wje,"uploadCacheArchiveSDK");In.uploadCacheArchiveSDK=wje});var SL=E(qA=>{"use strict";var bje=qA&&qA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Nje=qA&&qA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rje=qA&&qA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&bje(e,t,A);return Nje(e,t),e},oN=qA&&qA.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(qA,"__esModule",{value:!0});qA.retryHttpClientResponse=qA.retryTypedResponse=qA.retry=qA.isRetryableStatusCode=qA.isServerErrorStatusCode=qA.isSuccessStatusCode=void 0;var nde=Rje(hi()),aN=Ng(),DE=Dh();function Dje(t){return t?t>=200&&t<300:!1}a(Dje,"isSuccessStatusCode");qA.isSuccessStatusCode=Dje;function sde(t){return t?t>=500:!0}a(sde,"isServerErrorStatusCode");qA.isServerErrorStatusCode=sde;function ade(t){return t?[aN.HttpCodes.BadGateway,aN.HttpCodes.ServiceUnavailable,aN.HttpCodes.GatewayTimeout].includes(t):!1}a(ade,"isRetryableStatusCode");qA.isRetryableStatusCode=ade;function Sje(t){return oN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}a(Sje,"sleep");function DL(t,e,A,r=DE.DefaultRetryAttempts Line truncated
Other caches with similar key:`);for(let o of n?.artifactCaches||[])cs.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}a(dXe,"printCachesListForDiagnostics");function uXe(t,e,A){return yn(this,void 0,void 0,function*(){let r=new iXe.URL(t),i=(0,LL.getDownloadOptions)(A);r.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield(0,dN.downloadCacheStorageSDK)(t,e,i):i.concurrentBlobDownloads?yield(0,dN.downloadCacheHttpClientConcurrent)(t,e,i):yield(0,dN.downloadCacheHttpClient)(t,e):yield(0,dN.downloadCacheHttpClient)(t,e)})}a(uXe,"downloadCache");Or.downloadCache=uXe;function pXe(t,e,A){return yn(this,void 0,void 0,function*(){let r=UL(),i=xE.getCacheVersion(e,A?.compressionMethod,A?.enableCrossOsArchive),n={key:t,version:i,cacheSize:A?.cacheSize};return yield(0,hd.retryTypedResponse)("reserveCache",()=>yn(this,void 0,void 0,function*(){return r.postJson($Q("caches"),n)}))})}a(pXe,"reserveCache");Or.reserveCache=pXe;function mde(t,e){return`bytes ${t}-${e}/*`}a(mde,"getContentRange");function gXe(t,e,A,r,i){return yn(this,void 0,void 0,function*(){cs.debug(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${mde(r,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":mde(r,i)},s=yield(0,hd.retryHttpClientResponse)(`uploadChunk (start: ${r}, end: ${i})`,()=>yn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,A(),n)}));if(!(0,hd.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}a(gXe,"uploadChunk");function hXe(t,e,A,r){return yn(this,void 0,void 0,function*(){let i=xE.getArchiveFileSizeInBytes(A),n=$Q(`caches/${e.toString()}`),s=kL.openSync(A,"r"),o=(0,LL.getUploadOptions)(r),c=xE.assertDefined("uploadConcurrency",o.uploadConcurrency),l=xE.assertDefined("uploadChunkSize",o.uploadChunkSize),d=[...new Array(c).keys()];cs.debug("Awaiting all uploads");let u=0;try{yield Promise.all(d.map(()=>yn(this,void 0,void 0,function*(){for(;u<i;){let p=Math.min(i-u,l),g=u,h=u+p-1;u+=l,yield gXe(t,n,()=>kL.createReadStream(A,{fd:s,start:g,end:h,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),g,h)}})))}finally{kL.closeSync(s)}})}a(hXe,"uploadFile");function EXe(t,e,A){return yn(this,void 0,void 0,function*(){let r={size:A};return yield(0,hd.retryTypedResponse)("commitCache",()=>yn(this,void 0,void 0,function*(){return t.postJson($Q(`caches/${e.toString()}`),r)}))})}a(EXe,"commitCache");function mXe(t,e,A,r){return yn(this,void 0,void 0,function*(){if((0,LL.getUploadOptions)(r).useAzureSdk){if(!A)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,nXe.uploadCacheArchiveSDK)(A,e,r)}else{let n=UL();cs.debug("Upload cache"),yield hXe(n,t,e,r),cs.debug("Commiting cache");let s=xE.getArchiveFileSizeInBytes(e);cs.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let o=yield EXe(n,t,s);if(!(0,hd.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);cs.info("Cache saved successfully")}})}a(mXe,"saveCache");Or.saveCache=mXe});var uN=E(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.isJsonObject=vE.typeofJsonValue=void 0;function CXe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}a(CXe,"typeofJsonValue");vE.typeofJsonValue=CXe;function fXe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}a(fXe,"isJsonObject");vE.isJsonObject=fXe});var gN=E(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.base64encode=kE.base64decode=void 0;var Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pN=[];for(let t=0;t<Gc.length;t++)pN[Gc[t].charCodeAt(0)]=t;pN[45]=Gc.indexOf("+");pN[95]=Gc.indexOf("/");function QXe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let A=new Uint8Array(e),r=0,i=0,n,s=0;for(let o=0;o<t.length;o++){if(n=pN[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":i=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:s=n,i=1;break;case 1:A[r++]=s<<2|(n&48)>>4,s=n,i=2;break;case 2:A[r++]=(s&15)<<4|(n&60)>>2,s=n,i=3;break;case 3:A[r++]=(s&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return A.subarray(0,r)}a(QXe,"base64decode");kE.base64decode=QXe;function BXe(t){let e="",A=0,r,i=0;for(let n=0;n<t.length;n++)switch(r=t[n],A){case 0:e+=Gc[r>>2],i=(r&3)<<4,A=1;break;case 1:e+=Gc[i|r>>4],i=(r&15)<<2,A=2;break;case 2:e+=Gc[i|r>>6],e+=Gc[r&63],A=0;break}return A&&(e+=Gc[i],e+="=",A==1&&(e+="=")),e}a(BXe,"base64encode");kE.base64encode=BXe});var fde=E(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.utf8read=void 0;var TL=a(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function IXe(t){if(t.length<1)return"";let e=0,A=[],r=[],i=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?r[i++]=n:n>191&&n<224?r[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,r[i++]=55296+(n>>10),r[i++]=56320+(n&1023)):r[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(A.push(TL(r)),i=0);return A.length?(i&&A.push(TL(r.slice(0,i))),A.join("")):TL(r.slice(0,i))}a(IXe,"utf8read");hN.utf8read=IXe});var eB=E(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.WireType=Fo.mergeBinaryOptions=Fo.UnknownFieldHandler=void 0;var yXe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(A,r,i,n,s)=>{(e(r)?r[t.symbol]:r[t.symbol]=[]).push({no:i,wireType:n,data:s})},t.onWrite=(A,r,i)=>{for(let{no:n,wireType:s,data:o}of t.list(r))i.tag(n,s).raw(o)},t.list=(A,r)=>{if(e(A)){let i=A[t.symbol];return r?i.filter(n=>n.no==r):i}return[]},t.last=(A,r)=>t.list(A,r).slice(-1)[0];let e=a(A=>A&&Array.isArray(A[t.symbol]),"is")})(yXe=Fo.UnknownFieldHandler||(Fo.UnknownFieldHandler={}));function wXe(t,e){return Object.assign(Object.assign({},t),e)}a(wXe,"mergeBinaryOptions");Fo.mergeBinaryOptions=wXe;var bXe;(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"})(bXe=Fo.WireType||(Fo.WireType={}))});var mN=E(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.varint32read=wn.varint32write=wn.int64toString=wn.int64fromString=wn.varint64write=wn.varint64read=void 0;function NXe(){let t=0,e=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}let A=this.buf[this.pos++];if(t|=(A&15)<<28,e=(A&112)>>4,!(A&128))return this.assertBounds(),[t,e];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}a(NXe,"varint64read");wn.varint64read=NXe;function RXe(t,e,A){for(let n=0;n<28;n=n+7){let s=t>>>n,o=!(!(s>>>7)&&e==0),c=(o?s|128:s)&255;if(A.push(c),!o)return}let r=t>>>28&15|(e&7)<<4,i=!!(e>>3);if(A.push((i?r|128:r)&255),!!i){for(let n=3;n<31;n=n+7){let s=e>>>n,o=!!(s>>>7),c=(o?s|128:s)&255;if(A.push(c),!o)return}A.push(e>>>31&1)}}a(RXe,"varint64write");wn.varint64write=RXe;var EN=65536*65536;function DXe(t){let e=t[0]=="-";e&&(t=t.slice(1));let A=1e6,r=0,i=0;function n(s,o){let c=Number(t.slice(s,o));i*=A,r=r*A+c,r>=EN&&(i=i+(r/EN|0),r=r%EN)}return a(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,r,i]}a(DXe,"int64fromString");wn.int64fromString=DXe;function SXe(t,e){if(e>>>0<=2097151)return""+(EN*e+(t>>>0));let A=t&16777215,r=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=A+r*6777216+i*6710656,s=r+i*8147497,o=i*2,c=1e7;n>=c&&(s+=Math.floor(n/c),n%=c),s>=c&&(o+=Math.floor(s/c),s%=c);function l(d,u){let p=d?String(d):"";return u?"0000000".slice(p.length)+p:p}return a(l,"decimalFrom1e7"),l(o,0)+l(s,o)+l(n,1)}a(SXe,"int64toString");wn.int64toString=SXe;function xXe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let A=0;A<9;A++)e.push(t&127|128),t=t>>7;e.push(1)}}a(xXe,"varint32write");wn.varint32write=xXe;function vXe(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let A=5;t&128&&A<10;A++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}a(vXe,"varint32read");wn.varint32read=vXe});var md=E(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.PbLong=Ed.PbULong=Ed.detectBi=void 0;var tB=mN(),Jt;function Qde(){let t=new DataView(new ArrayBuffer(8));Jt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMA Line truncated
`)}};GN.RpcError=cU});var dU=E(VN=>{"use strict";Object.defineProperty(VN,"__esModule",{value:!0});VN.mergeRpcOptions=void 0;var Kde=tr();function $Ze(t,e){if(!e)return t;let A={};JN(t,A),JN(e,A);for(let r of Object.keys(e)){let i=e[r];switch(r){case"jsonOptions":A.jsonOptions=Kde.mergeJsonOptions(t.jsonOptions,A.jsonOptions);break;case"binaryOptions":A.binaryOptions=Kde.mergeBinaryOptions(t.binaryOptions,A.binaryOptions);break;case"meta":A.meta={},JN(t.meta,A.meta),JN(e.meta,A.meta);break;case"interceptors":A.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return A}a($Ze,"mergeRpcOptions");VN.mergeRpcOptions=$Ze;function JN(t,e){if(!t)return;let A=e;for(let[r,i]of Object.entries(t))i instanceof Date?A[r]=new Date(i.getTime()):Array.isArray(i)?A[r]=i.concat():A[r]=i}a(JN,"copy")});var pU=E(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.Deferred=np.DeferredState=void 0;var To;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(To=np.DeferredState||(np.DeferredState={}));var uU=class{static{a(this,"Deferred")}constructor(e=!0){this._state=To.PENDING,this._promise=new Promise((A,r)=>{this._resolve=A,this._reject=r}),e&&this._promise.catch(A=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==To.PENDING)throw new Error(`cannot resolve ${To[this.state].toLowerCase()}`);this._resolve(e),this._state=To.RESOLVED}reject(e){if(this.state!==To.PENDING)throw new Error(`cannot reject ${To[this.state].toLowerCase()}`);this._reject(e),this._state=To.REJECTED}resolvePending(e){this._state===To.PENDING&&this.resolve(e)}rejectPending(e){this._state===To.PENDING&&this.reject(e)}};np.Deferred=uU});var hU=E(WN=>{"use strict";Object.defineProperty(WN,"__esModule",{value:!0});WN.RpcOutputStreamController=void 0;var $de=pU(),sp=tr(),gU=class{static{a(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,A){return A.push(e),()=>{let r=A.indexOf(e);r>=0&&A.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,A,r){sp.assert((e?1:0)+(A?1:0)+(r?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),A&&this.notifyError(A),r&&this.notifyComplete()}notifyMessage(e){sp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(A=>A(e)),this._lis.nxt.forEach(A=>A(e,void 0,!1))}notifyError(e){sp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(A=>A(e)),this._lis.nxt.forEach(A=>A(void 0,e,!1)),this.clearLis()}notifyComplete(){sp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;sp.assert(e,"bad state"),sp.assert(!e.p,"iterator contract broken");let A=e.q.shift();return A?"value"in A?Promise.resolve(A):Promise.reject(A):(e.p=new $de.Deferred,e.p.promise)}}}pushIt(e){let A=this._itState;if(A.p){let r=A.p;sp.assert(r.state==$de.DeferredState.PENDING,"iterator contract broken"),"value"in e?r.resolve(e):r.reject(e),delete A.p}else A.q.push(e)}};WN.RpcOutputStreamController=gU});var mU=E(OE=>{"use strict";var eKe=OE&&OE.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(OE,"__esModule",{value:!0});OE.UnaryCall=void 0;var EU=class{static{a(this,"UnaryCall")}constructor(e,A,r,i,n,s,o){this.method=e,this.requestHeaders=A,this.request=r,this.headers=i,this.response=n,this.status=s,this.trailers=o}then(e,A){return this.promiseFinished().then(r=>e?Promise.resolve(e(r)):r,r=>A?Promise.resolve(A(r)):Promise.reject(r))}promiseFinished(){return eKe(this,void 0,void 0,function*(){let[e,A,r,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:A,status:r,trailers:i}})}};OE.UnaryCall=EU});var fU=E(PE=>{"use strict";var tKe=PE&&PE.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l Line truncated
`));let r=yield qU(A,"create");yield HU(r,t)})}a(jKe,"createTar");yi.createTar=jKe});var Bue=E(cr=>{"use strict";var XKe=cr&&cr.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),ZKe=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hB=cr&&cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&XKe(e,t,A);return ZKe(e,t),e},tm=cr&&cr.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(cr,"__esModule",{value:!0});cr.saveCache=cr.restoreCache=cr.isFeatureAvailable=cr.ReserveCacheError=cr.ValidationError=void 0;var Me=hB(hi()),tR=hB(require("path")),QA=hB(xh()),em=hB(Cde()),fue=hB(hue()),AR=cN(),Qd=Cue(),KKe=Dh(),ia=class t extends Error{static{a(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};cr.ValidationError=ia;var ap=class t extends Error{static{a(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};cr.ReserveCacheError=ap;function Que(t){if(!t||t.length===0)throw new ia("Path Validation Error: At least one directory or file path is required")}a(Que,"checkPaths");function YU(t){if(t.length>512)throw new ia(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ia(`Key Validation Error: ${t} cannot contain commas.`)}a(YU,"checkKey");function $Ke(){return!!process.env.ACTIONS_CACHE_URL}a($Ke,"isFeatureAvailable");cr.isFeatureAvailable=$Ke;function e$e(t,e,A,r,i=!1){return tm(this,void 0,void 0,function*(){let n=(0,AR.getCacheServiceVersion)();switch(Me.debug(`Cache service version: ${n}`),Que(t),n){case"v2":return yield A$e(t,e,A,r,i);case"v1":default:return yield t$e(t,e,A,r,i)}})}a(e$e,"restoreCache");cr.restoreCache=e$e;function t$e(t,e,A,r,i=!1){return tm(this,void 0,void 0,function*(){A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let c of n)YU(c);let s=yield QA.getCompressionMethod(),o="";try{let c=yield em.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:i});if(!c?.archiveLocation)return;if(r?.lookupOnly)return Me.info("Lookup only - skipping download"),c.cacheKey;o=tR.join(yield QA.createTempDirectory(),QA.getCacheFileName(s)),Me.debug(`Archive Path: ${o}`),yield em.downloadCache(c.archiveLocation,o,r),Me.isDebug()&&(yield(0,Qd.listTar)(o,s));let l=QA.getArchiveFileSizeInBytes(o);return Me.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,Qd.extractTar)(o,s),Me.info("Cache restored successfully"),c.cacheKey}catch(c){if(c.name===ia.name)throw c;Me.warning(`Failed to restore: ${c.message}`)}finally{try{yield QA.unlinkFile(o)}catch(c){Me.debug(`Failed to delete archive: ${c}`)}}})}a(t$e,"restoreCacheV1");function A$e(t,e,A,r,i=!1){return tm(this,void 0,void 0,function*(){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)YU(o);let s="";try{let o=fue.internalCacheTwirpClient(),c=yield QA.getCompressionMethod(),l={key:e,restoreKeys:A,version:QA.getCacheVersion(t,c,i)},d=yield o.GetCacheEntryDownloadURL(l);if(!d.ok){Me.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(Me.info(`Cache hit for: ${l.key}`),r?.lookupOnly)return Me.info("Lookup only - skipping download"),d.matchedKey;s=tR.join(yield QA.createTempDirectory(),QA.getCacheFileName(c)),Me.debug(`Archive path: ${s}`),Me.debug(`Starting download of archive to: ${s}`),yield em.downloadCache(d.signedDownloadUrl,s,r);let u=QA.getArchiveFileSizeInBytes(s);return Me.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),Me.isDebug()&&(yield(0,Qd.listTar)(s,c)),yield(0,Qd.extractTar)(s,c),Me.info("Cache restored successfully"),d.matchedKey}catch(o){if(o.name===ia.name)throw o;Me.warning(`Failed to restore: ${o.message}`)}finally{try{s&&(yield QA.unlinkFile(s))}catch(o){Me.debug(`Failed to delete archive: ${o}`)}}})}a(A$e,"restoreCacheV2");function r$e(t,e,A,r=!1){return tm(this,void 0,void 0,function*(){let i=(0,AR.getCacheServiceVersion)( Line truncated
\r
`),Cet=/\r\n/g,fet=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function nm(t){ype.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=Ipe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=Ipe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new Eet(met),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(nm,"HeaderParser");het(nm,ype);nm.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};nm.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};nm.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};nm.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(Cet),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=fet.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};wpe.exports=nm});var IT=E((vRt,Rpe)=>{"use strict";var BT=require("node:stream").Writable,Qet=require("node:util").inherits,Bet=fT(),Npe=Qpe(),Iet=bpe(),yet=45,wet=Buffer.from("-"),bet=Buffer.from(`\r
`),Net=a(function(){},"EMPTY_FN");function qa(t){if(!(this instanceof qa))return new qa(t);if(BT.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Iet(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(qa,"Dicer");Qet(qa,BT);qa.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else BT.prototype.emit.apply(this,arguments)};qa.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new Npe(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(bet),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};qa.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};qa.prototype.setBoundary=function(t){let e=this;this._bparser=new Bet(`\r
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};qa.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",Net),this._part.resume())};qa.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===yet)++s,++this._dashes;else{this._dashes&&(i=wet),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new Npe(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};qa.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Rpe.exports=qa});var pR=E((FRt,Spe)=>{"use strict";var Dpe=new TextDecoder("utf-8"),uR=new Map([["utf-8",Dpe],["utf8",Dpe]]);function Ret(t,e,A){if(t)if(uR.has(A))try{return uR.get(A).decode(Buffer.from(t,e))}catch{}else try{return uR.set(A,new TextDecoder(A)),uR.get(A).decode(Buffer.from(t,e))}catch{}return t}a(Ret,"decodeText");Spe.exports=Ret});var yT=E((URt,kpe)=>{"use strict";var gR=pR(),xpe=/%([a-fA-F0-9]{2})/g;function vpe(t,e){return String.fromCharCode(parseInt(e,16))}a(vpe,"encodedReplacer");function Det(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=gR(o.replace(xpe,vpe),"binary",r)),r=""):o.length&&(o=gR(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=gR(o.replace(xpe,vpe),"binary",r):o&&(o=gR(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(Det,"parseParams");kpe.exports=Det});var Lpe=E((MRt,Fpe)=>{"use strict";Fpe.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var _pe=E((ORt,Mpe)=>{"use strict";var{Readable:Tpe}=require("node:stream"),{inherits:xet}=require("node:util"),vet=IT(),Upe=yT(),ket=pR(),Fet=Lpe(),cp=dR(),Let=/^boundary$/i,Uet=/^form-data$/i,Tet=/^charset$/i,Met=/^filename$/i,_et=/^name$/i;hR.detect=/^multipart\/form-data/i;function hR(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&Let.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=cp(s,"fieldSize",1*1024*1024),h=cp(s,"fileSize",1/0),m=cp(s,"files",1/0),f=cp(s,"fields",1/0),B=cp(s,"parts",1/0),b=cp(s,"headerPairs",2e3),I=cp(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new vet(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",sm),t.hitPartsLimit=!0,t.emit("partsLimit"),sm(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=Upe(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(Tet.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=Upe(L["content-dispo Line truncated
`))}a(Xpe,"isValidHeaderValue");function Rtt(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(gtt.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(Rtt,"setRequestReferrerPolicyOnRedirect");function Dtt(){return"allowed"}a(Dtt,"crossOriginResourcePolicyCheck");function Stt(){return"success"}a(Stt,"corsCheck");function xtt(){return"success"}a(xtt,"TAOCheck");function vtt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(vtt,"appendFetchMetadata");function ktt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&vT(t.origin)&&!vT(wB(t))&&(e=null);break;case"same-origin":mR(t,wB(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(ktt,"appendRequestOriginHeader");function Ftt(t){return Ett.now()}a(Ftt,"coarsenedSharedCurrentTime");function Ltt(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}}a(Ltt,"createOpaqueTimingInfo");function Utt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(Utt,"makePolicyContainer");function Ttt(t){return{referrerPolicy:t.referrerPolicy}}a(Ttt,"clonePolicyContainer");function Mtt(t){let e=t.referrerPolicy;lm(e);let A=null;if(t.referrer==="client"){let o=htt();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=ST(A),i=ST(A,!0);r.toString().length>4096&&(r=i);let n=mR(t,r),s=IB(r)&&!IB(t.url);switch(e){case"origin":return i??ST(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=wB(t);return mR(r,o)?r:IB(r)&&!IB(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(Mtt,"determineRequestsReferrer");function ST(t,e){return lm(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(ST,"stripURLForReferrer");function IB(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(IB,"isURLPotentiallyTrustworthy");function _tt(t,e){if(yB===void 0)return!0;let A=Ptt(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=yB.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=yB.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(_tt,"bytesMatch");var Ott=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function Ptt(t){let e=[],A=!0,r=yB.getHashes();for(let i of t.split(" ")){A=!1;let n=Ott.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(Ptt,"parseMetadata");function qtt(t){}a(qtt,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function mR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(mR,"sameOrigin");function Htt(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(Htt,"createDeferredPromise");function Ytt(t){return t.controller.state==="aborted"}a(Ytt,"isAborted");function Gtt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Gtt,"isCancelled");function Jtt(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(Jtt,"normalizeMethod");function Vtt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return lm(typeof e=="string"),e}a(Vtt,"serializeJavascriptValueToJSONString");var Wtt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ztt(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.le Line truncated
`||t===" "||t===" "}a(rge,"isHTTPWhiteSpace");function kT(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&rge(t[r]);r++);if(A)for(;i>0&&rge(t[i]);i--);return t.slice(r,i+1)}a(kT,"removeHTTPWhitespace");function ige(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(ige,"isASCIIWhitespace");function gAt(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&ige(t[r]);r++);if(A)for(;i>0&&ige(t[i]);i--);return t.slice(r,i+1)}a(gAt,"removeASCIIWhitespace");oge.exports={dataURLProcessor:lAt,URLSerializer:nge,collectASequenceOfCodePoints:QR,collectASequenceOfCodePointsFast:dm,stringPercentDecode:sge,parseMIMEType:FT,collectAnHTTPQuotedString:age,serializeAMimeType:pAt}});var BR=E((rDt,pge)=>{"use strict";var{Blob:dge,File:cge}=require("buffer"),{types:LT}=require("util"),{kState:ds}=zc(),{isBlobLike:uge}=aa(),{webidl:xt}=Yi(),{parseMIMEType:hAt,serializeAMimeType:EAt}=Ha(),{kEnumerableProperty:lge}=gt(),bB=class t extends dge{static{a(this,"File")}constructor(e,A,r={}){xt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=xt.converters["sequence<BlobPart>"](e),A=xt.converters.USVString(A),r=xt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=hAt(n),n==="failure"){n="";break e}n=EAt(n).toLowerCase()}s=r.lastModified}super(mAt(e,r),{type:n}),this[ds]={name:i,lastModified:s,type:n}}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get type(){return xt.brandCheck(this,t),this[ds].type}},UT=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[ds]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return xt.brandCheck(this,t),this[ds].blobLike.stream(...e)}arrayBuffer(...e){return xt.brandCheck(this,t),this[ds].blobLike.arrayBuffer(...e)}slice(...e){return xt.brandCheck(this,t),this[ds].blobLike.slice(...e)}text(...e){return xt.brandCheck(this,t),this[ds].blobLike.text(...e)}get size(){return xt.brandCheck(this,t),this[ds].blobLike.size}get type(){return xt.brandCheck(this,t),this[ds].blobLike.type}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(bB.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:lge,lastModified:lge});xt.converters.Blob=xt.interfaceConverter(dge);xt.converters.BlobPart=function(t,e){if(xt.util.Type(t)==="Object"){if(uge(t))return xt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||LT.isAnyArrayBuffer(t))return xt.converters.BufferSource(t,e)}return xt.converters.USVString(t,e)};xt.converters["sequence<BlobPart>"]=xt.sequenceConverter(xt.converters.BlobPart);xt.converters.FilePropertyBag=xt.dictionaryConverter([{key:"lastModified",converter:xt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:xt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=xt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function mAt(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=CAt(i)),A.push(new TextEncoder().encode(i))}else LT.isAnyArrayBuffer(r)||LT.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):uge(r)&&A.push(r);return A}a(mAt,"processBlobParts");function CAt(t){let e=`
`),Cet=/\r\n/g,fet=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function nm(t){wpe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=ype(t,"maxHeaderPairs",2e3),this.maxHeaderSize=ype(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new Eet(met),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(nm,"HeaderParser");het(nm,wpe);nm.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};nm.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};nm.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};nm.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(Cet),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=fet.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};bpe.exports=nm});var IT=E((vRt,Dpe)=>{"use strict";var BT=require("node:stream").Writable,Qet=require("node:util").inherits,Bet=fT(),Rpe=Bpe(),Iet=Npe(),yet=45,wet=Buffer.from("-"),bet=Buffer.from(`\r
`),Net=a(function(){},"EMPTY_FN");function qa(t){if(!(this instanceof qa))return new qa(t);if(BT.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Iet(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(qa,"Dicer");Qet(qa,BT);qa.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else BT.prototype.emit.apply(this,arguments)};qa.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new Rpe(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(bet),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};qa.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};qa.prototype.setBoundary=function(t){let e=this;this._bparser=new Bet(`\r
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};qa.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",Net),this._part.resume())};qa.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===yet)++s,++this._dashes;else{this._dashes&&(i=wet),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new Rpe(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};qa.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Dpe.exports=qa});var pR=E((FRt,xpe)=>{"use strict";var Spe=new TextDecoder("utf-8"),uR=new Map([["utf-8",Spe],["utf8",Spe]]);function Ret(t,e,A){if(t)if(uR.has(A))try{return uR.get(A).decode(Buffer.from(t,e))}catch{}else try{return uR.set(A,new TextDecoder(A)),uR.get(A).decode(Buffer.from(t,e))}catch{}return t}a(Ret,"decodeText");xpe.exports=Ret});var yT=E((URt,Fpe)=>{"use strict";var gR=pR(),vpe=/%([a-fA-F0-9]{2})/g;function kpe(t,e){return String.fromCharCode(parseInt(e,16))}a(kpe,"encodedReplacer");function Det(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=gR(o.replace(vpe,kpe),"binary",r)),r=""):o.length&&(o=gR(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=gR(o.replace(vpe,kpe),"binary",r):o&&(o=gR(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(Det,"parseParams");Fpe.exports=Det});var Upe=E((MRt,Lpe)=>{"use strict";Lpe.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var Ope=E((ORt,_pe)=>{"use strict";var{Readable:Mpe}=require("node:stream"),{inherits:xet}=require("node:util"),vet=IT(),Tpe=yT(),ket=pR(),Fet=Upe(),cp=dR(),Let=/^boundary$/i,Uet=/^form-data$/i,Tet=/^charset$/i,Met=/^filename$/i,_et=/^name$/i;hR.detect=/^multipart\/form-data/i;function hR(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&Let.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=cp(s,"fieldSize",1*1024*1024),h=cp(s,"fileSize",1/0),m=cp(s,"files",1/0),f=cp(s,"fields",1/0),B=cp(s,"parts",1/0),b=cp(s,"headerPairs",2e3),I=cp(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new vet(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",sm),t.hitPartsLimit=!0,t.emit("partsLimit"),sm(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=Tpe(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(Tet.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=Tpe(L["content-dispo Line truncated
`))}a(Zpe,"isValidHeaderValue");function Rtt(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(gtt.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(Rtt,"setRequestReferrerPolicyOnRedirect");function Dtt(){return"allowed"}a(Dtt,"crossOriginResourcePolicyCheck");function Stt(){return"success"}a(Stt,"corsCheck");function xtt(){return"success"}a(xtt,"TAOCheck");function vtt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(vtt,"appendFetchMetadata");function ktt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&vT(t.origin)&&!vT(wB(t))&&(e=null);break;case"same-origin":mR(t,wB(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(ktt,"appendRequestOriginHeader");function Ftt(t){return Ett.now()}a(Ftt,"coarsenedSharedCurrentTime");function Ltt(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}}a(Ltt,"createOpaqueTimingInfo");function Utt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(Utt,"makePolicyContainer");function Ttt(t){return{referrerPolicy:t.referrerPolicy}}a(Ttt,"clonePolicyContainer");function Mtt(t){let e=t.referrerPolicy;lm(e);let A=null;if(t.referrer==="client"){let o=htt();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=ST(A),i=ST(A,!0);r.toString().length>4096&&(r=i);let n=mR(t,r),s=IB(r)&&!IB(t.url);switch(e){case"origin":return i??ST(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=wB(t);return mR(r,o)?r:IB(r)&&!IB(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(Mtt,"determineRequestsReferrer");function ST(t,e){return lm(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(ST,"stripURLForReferrer");function IB(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(IB,"isURLPotentiallyTrustworthy");function _tt(t,e){if(yB===void 0)return!0;let A=Ptt(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=yB.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=yB.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(_tt,"bytesMatch");var Ott=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function Ptt(t){let e=[],A=!0,r=yB.getHashes();for(let i of t.split(" ")){A=!1;let n=Ott.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(Ptt,"parseMetadata");function qtt(t){}a(qtt,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function mR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(mR,"sameOrigin");function Htt(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(Htt,"createDeferredPromise");function Ytt(t){return t.controller.state==="aborted"}a(Ytt,"isAborted");function Gtt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Gtt,"isCancelled");function Jtt(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(Jtt,"normalizeMethod");function Vtt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return lm(typeof e=="string"),e}a(Vtt,"serializeJavascriptValueToJSONString");var Wtt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ztt(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.le Line truncated
`||t===" "||t===" "}a(ige,"isHTTPWhiteSpace");function kT(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&ige(t[r]);r++);if(A)for(;i>0&&ige(t[i]);i--);return t.slice(r,i+1)}a(kT,"removeHTTPWhitespace");function nge(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(nge,"isASCIIWhitespace");function gAt(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&nge(t[r]);r++);if(A)for(;i>0&&nge(t[i]);i--);return t.slice(r,i+1)}a(gAt,"removeASCIIWhitespace");cge.exports={dataURLProcessor:lAt,URLSerializer:sge,collectASequenceOfCodePoints:QR,collectASequenceOfCodePointsFast:dm,stringPercentDecode:age,parseMIMEType:FT,collectAnHTTPQuotedString:oge,serializeAMimeType:pAt}});var BR=E((rDt,gge)=>{"use strict";var{Blob:uge,File:lge}=require("buffer"),{types:LT}=require("util"),{kState:ds}=zc(),{isBlobLike:pge}=aa(),{webidl:xt}=Yi(),{parseMIMEType:hAt,serializeAMimeType:EAt}=Ha(),{kEnumerableProperty:dge}=gt(),bB=class t extends uge{static{a(this,"File")}constructor(e,A,r={}){xt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=xt.converters["sequence<BlobPart>"](e),A=xt.converters.USVString(A),r=xt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=hAt(n),n==="failure"){n="";break e}n=EAt(n).toLowerCase()}s=r.lastModified}super(mAt(e,r),{type:n}),this[ds]={name:i,lastModified:s,type:n}}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get type(){return xt.brandCheck(this,t),this[ds].type}},UT=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[ds]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return xt.brandCheck(this,t),this[ds].blobLike.stream(...e)}arrayBuffer(...e){return xt.brandCheck(this,t),this[ds].blobLike.arrayBuffer(...e)}slice(...e){return xt.brandCheck(this,t),this[ds].blobLike.slice(...e)}text(...e){return xt.brandCheck(this,t),this[ds].blobLike.text(...e)}get size(){return xt.brandCheck(this,t),this[ds].blobLike.size}get type(){return xt.brandCheck(this,t),this[ds].blobLike.type}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(bB.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:dge,lastModified:dge});xt.converters.Blob=xt.interfaceConverter(uge);xt.converters.BlobPart=function(t,e){if(xt.util.Type(t)==="Object"){if(pge(t))return xt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||LT.isAnyArrayBuffer(t))return xt.converters.BufferSource(t,e)}return xt.converters.USVString(t,e)};xt.converters["sequence<BlobPart>"]=xt.sequenceConverter(xt.converters.BlobPart);xt.converters.FilePropertyBag=xt.dictionaryConverter([{key:"lastModified",converter:xt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:xt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=xt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function mAt(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=CAt(i)),A.push(new TextEncoder().encode(i))}else LT.isAnyArrayBuffer(r)||LT.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):pge(r)&&A.push(r);return A}a(mAt,"processBlobParts");function CAt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}a(CAt,"convertLineEndingsNative");function fAt(t){return cge&&t instanceof cge||t instanceof bB||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(fAt,"isFileLike");pge.exports={File:bB,FileLike:UT,isFileLike:fAt}});var yR=E((nDt,Cge)=>{"use strict";var{isBlobLike:IR,toUSVString:QAt,makeIterator:TT}=aa(),{kState:wi}=zc(),{File:mge,FileLike:gge,isFileLike:BAt}=BR(),{webidl:Ut}=Yi(),{Blob:IAt,File:MT}=require("buffer"),hge=MT??mge,um=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ut.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[wi]=[]}append(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!IR(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=IR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?Ut.converters.USVString(r):void 0;let i=Ege(e,A,r);this[wi].push(i)}delete(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ut.converters.USVString(e),this[wi]=this[wi].filter(A=>A.name!==e)}get(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ut.converters.USVString(e);let A=this[wi].findIndex(r=>r.name===e);return A===-1?null:this[wi][A].value}getAll(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ut.converters.USVString(e),this[wi].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ut.converters.USVString(e),this[wi].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!IR(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=IR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?QAt(r):void 0;let i=Ege(e,A,r),n=this[wi].findIndex(s=>s.name===e);n!==-1?this[wi]=[...this[wi].slice(0,n),i,...this[wi].slice(n+1).filter(s=>s.name!==e)]:this[wi].push(i)}entries(){return Ut.brandCheck(this,t),TT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ut.brandCheck(this,t),TT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ut.brandCheck(this,t),TT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};um.prototype[Symbol.iterator]=um.prototype.entries;Object.defineProperties(um.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function Ege(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(BAt(e)||(e=e instanceof IAt?new hge([e],"blob",{type:e.type}):new gge(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=MT&&e instanceof MT||e instanceof mge?new hge([e],A,r):new gge(e,A,r)}return{name:t,value:e}}a(Ege,"makeEntry");Cge.exports={FormData:um}});var NB=E((aDt,Rge)=>{"use strict";var yAt=Jpe(),pm=gt(),{ReadableStreamFrom:wAt,isBlobLike:fge,isReadableStreamLike:bAt,readableStreamClose:NAt,createDeferredPromise:RAt,fullyReadBody:DAt}=aa(),{FormData:Qge}=yR(),{kState:Xc}=zc(),{webidl:_T}=Yi(),{DOMException:yge,structuredClone:SAt}=bd(),{Blob:xAt,File:vAt}=require("buffer"),{kBodyUsed:kAt}=BA(),OT=require("assert"),{isErrored:FAt}=gt(),{isUint8Array:wge,isArrayBuffer:LAt}=require("util/types"),{File:UAt}=BR(),{parseMIMEType:TAt,serializeAMimeType:MAt}=Ha(),jc=globalThis.ReadableStream,Bge=vAt??UAt;function bge(t,e=!1){jc||(jc=require("stream/web").ReadableStream);let A=null;t instanceof jc?A=t:fge(t)?A=t.stream():A=new jc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>NAt(c))},start(){},type:void 0}),OT(bAt(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(LAt(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(pm.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`),t.replace(/\r?\n/g,e)}a(CAt,"convertLineEndingsNative");function fAt(t){return lge&&t instanceof lge||t instanceof bB||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(fAt,"isFileLike");gge.exports={File:bB,FileLike:UT,isFileLike:fAt}});var yR=E((nDt,fge)=>{"use strict";var{isBlobLike:IR,toUSVString:QAt,makeIterator:TT}=aa(),{kState:wi}=zc(),{File:Cge,FileLike:hge,isFileLike:BAt}=BR(),{webidl:Ut}=Yi(),{Blob:IAt,File:MT}=require("buffer"),Ege=MT??Cge,um=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ut.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[wi]=[]}append(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!IR(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=IR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?Ut.converters.USVString(r):void 0;let i=mge(e,A,r);this[wi].push(i)}delete(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ut.converters.USVString(e),this[wi]=this[wi].filter(A=>A.name!==e)}get(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ut.converters.USVString(e);let A=this[wi].findIndex(r=>r.name===e);return A===-1?null:this[wi][A].value}getAll(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ut.converters.USVString(e),this[wi].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ut.converters.USVString(e),this[wi].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!IR(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=IR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?QAt(r):void 0;let i=mge(e,A,r),n=this[wi].findIndex(s=>s.name===e);n!==-1?this[wi]=[...this[wi].slice(0,n),i,...this[wi].slice(n+1).filter(s=>s.name!==e)]:this[wi].push(i)}entries(){return Ut.brandCheck(this,t),TT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ut.brandCheck(this,t),TT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ut.brandCheck(this,t),TT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};um.prototype[Symbol.iterator]=um.prototype.entries;Object.defineProperties(um.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function mge(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(BAt(e)||(e=e instanceof IAt?new Ege([e],"blob",{type:e.type}):new hge(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=MT&&e instanceof MT||e instanceof Cge?new Ege([e],A,r):new hge(e,A,r)}return{name:t,value:e}}a(mge,"makeEntry");fge.exports={FormData:um}});var NB=E((aDt,Dge)=>{"use strict";var yAt=Vpe(),pm=gt(),{ReadableStreamFrom:wAt,isBlobLike:Qge,isReadableStreamLike:bAt,readableStreamClose:NAt,createDeferredPromise:RAt,fullyReadBody:DAt}=aa(),{FormData:Bge}=yR(),{kState:Xc}=zc(),{webidl:_T}=Yi(),{DOMException:wge,structuredClone:SAt}=bd(),{Blob:xAt,File:vAt}=require("buffer"),{kBodyUsed:kAt}=BA(),OT=require("assert"),{isErrored:FAt}=gt(),{isUint8Array:bge,isArrayBuffer:LAt}=require("util/types"),{File:UAt}=BR(),{parseMIMEType:TAt,serializeAMimeType:MAt}=Ha(),jc=globalThis.ReadableStream,Ige=vAt??UAt;function Nge(t,e=!1){jc||(jc=require("stream/web").ReadableStream);let A=null;t instanceof jc?A=t:Qge(t)?A=t.stream():A=new jc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>NAt(c))},start(){},type:void 0}),OT(bAt(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(LAt(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(pm.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let d=a(B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(B=>B.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=new TextEncoder,g=[],h=new Uint8Array([13,10]);n=0;let m=!1;for(let[B,b]of t)if(typeof b=="string"){let I=p.encode(l+`; name="${d(u(B))}"\r
\r
@@ -174,25 +174,25 @@ ${u(b)}\r
`);g.push(I),n+=I.byteLength}else{let I=p.encode(`${l}; name="${d(u(B))}"`+(b.name?`; filename="${d(b.name)}"`:"")+`\r
Content-Type: ${b.type||"application/octet-stream"}\r
\r
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(fge(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(pm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof jc?t:wAt(t)}if((typeof i=="string"||pm.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new jc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):FAt(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(bge,"extractBody");function _At(t,e=!1){return jc||(jc=require("stream/web").ReadableStream),t instanceof jc&&(OT(!pm.isDisturbed(t),"The body has already been consumed."),OT(!t.locked,"The stream is locked.")),bge(t,e)}a(_At,"safelyExtractBody");function OAt(t){let[e,A]=t.stream.tee(),r=SAt(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(OAt,"cloneBody");async function*Ige(t){if(t)if(wge(t))yield t;else{let e=t.stream;if(pm.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[kAt]=!0,yield*e}}a(Ige,"consumeBody");function PT(t){if(t.aborted)throw new yge("The operation was aborted.","AbortError")}a(PT,"throwIfAborted");function PAt(t){return{blob(){return wR(this,A=>{let r=GAt(this);return r==="failure"?r="":r&&(r=MAt(r)),new xAt([A],{type:r})},t)},arrayBuffer(){return wR(this,A=>new Uint8Array(A).buffer,t)},text(){return wR(this,Nge,t)},json(){return wR(this,YAt,t)},async formData(){_T.brandCheck(this,t),PT(this[Xc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new Qge,n;try{n=new yAt({headers:r,preservePath:!0})}catch(o){throw new yge(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new Bge(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new Bge(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of Ige(this[Xc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of Ige(this[Xc].body)){if(!wge(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new Qge;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),PT(this[Xc]),_T.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(PAt,"bodyMixinMethods");function qAt(t){Object.assign(t.prototype,PAt(t))}a(qAt,"mixinBody");async function wR(t,e,A){if(_T.brandCheck(t,A),PT(t[Xc]),HAt(t[Xc].body))throw new TypeError("Body is unusable");let r=RAt(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Xc].body==null?(n(new Uint8Array),r.promise):(await DAt(t[Xc].body,n,i),r.promise)}a(wR,"specConsumeBody");function HAt(t){return t!=null&&(t.stream.locked||pm.isDisturbed(t.stream))}a(HAt,"bodyUnusable");function Nge(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(Nge,"utf8DecodeBytes");function YAt(t){return JSON.parse(Nge(t))}a(YAt,"parseJSONFromBytes");function GAt(t){let{headersList:e}=t[Xc],A=e.get("content-type");return A===null?"failure":TAt(A)}a(GAt,"bodyMimeType");Rge.exports={extractBody:bge,safelyExtractBody:_At,cloneBody:OAt,mixinBody:qAt}});var vge=E((cDt,xge)=>{"use strict";var{InvalidArgumentError:AA,NotSupportedError:JAt}=tA(),Zc=require("assert"),{kHTTP2BuildRequest:VAt,kHTTP2CopyHeaders:WAt,kHTTP1BuildRequest:zAt}=BA(),us=gt(),Dge=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,Sge=/[^\t\x20-\x7e\x80-\xff]/,jAt=/[^\u0021-\u00ff]/,Kc=Symbol("handler"),dr={},qT;try{let t=require("diagnostics_channel");dr.create=t.channel("undici:request:create"),dr.bodySent=t.channel("undici:request:bodySent"),dr.headers=t.channel("undici:request:headers"),dr.trailers=t.channel("undici:request:trailers"),dr.error=t.channel("undici:request:error")}catch{dr.create={hasSubscribers:!1},dr.bodySent={hasSubscribers:!1},dr.headers={hasSubscribers:!1},dr.trailLine truncated
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(Qge(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(pm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof jc?t:wAt(t)}if((typeof i=="string"||pm.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new jc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):FAt(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(Nge,"extractBody");function _At(t,e=!1){return jc||(jc=require("stream/web").ReadableStream),t instanceof jc&&(OT(!pm.isDisturbed(t),"The body has already been consumed."),OT(!t.locked,"The stream is locked.")),Nge(t,e)}a(_At,"safelyExtractBody");function OAt(t){let[e,A]=t.stream.tee(),r=SAt(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(OAt,"cloneBody");async function*yge(t){if(t)if(bge(t))yield t;else{let e=t.stream;if(pm.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[kAt]=!0,yield*e}}a(yge,"consumeBody");function PT(t){if(t.aborted)throw new wge("The operation was aborted.","AbortError")}a(PT,"throwIfAborted");function PAt(t){return{blob(){return wR(this,A=>{let r=GAt(this);return r==="failure"?r="":r&&(r=MAt(r)),new xAt([A],{type:r})},t)},arrayBuffer(){return wR(this,A=>new Uint8Array(A).buffer,t)},text(){return wR(this,Rge,t)},json(){return wR(this,YAt,t)},async formData(){_T.brandCheck(this,t),PT(this[Xc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new Bge,n;try{n=new yAt({headers:r,preservePath:!0})}catch(o){throw new wge(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new Ige(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new Ige(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of yge(this[Xc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of yge(this[Xc].body)){if(!bge(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new Bge;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),PT(this[Xc]),_T.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(PAt,"bodyMixinMethods");function qAt(t){Object.assign(t.prototype,PAt(t))}a(qAt,"mixinBody");async function wR(t,e,A){if(_T.brandCheck(t,A),PT(t[Xc]),HAt(t[Xc].body))throw new TypeError("Body is unusable");let r=RAt(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Xc].body==null?(n(new Uint8Array),r.promise):(await DAt(t[Xc].body,n,i),r.promise)}a(wR,"specConsumeBody");function HAt(t){return t!=null&&(t.stream.locked||pm.isDisturbed(t.stream))}a(HAt,"bodyUnusable");function Rge(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(Rge,"utf8DecodeBytes");function YAt(t){return JSON.parse(Rge(t))}a(YAt,"parseJSONFromBytes");function GAt(t){let{headersList:e}=t[Xc],A=e.get("content-type");return A===null?"failure":TAt(A)}a(GAt,"bodyMimeType");Dge.exports={extractBody:Nge,safelyExtractBody:_At,cloneBody:OAt,mixinBody:qAt}});var kge=E((cDt,vge)=>{"use strict";var{InvalidArgumentError:AA,NotSupportedError:JAt}=tA(),Zc=require("assert"),{kHTTP2BuildRequest:VAt,kHTTP2CopyHeaders:WAt,kHTTP1BuildRequest:zAt}=BA(),us=gt(),Sge=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,xge=/[^\t\x20-\x7e\x80-\xff]/,jAt=/[^\u0021-\u00ff]/,Kc=Symbol("handler"),dr={},qT;try{let t=require("diagnostics_channel");dr.create=t.channel("undici:request:create"),dr.bodySent=t.channel("undici:request:bodySent"),dr.headers=t.channel("undici:request:headers"),dr.trailers=t.channel("undici:request:trailers"),dr.error=t.channel("undici:request:error")}catch{dr.create={hasSubscribers:!1},dr.bodySent={hasSubscribers:!1},dr.headers={hasSubscribers:!1},dr.trailLine truncated
`),this.body=f.stream,this.contentLength=f.length}else us.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
`);us.validateHandler(m,r,l),this.servername=us.getServerName(this.host),this[Kc]=m,dr.create.hasSubscribers&&dr.create.publish({request:this})}onBodySent(e){if(this[Kc].onBodySent)try{this[Kc].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){dr.bodySent.hasSubscribers&&dr.bodySent.publish({request:this})}onConnect(e){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onConnect(e)}onHeaders(e,A,r,i){return Zc(!this.aborted),Zc(!this.completed),dr.headers.hasSubscribers&&dr.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[Kc].onHeaders(e,A,r,i)}onData(e){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onData(e)}onUpgrade(e,A,r){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onUpgrade(e,A,r)}onComplete(e){return Zc(!this.aborted),this.completed=!0,dr.trailers.hasSubscribers&&dr.trailers.publish({request:this,trailers:e}),this[Kc].onComplete(e)}onError(e){if(dr.error.hasSubscribers&&dr.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Kc].onError(e)}addHeader(e,A){return RB(this,e,A),this}static[zAt](e,A,r){return new t(e,A,r)}static[VAt](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new AA("headers array must be even");for(let s=0;s<i.length;s+=2)RB(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];RB(n,c,i[c],!0)}}else if(i!=null)throw new AA("headers must be an object or an array");return n}static[WAt](e){let A=e.split(`\r
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function lp(t,e,A){if(e&&typeof e=="object")throw new AA(`invalid ${t} header`);if(e=e!=null?`${e}`:"",Sge.exec(e)!==null)throw new AA(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}a(lp,"processHeaderValue");function RB(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new AA(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(Sge.exec(A)!==null)throw new AA(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new AA("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=lp(e,A,r):t.headers+=lp(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new AA("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new AA("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new AA("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new AA("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new JAt("expect header not supported");if(Dge.exec(e)===null)throw new AA("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${lp(e,A[i],r)}`:t.headers[e]=lp(e,A[i],r):t.headers+=lp(e,A[i]);else r?t.headers[e]=lp(e,A,r):t.headers+=lp(e,A)}}}a(RB,"processHeader");xge.exports=HT});var bR=E((dDt,kge)=>{"use strict";var XAt=require("events"),YT=class extends XAt{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};kge.exports=YT});var SB=E((pDt,Fge)=>{"use strict";var ZAt=bR(),{ClientDestroyedError:GT,ClientClosedError:KAt,InvalidArgumentError:gm}=tA(),{kDestroy:$At,kClose:ert,kDispatch:JT,kInterceptors:dp}=BA(),hm=Symbol("destroyed"),DB=Symbol("closed"),$c=Symbol("onDestroyed"),Em=Symbol("onClosed"),NR=Symbol("Intercepted Dispatch"),VT=class extends ZAt{static{a(this,"DispatcherBase")}constructor(){super(),this[hm]=!1,this[$c]=null,this[DB]=!1,this[Em]=[]}get destroyed(){return this[hm]}get closed(){return this[DB]}get interceptors(){return this[dp]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[dp][A]!="function")throw new gm("interceptor must be an function")}this[dp]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new gm("invalid callback");if(this[hm]){queueMicrotask(()=>e(new GT,null));return}if(this[DB]){this[Em]?this[Em].push(e):queueMicrotask(()=>e(null,null));return}this[DB]=!0,this[Em].push(e);let A=a(()=>{let r=this[Em];this[Em]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[ert]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new gm("invalid callback");if(this[hm]){this[$c]?this[$c].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new GT),this[hm]=!0,this[$c]=this[$c]||[],this[$c].push(A);let r=a(()=>{let i=this[$c];this[$c]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[$At](e).then(()=>{queueMicrotask(r)})}[NR](e,A){if(!this[dp]||this[dp].length===0)return this[NR]=this[JT],this[JT](e,A);let r=this[JT].bind(this);for(let i=this[dp].length-1;i>=0;i--)r=this[dp][i](r);return this[NR]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new gm("handler must be an object");try{if(!e||typeof e!="object")throw new gm("opts must be an object.");if(this[hm]||this[$c])throw new GT;if(this[DB])throw new KAt;return this[NR](e,A)}catch(r){if(typeof A.onError!="function")throw new gm("invalid onError method");return A.onError(r),!1}}};Fge.exports=VT});var xB=E((mDt,Tge)=>{"use strict";var trt=require("net"),Lge=require("assert"),Uge=gt(),{InvalidArgumentError:Art,ConnectTimeoutError:rrt}=tA(),WT,zT;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?zT=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:zT=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function irt({allowH2:t,maxC Line truncated
`,this[$ge]=c??3e5,this[Kge]=i??3e5,this[TB]=b??!0,this[Lrt]=C,this[MB]=N,this[Rd]=null,this[the]=w>-1?w:-1,this[Yo]="h1",this[gs]=null,this[LR]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[Ahe]=`${this[oi].hostname}${this[oi].port?`:${this[oi].port}`:""}`,this[dA]=[],this[uA]=0,this[ps]=0}get pipelining(){return this[Sd]}set pipelining(e){this[Sd]=e,hs(this,!0)}get[gp](){return this[dA].length-this[ps]}get[RA](){return this[ps]-this[uA]}get[pp](){return this[dA].length-this[uA]}get[Frt](){return!!this[VA]&&!this[fm]&&!this[VA].destroyed}get[A7](){let e=this[VA];return e&&(e[Gi]||e[tl]||e[Bm])||this[pp]>=(this[Sd]||1)||this[gp]>0}[krt](e){she(this),this.once("connect",e)}[Mrt](e,A){let r=e.origin||this[oi].origin,i=this[Yo]==="h2"?t7[Ort](r,e,A):t7[qrt](r,e,A);return this[dA].push(i),this[up]||(me.bodyLength(i.body)==null&&me.isIterable(i.body)?(this[up]=1,process.nextTick(hs,this)):hs(this,!0)),this[up]&&this[Dd]!==2&&this[A7]&&(this[Dd]=2),this[Dd]<2}async[Urt](){return new Promise(e=>{this[pp]?this[Rd]=e:e(null)})}async[Trt](e){return new Promise(A=>{let r=this[dA].splice(this[ps]);for(let n=0;n<r.length;n++){let s=r[n];li(this,s,e)}let i=a(()=>{this[Rd]&&(this[Rd](),this[Rd]=null),A()},"callback");this[gs]!=null&&(me.destroy(this[gs],e),this[gs]=null,this[LR]=null),this[VA]?me.destroy(this[VA].on("close",i),e):queueMicrotask(i),hs(this)})}};function jrt(t){Ae(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[VA][ci]=t,_R(this[Ho],t)}a(jrt,"onHttp2SessionError");function Xrt(t,e,A){let r=new qo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[VA][ci]=r,_R(this[Ho],r))}a(Xrt,"onHttp2FrameError");function Zrt(){me.destroy(this,new Qm("other side closed")),me.destroy(this[VA],new Qm("other side closed"))}a(Zrt,"onHttp2SessionEnd");function Krt(t){let e=this[Ho],A=new qo(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[VA]=null,e[gs]=null,e.destroyed){Ae(this[gp]===0);let r=e[dA].splice(e[uA]);for(let i=0;i<r.length;i++){let n=r[i];li(this,n,A)}}else if(e[RA]>0){let r=e[dA][e[uA]];e[dA][e[uA]++]=null,li(e,r,A)}e[ps]=e[uA],Ae(e[RA]===0),e.emit("disconnect",e[oi],[e],A),hs(e)}a(Krt,"onHTTP2GoAway");var _o=_ge(),$rt=SR(),eit=Buffer.alloc(0);async function tit(){let t=process.env.JEST_WORKER_ID?KT():void 0,e;try{e=await WebAssembly.compile(Buffer.from(Jge(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||KT(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onStatus(new xR(Oo.buffer,n,i))||0},wasm_on_message_begin:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onHeaderField(new xR(Oo.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onHeaderValue(new xR(Oo.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(Ae.strictEqual(yr.ptr,A),yr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onBody(new xR(Oo.buffer,n,i))||0},wasm_on_message_complete:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageComplete()||0)}})}a(tit,"lazyllhttp");var e7=null,n7=tit();n7.catch();var yr=null,Oo=null,vR=0,Po=null,Im=1,FR=2,s7=3,a7=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){Ae(Number.isFinite(e[kR])&&e[kR]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(_o.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[kR],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[the]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?($T.clearTimeout(this.timeout),e?(this.timeout=$T.setTimeout(Ait,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ae(this.ptr!=null),Ae(yr==null),this.llhttp.llhttp_resume(this.ptr),Ae(this.timeoutType===FR),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||eit),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ae(this.ptr!=null),Ae(yr==null),Ae(!this.paused);let{socket:A,llhttp:r}=this;e.length>vR&&(Po&&r.free(Po),vR=Math.ceil(e.length/4096)*4096,Po=r.malloc(vR)),new Uint8Array(r.memory.buffer,Po,vR).set(e);try{let i;try{Oo=e,yr=this,i=r.llhttp_execute(this.ptr,Po,e.length)}catch(s){throw s}finally{yr=null,Oo=null}let n=r.llhttp_get_error_pos(this.ptr)-Po;if(i===_o.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===_o.ERROR.PAUSED)this.paused=!0,A.unshift(e.sli Line truncated
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function lp(t,e,A){if(e&&typeof e=="object")throw new AA(`invalid ${t} header`);if(e=e!=null?`${e}`:"",xge.exec(e)!==null)throw new AA(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}a(lp,"processHeaderValue");function RB(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new AA(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(xge.exec(A)!==null)throw new AA(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new AA("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=lp(e,A,r):t.headers+=lp(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new AA("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new AA("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new AA("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new AA("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new JAt("expect header not supported");if(Sge.exec(e)===null)throw new AA("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${lp(e,A[i],r)}`:t.headers[e]=lp(e,A[i],r):t.headers+=lp(e,A[i]);else r?t.headers[e]=lp(e,A,r):t.headers+=lp(e,A)}}}a(RB,"processHeader");vge.exports=HT});var bR=E((dDt,Fge)=>{"use strict";var XAt=require("events"),YT=class extends XAt{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};Fge.exports=YT});var SB=E((pDt,Lge)=>{"use strict";var ZAt=bR(),{ClientDestroyedError:GT,ClientClosedError:KAt,InvalidArgumentError:gm}=tA(),{kDestroy:$At,kClose:ert,kDispatch:JT,kInterceptors:dp}=BA(),hm=Symbol("destroyed"),DB=Symbol("closed"),$c=Symbol("onDestroyed"),Em=Symbol("onClosed"),NR=Symbol("Intercepted Dispatch"),VT=class extends ZAt{static{a(this,"DispatcherBase")}constructor(){super(),this[hm]=!1,this[$c]=null,this[DB]=!1,this[Em]=[]}get destroyed(){return this[hm]}get closed(){return this[DB]}get interceptors(){return this[dp]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[dp][A]!="function")throw new gm("interceptor must be an function")}this[dp]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new gm("invalid callback");if(this[hm]){queueMicrotask(()=>e(new GT,null));return}if(this[DB]){this[Em]?this[Em].push(e):queueMicrotask(()=>e(null,null));return}this[DB]=!0,this[Em].push(e);let A=a(()=>{let r=this[Em];this[Em]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[ert]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new gm("invalid callback");if(this[hm]){this[$c]?this[$c].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new GT),this[hm]=!0,this[$c]=this[$c]||[],this[$c].push(A);let r=a(()=>{let i=this[$c];this[$c]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[$At](e).then(()=>{queueMicrotask(r)})}[NR](e,A){if(!this[dp]||this[dp].length===0)return this[NR]=this[JT],this[JT](e,A);let r=this[JT].bind(this);for(let i=this[dp].length-1;i>=0;i--)r=this[dp][i](r);return this[NR]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new gm("handler must be an object");try{if(!e||typeof e!="object")throw new gm("opts must be an object.");if(this[hm]||this[$c])throw new GT;if(this[DB])throw new KAt;return this[NR](e,A)}catch(r){if(typeof A.onError!="function")throw new gm("invalid onError method");return A.onError(r),!1}}};Lge.exports=VT});var xB=E((mDt,Mge)=>{"use strict";var trt=require("net"),Uge=require("assert"),Tge=gt(),{InvalidArgumentError:Art,ConnectTimeoutError:rrt}=tA(),WT,zT;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?zT=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:zT=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function irt({allowH2:t,maxC Line truncated
`,this[ehe]=c??3e5,this[$ge]=i??3e5,this[TB]=b??!0,this[Lrt]=C,this[MB]=N,this[Rd]=null,this[Ahe]=w>-1?w:-1,this[Yo]="h1",this[gs]=null,this[LR]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[rhe]=`${this[oi].hostname}${this[oi].port?`:${this[oi].port}`:""}`,this[dA]=[],this[uA]=0,this[ps]=0}get pipelining(){return this[Sd]}set pipelining(e){this[Sd]=e,hs(this,!0)}get[gp](){return this[dA].length-this[ps]}get[RA](){return this[ps]-this[uA]}get[pp](){return this[dA].length-this[uA]}get[Frt](){return!!this[VA]&&!this[fm]&&!this[VA].destroyed}get[A7](){let e=this[VA];return e&&(e[Gi]||e[tl]||e[Bm])||this[pp]>=(this[Sd]||1)||this[gp]>0}[krt](e){ahe(this),this.once("connect",e)}[Mrt](e,A){let r=e.origin||this[oi].origin,i=this[Yo]==="h2"?t7[Ort](r,e,A):t7[qrt](r,e,A);return this[dA].push(i),this[up]||(me.bodyLength(i.body)==null&&me.isIterable(i.body)?(this[up]=1,process.nextTick(hs,this)):hs(this,!0)),this[up]&&this[Dd]!==2&&this[A7]&&(this[Dd]=2),this[Dd]<2}async[Urt](){return new Promise(e=>{this[pp]?this[Rd]=e:e(null)})}async[Trt](e){return new Promise(A=>{let r=this[dA].splice(this[ps]);for(let n=0;n<r.length;n++){let s=r[n];li(this,s,e)}let i=a(()=>{this[Rd]&&(this[Rd](),this[Rd]=null),A()},"callback");this[gs]!=null&&(me.destroy(this[gs],e),this[gs]=null,this[LR]=null),this[VA]?me.destroy(this[VA].on("close",i),e):queueMicrotask(i),hs(this)})}};function jrt(t){Ae(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[VA][ci]=t,_R(this[Ho],t)}a(jrt,"onHttp2SessionError");function Xrt(t,e,A){let r=new qo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[VA][ci]=r,_R(this[Ho],r))}a(Xrt,"onHttp2FrameError");function Zrt(){me.destroy(this,new Qm("other side closed")),me.destroy(this[VA],new Qm("other side closed"))}a(Zrt,"onHttp2SessionEnd");function Krt(t){let e=this[Ho],A=new qo(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[VA]=null,e[gs]=null,e.destroyed){Ae(this[gp]===0);let r=e[dA].splice(e[uA]);for(let i=0;i<r.length;i++){let n=r[i];li(this,n,A)}}else if(e[RA]>0){let r=e[dA][e[uA]];e[dA][e[uA]++]=null,li(e,r,A)}e[ps]=e[uA],Ae(e[RA]===0),e.emit("disconnect",e[oi],[e],A),hs(e)}a(Krt,"onHTTP2GoAway");var _o=Oge(),$rt=SR(),eit=Buffer.alloc(0);async function tit(){let t=process.env.JEST_WORKER_ID?KT():void 0,e;try{e=await WebAssembly.compile(Buffer.from(Vge(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||KT(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onStatus(new xR(Oo.buffer,n,i))||0},wasm_on_message_begin:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onHeaderField(new xR(Oo.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onHeaderValue(new xR(Oo.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(Ae.strictEqual(yr.ptr,A),yr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Po+Oo.byteOffset;return yr.onBody(new xR(Oo.buffer,n,i))||0},wasm_on_message_complete:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageComplete()||0)}})}a(tit,"lazyllhttp");var e7=null,n7=tit();n7.catch();var yr=null,Oo=null,vR=0,Po=null,Im=1,FR=2,s7=3,a7=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){Ae(Number.isFinite(e[kR])&&e[kR]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(_o.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[kR],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Ahe]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?($T.clearTimeout(this.timeout),e?(this.timeout=$T.setTimeout(Ait,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ae(this.ptr!=null),Ae(yr==null),this.llhttp.llhttp_resume(this.ptr),Ae(this.timeoutType===FR),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||eit),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ae(this.ptr!=null),Ae(yr==null),Ae(!this.paused);let{socket:A,llhttp:r}=this;e.length>vR&&(Po&&r.free(Po),vR=Math.ceil(e.length/4096)*4096,Po=r.malloc(vR)),new Uint8Array(r.memory.buffer,Po,vR).set(e);try{let i;try{Oo=e,yr=this,i=r.llhttp_execute(this.ptr,Po,e.length)}catch(s){throw s}finally{yr=null,Oo=null}let n=r.llhttp_get_error_pos(this.ptr)-Po;if(i===_o.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===_o.ERROR.PAUSED)this.paused=!0,A.unshift(e.sli Line truncated
`;return typeof n=="string"?g+=`host: ${n}\r
`:g+=t[jge],s?g+=`connection: upgrade\r
`:g+=t[Xge],s?g+=`connection: upgrade\r
upgrade: ${s}\r
`:t[Sd]&&!p[Gi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,o&&(g+=o),bi.sendHeaders.hasSubscribers&&bi.sendHeaders.publish({request:e,headers:g,socket:p}),A?me.isBuffer(A)?(Ae(u===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${g}content-length: ${u}\r
\r
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Gi]=!0)):me.isBlobLike(A)?typeof A.stream=="function"?TR({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ohe({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isStream(A)?ahe({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isIterable(A)?TR({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):Ae(!1):(u===0?p.write(`${g}content-length: 0\r
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Gi]=!0)):me.isBlobLike(A)?typeof A.stream=="function"?TR({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):che({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isStream(A)?ohe({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isIterable(A)?TR({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):Ae(!1):(u===0?p.write(`${g}content-length: 0\r
\r
`,"latin1"):(Ae(u===null,"no body must not have content length"),p.write(`${g}\r
`,"latin1")),e.onRequestSent()),!0}a(iit,"write");function nit(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=t7[Prt](d.trim()):u=d,o)return li(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||li(t,A,b||new c7)})}catch(b){li(t,A,b)}if(A.aborted)return!1;let p,g=t[LR];if(u[Hrt]=s||t[Ahe],u[Yrt]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[Grt]=n,u[Jrt]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=me.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[TB])return li(t,A,new el),!1;process.emitWarning(new el)}m!=null&&(Ae(r,"no body must not have content length"),u[Vrt]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[Wrt]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[zrt]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new qo(`HTTP/2: "frameError" received - type ${b}, code ${I}`);li(t,A,C),t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,C))}),!0;function B(){r?me.isBuffer(r)?(Ae(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):me.isBlobLike(r)?typeof r.stream=="function"?TR({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[VA],header:""}):ohe({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[VA]}):me.isStream(r)?ahe({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[VA],h2stream:p,header:""}):me.isIterable(r)?TR({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[VA]}):Ae(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(nit,"writeH2");function ahe({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(Ae(n!==0||A[RA]===0,"stream body cannot be pipelined"),A[Yo]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=Irt(e,t,f=>{f?(me.destroy(e,f),me.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),me.destroy(h)});return}let c=!1,l=new MR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){me.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new c7)},"onAbort"),g=a(function(h){if(!c){if(c=!0,Ae(i.destroyed||i[tl]&&A[RA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?me.destroy(e,h):me.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(ahe,"writeStream");async function ohe({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n===e.size,"blob body must have content length");let c=A[Yo]==="h2";try{if(n!=null&&n!==e.size)throw new el;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
`,"latin1")),e.onRequestSent()),!0}a(iit,"write");function nit(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=t7[Prt](d.trim()):u=d,o)return li(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||li(t,A,b||new c7)})}catch(b){li(t,A,b)}if(A.aborted)return!1;let p,g=t[LR];if(u[Hrt]=s||t[rhe],u[Yrt]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[Grt]=n,u[Jrt]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=me.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[TB])return li(t,A,new el),!1;process.emitWarning(new el)}m!=null&&(Ae(r,"no body must not have content length"),u[Vrt]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[Wrt]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[zrt]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new qo(`HTTP/2: "frameError" received - type ${b}, code ${I}`);li(t,A,C),t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,C))}),!0;function B(){r?me.isBuffer(r)?(Ae(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):me.isBlobLike(r)?typeof r.stream=="function"?TR({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[VA],header:""}):che({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[VA]}):me.isStream(r)?ohe({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[VA],h2stream:p,header:""}):me.isIterable(r)?TR({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[VA]}):Ae(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(nit,"writeH2");function ohe({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(Ae(n!==0||A[RA]===0,"stream body cannot be pipelined"),A[Yo]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=Irt(e,t,f=>{f?(me.destroy(e,f),me.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),me.destroy(h)});return}let c=!1,l=new MR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){me.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new c7)},"onAbort"),g=a(function(h){if(!c){if(c=!0,Ae(i.destroyed||i[tl]&&A[RA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?me.destroy(e,h):me.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(ohe,"writeStream");async function che({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n===e.size,"blob body must have content length");let c=A[Yo]==="h2";try{if(n!=null&&n!==e.size)throw new el;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
\r
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Gi]=!0),hs(A)}catch(l){me.destroy(c?t:i,l)}}a(ohe,"writeBlob");async function TR({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n!==0||A[RA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{Ae(c===null),i[ci]?g(i[ci]):c=p}),"waitForDrain");if(A[Yo]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[ci])throw i[ci];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new MR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[ci])throw i[ci];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(TR,"writeIterable");var MR=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[tl]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[ci])throw A[ci];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[TB])throw new el;process.emitWarning(new el)}A.cork(),s===0&&(o||(A[Gi]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Gi]=!0),hs(A)}catch(l){me.destroy(c?t:i,l)}}a(che,"writeBlob");async function TR({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n!==0||A[RA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{Ae(c===null),i[ci]?g(i[ci]):c=p}),"waitForDrain");if(A[Yo]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[ci])throw i[ci];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new MR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[ci])throw i[ci];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(TR,"writeIterable");var MR=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[tl]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[ci])throw A[ci];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[TB])throw new el;process.emitWarning(new el)}A.cork(),s===0&&(o||(A[Gi]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
`,"latin1"):A.write(`${c}content-length: ${i}\r
\r
`,"latin1")),i===null&&A.write(`\r
@@ -203,37 +203,37 @@ ${l.toString(16)}\r
`,"latin1"):A===null&&e.write(`\r
0\r
\r
`,"latin1"),A!==null&&i!==A){if(r[TB])throw new el;process.emitWarning(new el)}e[JA].timeout&&e[JA].timeoutType===Im&&e[JA].timeout.refresh&&e[JA].timeout.refresh(),hs(r)}}destroy(e){let{socket:A,client:r}=this;A[tl]=!1,e&&(Ae(r[RA]<=1,"pipeline should only contain this request"),me.destroy(A,e))}};function li(t,e,A){try{e.onError(A),Ae(e.aborted)}catch(r){t.emit("error",r)}}a(li,"errorRequest");che.exports=i7});var dhe=E((vDt,lhe)=>{"use strict";var OR=class{static{a(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)}};lhe.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new OR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new OR),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var phe=E((FDt,uhe)=>{var{kFree:sit,kConnected:ait,kPending:oit,kQueued:cit,kRunning:lit,kSize:dit}=BA(),hp=Symbol("pool"),l7=class{static{a(this,"PoolStats")}constructor(e){this[hp]=e}get connected(){return this[hp][ait]}get free(){return this[hp][sit]}get pending(){return this[hp][oit]}get queued(){return this[hp][cit]}get running(){return this[hp][lit]}get size(){return this[hp][dit]}};uhe.exports=l7});var E7=E((UDt,yhe)=>{"use strict";var uit=SB(),pit=dhe(),{kConnected:d7,kSize:ghe,kRunning:hhe,kPending:Ehe,kQueued:OB,kBusy:git,kFree:hit,kUrl:Eit,kClose:mit,kDestroy:Cit,kDispatch:fit}=BA(),Qit=phe(),Nn=Symbol("clients"),Ji=Symbol("needDrain"),PB=Symbol("queue"),u7=Symbol("closed resolve"),p7=Symbol("onDrain"),mhe=Symbol("onConnect"),Che=Symbol("onDisconnect"),fhe=Symbol("onConnectionError"),g7=Symbol("get dispatcher"),Bhe=Symbol("add client"),Ihe=Symbol("remove client"),Qhe=Symbol("stats"),h7=class extends uit{static{a(this,"PoolBase")}constructor(){super(),this[PB]=new pit,this[Nn]=[],this[OB]=0;let e=this;this[p7]=a(function(r,i){let n=e[PB],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[OB]--,s=!this.dispatch(o.opts,o.handler)}this[Ji]=s,!this[Ji]&&e[Ji]&&(e[Ji]=!1,e.emit("drain",r,[e,...i])),e[u7]&&n.isEmpty()&&Promise.all(e[Nn].map(o=>o.close())).then(e[u7])},"onDrain"),this[mhe]=(A,r)=>{e.emit("connect",A,[e,...r])},this[Che]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[fhe]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Qhe]=new Qit(this)}get[git](){return this[Ji]}get[d7](){return this[Nn].filter(e=>e[d7]).length}get[hit](){return this[Nn].filter(e=>e[d7]&&!e[Ji]).length}get[Ehe](){let e=this[OB];for(let{[Ehe]:A}of this[Nn])e+=A;return e}get[hhe](){let e=0;for(let{[hhe]:A}of this[Nn])e+=A;return e}get[ghe](){let e=this[OB];for(let{[ghe]:A}of this[Nn])e+=A;return e}get stats(){return this[Qhe]}async[mit](){return this[PB].isEmpty()?Promise.all(this[Nn].map(e=>e.close())):new Promise(e=>{this[u7]=e})}async[Cit](e){for(;;){let A=this[PB].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Nn].map(A=>A.destroy(e)))}[fit](e,A){let r=this[g7]();return r?r.dispatch(e,A)||(r[Ji]=!0,this[Ji]=!this[g7]()):(this[Ji]=!0,this[PB].push({opts:e,handler:A}),this[OB]++),!this[Ji]}[Bhe](e){return e.on("drain",this[p7]).on("connect",this[mhe]).on("disconnect",this[Che]).on("connectionError",this[fhe]),this[Nn].push(e),this[Ji]&&process.nextTick(()=>{this[Ji]&&this[p7](e[Eit],[this,e])}),this}[Ihe](e){e.close(()=>{let A=this[Nn].indexOf(e);A!==-1&&this[Nn].splice(A,1)}),this[Ji]=this[Nn].some(A=>!A[Ji]&&A.closed!==!0&&A.destroyed!==!0)}};yhe.exports={PoolBase:h7,kClients:Nn,kNeedDrain:Ji,kAddClient:Bhe,kRemoveClient:Ihe,kGetDispatcher:g7}});var ym=E((MDt,Rhe)=>{"use strict";var{PoolBase:Bit,kClients:whe,kNeedDrain:Iit,kAddClient:yit,kGetDispatcher:wit}=E7(),bit=_B(),{InvalidArgumentError:m7}=tA(),C7=gt(),{kUrl:bhe,kInterceptors:Nit}=BA(),Rit=xB(),f7=Symbol("options"),Q7=Symbol("connections"),Nhe=Symbol("factory");function Dit(t,e){return new bit(t,e)}a(Dit,"defaultFactory");var B7=class extends Bit{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=Dit,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new m7("invalid connections");if(typeof r!="function")throw new m7("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new m7("connect must be a function or an object");typeof i!="function"&&(i=Rit({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...C7.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[Nit]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[Q7]=A||null Line truncated
`,"latin1"),A!==null&&i!==A){if(r[TB])throw new el;process.emitWarning(new el)}e[JA].timeout&&e[JA].timeoutType===Im&&e[JA].timeout.refresh&&e[JA].timeout.refresh(),hs(r)}}destroy(e){let{socket:A,client:r}=this;A[tl]=!1,e&&(Ae(r[RA]<=1,"pipeline should only contain this request"),me.destroy(A,e))}};function li(t,e,A){try{e.onError(A),Ae(e.aborted)}catch(r){t.emit("error",r)}}a(li,"errorRequest");lhe.exports=i7});var uhe=E((vDt,dhe)=>{"use strict";var OR=class{static{a(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)}};dhe.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new OR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new OR),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var ghe=E((FDt,phe)=>{var{kFree:sit,kConnected:ait,kPending:oit,kQueued:cit,kRunning:lit,kSize:dit}=BA(),hp=Symbol("pool"),l7=class{static{a(this,"PoolStats")}constructor(e){this[hp]=e}get connected(){return this[hp][ait]}get free(){return this[hp][sit]}get pending(){return this[hp][oit]}get queued(){return this[hp][cit]}get running(){return this[hp][lit]}get size(){return this[hp][dit]}};phe.exports=l7});var E7=E((UDt,whe)=>{"use strict";var uit=SB(),pit=uhe(),{kConnected:d7,kSize:hhe,kRunning:Ehe,kPending:mhe,kQueued:OB,kBusy:git,kFree:hit,kUrl:Eit,kClose:mit,kDestroy:Cit,kDispatch:fit}=BA(),Qit=ghe(),Nn=Symbol("clients"),Ji=Symbol("needDrain"),PB=Symbol("queue"),u7=Symbol("closed resolve"),p7=Symbol("onDrain"),Che=Symbol("onConnect"),fhe=Symbol("onDisconnect"),Qhe=Symbol("onConnectionError"),g7=Symbol("get dispatcher"),Ihe=Symbol("add client"),yhe=Symbol("remove client"),Bhe=Symbol("stats"),h7=class extends uit{static{a(this,"PoolBase")}constructor(){super(),this[PB]=new pit,this[Nn]=[],this[OB]=0;let e=this;this[p7]=a(function(r,i){let n=e[PB],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[OB]--,s=!this.dispatch(o.opts,o.handler)}this[Ji]=s,!this[Ji]&&e[Ji]&&(e[Ji]=!1,e.emit("drain",r,[e,...i])),e[u7]&&n.isEmpty()&&Promise.all(e[Nn].map(o=>o.close())).then(e[u7])},"onDrain"),this[Che]=(A,r)=>{e.emit("connect",A,[e,...r])},this[fhe]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[Qhe]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Bhe]=new Qit(this)}get[git](){return this[Ji]}get[d7](){return this[Nn].filter(e=>e[d7]).length}get[hit](){return this[Nn].filter(e=>e[d7]&&!e[Ji]).length}get[mhe](){let e=this[OB];for(let{[mhe]:A}of this[Nn])e+=A;return e}get[Ehe](){let e=0;for(let{[Ehe]:A}of this[Nn])e+=A;return e}get[hhe](){let e=this[OB];for(let{[hhe]:A}of this[Nn])e+=A;return e}get stats(){return this[Bhe]}async[mit](){return this[PB].isEmpty()?Promise.all(this[Nn].map(e=>e.close())):new Promise(e=>{this[u7]=e})}async[Cit](e){for(;;){let A=this[PB].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Nn].map(A=>A.destroy(e)))}[fit](e,A){let r=this[g7]();return r?r.dispatch(e,A)||(r[Ji]=!0,this[Ji]=!this[g7]()):(this[Ji]=!0,this[PB].push({opts:e,handler:A}),this[OB]++),!this[Ji]}[Ihe](e){return e.on("drain",this[p7]).on("connect",this[Che]).on("disconnect",this[fhe]).on("connectionError",this[Qhe]),this[Nn].push(e),this[Ji]&&process.nextTick(()=>{this[Ji]&&this[p7](e[Eit],[this,e])}),this}[yhe](e){e.close(()=>{let A=this[Nn].indexOf(e);A!==-1&&this[Nn].splice(A,1)}),this[Ji]=this[Nn].some(A=>!A[Ji]&&A.closed!==!0&&A.destroyed!==!0)}};whe.exports={PoolBase:h7,kClients:Nn,kNeedDrain:Ji,kAddClient:Ihe,kRemoveClient:yhe,kGetDispatcher:g7}});var ym=E((MDt,Dhe)=>{"use strict";var{PoolBase:Bit,kClients:bhe,kNeedDrain:Iit,kAddClient:yit,kGetDispatcher:wit}=E7(),bit=_B(),{InvalidArgumentError:m7}=tA(),C7=gt(),{kUrl:Nhe,kInterceptors:Nit}=BA(),Rit=xB(),f7=Symbol("options"),Q7=Symbol("connections"),Rhe=Symbol("factory");function Dit(t,e){return new bit(t,e)}a(Dit,"defaultFactory");var B7=class extends Bit{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=Dit,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new m7("invalid connections");if(typeof r!="function")throw new m7("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new m7("connect must be a function or an object");typeof i!="function"&&(i=Rit({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...C7.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[Nit]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[Q7]=A||null Line truncated
${r.count} ${r.noun} ${r.is} pending:
${e.format(A)}
`.trim())}};nme.exports=nM});var ume=E((D4t,dme)=>{"use strict";var{kProxy:Sst,kClose:xst,kDestroy:vst,kInterceptors:kst}=BA(),{URL:ame}=require("url"),ome=HB(),Fst=ym(),Lst=SB(),{InvalidArgumentError:VB,RequestAbortedError:Ust}=tA(),cme=xB(),JB=Symbol("proxy agent"),iD=Symbol("proxy client"),nD=Symbol("proxy headers"),sM=Symbol("request tls settings"),Tst=Symbol("proxy tls settings"),lme=Symbol("connect endpoint function");function Mst(t){return t==="https:"?443:80}a(Mst,"defaultProtocolPort");function _st(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new VB("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(_st,"buildProxyOptions");function Ost(t,e){return new Fst(t,e)}a(Ost,"defaultFactory");var aM=class extends Lst{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[Sst]=_st(e),this[JB]=new ome(e),this[kst]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new VB("Proxy opts.uri is mandatory");let{clientFactory:A=Ost}=e;if(typeof A!="function")throw new VB("Proxy opts.clientFactory must be a function.");if(this[sM]=e.requestTls,this[Tst]=e.proxyTls,this[nD]=e.headers||{},e.auth&&e.token)throw new VB("opts.auth cannot be used in combination with opts.token");e.auth?this[nD]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[nD]["proxy-authorization"]=e.token);let r=new ame(e.uri),{origin:i,port:n,host:s}=r,o=cme({...e.proxyTls});this[lme]=cme({...e.requestTls}),this[iD]=A(r,{connect:o}),this[JB]=new ome({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${Mst(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[iD].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[nD],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new Ust("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[sM]?g=this[sM].servername:g=c.servername,this[lme]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new ame(e.origin),i=Pst(e.headers);return qst(i),this[JB].dispatch({...e,headers:{...i,host:r}},A)}async[xst](){await this[JB].close(),await this[iD].close()}async[vst](){await this[JB].destroy(),await this[iD].destroy()}};function Pst(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(Pst,"buildHeaders");function qst(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new VB("Proxy-Authorization should be sent in ProxyAgent constructor")}a(qst,"throwIfProxyAuthIsSent");dme.exports=aM});var Fm=E((x4t,Eme)=>{"use strict";var pme=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Hst}=tA(),Yst=HB();hme()===void 0&&gme(new Yst);function gme(t){if(!t||typeof t.dispatch!="function")throw new Hst("Argument agent must implement Agent");Object.defineProperty(globalThis,pme,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(gme,"setGlobalDispatcher");function hme(){return globalThis[pme]}a(hme,"getGlobalDispatcher");Eme.exports={setGlobalDispatcher:gme,getGlobalDispatcher:hme}});var Cme=E((F4t,mme)=>{"use strict";mme.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Ip=E((U4t,Ime)=>{"use strict";var{kHeadersList:Rn}=BA(),{kGuard:Bp}=zc(),{kEnumerableProperty:Jo}=gt(),{makeIterator:oM,isValidHeaderName:WB,isValidHeaderValue:fme}=aa(),{webidl:Ke}=Yi(),Gst=require("assert"),Dn=Symbol("headers map"),Sn=Symbol("headers map sorted");function Qme(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(Qme,"headerValueNormalize");function Bme(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ke.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(Bme,"fill");var sD=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[Dn]=new Map(e[Dn]),this[Sn]=e[Sn],this.cookies=e.cookies):(this[Dn]=new Map(e),this[Sn]=null)}contains(e){return e=e.toLowerCase(),this[Dn].has(e)}clear(){this[Dn].clear(),this[Sn]=null,this.cookies=null}append(e,A){this[Sn]=null;let r=e.toLowerCase(),i=this[Dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[Dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[Dn].se Line truncated
`.trim())}};sme.exports=nM});var pme=E((D4t,ume)=>{"use strict";var{kProxy:Sst,kClose:xst,kDestroy:vst,kInterceptors:kst}=BA(),{URL:ome}=require("url"),cme=HB(),Fst=ym(),Lst=SB(),{InvalidArgumentError:VB,RequestAbortedError:Ust}=tA(),lme=xB(),JB=Symbol("proxy agent"),iD=Symbol("proxy client"),nD=Symbol("proxy headers"),sM=Symbol("request tls settings"),Tst=Symbol("proxy tls settings"),dme=Symbol("connect endpoint function");function Mst(t){return t==="https:"?443:80}a(Mst,"defaultProtocolPort");function _st(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new VB("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(_st,"buildProxyOptions");function Ost(t,e){return new Fst(t,e)}a(Ost,"defaultFactory");var aM=class extends Lst{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[Sst]=_st(e),this[JB]=new cme(e),this[kst]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new VB("Proxy opts.uri is mandatory");let{clientFactory:A=Ost}=e;if(typeof A!="function")throw new VB("Proxy opts.clientFactory must be a function.");if(this[sM]=e.requestTls,this[Tst]=e.proxyTls,this[nD]=e.headers||{},e.auth&&e.token)throw new VB("opts.auth cannot be used in combination with opts.token");e.auth?this[nD]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[nD]["proxy-authorization"]=e.token);let r=new ome(e.uri),{origin:i,port:n,host:s}=r,o=lme({...e.proxyTls});this[dme]=lme({...e.requestTls}),this[iD]=A(r,{connect:o}),this[JB]=new cme({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${Mst(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[iD].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[nD],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new Ust("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[sM]?g=this[sM].servername:g=c.servername,this[dme]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new ome(e.origin),i=Pst(e.headers);return qst(i),this[JB].dispatch({...e,headers:{...i,host:r}},A)}async[xst](){await this[JB].close(),await this[iD].close()}async[vst](){await this[JB].destroy(),await this[iD].destroy()}};function Pst(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(Pst,"buildHeaders");function qst(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new VB("Proxy-Authorization should be sent in ProxyAgent constructor")}a(qst,"throwIfProxyAuthIsSent");ume.exports=aM});var Fm=E((x4t,mme)=>{"use strict";var gme=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Hst}=tA(),Yst=HB();Eme()===void 0&&hme(new Yst);function hme(t){if(!t||typeof t.dispatch!="function")throw new Hst("Argument agent must implement Agent");Object.defineProperty(globalThis,gme,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(hme,"setGlobalDispatcher");function Eme(){return globalThis[gme]}a(Eme,"getGlobalDispatcher");mme.exports={setGlobalDispatcher:hme,getGlobalDispatcher:Eme}});var fme=E((F4t,Cme)=>{"use strict";Cme.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Ip=E((U4t,yme)=>{"use strict";var{kHeadersList:Rn}=BA(),{kGuard:Bp}=zc(),{kEnumerableProperty:Jo}=gt(),{makeIterator:oM,isValidHeaderName:WB,isValidHeaderValue:Qme}=aa(),{webidl:Ke}=Yi(),Gst=require("assert"),Dn=Symbol("headers map"),Sn=Symbol("headers map sorted");function Bme(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(Bme,"headerValueNormalize");function Ime(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ke.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(Ime,"fill");var sD=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[Dn]=new Map(e[Dn]),this[Sn]=e[Sn],this.cookies=e.cookies):(this[Dn]=new Map(e),this[Sn]=null)}contains(e){return e=e.toLowerCase(),this[Dn].has(e)}clear(){this[Dn].clear(),this[Sn]=null,this.cookies=null}append(e,A){this[Sn]=null;let r=e.toLowerCase(),i=this[Dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[Dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[Dn].se Line truncated
Error Code : ${s.statusCode}
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return ffe(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}Qfe.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return Qfe.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Wm.OidcClient=$M});var r_=E(kn=>{"use strict";var e_=kn&&kn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(kn,"__esModule",{value:!0});kn.summary=kn.markdownSummary=kn.SUMMARY_DOCS_URL=kn.SUMMARY_ENV_VAR=void 0;var xlt=require("os"),t_=require("fs"),{access:vlt,appendFile:klt,writeFile:Flt}=t_.promises;kn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";kn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var A_=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return e_(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[kn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${kn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield vlt(e,t_.constants.R_OK|t_.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return e_(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?Flt:klt)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return e_(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(xlt.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},Ife=new A_;kn.markdownSummary=Ife;kn.summary=Ife});var yfe=E(Fn=>{"use strict";var Llt=Fn&&Fn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Ult=Fn&&Fn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Tlt=Fn&&Fn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&Llt(e,t,A);return Ult(e,t),e};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.toPlatformPath=Fn.toWin32Path=Fn.toPosixPath=void 0;var Mlt=Tlt(require("path"));function _lt(t){return t.replace(/[\\]/g,"/")}a(_lt,"toPosixPath");Fn.toPosixPath=_lt;function Olt(t){return t.replace(/[/]/g,"\\")}a(Olt,"toWin32Path");Fn.toWin32Path=Olt;function Plt(t){return t.replace(/[/\\]/g,Mlt.sep)}a(Plt,"toPlatformPath");Fn.toPlatformPath=Plt});var sI=E(ue=>{"use strict";var qlt=ue&&ue.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){Line truncated
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return Qfe(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}Bfe.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return Bfe.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Wm.OidcClient=$M});var r_=E(kn=>{"use strict";var e_=kn&&kn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(kn,"__esModule",{value:!0});kn.summary=kn.markdownSummary=kn.SUMMARY_DOCS_URL=kn.SUMMARY_ENV_VAR=void 0;var xlt=require("os"),t_=require("fs"),{access:vlt,appendFile:klt,writeFile:Flt}=t_.promises;kn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";kn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var A_=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return e_(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[kn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${kn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield vlt(e,t_.constants.R_OK|t_.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return e_(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?Flt:klt)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return e_(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(xlt.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},yfe=new A_;kn.markdownSummary=yfe;kn.summary=yfe});var wfe=E(Fn=>{"use strict";var Llt=Fn&&Fn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Ult=Fn&&Fn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Tlt=Fn&&Fn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&Llt(e,t,A);return Ult(e,t),e};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.toPlatformPath=Fn.toWin32Path=Fn.toPosixPath=void 0;var Mlt=Tlt(require("path"));function _lt(t){return t.replace(/[\\]/g,"/")}a(_lt,"toPosixPath");Fn.toPosixPath=_lt;function Olt(t){return t.replace(/[/]/g,"\\")}a(Olt,"toWin32Path");Fn.toWin32Path=Olt;function Plt(t){return t.replace(/[/\\]/g,Mlt.sep)}a(Plt,"toPlatformPath");Fn.toPlatformPath=Plt});var sI=E(ue=>{"use strict";var qlt=ue&&ue.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){Line truncated
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(zlt,"getMultilineInput");ue.getMultilineInput=zlt;function jlt(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=i_(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(jlt,"getBooleanInput");ue.getBooleanInput=jlt;function Xlt(t,e){if(process.env.GITHUB_OUTPUT||"")return Dp.issueFileCommand("OUTPUT",Dp.prepareKeyValueMessage(t,e));process.stdout.write(Nfe.EOL),ga.issueCommand("set-output",{name:t},zm.toCommandValue(e))}a(Xlt,"setOutput");ue.setOutput=Xlt;function Zlt(t){ga.issue("echo",t?"on":"off")}a(Zlt,"setCommandEcho");ue.setCommandEcho=Zlt;function Klt(t){process.exitCode=Rfe.Failure,Dfe(t)}a(Klt,"setFailed");ue.setFailed=Klt;function $lt(){return process.env.RUNNER_DEBUG==="1"}a($lt,"isDebug");ue.isDebug=$lt;function edt(t){ga.issueCommand("debug",{},t)}a(edt,"debug");ue.debug=edt;function Dfe(t,e={}){ga.issueCommand("error",zm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Dfe,"error");ue.error=Dfe;function tdt(t,e={}){ga.issueCommand("warning",zm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(tdt,"warning");ue.warning=tdt;function Adt(t,e={}){ga.issueCommand("notice",zm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Adt,"notice");ue.notice=Adt;function rdt(t){process.stdout.write(t+Nfe.EOL)}a(rdt,"info");ue.info=rdt;function Sfe(t){ga.issue("group",t)}a(Sfe,"startGroup");ue.startGroup=Sfe;function xfe(){ga.issue("endgroup")}a(xfe,"endGroup");ue.endGroup=xfe;function idt(t,e){return bfe(this,void 0,void 0,function*(){Sfe(t);let A;try{A=yield e()}finally{xfe()}return A})}a(idt,"group");ue.group=idt;function ndt(t,e){if(process.env.GITHUB_STATE||"")return Dp.issueFileCommand("STATE",Dp.prepareKeyValueMessage(t,e));ga.issueCommand("save-state",{name:t},zm.toCommandValue(e))}a(ndt,"saveState");ue.saveState=ndt;function sdt(t){return process.env[`STATE_${t}`]||""}a(sdt,"getState");ue.getState=sdt;function adt(t){return bfe(this,void 0,void 0,function*(){return yield Glt.OidcClient.getIDToken(t)})}a(adt,"getIDToken");ue.getIDToken=adt;var odt=r_();Object.defineProperty(ue,"summary",{enumerable:!0,get:function(){return odt.summary}});var cdt=r_();Object.defineProperty(ue,"markdownSummary",{enumerable:!0,get:function(){return cdt.markdownSummary}});var n_=yfe();Object.defineProperty(ue,"toPosixPath",{enumerable:!0,get:function(){return n_.toPosixPath}});Object.defineProperty(ue,"toWin32Path",{enumerable:!0,get:function(){return n_.toWin32Path}});Object.defineProperty(ue,"toPlatformPath",{enumerable:!0,get:function(){return n_.toPlatformPath}})});var Ffe=E((Ri,a_)=>{"use strict";var ldt=Ri&&Ri.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),ddt=Ri&&Ri.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),udt=Ri&&Ri.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ldt(e,t,A);return ddt(e,t),e},pdt=Ri&&Ri.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(Ri,"__esModule",{value:!0});Ri._readLinuxVersionFile=Ri._getOsVersion=Ri._findMatch=void 0;var vfe=udt(E2()),s_=sI(),kfe=require("os"),gdt=require("child_process"),zD=require("fs");function hdt(t,e,A,r){return pdt(this,void 0,void 0,function*(){let i=kfe.platform(),n,s,o;for(let c of A){let l=c.version;if(s_.debug(`check ${l} satisfies ${t}`),vfe.satisfies(l,t)&&(!e||c.stable===e)&&(o=c.files.find(d=>{s_.debug(`${d.arch}===${r} && ${d.platform}===${i}`);let u=d.arch===r&&d.platform===i;if(u&&d.platform_version){let p=a_.exports._getOsVersion();p===d.platform_version?u=!0:u=vfe.satisfies(p,d.platform_version)}return u}),o)){s_.debug(`matched ${c.version}`),s=c;break}}return s&&o&&(n=Object.assign({},s),n.files=[o]),n})}a(hdt,"_findMatch");Ri._findMatch=hdt;function Edt(){let t=kfe.platform(),e="";if(t==="darwin")e=gdt.execSync("sw_vers -productVersion").toString();else if(t==="linux"){let A=a_.exports._readLinuxVersionFile();if(A){let r=A.split(`
`);for(let i of r){let n=i.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}a(Edt,"_getOsVersion");Ri._getOsVersion=Edt;function mdt(){let t="/etc/lsb-release",e="/etc/os-release",A="";return zD.existsSync(t)?A=zD.readFileSync(t).toString():zD.existsSync(e)&&(A=zD.readFileSync(e).toString()),A}a(mdt,"_readLinuxVersionFile");Ri._readLinuxVersionFile=mdt});var Ufe=E((q6t,Lfe)=>{var Cdt=require("crypto");Lfe.exports=a(function(){return Cdt.randomBytes(16)},"nodeRNG")});var _fe=E((Y6t,Mfe)=>{var Tfe=[];for(aI=0;aI<256;++aI)Tfe[aI]=(aI+256).toString(16).substr(1);var aI;function fdt(t,e){var A=e||0,r=Tfe;return[r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]]].join("")}a(fdt,"bytesToUuid");Mfe.exports=fdt});var Pfe=E((J6t,Ofe)=>{var Qdt=Ufe(),Bdt=_fe();function Idt(t,e,A){var r=e&&A||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var i=t.random||(t.rng||Qdt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e)for(var n=0;n<16;++n)e[r+n]=i[n];return e||Bdt(i)}a(Idt,"v4");Ofe.exports=Idt});var Yfe=E(ha=>{"use strict";var ydt=ha&&ha.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),wdt=ha&&ha.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bdt=ha&&ha.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ydt(e,t,A);return wdt(e,t),e},qfe=ha&&ha.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ha,"__esModule",{value:!0});ha.RetryHelper=void 0;var Hfe=bdt(sI()),o_=class{static{a(this,"RetryHelper")}constructor(e,A,r){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(A),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,A){return qfe(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e()}catch(n){if(A&&!A(n))throw n;Hfe.info(n.message)}let i=this.getSleepAmount();Hfe.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return qfe(this,void 0,void 0,function*(){return new Promise(A=>setTimeout(A,e*1e3))})}};ha.RetryHelper=o_});var Zfe=E(je=>{"use strict";var Ndt=je&&je.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Rdt=je&&je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),jo=je&&je.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&Ndt(e,t,A);return Rdt(e,t),e},ji=je&&je.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})},Ddt=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(je,"__esModule",{value:!0});je.evaluateVersions=je.isExplicitVersion=je.findFromManifest=je.getManifestFromRepo=je.findAllVersions=je.find=je.cacheFile=je.cacheDir=je.extractZip=je.extractXar=je.extractTar=je.extract7z=je.downloadTool=je.HTTPError=void 0;var mt=jo(sI()),Is=jo(VC()),Ea=jo(require("fs")),Sdt=jo(Ffe()),cI=jo(require("os")),Va=jo(require("path")),Gfe=jo(zM()),sl=jo(E2()),xdt=jo(require("stream")),vdt=jo(require("util")),jm=require("assert"),Jfe=Ddt(Pfe()),Td=Sg(),kdt=Yfe(),oI=class extends Error{static{a(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};je.HTTPError=oI;var l_=process.platform==="win32",Fdt=process.platform==="darwin",Ldt="actions/tool-cache";function Udt(t,e,A,r){return ji(this,void 0,void 0,function*(){e=e||Va.join(Xfe(),Jfe Line truncated
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}a(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}a(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}a(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}a(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}a(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}a(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}a(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}a(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}a(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}a(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}a(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}a(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}a(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{a(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}a(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}a(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}a(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}a(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}a(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{a(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,n=r.key.pop();for(let s of r.key){if(hasKey(i,s)&&(!isTable(i[s])||i[s][_declared]))throw this.error(new TomlError("Can' Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(jlt,"getBooleanInput");ue.getBooleanInput=jlt;function Xlt(t,e){if(process.env.GITHUB_OUTPUT||"")return Dp.issueFileCommand("OUTPUT",Dp.prepareKeyValueMessage(t,e));process.stdout.write(Rfe.EOL),ga.issueCommand("set-output",{name:t},zm.toCommandValue(e))}a(Xlt,"setOutput");ue.setOutput=Xlt;function Zlt(t){ga.issue("echo",t?"on":"off")}a(Zlt,"setCommandEcho");ue.setCommandEcho=Zlt;function Klt(t){process.exitCode=Dfe.Failure,Sfe(t)}a(Klt,"setFailed");ue.setFailed=Klt;function $lt(){return process.env.RUNNER_DEBUG==="1"}a($lt,"isDebug");ue.isDebug=$lt;function edt(t){ga.issueCommand("debug",{},t)}a(edt,"debug");ue.debug=edt;function Sfe(t,e={}){ga.issueCommand("error",zm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Sfe,"error");ue.error=Sfe;function tdt(t,e={}){ga.issueCommand("warning",zm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(tdt,"warning");ue.warning=tdt;function Adt(t,e={}){ga.issueCommand("notice",zm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Adt,"notice");ue.notice=Adt;function rdt(t){process.stdout.write(t+Rfe.EOL)}a(rdt,"info");ue.info=rdt;function xfe(t){ga.issue("group",t)}a(xfe,"startGroup");ue.startGroup=xfe;function vfe(){ga.issue("endgroup")}a(vfe,"endGroup");ue.endGroup=vfe;function idt(t,e){return Nfe(this,void 0,void 0,function*(){xfe(t);let A;try{A=yield e()}finally{vfe()}return A})}a(idt,"group");ue.group=idt;function ndt(t,e){if(process.env.GITHUB_STATE||"")return Dp.issueFileCommand("STATE",Dp.prepareKeyValueMessage(t,e));ga.issueCommand("save-state",{name:t},zm.toCommandValue(e))}a(ndt,"saveState");ue.saveState=ndt;function sdt(t){return process.env[`STATE_${t}`]||""}a(sdt,"getState");ue.getState=sdt;function adt(t){return Nfe(this,void 0,void 0,function*(){return yield Glt.OidcClient.getIDToken(t)})}a(adt,"getIDToken");ue.getIDToken=adt;var odt=r_();Object.defineProperty(ue,"summary",{enumerable:!0,get:function(){return odt.summary}});var cdt=r_();Object.defineProperty(ue,"markdownSummary",{enumerable:!0,get:function(){return cdt.markdownSummary}});var n_=wfe();Object.defineProperty(ue,"toPosixPath",{enumerable:!0,get:function(){return n_.toPosixPath}});Object.defineProperty(ue,"toWin32Path",{enumerable:!0,get:function(){return n_.toWin32Path}});Object.defineProperty(ue,"toPlatformPath",{enumerable:!0,get:function(){return n_.toPlatformPath}})});var Lfe=E((Ri,a_)=>{"use strict";var ldt=Ri&&Ri.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),ddt=Ri&&Ri.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),udt=Ri&&Ri.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ldt(e,t,A);return ddt(e,t),e},pdt=Ri&&Ri.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(Ri,"__esModule",{value:!0});Ri._readLinuxVersionFile=Ri._getOsVersion=Ri._findMatch=void 0;var kfe=udt(E2()),s_=sI(),Ffe=require("os"),gdt=require("child_process"),zD=require("fs");function hdt(t,e,A,r){return pdt(this,void 0,void 0,function*(){let i=Ffe.platform(),n,s,o;for(let c of A){let l=c.version;if(s_.debug(`check ${l} satisfies ${t}`),kfe.satisfies(l,t)&&(!e||c.stable===e)&&(o=c.files.find(d=>{s_.debug(`${d.arch}===${r} && ${d.platform}===${i}`);let u=d.arch===r&&d.platform===i;if(u&&d.platform_version){let p=a_.exports._getOsVersion();p===d.platform_version?u=!0:u=kfe.satisfies(p,d.platform_version)}return u}),o)){s_.debug(`matched ${c.version}`),s=c;break}}return s&&o&&(n=Object.assign({},s),n.files=[o]),n})}a(hdt,"_findMatch");Ri._findMatch=hdt;function Edt(){let t=Ffe.platform(),e="";if(t==="darwin")e=gdt.execSync("sw_vers -productVersion").toString();else if(t==="linux"){let A=a_.exports._readLinuxVersionFile();if(A){let r=A.split(`
`);for(let i of r){let n=i.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}a(Edt,"_getOsVersion");Ri._getOsVersion=Edt;function mdt(){let t="/etc/lsb-release",e="/etc/os-release",A="";return zD.existsSync(t)?A=zD.readFileSync(t).toString():zD.existsSync(e)&&(A=zD.readFileSync(e).toString()),A}a(mdt,"_readLinuxVersionFile");Ri._readLinuxVersionFile=mdt});var Tfe=E((q6t,Ufe)=>{var Cdt=require("crypto");Ufe.exports=a(function(){return Cdt.randomBytes(16)},"nodeRNG")});var Ofe=E((Y6t,_fe)=>{var Mfe=[];for(aI=0;aI<256;++aI)Mfe[aI]=(aI+256).toString(16).substr(1);var aI;function fdt(t,e){var A=e||0,r=Mfe;return[r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]]].join("")}a(fdt,"bytesToUuid");_fe.exports=fdt});var qfe=E((J6t,Pfe)=>{var Qdt=Tfe(),Bdt=Ofe();function Idt(t,e,A){var r=e&&A||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var i=t.random||(t.rng||Qdt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e)for(var n=0;n<16;++n)e[r+n]=i[n];return e||Bdt(i)}a(Idt,"v4");Pfe.exports=Idt});var Gfe=E(ha=>{"use strict";var ydt=ha&&ha.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),wdt=ha&&ha.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bdt=ha&&ha.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ydt(e,t,A);return wdt(e,t),e},Hfe=ha&&ha.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ha,"__esModule",{value:!0});ha.RetryHelper=void 0;var Yfe=bdt(sI()),o_=class{static{a(this,"RetryHelper")}constructor(e,A,r){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(A),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,A){return Hfe(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e()}catch(n){if(A&&!A(n))throw n;Yfe.info(n.message)}let i=this.getSleepAmount();Yfe.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Hfe(this,void 0,void 0,function*(){return new Promise(A=>setTimeout(A,e*1e3))})}};ha.RetryHelper=o_});var Kfe=E(je=>{"use strict";var Ndt=je&&je.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Rdt=je&&je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),jo=je&&je.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&Ndt(e,t,A);return Rdt(e,t),e},ji=je&&je.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})},Ddt=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(je,"__esModule",{value:!0});je.evaluateVersions=je.isExplicitVersion=je.findFromManifest=je.getManifestFromRepo=je.findAllVersions=je.find=je.cacheFile=je.cacheDir=je.extractZip=je.extractXar=je.extractTar=je.extract7z=je.downloadTool=je.HTTPError=void 0;var mt=jo(sI()),Is=jo(VC()),Ea=jo(require("fs")),Sdt=jo(Lfe()),cI=jo(require("os")),Va=jo(require("path")),Jfe=jo(zM()),sl=jo(E2()),xdt=jo(require("stream")),vdt=jo(require("util")),jm=require("assert"),Vfe=Ddt(qfe()),Td=Sg(),kdt=Gfe(),oI=class extends Error{static{a(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};je.HTTPError=oI;var l_=process.platform==="win32",Fdt=process.platform==="darwin",Ldt="actions/tool-cache";function Udt(t,e,A,r){return ji(this,void 0,void 0,function*(){e=e||Va.join(Zfe(),Vfe Line truncated
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}a(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}a(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}a(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}a(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}a(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}a(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}a(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}a(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}a(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}a(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}a(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}a(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}a(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{a(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}a(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}a(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}a(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}a(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}a(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{a(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,n=r.key.pop();for(let s of r.key){if(hasKey(i,s)&&(!isTable(i[s])||i[s][_declared]))throw this.error(new TomlError("Can' Line truncated
`,e&&e.split){let r=e.split(/\n/),i=String(Math.min(r.length,t.line+3)).length,n=" ";for(;n.length<i;)n+=" ";for(let s=Math.max(0,t.line-1);s<Math.min(r.length,t.line+2);++s){let o=String(s+1);if(o.length<i&&(o=" "+o),t.line===s){A+=o+"> "+r[s]+`
`,A+=n+" ";for(let c=0;c<t.col;++c)A+=" ";A+=`^
`}else A+=o+": "+r[s]+`
`}}return t.message=A+`
`,t}a(Xdt,"prettyError")});var uQe=E((lSt,dQe)=>{"use strict";dQe.exports=$dt;var Zdt=e4(),Kdt=t4();function $dt(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new Zdt;try{return e.parse(t),e.finish()}catch(A){throw Kdt(A,t)}}a($dt,"parseString")});var hQe=E((uSt,gQe)=>{"use strict";gQe.exports=tut;var eut=e4(),pQe=t4();function tut(t,e){e||(e={});let A=0,r=e.blocksize||40960,i=new eut;return new Promise((s,o)=>{setImmediate(n,A,r,s,o)});function n(s,o,c,l){if(s>=t.length)try{return c(i.finish())}catch(d){return l(pQe(d,t))}try{i.parse(t.slice(s,s+o)),setImmediate(n,s+o,o,c,l)}catch(d){l(pQe(d,t))}}}a(tut,"parseAsync")});var CQe=E((gSt,mQe)=>{"use strict";mQe.exports=rut;var Aut=require("stream"),EQe=e4();function rut(t){return t?iut(t):nut(t)}a(rut,"parseStream");function iut(t){let e=new EQe;return t.setEncoding("utf8"),new Promise((A,r)=>{let i,n=!1,s=!1;function o(){if(n=!0,!i)try{A(e.finish())}catch(d){r(d)}}a(o,"finish");function c(d){s=!0,r(d)}a(c,"error"),t.once("end",o),t.once("error",c),l();function l(){i=!0;let d;for(;(d=t.read())!==null;)try{e.parse(d)}catch(u){return c(u)}if(i=!1,n)return o();s||t.once("readable",l)}a(l,"readNext")})}a(iut,"parseReadable");function nut(){let t=new EQe;return new Aut.Transform({objectMode:!0,transform(e,A,r){try{t.parse(e.toString(A))}catch(i){this.emit("error",i)}r()},flush(e){try{this.push(t.finish())}catch(A){this.emit("error",A)}e()}})}a(nut,"parseTransform")});var fQe=E((ESt,dI)=>{"use strict";dI.exports=uQe();dI.exports.async=hQe();dI.exports.stream=CQe();dI.exports.prettyError=t4()});var RQe=E((mSt,m_)=>{"use strict";m_.exports=sut;m_.exports.value=E_;function sut(t){if(t===null)throw xp("null");if(t===void 0)throw xp("undefined");if(typeof t!="object")throw xp(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=Ln(t);if(e!=="table")throw xp(e);return h_("","",t)}a(sut,"stringify");function xp(t){return new Error("Can only stringify objects, not "+t)}a(xp,"typeError");function aut(){return new Error("Array values can't have mixed types")}a(aut,"arrayOneTypeError");function QQe(t){return Object.keys(t).filter(e=>BQe(t[e]))}a(QQe,"getInlineKeys");function out(t){return Object.keys(t).filter(e=>!BQe(t[e]))}a(out,"getComplexKeys");function A4(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let A of Object.keys(t))t[A]&&typeof t[A].toJSON=="function"&&!("toISOString"in t[A])?e[A]=t[A].toJSON():e[A]=t[A];return e}a(A4,"toJSON");function h_(t,e,A){A=A4(A);var r,i;r=QQe(A),i=out(A);var n=[],s=e||"";r.forEach(c=>{var l=Ln(A[c]);l!=="undefined"&&l!=="null"&&n.push(s+r4(c)+" = "+wQe(A[c],!0))}),n.length>0&&n.push("");var o=t&&r.length>0?e+" ":"";return i.forEach(c=>{n.push(fut(t,o,c,A[c]))}),n.join(`
`)}a(h_,"stringifyObject");function BQe(t){switch(Ln(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||Ln(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}a(BQe,"isInline");function Ln(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}a(Ln,"tomlType");function r4(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:IQe(e)}a(r4,"stringifyKey");function IQe(t){return'"'+yQe(t).replace(/"/g,'\\"')+'"'}a(IQe,"stringifyBasicString");function cut(t){return"'"+t+"'"}a(cut,"stringifyLiteralString");function lut(t,e){for(;e.length<t;)e="0"+e;return e}a(lut,"numpad");function yQe(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+lut(4,e.codePointAt(0).toString(16)))}a(yQe,"escapeString");function dut(t){let e=t.split(/\n/).map(A=>yQe(A).replace(/"(?="")/g,'\\"')).join(`
`,t}a(Xdt,"prettyError")});var pQe=E((lSt,uQe)=>{"use strict";uQe.exports=$dt;var Zdt=e4(),Kdt=t4();function $dt(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new Zdt;try{return e.parse(t),e.finish()}catch(A){throw Kdt(A,t)}}a($dt,"parseString")});var EQe=E((uSt,hQe)=>{"use strict";hQe.exports=tut;var eut=e4(),gQe=t4();function tut(t,e){e||(e={});let A=0,r=e.blocksize||40960,i=new eut;return new Promise((s,o)=>{setImmediate(n,A,r,s,o)});function n(s,o,c,l){if(s>=t.length)try{return c(i.finish())}catch(d){return l(gQe(d,t))}try{i.parse(t.slice(s,s+o)),setImmediate(n,s+o,o,c,l)}catch(d){l(gQe(d,t))}}}a(tut,"parseAsync")});var fQe=E((gSt,CQe)=>{"use strict";CQe.exports=rut;var Aut=require("stream"),mQe=e4();function rut(t){return t?iut(t):nut(t)}a(rut,"parseStream");function iut(t){let e=new mQe;return t.setEncoding("utf8"),new Promise((A,r)=>{let i,n=!1,s=!1;function o(){if(n=!0,!i)try{A(e.finish())}catch(d){r(d)}}a(o,"finish");function c(d){s=!0,r(d)}a(c,"error"),t.once("end",o),t.once("error",c),l();function l(){i=!0;let d;for(;(d=t.read())!==null;)try{e.parse(d)}catch(u){return c(u)}if(i=!1,n)return o();s||t.once("readable",l)}a(l,"readNext")})}a(iut,"parseReadable");function nut(){let t=new mQe;return new Aut.Transform({objectMode:!0,transform(e,A,r){try{t.parse(e.toString(A))}catch(i){this.emit("error",i)}r()},flush(e){try{this.push(t.finish())}catch(A){this.emit("error",A)}e()}})}a(nut,"parseTransform")});var QQe=E((ESt,dI)=>{"use strict";dI.exports=pQe();dI.exports.async=EQe();dI.exports.stream=fQe();dI.exports.prettyError=t4()});var DQe=E((mSt,m_)=>{"use strict";m_.exports=sut;m_.exports.value=E_;function sut(t){if(t===null)throw xp("null");if(t===void 0)throw xp("undefined");if(typeof t!="object")throw xp(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=Ln(t);if(e!=="table")throw xp(e);return h_("","",t)}a(sut,"stringify");function xp(t){return new Error("Can only stringify objects, not "+t)}a(xp,"typeError");function aut(){return new Error("Array values can't have mixed types")}a(aut,"arrayOneTypeError");function BQe(t){return Object.keys(t).filter(e=>IQe(t[e]))}a(BQe,"getInlineKeys");function out(t){return Object.keys(t).filter(e=>!IQe(t[e]))}a(out,"getComplexKeys");function A4(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let A of Object.keys(t))t[A]&&typeof t[A].toJSON=="function"&&!("toISOString"in t[A])?e[A]=t[A].toJSON():e[A]=t[A];return e}a(A4,"toJSON");function h_(t,e,A){A=A4(A);var r,i;r=BQe(A),i=out(A);var n=[],s=e||"";r.forEach(c=>{var l=Ln(A[c]);l!=="undefined"&&l!=="null"&&n.push(s+r4(c)+" = "+bQe(A[c],!0))}),n.length>0&&n.push("");var o=t&&r.length>0?e+" ":"";return i.forEach(c=>{n.push(fut(t,o,c,A[c]))}),n.join(`
`)}a(h_,"stringifyObject");function IQe(t){switch(Ln(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||Ln(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}a(IQe,"isInline");function Ln(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}a(Ln,"tomlType");function r4(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:yQe(e)}a(r4,"stringifyKey");function yQe(t){return'"'+wQe(t).replace(/"/g,'\\"')+'"'}a(yQe,"stringifyBasicString");function cut(t){return"'"+t+"'"}a(cut,"stringifyLiteralString");function lut(t,e){for(;e.length<t;)e="0"+e;return e}a(lut,"numpad");function wQe(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+lut(4,e.codePointAt(0).toString(16)))}a(wQe,"escapeString");function dut(t){let e=t.split(/\n/).map(A=>wQe(A).replace(/"(?="")/g,'\\"')).join(`
`);return e.slice(-1)==='"'&&(e+=`\\
`),`"""
`+e+'"""'}a(dut,"stringifyMultilineString");function wQe(t,e){let A=Ln(t);return A==="string"&&(e&&/\n/.test(t)?A="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(A="string-literal")),E_(t,A)}a(wQe,"stringifyAnyInline");function E_(t,e){switch(e||(e=Ln(t)),e){case"string-multiline":return dut(t);case"string":return IQe(t);case"string-literal":return cut(t);case"integer":return bQe(t);case"float":return uut(t);case"boolean":return put(t);case"datetime":return gut(t);case"array":return mut(t.filter(A=>Ln(A)!=="null"&&Ln(A)!=="undefined"&&Ln(A)!=="nan"));case"table":return Cut(t);default:throw xp(e)}}a(E_,"stringifyInline");function bQe(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}a(bQe,"stringifyInteger");function uut(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),A=e[0],r=e[1]||0;return bQe(A)+"."+r}a(uut,"stringifyFloat");function put(t){return String(t)}a(put,"stringifyBoolean");function gut(t){return t.toISOString()}a(gut,"stringifyDatetime");function hut(t){return t==="float"||t==="integer"}a(hut,"isNumber");function Eut(t){var e=Ln(t[0]);return t.every(A=>Ln(A)===e)?e:t.every(A=>hut(Ln(A)))?"float":"mixed"}a(Eut,"arrayType");function NQe(t){let e=Eut(t);if(e==="mixed")throw aut();return e}a(NQe,"validateArray");function mut(t){t=A4(t);let e=NQe(t);var A="[",r=t.map(i=>E_(i,e));return r.join(", ").length>60||/\n/.test(r)?A+=`
`+e+'"""'}a(dut,"stringifyMultilineString");function bQe(t,e){let A=Ln(t);return A==="string"&&(e&&/\n/.test(t)?A="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(A="string-literal")),E_(t,A)}a(bQe,"stringifyAnyInline");function E_(t,e){switch(e||(e=Ln(t)),e){case"string-multiline":return dut(t);case"string":return yQe(t);case"string-literal":return cut(t);case"integer":return NQe(t);case"float":return uut(t);case"boolean":return put(t);case"datetime":return gut(t);case"array":return mut(t.filter(A=>Ln(A)!=="null"&&Ln(A)!=="undefined"&&Ln(A)!=="nan"));case"table":return Cut(t);default:throw xp(e)}}a(E_,"stringifyInline");function NQe(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}a(NQe,"stringifyInteger");function uut(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),A=e[0],r=e[1]||0;return NQe(A)+"."+r}a(uut,"stringifyFloat");function put(t){return String(t)}a(put,"stringifyBoolean");function gut(t){return t.toISOString()}a(gut,"stringifyDatetime");function hut(t){return t==="float"||t==="integer"}a(hut,"isNumber");function Eut(t){var e=Ln(t[0]);return t.every(A=>Ln(A)===e)?e:t.every(A=>hut(Ln(A)))?"float":"mixed"}a(Eut,"arrayType");function RQe(t){let e=Eut(t);if(e==="mixed")throw aut();return e}a(RQe,"validateArray");function mut(t){t=A4(t);let e=RQe(t);var A="[",r=t.map(i=>E_(i,e));return r.join(", ").length>60||/\n/.test(r)?A+=`
`+r.join(`,
`)+`
`:A+=" "+r.join(", ")+(r.length>0?" ":""),A+"]"}a(mut,"stringifyInlineArray");function Cut(t){t=A4(t);var e=[];return Object.keys(t).forEach(A=>{e.push(r4(A)+" = "+wQe(t[A],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}a(Cut,"stringifyInlineTable");function fut(t,e,A,r){var i=Ln(r);if(i==="array")return Qut(t,e,A,r);if(i==="table")return But(t,e,A,r);throw xp(i)}a(fut,"stringifyComplex");function Qut(t,e,A,r){r=A4(r),NQe(r);var i=Ln(r[0]);if(i!=="table")throw xp(i);var n=t+r4(A),s="";return r.forEach(o=>{s.length>0&&(s+=`
`:A+=" "+r.join(", ")+(r.length>0?" ":""),A+"]"}a(mut,"stringifyInlineArray");function Cut(t){t=A4(t);var e=[];return Object.keys(t).forEach(A=>{e.push(r4(A)+" = "+bQe(t[A],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}a(Cut,"stringifyInlineTable");function fut(t,e,A,r){var i=Ln(r);if(i==="array")return Qut(t,e,A,r);if(i==="table")return But(t,e,A,r);throw xp(i)}a(fut,"stringifyComplex");function Qut(t,e,A,r){r=A4(r),RQe(r);var i=Ln(r[0]);if(i!=="table")throw xp(i);var n=t+r4(A),s="";return r.forEach(o=>{s.length>0&&(s+=`
`),s+=e+"[["+n+`]]
`,s+=h_(n+".",e,o)}),s}a(Qut,"stringifyArrayOfTables");function But(t,e,A,r){var i=t+r4(A),n="";return QQe(r).length>0&&(n+=e+"["+i+`]
`),n+h_(i+".",e,r)}a(But,"stringifyComplexTable")});var DQe=E(C_=>{"use strict";C_.parse=fQe();C_.stringify=RQe()});var jQe=require("node:os"),Gr=Nr(hi());var HQe=require("node:crypto"),YQe=require("node:os"),tC=require("node:path"),ma=require("node:fs"),_d=Nr(hi()),o4=Nr(Que()),pI=Nr(Zfe()),B_=Nr(Sg());var Zm=require("node:fs"),f_=Nr(hi()),i4=Nr(DQe());function SQe(t,e){if(!e.length)return;let A=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||A++}),A>1)throw new Error("You can't have more than one global registry.");(0,f_.info)(`Writing bunfig.toml to '${t}'.`);let r={};if((0,Zm.existsSync)(t))try{let n=(0,Zm.readFileSync)(t,{encoding:"utf-8"});r=(0,i4.parse)(n)}catch(n){(0,f_.info)(`Error reading existing bunfig: ${n.message}`),r={}}r.install=r?.install||{},r.install.scopes=r?.install.scopes||{};let i=e.find(n=>!n.scope);i&&(r.install.registry={url:i.url,...i.token?{token:i.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;r.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(r.install.scopes).length===0&&delete r.install.scopes,(0,Zm.writeFileSync)(t,(0,i4.stringify)(r),{encoding:"utf8"})}a(SQe,"writeBunfig");var GQe=Nr(hi());var vp=Nr(hi()),xQe=require("node:console"),Km=require("node:fs"),n4=require("node:path");async function vQe(t,e){let A=new Headers(e?.headers);A.has("User-Agent")||A.set("User-Agent","@oven-sh/setup-bun");let r=await fetch(t,{...e,headers:A});if(!r.ok){let i=await r.text().catch(()=>"");throw new Error(`Failed to fetch url ${t}. (status code: ${r.status}, status text: ${r.statusText})${i?`
${i}`:""}`)}return r}a(vQe,"request");function kQe(t,e){return t.endsWith(e)?t:((0,Km.renameSync)(t,t+e),t+e)}a(kQe,"addExtension");function s4(){let t=process.platform;return t==="win32"?"windows":t}a(s4,"getPlatform");function FQe(t,e){return t==="windows"&&(e==="aarch64"||e==="arm64")?((0,vp.warning)(["\u26A0\uFE0F Bun does not provide native arm64 builds for Windows.","Using x64 baseline build which will run through Microsoft's x64 emulation layer.","This may result in reduced performance and potential compatibility issues.","\u{1F4A1} For best performance, consider using x64 Windows runners or other platforms with native support."].join(`
`)),"x64"):e==="arm64"?"aarch64":e}a(FQe,"getArchitecture");function LQe(t,e,A){return t==="windows"&&(e==="aarch64"||e==="arm64")?!1:A??!0}a(LQe,"getAvx2");var Iut={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function UQe(t){let e=process.env.GITHUB_WORKSPACE;if(!e||!t)return;(0,vp.debug)(`Reading version from ${t}`);let A=(0,n4.resolve)(e,t),r=(0,n4.basename)(t);if(!(0,Km.existsSync)(A)){(0,vp.warning)(`File ${A} not found`);return}let i=Iut[r]??(()=>{}),n;try{if(n=i((0,Km.readFileSync)(A,"utf8"))?.trim(),!n){(0,vp.warning)(`Failed to read version from ${t}`);return}}catch(s){let{message:o}=s;(0,vp.warning)(`Failed to read ${t}: ${o}`)}finally{if(n)return(0,xQe.info)(`Obtained version ${n} from ${t}`),n}}a(UQe,"readVersionFromFile");var Q_=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,$m=a(t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");let e=t.match(Q_);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},"validateAndParse"),TQe=a(t=>t==="*"||t==="x"||t==="X","isWildcard"),MQe=a(t=>{let e=parseInt(t,10);return isNaN(e)?t:e},"tryParse"),yut=a((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],"forceType"),wut=a((t,e)=>{if(TQe(t)||TQe(e))return 0;let[A,r]=yut(MQe(t),MQe(e));return A>r?1:A<r?-1:0},"compareStrings"),Md=a((t,e)=>{for(let A=0;A<Math.max(t.length,e.length);A++){let r=wut(t[A]||"x",e[A]||"x");if(r!==0)return r}return 0},"compareSegments");var uI=a((t,e)=>{let A=$m(t),r=$m(e),i=A.pop(),n=r.pop(),s=Md(A,r);return s!==0?s:i&&n?Md(i.split("."),n.split(".")):i||n?i?-1:1:0},"compareVersions");var OQe=a((t,e,A)=>{but(A);let r=uI(t,e);return PQe[A].includes(r)},"compare"),PQe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},_Qe=Object.keys(PQe),but=a(t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(_Qe.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${_Qe.join("|")}`)},"assertValidOperator");var eC=a((t,e)=>{if(e=e.replace(/([><=]+)\s+/g,"$1"),e.includes("||"))return e.split("||").some(f=>eC(t,f));if(e.includes(" - ")){let[f,B]=e.split(" - ",2);return eC(t,`>=${f} <=${B}`)}else if(e.includes(" "))return e.trim().replace(/\s{2,}/g," ").split(" ").every(f=>eC(t,f));let A=e.match(/^([<>=~^]+)/),r=A?A[1]:"=";if(r!=="^"&&r!=="~")return OQe(t,e,r);let[i,n,s,,o]=$m(t),[c,l,d,,u]=$m(e),p=[i,n??"x",s??"x"],g=[c,l??"x",d??"x"];if(u&&(!o||Md(p,g)!==0||Md(o.split("."),u.split("."))===-1))return!1;let h=g.findIndex(f=>f!=="0")+1,m=r==="~"?2:h>1?h:1;return!(Md(p.slice(0,m),g.slice(0,m))!==0||Md(p.slice(m),g.slice(m))===-1)},"satisfies");var a4=a(t=>typeof t=="string"&&/^[v\d]/.test(t)&&Q_.test(t),"validate");async function qQe(t){let{customUrl:e}=t;return e||await Nut(t)}a(qQe,"getDownloadUrl");async function Nut(t){let A=(await(await vQe("https://api.github.com/repos/oven-sh/bun/git/refs/tags",{headers:t.token?{Authorization:`Bearer ${t.token}`}:{}})).json()).filter(m=>m.ref.startsWith("refs/tags/bun-v")||m.ref==="refs/tags/canary").map(m=>m.ref.replace(/refs\/tags\/(bun-v)?/g,"")).filter(Boolean),{version:r,os:i,arch:n,avx2:s,profile:o}=t,c=A.find(m=>m===r);if(c)a4(c)&&(c=`bun-v${c}`);else{A=A.filter(f=>a4(f)).sort(uI);let m=r==="latest"||!r?A.at(-1):A.filter(f=>eC(f,r)).at(-1);if(!m)throw new Error(`No Bun release found matching version '${r}'`);c=`bun-v${m}`}let l=encodeURIComponent(c??r),d=encodeURIComponent(i??s4()),u=encodeURIComponent(FQe(i??s4(),n??process.arch)),p=encodeURIComponent(LQe(i??s4(),n??process.arch,s)===!1?"-baseline":""),g=encodeURIComponent(o===!0?"-profile":""),{href:h}=new URL(`${l}/bun-${d}-${u}${p}${g}.zip`,"https://github.com/oven-sh/bun/releases/download/");return h}a(Nut,"getSemverDownloadUrl");var JQe=require("node:process");var VQe=a(async t=>{let e=(0,tC.join)((0,JQe.cwd)(),"bunfig.toml");SQe(e,t.registries);let A=await qQe(t),r=Sut(t),i=(0,tC.join)((0,YQe.homedir)(),".bun","bin");try{(0,ma.mkdirSync)(i,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,_d.addPath)(i);let n=a(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,tC.join)(i,n("bun"));try{(0,ma.symlinkSync)(s,(0,tC.join)(i,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let o,c=!1;if(!t.customUrl&&(0,ma.existsSync)(s)){let u=await y_(s);u&&Rut(u,t.version)&&(o=u,c=!0,(0,_d.info)(`Using existing Bun installation: ${o}`))}if(!o){if(r){let u=(0,HQe.createHash)("sha1").update(A).digest("base64");await(0,o4.restoreCache)([s],u)&&(o=await y_(s),o?(c=!0,(0,_d.info)(`Using a cached version of Bun: ${o}`)):(0,_d.warning)(`Found a cached version of Bun: ${o} (but it appears to be corrupted?)`))}c||((0,_d.info)(`Downloading a new version of Bun: ${A}`),o=await Dut(A,s))}if(!o)throw new Error("D Line truncated
`).map(e=>e.trim()).filter(Boolean).map(xut).filter(Boolean):[]}a(WQe,"parseRegistries");function xut(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let A=e[1],r=e[2].trim(),[i,n]=r.split("|",2).map(s=>s?.trim());try{return new URL(i),{url:i,scope:A,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${i}`)}}else{let[A,r]=t.split("|",2).map(i=>i?.trim());try{return new URL(A),{url:A,scope:"",...r&&{token:r}}}catch{throw new Error(`Invalid URL in registry configuration: ${A}`)}}}a(xut,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,jQe.tmpdir)());var XQe=WQe((0,Gr.getInput)("registries")),zQe=(0,Gr.getInput)("registry-url"),vut=(0,Gr.getInput)("scope");zQe&&XQe.push({url:zQe,scope:vut,token:"$BUN_AUTH_TOKEN"});VQe({version:(0,Gr.getInput)("bun-version")||UQe((0,Gr.getInput)("bun-version-file"))||void 0,customUrl:(0,Gr.getInput)("bun-download-url")||void 0,registries:XQe,noCache:(0,Gr.getBooleanInput)("no-cache")||!1,token:(0,Gr.getInput)("token")}).then(({version:t,revision:e,bunPath:A,url:r,cacheHit:i})=>{(0,Gr.setOutput)("bun-version",t),(0,Gr.setOutput)("bun-revision",e),(0,Gr.setOutput)("bun-path",A),(0,Gr.setOutput)("bun-download-url",r),(0,Gr.setOutput)("cache-hit",i),process.exit(0)}).catch(t=>{(0,Gr.setFailed)(t),process.exit(1)});
`,s+=h_(n+".",e,o)}),s}a(Qut,"stringifyArrayOfTables");function But(t,e,A,r){var i=t+r4(A),n="";return BQe(r).length>0&&(n+=e+"["+i+`]
`),n+h_(i+".",e,r)}a(But,"stringifyComplexTable")});var SQe=E(C_=>{"use strict";C_.parse=QQe();C_.stringify=DQe()});var jQe=require("node:os"),Gr=Nr(hi());var HQe=require("node:crypto"),YQe=require("node:os"),tC=require("node:path"),ma=require("node:fs"),_d=Nr(hi()),o4=Nr(Bue()),pI=Nr(Kfe()),I_=Nr(Sg());var Zm=require("node:fs"),f_=Nr(hi()),i4=Nr(SQe());function xQe(t,e){if(!e.length)return;let A=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||A++}),A>1)throw new Error("You can't have more than one global registry.");(0,f_.info)(`Writing bunfig.toml to '${t}'.`);let r={};if((0,Zm.existsSync)(t))try{let n=(0,Zm.readFileSync)(t,{encoding:"utf-8"});r=(0,i4.parse)(n)}catch(n){(0,f_.info)(`Error reading existing bunfig: ${n.message}`),r={}}r.install=r?.install||{},r.install.scopes=r?.install.scopes||{};let i=e.find(n=>!n.scope);i&&(r.install.registry={url:i.url,...i.token?{token:i.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;r.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(r.install.scopes).length===0&&delete r.install.scopes,(0,Zm.writeFileSync)(t,(0,i4.stringify)(r),{encoding:"utf8"})}a(xQe,"writeBunfig");var GQe=Nr(hi());var vp=Nr(hi()),vQe=require("node:console"),Km=require("node:fs"),n4=require("node:path");async function kQe(t,e){let A=new Headers(e?.headers);A.has("User-Agent")||A.set("User-Agent","@oven-sh/setup-bun");let r=await fetch(t,{...e,headers:A});if(!r.ok){let i=await r.text().catch(()=>"");throw new Error(`Failed to fetch url ${t}. (status code: ${r.status}, status text: ${r.statusText})${i?`
${i}`:""}`)}return r}a(kQe,"request");function FQe(t,e){return t.endsWith(e)?t:((0,Km.renameSync)(t,t+e),t+e)}a(FQe,"addExtension");function s4(){let t=process.platform;return t==="win32"?"windows":t}a(s4,"getPlatform");function LQe(t,e){return t==="windows"&&(e==="aarch64"||e==="arm64")?((0,vp.warning)(["\u26A0\uFE0F Bun does not provide native arm64 builds for Windows.","Using x64 baseline build which will run through Microsoft's x64 emulation layer.","This may result in reduced performance and potential compatibility issues.","\u{1F4A1} For best performance, consider using x64 Windows runners or other platforms with native support."].join(`
`)),"x64"):e==="arm64"?"aarch64":e}a(LQe,"getArchitecture");function UQe(t,e,A){return t==="windows"&&(e==="aarch64"||e==="arm64")?!1:A??!0}a(UQe,"getAvx2");var Iut={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function Q_(t,e=!1){let A=process.env.GITHUB_WORKSPACE;if(!A||!t)return;(0,vp.debug)(`Reading version from ${t}`);let r=(0,n4.resolve)(A,t),i=(0,n4.basename)(t);if(!(0,Km.existsSync)(r)){e||(0,vp.warning)(`File ${r} not found`);return}let n=Iut[i]??(()=>{}),s;try{if(s=n((0,Km.readFileSync)(r,"utf8"))?.trim(),!s){e||(0,vp.warning)(`Failed to read version from ${t}`);return}}catch(o){let{message:c}=o;e||(0,vp.warning)(`Failed to read ${t}: ${c}`)}finally{if(s)return(0,vQe.info)(`Obtained version ${s} from ${t}`),s}}a(Q_,"readVersionFromFile");var B_=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,$m=a(t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");let e=t.match(B_);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},"validateAndParse"),TQe=a(t=>t==="*"||t==="x"||t==="X","isWildcard"),MQe=a(t=>{let e=parseInt(t,10);return isNaN(e)?t:e},"tryParse"),yut=a((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],"forceType"),wut=a((t,e)=>{if(TQe(t)||TQe(e))return 0;let[A,r]=yut(MQe(t),MQe(e));return A>r?1:A<r?-1:0},"compareStrings"),Md=a((t,e)=>{for(let A=0;A<Math.max(t.length,e.length);A++){let r=wut(t[A]||"x",e[A]||"x");if(r!==0)return r}return 0},"compareSegments");var uI=a((t,e)=>{let A=$m(t),r=$m(e),i=A.pop(),n=r.pop(),s=Md(A,r);return s!==0?s:i&&n?Md(i.split("."),n.split(".")):i||n?i?-1:1:0},"compareVersions");var OQe=a((t,e,A)=>{but(A);let r=uI(t,e);return PQe[A].includes(r)},"compare"),PQe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},_Qe=Object.keys(PQe),but=a(t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(_Qe.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${_Qe.join("|")}`)},"assertValidOperator");var eC=a((t,e)=>{if(e=e.replace(/([><=]+)\s+/g,"$1"),e.includes("||"))return e.split("||").some(f=>eC(t,f));if(e.includes(" - ")){let[f,B]=e.split(" - ",2);return eC(t,`>=${f} <=${B}`)}else if(e.includes(" "))return e.trim().replace(/\s{2,}/g," ").split(" ").every(f=>eC(t,f));let A=e.match(/^([<>=~^]+)/),r=A?A[1]:"=";if(r!=="^"&&r!=="~")return OQe(t,e,r);let[i,n,s,,o]=$m(t),[c,l,d,,u]=$m(e),p=[i,n??"x",s??"x"],g=[c,l??"x",d??"x"];if(u&&(!o||Md(p,g)!==0||Md(o.split("."),u.split("."))===-1))return!1;let h=g.findIndex(f=>f!=="0")+1,m=r==="~"?2:h>1?h:1;return!(Md(p.slice(0,m),g.slice(0,m))!==0||Md(p.slice(m),g.slice(m))===-1)},"satisfies");var a4=a(t=>typeof t=="string"&&/^[v\d]/.test(t)&&B_.test(t),"validate");async function qQe(t){let{customUrl:e}=t;return e||await Nut(t)}a(qQe,"getDownloadUrl");async function Nut(t){let A=(await(await kQe("https://api.github.com/repos/oven-sh/bun/git/refs/tags",{headers:t.token?{Authorization:`Bearer ${t.token}`}:{}})).json()).filter(m=>m.ref.startsWith("refs/tags/bun-v")||m.ref==="refs/tags/canary").map(m=>m.ref.replace(/refs\/tags\/(bun-v)?/g,"")).filter(Boolean),{version:r,os:i,arch:n,avx2:s,profile:o}=t,c=A.find(m=>m===r);if(c)a4(c)&&(c=`bun-v${c}`);else{A=A.filter(f=>a4(f)).sort(uI);let m=r==="latest"||!r?A.at(-1):A.filter(f=>eC(f,r)).at(-1);if(!m)throw new Error(`No Bun release found matching version '${r}'`);c=`bun-v${m}`}let l=encodeURIComponent(c??r),d=encodeURIComponent(i??s4()),u=encodeURIComponent(LQe(i??s4(),n??process.arch)),p=encodeURIComponent(UQe(i??s4(),n??process.arch,s)===!1?"-baseline":""),g=encodeURIComponent(o===!0?"-profile":""),{href:h}=new URL(`${l}/bun-${d}-${u}${p}${g}.zip`,"https://github.com/oven-sh/bun/releases/download/");return h}a(Nut,"getSemverDownloadUrl");var JQe=require("node:process");var VQe=a(async t=>{let e=(0,tC.join)((0,JQe.cwd)(),"bunfig.toml");xQe(e,t.registries);let A=await qQe(t),r=Sut(t),i=(0,tC.join)((0,YQe.homedir)(),".bun","bin");try{(0,ma.mkdirSync)(i,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,_d.addPath)(i);let n=a(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,tC.join)(i,n("bun"));try{(0,ma.symlinkSync)(s,(0,tC.join)(i,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let o,c=!1;if(!t.customUrl&&(0,ma.existsSync)(s)){let u=await w_(s);u&&Rut(u,t.version)&&(o=u,c=!0,(0,_d.info)(`Using existing Bun installation: ${o}`))}if(!o){if(r){let u=(0,HQe.createHash)("sha1").update(A).digest("base64");await(0,o4.restoreCache)([s],u)&&(o=await w_(s),o?(c=!0,(0,_d.info)(`Using a cached version of Bun: ${o}`)):(0,_d.warning)(`Found a cached version of Bun: ${o} (but it appears to be corrupted?)`))}c||((0,_d.info)(`Downloading a new version of Bun: ${A}`),o=await Dut(A,s))}if(!o)throw Line truncated
`).map(e=>e.trim()).filter(Boolean).map(xut).filter(Boolean):[]}a(WQe,"parseRegistries");function xut(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let A=e[1],r=e[2].trim(),[i,n]=r.split("|",2).map(s=>s?.trim());try{return new URL(i),{url:i,scope:A,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${i}`)}}else{let[A,r]=t.split("|",2).map(i=>i?.trim());try{return new URL(A),{url:A,scope:"",...r&&{token:r}}}catch{throw new Error(`Invalid URL in registry configuration: ${A}`)}}}a(xut,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,jQe.tmpdir)());var XQe=WQe((0,Gr.getInput)("registries")),zQe=(0,Gr.getInput)("registry-url"),vut=(0,Gr.getInput)("scope");zQe&&XQe.push({url:zQe,scope:vut,token:"$BUN_AUTH_TOKEN"});VQe({version:(0,Gr.getInput)("bun-version")||Q_((0,Gr.getInput)("bun-version-file"))||Q_("package.json",!0)||void 0,customUrl:(0,Gr.getInput)("bun-download-url")||void 0,registries:XQe,noCache:(0,Gr.getBooleanInput)("no-cache")||!1,token:(0,Gr.getInput)("token")}).then(({version:t,revision:e,bunPath:A,url:r,cacheHit:i})=>{(0,Gr.setOutput)("bun-version",t),(0,Gr.setOutput)("bun-revision",e),(0,Gr.setOutput)("bun-path",A),(0,Gr.setOutput)("bun-download-url",r),(0,Gr.setOutput)("cache-hit",i),process.exit(0)}).catch(t=>{(0,Gr.setFailed)(t),process.exit(1)});
/*! Bundled license information:
undici/lib/fetch/body.js:
+3 -2
View File
@@ -6,7 +6,7 @@
"packages": {
"": {
"name": "setup-bun",
"version": "2.0.2",
"version": "2.1.0",
"license": "MIT",
"dependencies": {
"@actions/cache": "^4.0.0",
@@ -15,7 +15,8 @@
"@actions/glob": "^0.4.0",
"@actions/io": "^1.1.2",
"@actions/tool-cache": "^2.0.1",
"@iarna/toml": "^2.2.5"
"@iarna/toml": "^2.2.5",
"compare-versions": "^6.1.1"
},
"devDependencies": {
"@types/bun": "^1.1.13",
+1
View File
@@ -26,6 +26,7 @@ runAction({
version:
getInput("bun-version") ||
readVersionFromFile(getInput("bun-version-file")) ||
readVersionFromFile("package.json", true) ||
undefined,
customUrl: getInput("bun-download-url") || undefined,
registries: registries,
+13 -4
View File
@@ -80,7 +80,10 @@ const FILE_VERSION_READERS = {
".bun-version": (content: string) => content,
};
export function readVersionFromFile(file: string): string | undefined {
export function readVersionFromFile(
file: string,
silent = false,
): string | undefined {
const cwd = process.env.GITHUB_WORKSPACE;
if (!cwd) {
return;
@@ -96,7 +99,9 @@ export function readVersionFromFile(file: string): string | undefined {
const base = basename(file);
if (!existsSync(path)) {
warning(`File ${path} not found`);
if (!silent) {
warning(`File ${path} not found`);
}
return;
}
@@ -107,12 +112,16 @@ export function readVersionFromFile(file: string): string | undefined {
output = reader(readFileSync(path, "utf8"))?.trim();
if (!output) {
warning(`Failed to read version from ${file}`);
if (!silent) {
warning(`Failed to read version from ${file}`);
}
return;
}
} catch (error) {
const { message } = error as Error;
warning(`Failed to read ${file}: ${message}`);
if (!silent) {
warning(`Failed to read ${file}: ${message}`);
}
} finally {
if (output) {
info(`Obtained version ${output} from ${file}`);