From af2716fd26cdefda9c1f79c5f892d213784c70e6 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 6 Oct 2023 11:10:45 -0700 Subject: [PATCH 01/12] set prisma to 5.4.1 --- package-lock.json | 70 +++++++++++++++++++++++------------------------ package.json | 6 ++-- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6b36f95..8b9c2ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,12 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@prisma/client": "^5.2.0" + "@prisma/client": "^5.4.1" }, "devDependencies": { "@types/node": "^20.5.7", - "prisma": "^5.2.0", - "prisma-json-types-generator": "^3.0.0-beta.4", + "prisma": "^5.4.1", + "prisma-json-types-generator": "^3.0.1", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" @@ -58,12 +58,12 @@ } }, "node_modules/@prisma/client": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.2.0.tgz", - "integrity": "sha512-AiTjJwR4J5Rh6Z/9ZKrBBLel3/5DzUNntMohOy7yObVnVoTNVFi2kvpLZlFuKO50d7yDspOtW6XBpiAd0BVXbQ==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.4.1.tgz", + "integrity": "sha512-xyD0DJ3gRNfLbPsC+YfMBBuLJtZKQfy1OD2qU/PZg+HKrr7SO+09174LMeTlWP0YF2wca9LxtVd4HnAiB5ketQ==", "hasInstallScript": true, "dependencies": { - "@prisma/engines-version": "5.2.0-25.2804dc98259d2ea960602aca6b8e7fdc03c1758f" + "@prisma/engines-version": "5.4.1-1.2f302df92bd8945e20ad4595a73def5b96afa54f" }, "engines": { "node": ">=16.13" @@ -78,9 +78,9 @@ } }, "node_modules/@prisma/debug": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.16.2.tgz", - "integrity": "sha512-7L7WbG0qNNZYgLpsVB8rCHCXEyHFyIycRlRDNwkVfjQmACC2OW6AWCYCbfdjQhkF/t7+S3njj8wAWAocSs+Brw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-5.2.0.tgz", + "integrity": "sha512-dOrNOA8B65l3dCp2r3gn5A5dbMXNbEixO3JAaMWiS2q03qMU3/R9oNv86H2c1i3GSwQglH5gjwpkA9olp/+h1A==", "dev": true, "dependencies": { "@types/debug": "4.1.8", @@ -89,24 +89,24 @@ } }, "node_modules/@prisma/engines": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.2.0.tgz", - "integrity": "sha512-dT7FOLUCdZmq+AunLqB1Iz+ZH/IIS1Fz2THmKZQ6aFONrQD/BQ5ecJ7g2wGS2OgyUFf4OaLam6/bxmgdOBDqig==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.4.1.tgz", + "integrity": "sha512-vJTdY4la/5V3N7SFvWRmSMUh4mIQnyb/MNoDjzVbh9iLmEC+uEykj/1GPviVsorvfz7DbYSQC4RiwmlEpTEvGA==", "devOptional": true, "hasInstallScript": true }, "node_modules/@prisma/engines-version": { - "version": "5.2.0-25.2804dc98259d2ea960602aca6b8e7fdc03c1758f", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.2.0-25.2804dc98259d2ea960602aca6b8e7fdc03c1758f.tgz", - "integrity": "sha512-jsnKT5JIDIE01lAeCj2ghY9IwxkedhKNvxQeoyLs6dr4ZXynetD0vTy7u6wMJt8vVPv8I5DPy/I4CFaoXAgbtg==" + "version": "5.4.1-1.2f302df92bd8945e20ad4595a73def5b96afa54f", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.4.1-1.2f302df92bd8945e20ad4595a73def5b96afa54f.tgz", + "integrity": "sha512-+nUQM/y8C+1GG5Ioeqcu6itFslCfxvQSAUVSMC9XM2G2Fcq0F4Afnp6m0pXF6X6iUBWen7jZBPmM9Qlq4Nr3/A==" }, "node_modules/@prisma/generator-helper": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.16.2.tgz", - "integrity": "sha512-bMOH7y73Ui7gpQrioFeavMQA+Tf8ksaVf8Nhs9rQNzuSg8SSV6E9baczob0L5KGZTSgYoqnrRxuo03kVJYrnIg==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-5.2.0.tgz", + "integrity": "sha512-jju+nGe8IgwDhs412sx6PSk5efkuoBqHOJSqbRBb9Y/fMfeDRGLVdwia8Hj+PKmd/YXrqFgBd4NDeFxeCcVVqw==", "dev": true, "dependencies": { - "@prisma/debug": "4.16.2", + "@prisma/debug": "5.2.0", "@types/cross-spawn": "6.0.2", "cross-spawn": "7.0.3", "kleur": "4.1.5" @@ -155,9 +155,9 @@ } }, "node_modules/@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", + "version": "0.7.32", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.32.tgz", + "integrity": "sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==", "dev": true }, "node_modules/@types/node": { @@ -306,13 +306,13 @@ } }, "node_modules/prisma": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.2.0.tgz", - "integrity": "sha512-FfFlpjVCkZwrqxDnP4smlNYSH1so+CbfjgdpioFzGGqlQAEm6VHAYSzV7jJgC3ebtY9dNOhDMS2+4/1DDSM7bQ==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.4.1.tgz", + "integrity": "sha512-op9PmU8Bcw5dNAas82wBYTG0yHnpq9/O3bhxbDBrNzwZTwBqsVCxxYRLf6wHNh9HVaDGhgjjHlu1+BcW8qdnBg==", "devOptional": true, "hasInstallScript": true, "dependencies": { - "@prisma/engines": "5.2.0" + "@prisma/engines": "5.4.1" }, "bin": { "prisma": "build/index.js" @@ -322,13 +322,13 @@ } }, "node_modules/prisma-json-types-generator": { - "version": "3.0.0-beta.4", - "resolved": "https://registry.npmjs.org/prisma-json-types-generator/-/prisma-json-types-generator-3.0.0-beta.4.tgz", - "integrity": "sha512-E4p6BsUigdHVwnvpTNAuO1Msh2f82lumuq9nerVWZF+ZLiwE6xPnycJV9j8Hjdoh5CMi+V0rwlU866U0XKIFTw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/prisma-json-types-generator/-/prisma-json-types-generator-3.0.1.tgz", + "integrity": "sha512-OKQunPOZ5RxRI450VFJqhWpGQQwHoyNTfvYHaUK9/sdf/J/GBvO2KjVk8V9vuYT/VPtyh66+BD3iWqgLTCr8Ag==", "dev": true, "dependencies": { - "@prisma/generator-helper": "4.16.2", - "tslib": "2.6.0" + "@prisma/generator-helper": "5.2.0", + "tslib": "2.6.2" }, "bin": { "prisma-json-types-generator": "index.js" @@ -444,9 +444,9 @@ } }, "node_modules/tslib": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", - "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, "node_modules/typescript": { diff --git a/package.json b/package.json index 876ee11..96892de 100644 --- a/package.json +++ b/package.json @@ -11,14 +11,14 @@ "license": "ISC", "devDependencies": { "@types/node": "^20.5.7", - "prisma": "^5.2.0", - "prisma-json-types-generator": "^3.0.0-beta.4", + "prisma": "^5.4.1", + "prisma-json-types-generator": "^3.0.1", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" }, "dependencies": { - "@prisma/client": "^5.2.0" + "@prisma/client": "^5.4.1" }, "prisma": { "seed": "ts-node --require tsconfig-paths/register prisma/seed.ts" From f4f78165f98959d0adf88efdfe4cdb1917752333 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 6 Oct 2023 11:11:28 -0700 Subject: [PATCH 02/12] run build on PRs --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index df5385f..c005fdd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: jobs: From 26524c3fbb3b645af99fd18446660b1a33386d96 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 6 Oct 2023 11:22:55 -0700 Subject: [PATCH 03/12] try 5.0.0 --- package-lock.json | 227 +++--------------------------------------- package.json | 5 +- prisma/dev.db | Bin 0 -> 28672 bytes prisma/dev.db-journal | Bin 0 -> 8720 bytes prisma/schema.prisma | 4 - 5 files changed, 18 insertions(+), 218 deletions(-) create mode 100644 prisma/dev.db create mode 100644 prisma/dev.db-journal diff --git a/package-lock.json b/package-lock.json index 8b9c2ad..7bd83ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,11 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@prisma/client": "^5.4.1" + "@prisma/client": "5.0.0" }, "devDependencies": { "@types/node": "^20.5.7", - "prisma": "^5.4.1", - "prisma-json-types-generator": "^3.0.1", + "prisma": "5.0.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" @@ -58,12 +57,12 @@ } }, "node_modules/@prisma/client": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.4.1.tgz", - "integrity": "sha512-xyD0DJ3gRNfLbPsC+YfMBBuLJtZKQfy1OD2qU/PZg+HKrr7SO+09174LMeTlWP0YF2wca9LxtVd4HnAiB5ketQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.0.0.tgz", + "integrity": "sha512-XlO5ELNAQ7rV4cXIDJUNBEgdLwX3pjtt9Q/RHqDpGf43szpNJx2hJnggfFs7TKNx0cOFsl6KJCSfqr5duEU/bQ==", "hasInstallScript": true, "dependencies": { - "@prisma/engines-version": "5.4.1-1.2f302df92bd8945e20ad4595a73def5b96afa54f" + "@prisma/engines-version": "4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584" }, "engines": { "node": ">=16.13" @@ -77,40 +76,17 @@ } } }, - "node_modules/@prisma/debug": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-5.2.0.tgz", - "integrity": "sha512-dOrNOA8B65l3dCp2r3gn5A5dbMXNbEixO3JAaMWiS2q03qMU3/R9oNv86H2c1i3GSwQglH5gjwpkA9olp/+h1A==", - "dev": true, - "dependencies": { - "@types/debug": "4.1.8", - "debug": "4.3.4", - "strip-ansi": "6.0.1" - } - }, "node_modules/@prisma/engines": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.4.1.tgz", - "integrity": "sha512-vJTdY4la/5V3N7SFvWRmSMUh4mIQnyb/MNoDjzVbh9iLmEC+uEykj/1GPviVsorvfz7DbYSQC4RiwmlEpTEvGA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.0.0.tgz", + "integrity": "sha512-kyT/8fd0OpWmhAU5YnY7eP31brW1q1YrTGoblWrhQJDiN/1K+Z8S1kylcmtjqx5wsUGcP1HBWutayA/jtyt+sg==", "devOptional": true, "hasInstallScript": true }, "node_modules/@prisma/engines-version": { - "version": "5.4.1-1.2f302df92bd8945e20ad4595a73def5b96afa54f", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.4.1-1.2f302df92bd8945e20ad4595a73def5b96afa54f.tgz", - "integrity": "sha512-+nUQM/y8C+1GG5Ioeqcu6itFslCfxvQSAUVSMC9XM2G2Fcq0F4Afnp6m0pXF6X6iUBWen7jZBPmM9Qlq4Nr3/A==" - }, - "node_modules/@prisma/generator-helper": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-5.2.0.tgz", - "integrity": "sha512-jju+nGe8IgwDhs412sx6PSk5efkuoBqHOJSqbRBb9Y/fMfeDRGLVdwia8Hj+PKmd/YXrqFgBd4NDeFxeCcVVqw==", - "dev": true, - "dependencies": { - "@prisma/debug": "5.2.0", - "@types/cross-spawn": "6.0.2", - "cross-spawn": "7.0.3", - "kleur": "4.1.5" - } + "version": "4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584.tgz", + "integrity": "sha512-HHiUF6NixsldsP3JROq07TYBLEjXFKr6PdH8H4gK/XAoTmIplOJBCgrIUMrsRAnEuGyRoRLXKXWUb943+PFoKQ==" }, "node_modules/@tsconfig/node10": { "version": "1.0.9", @@ -136,30 +112,6 @@ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", "dev": true }, - "node_modules/@types/cross-spawn": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.2.tgz", - "integrity": "sha512-KuwNhp3eza+Rhu8IFI5HUXRP0LIhqH5cAjubUvGXXthh4YYBuP2ntwEX+Cz8GJoZUHlKo247wPWOfA9LYEq4cw==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/debug": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", - "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", - "dev": true, - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/ms": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.32.tgz", - "integrity": "sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==", - "dev": true - }, "node_modules/@types/node": { "version": "20.5.7", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.7.tgz", @@ -187,15 +139,6 @@ "node": ">=0.4.0" } }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", @@ -208,37 +151,6 @@ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -248,12 +160,6 @@ "node": ">=0.3.1" } }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -266,15 +172,6 @@ "node": ">=6" } }, - "node_modules/kleur": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", @@ -290,29 +187,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/prisma": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.4.1.tgz", - "integrity": "sha512-op9PmU8Bcw5dNAas82wBYTG0yHnpq9/O3bhxbDBrNzwZTwBqsVCxxYRLf6wHNh9HVaDGhgjjHlu1+BcW8qdnBg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.0.0.tgz", + "integrity": "sha512-KYWk83Fhi1FH59jSpavAYTt2eoMVW9YKgu8ci0kuUnt6Dup5Qy47pcB4/TLmiPAbhGrxxSz7gsSnJcCmkyPANA==", "devOptional": true, "hasInstallScript": true, "dependencies": { - "@prisma/engines": "5.4.1" + "@prisma/engines": "5.0.0" }, "bin": { "prisma": "build/index.js" @@ -321,62 +203,6 @@ "node": ">=16.13" } }, - "node_modules/prisma-json-types-generator": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/prisma-json-types-generator/-/prisma-json-types-generator-3.0.1.tgz", - "integrity": "sha512-OKQunPOZ5RxRI450VFJqhWpGQQwHoyNTfvYHaUK9/sdf/J/GBvO2KjVk8V9vuYT/VPtyh66+BD3iWqgLTCr8Ag==", - "dev": true, - "dependencies": { - "@prisma/generator-helper": "5.2.0", - "tslib": "2.6.2" - }, - "bin": { - "prisma-json-types-generator": "index.js" - }, - "engines": { - "node": ">=14.0" - }, - "funding": { - "url": "https://github.com/ArthurFiorette/prisma-json-types-generator?sponsor=1" - }, - "peerDependencies": { - "prisma": "^5.1", - "typescript": "^5.1" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -443,12 +269,6 @@ "node": ">=6" } }, - "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "dev": true - }, "node_modules/typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", @@ -468,21 +288,6 @@ "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", diff --git a/package.json b/package.json index 96892de..fd5e4d4 100644 --- a/package.json +++ b/package.json @@ -11,14 +11,13 @@ "license": "ISC", "devDependencies": { "@types/node": "^20.5.7", - "prisma": "^5.4.1", - "prisma-json-types-generator": "^3.0.1", + "prisma": "5.0.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" }, "dependencies": { - "@prisma/client": "^5.4.1" + "@prisma/client": "5.0.0" }, "prisma": { "seed": "ts-node --require tsconfig-paths/register prisma/seed.ts" diff --git a/prisma/dev.db b/prisma/dev.db new file mode 100644 index 0000000000000000000000000000000000000000..fb32b2cad53e47d9a4e8e12b26b51f9670954e19 GIT binary patch literal 28672 zcmeI(&u-&H90zcF+oq7+s9dTXxQu)u(QZ*3JAZtFY%;9^snd0Au|-H`l8m=joj)5p z5@=5a!GQe8SlqRVV5?r=?N13!9&x~h2^BYS})4_{gm~axz788~b zLwQe8Rpnzs6h+w=`B3C_lE*Tyle+%pZ+`A89|pe_j{Z<`k3UihKOg;6ID7K@;~&KV z5(FRs0SG_<0uX=z1l~RYFPAHpkJUHfbj-iSPiAHF$xOgQOvXYY?)lm7TtSBwyMzX z+XL5WiD9oM%W z?zUZ7+DzsaJcB@14<%|7X@#$0bGR2KwN8$;{kNN8*pN{y};lT#^*2&V8P53j> zvV8MoFI}*kH))@8g=OB~Xq_(nzgw_XeB8TWaxAOW%9p?WTsB{iJejX|#(W-yqN6zB^VlEFmU5?&+YRj50}=PMv)f@MUv59j6+hEe zCB5fl5h?b@EIsyj7tYsr%l5>r_8obkW(ZpkWwIW>j_4 zV#e6yd}x~Wnx&gYtx_?qplXfl&9PZC0&C38QL|oSR%NJHo6KZ^-c)}$|MkmHs+Foy zX&SnGuQhz}`AU+W=;p<|)T3V%@j`+C1Rwwb2tWV=5P$##AOHafK;SJC_+ZcbM;|Z9 zzyFIb{UbpD0uX=z1Rwwb2tWV=5P$##An&Z-GAn`|Osd literal 0 HcmV?d00001 diff --git a/prisma/dev.db-journal b/prisma/dev.db-journal new file mode 100644 index 0000000000000000000000000000000000000000..a2b0c07fe83a31871656a321e714edf72bb5fd03 GIT binary patch literal 8720 zcmeI$J#GRq5Cvc_5{iO^NSh;2EV4c0pDA(xiqKJmjcsWgDn!3+?!t+B**h^zPHUECrTAFbQIk^n6unEL zv#~L8Y9?B3Nk=k&+l9k$9xmO__x-qCe|^TO+W#LweLS=zjzItd5P$##AOHafKmY;| PfB*y_@MHqJ-EH#=aNj0} literal 0 HcmV?d00001 diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 46c0208..a304301 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -7,10 +7,6 @@ generator client { previewFeatures = ["postgresqlExtensions"] } -generator json { - provider = "prisma-json-types-generator" -} - datasource db { provider = "postgres" url = env("DATABASE_URL") From 1eb7a91b7bf49ea5b54642e417e1fdb0fe0aae96 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 6 Oct 2023 11:30:33 -0700 Subject: [PATCH 04/12] try 5.1.0 --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7bd83ca..f8100c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,11 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@prisma/client": "5.0.0" + "@prisma/client": "5.1.0" }, "devDependencies": { "@types/node": "^20.5.7", - "prisma": "5.0.0", + "prisma": "5.1.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" @@ -57,12 +57,12 @@ } }, "node_modules/@prisma/client": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.0.0.tgz", - "integrity": "sha512-XlO5ELNAQ7rV4cXIDJUNBEgdLwX3pjtt9Q/RHqDpGf43szpNJx2hJnggfFs7TKNx0cOFsl6KJCSfqr5duEU/bQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.1.0.tgz", + "integrity": "sha512-aIxuXlH3p3Vy91buodQhYgAD9m0yuxJzpXMhc1ejQ/WN3pNNWzBA0iDcBObLq8DMdszcXmoLAk3hiRq/ZwBsOw==", "hasInstallScript": true, "dependencies": { - "@prisma/engines-version": "4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584" + "@prisma/engines-version": "5.1.0-28.a9b7003df90aa623086e4d6f4e43c72468e6339b" }, "engines": { "node": ">=16.13" @@ -77,16 +77,16 @@ } }, "node_modules/@prisma/engines": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.0.0.tgz", - "integrity": "sha512-kyT/8fd0OpWmhAU5YnY7eP31brW1q1YrTGoblWrhQJDiN/1K+Z8S1kylcmtjqx5wsUGcP1HBWutayA/jtyt+sg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.1.0.tgz", + "integrity": "sha512-HqaFsnPmZOdMWkPq6tT2eTVTQyaAXEDdKszcZ4yc7DGMBIYRP6j/zAJTtZUG9SsMV8FaucdL5vRyxY/p5Ni28g==", "devOptional": true, "hasInstallScript": true }, "node_modules/@prisma/engines-version": { - "version": "4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584.tgz", - "integrity": "sha512-HHiUF6NixsldsP3JROq07TYBLEjXFKr6PdH8H4gK/XAoTmIplOJBCgrIUMrsRAnEuGyRoRLXKXWUb943+PFoKQ==" + "version": "5.1.0-28.a9b7003df90aa623086e4d6f4e43c72468e6339b", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.1.0-28.a9b7003df90aa623086e4d6f4e43c72468e6339b.tgz", + "integrity": "sha512-jTwE2oy1yjICmTfnCR0ASIpuMZXZ18sUzQXB7V0RMbrM9OlcmbUwXPuYhnxXuWN8XwRmujeIhsXs/Zeh+fjPOQ==" }, "node_modules/@tsconfig/node10": { "version": "1.0.9", @@ -188,13 +188,13 @@ } }, "node_modules/prisma": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.0.0.tgz", - "integrity": "sha512-KYWk83Fhi1FH59jSpavAYTt2eoMVW9YKgu8ci0kuUnt6Dup5Qy47pcB4/TLmiPAbhGrxxSz7gsSnJcCmkyPANA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.1.0.tgz", + "integrity": "sha512-wkXvh+6wxk03G8qwpZMOed4Y3j+EQ+bMTlvbDZHeal6k1E8QuGKzRO7DRXlE1NV0WNgOAas8kwZqcLETQ2+BiQ==", "devOptional": true, "hasInstallScript": true, "dependencies": { - "@prisma/engines": "5.0.0" + "@prisma/engines": "5.1.0" }, "bin": { "prisma": "build/index.js" diff --git a/package.json b/package.json index fd5e4d4..e632b5b 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,13 @@ "license": "ISC", "devDependencies": { "@types/node": "^20.5.7", - "prisma": "5.0.0", + "prisma": "5.1.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" }, "dependencies": { - "@prisma/client": "5.0.0" + "@prisma/client": "5.1.0" }, "prisma": { "seed": "ts-node --require tsconfig-paths/register prisma/seed.ts" From 3d507169089df89038b73e7804dea639d2af60db Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Wed, 11 Oct 2023 17:18:40 -0700 Subject: [PATCH 05/12] heresy: patch-package to remove the dot --- package-lock.json | 575 ++++++++++++++++++++++++++++ package.json | 4 +- patches/@prisma+client+5.1.0.patch | 26 ++ patches/@prisma+engines+5.1.0.patch | 13 + 4 files changed, 617 insertions(+), 1 deletion(-) create mode 100644 patches/@prisma+client+5.1.0.patch create mode 100644 patches/@prisma+engines+5.1.0.patch diff --git a/package-lock.json b/package-lock.json index f8100c7..3fccdc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,12 +7,14 @@ "": { "name": "prisma-20905", "version": "1.0.0", + "hasInstallScript": true, "license": "ISC", "dependencies": { "@prisma/client": "5.1.0" }, "devDependencies": { "@types/node": "^20.5.7", + "patch-package": "^8.0.0", "prisma": "5.1.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", @@ -118,6 +120,12 @@ "integrity": "sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==", "dev": true }, + "node_modules/@yarnpkg/lockfile": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", + "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", + "dev": true + }, "node_modules/acorn": { "version": "8.10.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", @@ -139,18 +147,139 @@ "node": ">=0.4.0" } }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -160,6 +289,153 @@ "node": ">=0.3.1" } }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-yarn-workspace-root": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", + "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", + "dev": true, + "dependencies": { + "micromatch": "^4.0.2" + } + }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/json-stable-stringify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", + "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", + "dev": true, + "dependencies": { + "jsonify": "^0.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -172,12 +448,79 @@ "node": ">=6" } }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.11" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", @@ -187,6 +530,100 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/patch-package": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", + "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", + "dev": true, + "dependencies": { + "@yarnpkg/lockfile": "^1.1.0", + "chalk": "^4.1.2", + "ci-info": "^3.7.0", + "cross-spawn": "^7.0.3", + "find-yarn-workspace-root": "^2.0.0", + "fs-extra": "^9.0.0", + "json-stable-stringify": "^1.0.2", + "klaw-sync": "^6.0.0", + "minimist": "^1.2.6", + "open": "^7.4.2", + "rimraf": "^2.6.3", + "semver": "^7.5.3", + "slash": "^2.0.0", + "tmp": "^0.0.33", + "yaml": "^2.2.2" + }, + "bin": { + "patch-package": "index.js" + }, + "engines": { + "node": ">=14", + "npm": ">5" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/prisma": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.1.0.tgz", @@ -203,6 +640,63 @@ "node": ">=16.13" } }, + "node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -212,6 +706,42 @@ "node": ">=4" } }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/ts-node": { "version": "10.9.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", @@ -282,12 +812,57 @@ "node": ">=14.17" } }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz", + "integrity": "sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", diff --git a/package.json b/package.json index e632b5b..89a269b 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,15 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "postinstall": "patch-package" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@types/node": "^20.5.7", + "patch-package": "^8.0.0", "prisma": "5.1.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", diff --git a/patches/@prisma+client+5.1.0.patch b/patches/@prisma+client+5.1.0.patch new file mode 100644 index 0000000..6f71f2b --- /dev/null +++ b/patches/@prisma+client+5.1.0.patch @@ -0,0 +1,26 @@ +diff --git a/node_modules/@prisma/client/runtime/binary.js b/node_modules/@prisma/client/runtime/binary.js +index 77e07fc..20eac9c 100644 +--- a/node_modules/@prisma/client/runtime/binary.js ++++ b/node_modules/@prisma/client/runtime/binary.js +@@ -57,7 +57,7 @@ ${r.count} ${r.noun} ${r.is} pending: + ${A.format(t)} + `.trim())}};Fp.exports=Xu});var vp=I((jV,qp)=>{"use strict";var{kProxy:Kx,kClose:Vx,kDestroy:Ox,kInterceptors:Hx}=me(),{URL:xp}=require("url"),Lp=mo(),Wx=qn(),_x=go(),{InvalidArgumentError:ko,RequestAbortedError:jx}=le(),Tp=co(),bo=Symbol("proxy agent"),qa=Symbol("proxy client"),va=Symbol("proxy headers"),$u=Symbol("request tls settings"),Zx=Symbol("proxy tls settings"),Up=Symbol("connect endpoint function");function zx(e){return e==="https:"?443:80}function Xx(e){if(typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ko("Proxy opts.uri is mandatory");return{uri:e.uri,protocol:e.protocol||"https"}}function $x(e,A){return new Wx(e,A)}var eC=class extends _x{constructor(A){if(super(A),this[Kx]=Xx(A),this[bo]=new Lp(A),this[Hx]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A=="string"&&(A={uri:A}),!A||!A.uri)throw new ko("Proxy opts.uri is mandatory");let{clientFactory:t=$x}=A;if(typeof t!="function")throw new ko("Proxy opts.clientFactory must be a function.");if(this[$u]=A.requestTls,this[Zx]=A.proxyTls,this[va]=A.headers||{},A.auth&&A.token)throw new ko("opts.auth cannot be used in combination with opts.token");A.auth?this[va]["proxy-authorization"]=`Basic ${A.auth}`:A.token&&(this[va]["proxy-authorization"]=A.token);let r=new xp(A.uri),{origin:n,port:i,host:o}=r,s=Tp({...A.proxyTls});this[Up]=Tp({...A.requestTls}),this[qa]=t(r,{connect:s}),this[bo]=new Lp({...A,connect:async(a,g)=>{let c=a.host;a.port||(c+=`:${zx(a.protocol)}`);try{let{socket:l,statusCode:u}=await this[qa].connect({origin:n,port:i,path:c,signal:a.signal,headers:{...this[va],host:o}});if(u!==200&&(l.on("error",()=>{}).destroy(),g(new jx("Proxy response !== 200 when HTTP Tunneling"))),a.protocol!=="https:"){g(null,l);return}let C;this[$u]?C=this[$u].servername:C=a.servername,this[Up]({...a,servername:C,httpSocket:l},g)}catch(l){g(l)}}})}dispatch(A,t){let{host:r}=new xp(A.origin),n=eL(A.headers);return AL(n),this[bo].dispatch({...A,headers:{...n,host:r}},t)}async[Vx](){await this[bo].close(),await this[qa].close()}async[Ox](){await this[bo].destroy(),await this[qa].destroy()}};function eL(e){if(Array.isArray(e)){let A={};for(let t=0;tt.toLowerCase()==="proxy-authorization"))throw new ko("Proxy-Authorization should be sent in ProxyAgent constructor")}qp.exports=eC});var On=I((ZV,Gp)=>{"use strict";var Pp=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:tL}=le(),rL=mo();Yp()===void 0&&Jp(new rL);function Jp(e){if(!e||typeof e.dispatch!="function")throw new tL("Argument agent must implement Agent");Object.defineProperty(globalThis,Pp,{value:e,writable:!0,enumerable:!1,configurable:!1})}function Yp(){return globalThis[Pp]}Gp.exports={setGlobalDispatcher:Jp,getGlobalDispatcher:Yp}});var Vp=I((XV,Kp)=>{"use strict";Kp.exports=class{constructor(A){this.handler=A}onConnect(...A){return this.handler.onConnect(...A)}onError(...A){return this.handler.onError(...A)}onUpgrade(...A){return this.handler.onUpgrade(...A)}onHeaders(...A){return this.handler.onHeaders(...A)}onData(...A){return this.handler.onData(...A)}onComplete(...A){return this.handler.onComplete(...A)}onBodySent(...A){return this.handler.onBodySent(...A)}}});var Vr=I(($V,_p)=>{"use strict";var{kHeadersList:QA}=me(),{kGuard:Kr}=Mt(),{kEnumerableProperty:mt}=_(),{makeIterator:AC,isValidHeaderName:No,isValidHeaderValue:Op}=YA(),{webidl:J}=gA(),nL=require("assert"),BA=Symbol("headers map"),fA=Symbol("headers map sorted");function Hp(e){let A=e.length;for(;/[\r\n\t ]/.test(e.charAt(--A)););return e.slice(0,A+1).replace(/^[\r\n\t ]+/,"")}function Wp(e,A){if(Array.isArray(A))for(let t of A){if(t.length!==2)throw J.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${t.length}.`});e.append(t[0],t[1])}else if(typeof A=="object"&&A!==null)for(let[t,r]of Object.entries(A))e.append(t,r);else throw J.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})}var Hn=class{constructor(A){gE(this,"cookies",null);A instanceof Hn?(this[BA]=new Map(A[BA]),this[fA]=A[fA],this.cookies=A.cookies):(this[BA]=new Map(A),this[fA]=null)}contains(A){return A=A.toLowerCase(),this[BA].has(A)}clear(){this[BA].clear(),this[fA]=null,this.cookies=null}append(A,t){this[fA]=null;let r=A.toLowerCase(),n=this[BA].get(r);if(n){let i=r==="cookie"?"; ":", ";this[BA].set(r,{name:n.name,value:`${n.value}${i}${t}`})}else this[BA].set(r,{name:A,value:t});r==="set-cookie"&&(this.cookies??(this.cookies=[]),this.cookies.push(t))}set(A,t){this[fA]=null;let r=A.toLowerCase();return r==="set-cookie"&&(this.cookies=[t]),this[BA].set(r,{name:A,value:t})}delete(A){return this[fA]=null,A=A.toLowerCase(),A==="set-cookie"&&(this.cookies=null),this[BA].delete(A)}get(A){return this.contains(A)?this[BA].get(A.toLowerCase())?.value??null:null}*[Symbol.iterator](){for(let[A,{value:t}]of this[BA])yield[A,t]}get entries(){let A={};if(this[BA].size)for(let{name:t,value:r}of this[BA].values())A[t]=r;return A}},Ye=class{constructor(A=void 0){this[QA]=new Hn,this[Kr]="none",A!==void 0&&(A=J.converters.HeadersInit(A),Wp(this,A))}append(A,t){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,2,{header:"Headers.append"}),A=J.converters.ByteString(A),t=J.converters.ByteString(t),t=Hp(t),No(A)){if(!Op(t))throw J.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"})}else throw J.errors.invalidArgument({prefix:"Headers.append",value:A,type:"header name"});if(this[Kr]==="immutable")throw new TypeError("immutable");return this[Kr],this[QA].append(A,t)}delete(A){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),A=J.converters.ByteString(A),!No(A))throw J.errors.invalidArgument({prefix:"Headers.delete",value:A,type:"header name"});if(this[Kr]==="immutable")throw new TypeError("immutable");if(this[Kr],!!this[QA].contains(A))return this[QA].delete(A)}get(A){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.get"}),A=J.converters.ByteString(A),!No(A))throw J.errors.invalidArgument({prefix:"Headers.get",value:A,type:"header name"});return this[QA].get(A)}has(A){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.has"}),A=J.converters.ByteString(A),!No(A))throw J.errors.invalidArgument({prefix:"Headers.has",value:A,type:"header name"});return this[QA].contains(A)}set(A,t){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,2,{header:"Headers.set"}),A=J.converters.ByteString(A),t=J.converters.ByteString(t),t=Hp(t),No(A)){if(!Op(t))throw J.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}else throw J.errors.invalidArgument({prefix:"Headers.set",value:A,type:"header name"});if(this[Kr]==="immutable")throw new TypeError("immutable");return this[Kr],this[QA].set(A,t)}getSetCookie(){J.brandCheck(this,Ye);let A=this[QA].cookies;return A?[...A]:[]}get[fA](){if(this[QA][fA])return this[QA][fA];let A=[],t=[...this[QA]].sort((n,i)=>n[0][...this[fA].values()],"Headers","key")}values(){return J.brandCheck(this,Ye),AC(()=>[...this[fA].values()],"Headers","value")}entries(){return J.brandCheck(this,Ye),AC(()=>[...this[fA].values()],"Headers","key+value")}forEach(A,t=globalThis){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),typeof A!="function")throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(let[r,n]of this)A.apply(t,[n,r,this])}[Symbol.for("nodejs.util.inspect.custom")](){return J.brandCheck(this,Ye),this[QA]}};Ye.prototype[Symbol.iterator]=Ye.prototype.entries;Object.defineProperties(Ye.prototype,{append:mt,delete:mt,get:mt,has:mt,set:mt,getSetCookie:mt,keys:mt,values:mt,entries:mt,forEach:mt,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}});J.converters.HeadersInit=function(e){if(J.util.Type(e)==="Object")return e[Symbol.iterator]?J.converters["sequence>"](e):J.converters["record"](e);throw J.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};_p.exports={fill:Wp,Headers:Ye,HeadersList:Hn}});var Ga=I((AO,Am)=>{"use strict";var{Headers:iL,HeadersList:jp,fill:oL}=Vr(),{extractBody:Zp,cloneBody:sL,mixinBody:aL}=so(),nC=_(),{kEnumerableProperty:xA}=nC,{isValidReasonPhrase:gL,isCancelled:cL,isAborted:lL,isBlobLike:uL,serializeJavascriptValueToJSONString:CL,isErrorLike:EL,isomorphicEncode:hL}=YA(),{redirectStatus:IL,nullBodyStatus:dL,DOMException:QL}=rr(),{kState:Qe,kHeaders:Ge,kGuard:Wn,kRealm:MA}=Mt(),{webidl:v}=gA(),{FormData:BL}=ia(),{getGlobalOrigin:fL}=no(),{URLSerializer:zp}=tt(),{kHeadersList:tC}=me(),iC=require("assert"),{types:rC}=require("util"),$p=globalThis.ReadableStream||require("stream/web").ReadableStream,Re=class{static error(){let A={settingsObject:{}},t=new Re;return t[Qe]=Ja(),t[MA]=A,t[Ge][tC]=t[Qe].headersList,t[Ge][Wn]="immutable",t[Ge][MA]=A,t}static json(A=void 0,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"}),t!==null&&(t=v.converters.ResponseInit(t));let r=new TextEncoder("utf-8").encode(CL(A)),n=Zp(r),i={settingsObject:{}},o=new Re;return o[MA]=i,o[Ge][Wn]="response",o[Ge][MA]=i,Xp(o,t,{body:n[0],type:"application/json"}),o}static redirect(A,t=302){let r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),A=v.converters.USVString(A),t=v.converters["unsigned short"](t);let n;try{n=new URL(A,fL())}catch(s){throw Object.assign(new TypeError("Failed to parse URL from "+A),{cause:s})}if(!IL.includes(t))throw new RangeError("Invalid status code "+t);let i=new Re;i[MA]=r,i[Ge][Wn]="immutable",i[Ge][MA]=r,i[Qe].status=t;let o=hL(zp(n));return i[Qe].headersList.append("location",o),i}constructor(A=null,t={}){A!==null&&(A=v.converters.BodyInit(A)),t=v.converters.ResponseInit(t),this[MA]={settingsObject:{}},this[Qe]=Ya({}),this[Ge]=new iL,this[Ge][Wn]="response",this[Ge][tC]=this[Qe].headersList,this[Ge][MA]=this[MA];let r=null;if(A!=null){let[n,i]=Zp(A);r={body:n,type:i}}Xp(this,t,r)}get type(){return v.brandCheck(this,Re),this[Qe].type}get url(){v.brandCheck(this,Re);let A=this[Qe].urlList,t=A[A.length-1]??null;return t===null?"":zp(t,!0)}get redirected(){return v.brandCheck(this,Re),this[Qe].urlList.length>1}get status(){return v.brandCheck(this,Re),this[Qe].status}get ok(){return v.brandCheck(this,Re),this[Qe].status>=200&&this[Qe].status<=299}get statusText(){return v.brandCheck(this,Re),this[Qe].statusText}get headers(){return v.brandCheck(this,Re),this[Ge]}get body(){return v.brandCheck(this,Re),this[Qe].body?this[Qe].body.stream:null}get bodyUsed(){return v.brandCheck(this,Re),!!this[Qe].body&&nC.isDisturbed(this[Qe].body.stream)}clone(){if(v.brandCheck(this,Re),this.bodyUsed||this.body&&this.body.locked)throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let A=oC(this[Qe]),t=new Re;return t[Qe]=A,t[MA]=this[MA],t[Ge][tC]=A.headersList,t[Ge][Wn]=this[Ge][Wn],t[Ge][MA]=this[Ge][MA],t}};aL(Re);Object.defineProperties(Re.prototype,{type:xA,url:xA,status:xA,ok:xA,redirected:xA,statusText:xA,headers:xA,clone:xA,body:xA,bodyUsed:xA,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Re,{json:xA,redirect:xA,error:xA});function oC(e){if(e.internalResponse)return em(oC(e.internalResponse),e.type);let A=Ya({...e,body:null});return e.body!=null&&(A.body=sL(e.body)),A}function Ya(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new jp(e.headersList):new jp,urlList:e.urlList?[...e.urlList]:[]}}function Ja(e){let A=EL(e);return Ya({type:"error",status:0,error:A?e:new Error(e&&String(e)),aborted:e&&e.name==="AbortError"})}function Pa(e,A){return A={internalResponse:e,...A},new Proxy(e,{get(t,r){return r in A?A[r]:t[r]},set(t,r,n){return iC(!(r in A)),t[r]=n,!0}})}function em(e,A){if(A==="basic")return Pa(e,{type:"basic",headersList:e.headersList});if(A==="cors")return Pa(e,{type:"cors",headersList:e.headersList});if(A==="opaque")return Pa(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(A==="opaqueredirect")return Pa(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});iC(!1)}function pL(e){return iC(cL(e)),lL(e)?Ja(new QL("The operation was aborted.","AbortError")):Ja("Request was cancelled.")}function Xp(e,A,t){if(A.status!==null&&(A.status<200||A.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in A&&A.statusText!=null&&!gL(String(A.statusText)))throw new TypeError("Invalid statusText");if("status"in A&&A.status!=null&&(e[Qe].status=A.status),"statusText"in A&&A.statusText!=null&&(e[Qe].statusText=A.statusText),"headers"in A&&A.headers!=null&&oL(e[Ge],A.headers),t){if(dL.includes(e.status))throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status});e[Qe].body=t.body,t.type!=null&&!e[Qe].headersList.contains("Content-Type")&&e[Qe].headersList.append("content-type",t.type)}}v.converters.ReadableStream=v.interfaceConverter($p);v.converters.FormData=v.interfaceConverter(BL);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){return typeof e=="string"?v.converters.USVString(e):uL(e)?v.converters.Blob(e,{strict:!1}):rC.isAnyArrayBuffer(e)||rC.isTypedArray(e)||rC.isDataView(e)?v.converters.BufferSource(e):nC.isFormDataLike(e)?v.converters.FormData(e,{strict:!1}):e instanceof URLSearchParams?v.converters.URLSearchParams(e):v.converters.DOMString(e)};v.converters.BodyInit=function(e){return e instanceof $p?v.converters.ReadableStream(e):e?.[Symbol.asyncIterator]?e:v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);Am.exports={makeNetworkError:Ja,makeResponse:Ya,makeAppropriateNetworkError:pL,filterResponse:em,Response:Re,cloneResponse:oC}});var Fo=I((tO,sm)=>{"use strict";var{extractBody:mL,mixinBody:yL,cloneBody:wL}=so(),{Headers:sC,fill:DL,HeadersList:tm}=Vr(),{FinalizationRegistry:SL}=Qu()(),gC=_(),{isValidHTTPToken:bL,sameOrigin:kL,normalizeMethod:NL,makePolicyContainer:RL}=YA(),{forbiddenMethods:FL,corsSafeListedMethods:ML,referrerPolicy:xL,requestRedirect:LL,requestMode:TL,requestCredentials:UL,requestCache:qL,requestDuplex:vL}=rr(),{kEnumerableProperty:xe}=gC,{kHeaders:Ke,kSignal:Ro,kState:ue,kGuard:Ka,kRealm:_A}=Mt(),{webidl:M}=gA(),{getGlobalOrigin:PL}=no(),{URLSerializer:JL}=tt(),{kHeadersList:Va}=me(),YL=require("assert"),{getMaxListeners:rm,setMaxListeners:nm,getEventListeners:GL,defaultMaxListeners:im}=require("events"),aC=globalThis.TransformStream,om=Symbol("init"),KL=Symbol("abortController"),VL=new SL(({signal:e,abort:A})=>{e.removeEventListener("abort",A)}),re=class{constructor(A,t={}){if(A===om)return;M.argumentLengthCheck(arguments,1,{header:"Request constructor"}),A=M.converters.RequestInfo(A),t=M.converters.RequestInit(t),this[_A]={settingsObject:{baseUrl:PL(),get origin(){return this.baseUrl?.origin},policyContainer:RL()}};let r=null,n=null,i=this[_A].settingsObject.baseUrl,o=null;if(typeof A=="string"){let h;try{h=new URL(A,i)}catch(B){throw new TypeError("Failed to parse URL from "+A,{cause:B})}if(h.username||h.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+A);r=Oa({urlList:[h]}),n="cors"}else YL(A instanceof re),r=A[ue],o=A[Ro];let s=this[_A].settingsObject.origin,a="client";if(r.window?.constructor?.name==="EnvironmentSettingsObject"&&kL(r.window,s)&&(a=r.window),t.window!=null)throw new TypeError(`'window' option '${a}' must be null`);if("window"in t&&(a="no-window"),r=Oa({method:r.method,headersList:r.headersList,unsafeRequest:r.unsafeRequest,client:this[_A].settingsObject,window:a,priority:r.priority,origin:r.origin,referrer:r.referrer,referrerPolicy:r.referrerPolicy,mode:r.mode,credentials:r.credentials,cache:r.cache,redirect:r.redirect,integrity:r.integrity,keepalive:r.keepalive,reloadNavigation:r.reloadNavigation,historyNavigation:r.historyNavigation,urlList:[...r.urlList]}),Object.keys(t).length>0&&(r.mode==="navigate"&&(r.mode="same-origin"),r.reloadNavigation=!1,r.historyNavigation=!1,r.origin="client",r.referrer="client",r.referrerPolicy="",r.url=r.urlList[r.urlList.length-1],r.urlList=[r.url]),t.referrer!==void 0){let h=t.referrer;if(h==="")r.referrer="no-referrer";else{let B;try{B=new URL(h,i)}catch(Q){throw new TypeError(`Referrer "${h}" is not a valid URL.`,{cause:Q})}r.referrer=B}}t.referrerPolicy!==void 0&&(r.referrerPolicy=t.referrerPolicy);let g;if(t.mode!==void 0?g=t.mode:g=n,g==="navigate")throw M.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(g!=null&&(r.mode=g),t.credentials!==void 0&&(r.credentials=t.credentials),t.cache!==void 0&&(r.cache=t.cache),r.cache==="only-if-cached"&&r.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(t.redirect!==void 0&&(r.redirect=t.redirect),t.integrity!==void 0&&t.integrity!=null&&(r.integrity=String(t.integrity)),t.keepalive!==void 0&&(r.keepalive=Boolean(t.keepalive)),t.method!==void 0){let h=t.method;if(!bL(t.method))throw TypeError(`'${t.method}' is not a valid HTTP method.`);if(FL.indexOf(h.toUpperCase())!==-1)throw TypeError(`'${t.method}' HTTP method is unsupported.`);h=NL(t.method),r.method=h}t.signal!==void 0&&(o=t.signal),this[ue]=r;let c=new AbortController;if(this[Ro]=c.signal,this[Ro][_A]=this[_A],o!=null){if(!o||typeof o.aborted!="boolean"||typeof o.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(o.aborted)c.abort(o.reason);else{this[KL]=c;let h=new WeakRef(c),B=function(){let Q=h.deref();Q!==void 0&&Q.abort(this.reason)};try{(typeof rm=="function"&&rm(o)===im||GL(o,"abort").length>=im)&&nm(100,o)}catch{}o.addEventListener("abort",B,{once:!0}),VL.register(c,{signal:o,abort:B})}}if(this[Ke]=new sC,this[Ke][Va]=r.headersList,this[Ke][Ka]="request",this[Ke][_A]=this[_A],g==="no-cors"){if(!ML.includes(r.method))throw new TypeError(`'${r.method} is unsupported in no-cors mode.`);this[Ke][Ka]="request-no-cors"}if(Object.keys(t).length!==0){let h=new sC(this[Ke]);if(t.headers!==void 0&&(h=t.headers),this[Ke][Va].clear(),h.constructor.name==="Headers")for(let[B,Q]of h)this[Ke].append(B,Q);else DL(this[Ke],h)}let l=A instanceof re?A[ue].body:null;if((t.body!=null||l!=null)&&(r.method==="GET"||r.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let u=null;if(t.body!=null){let[h,B]=mL(t.body,r.keepalive);u=h,B&&!this[Ke][Va].contains("content-type")&&this[Ke].append("content-type",B)}let C=u??l;if(C!=null&&C.source==null){if(u!=null&&t.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(r.mode!=="same-origin"&&r.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');r.useCORSPreflightFlag=!0}let E=C;if(u==null&&l!=null){if(gC.isDisturbed(l.stream)||l.stream.locked)throw new TypeError("Cannot construct a Request with a Request object that has already been used.");aC||(aC=require("stream/web").TransformStream);let h=new aC;l.stream.pipeThrough(h),E={source:l.source,length:l.length,stream:h.readable}}this[ue].body=E}get method(){return M.brandCheck(this,re),this[ue].method}get url(){return M.brandCheck(this,re),JL(this[ue].url)}get headers(){return M.brandCheck(this,re),this[Ke]}get destination(){return M.brandCheck(this,re),this[ue].destination}get referrer(){return M.brandCheck(this,re),this[ue].referrer==="no-referrer"?"":this[ue].referrer==="client"?"about:client":this[ue].referrer.toString()}get referrerPolicy(){return M.brandCheck(this,re),this[ue].referrerPolicy}get mode(){return M.brandCheck(this,re),this[ue].mode}get credentials(){return this[ue].credentials}get cache(){return M.brandCheck(this,re),this[ue].cache}get redirect(){return M.brandCheck(this,re),this[ue].redirect}get integrity(){return M.brandCheck(this,re),this[ue].integrity}get keepalive(){return M.brandCheck(this,re),this[ue].keepalive}get isReloadNavigation(){return M.brandCheck(this,re),this[ue].reloadNavigation}get isHistoryNavigation(){return M.brandCheck(this,re),this[ue].historyNavigation}get signal(){return M.brandCheck(this,re),this[Ro]}get body(){return M.brandCheck(this,re),this[ue].body?this[ue].body.stream:null}get bodyUsed(){return M.brandCheck(this,re),!!this[ue].body&&gC.isDisturbed(this[ue].body.stream)}get duplex(){return M.brandCheck(this,re),"half"}clone(){if(M.brandCheck(this,re),this.bodyUsed||this.body?.locked)throw new TypeError("unusable");let A=OL(this[ue]),t=new re(om);t[ue]=A,t[_A]=this[_A],t[Ke]=new sC,t[Ke][Va]=A.headersList,t[Ke][Ka]=this[Ke][Ka],t[Ke][_A]=this[Ke][_A];let r=new AbortController;return this.signal.aborted?r.abort(this.signal.reason):this.signal.addEventListener("abort",()=>{r.abort(this.signal.reason)},{once:!0}),t[Ro]=r.signal,t}};yL(re);function Oa(e){let A={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...e,headersList:e.headersList?new tm(e.headersList):new tm};return A.url=A.urlList[0],A}function OL(e){let A=Oa({...e,body:null});return e.body!=null&&(A.body=wL(e.body)),A}Object.defineProperties(re.prototype,{method:xe,url:xe,headers:xe,redirect:xe,clone:xe,signal:xe,duplex:xe,destination:xe,body:xe,bodyUsed:xe,isHistoryNavigation:xe,isReloadNavigation:xe,keepalive:xe,integrity:xe,cache:xe,credentials:xe,attribute:xe,referrerPolicy:xe,referrer:xe,mode:xe,[Symbol.toStringTag]:{value:"Request",configurable:!0}});M.converters.Request=M.interfaceConverter(re);M.converters.RequestInfo=function(e){return typeof e=="string"?M.converters.USVString(e):e instanceof re?M.converters.Request(e):M.converters.USVString(e)};M.converters.AbortSignal=M.interfaceConverter(AbortSignal);M.converters.RequestInit=M.dictionaryConverter([{key:"method",converter:M.converters.ByteString},{key:"headers",converter:M.converters.HeadersInit},{key:"body",converter:M.nullableConverter(M.converters.BodyInit)},{key:"referrer",converter:M.converters.USVString},{key:"referrerPolicy",converter:M.converters.DOMString,allowedValues:xL},{key:"mode",converter:M.converters.DOMString,allowedValues:TL},{key:"credentials",converter:M.converters.DOMString,allowedValues:UL},{key:"cache",converter:M.converters.DOMString,allowedValues:qL},{key:"redirect",converter:M.converters.DOMString,allowedValues:LL},{key:"integrity",converter:M.converters.DOMString},{key:"keepalive",converter:M.converters.boolean},{key:"signal",converter:M.nullableConverter(e=>M.converters.AbortSignal(e,{strict:!1}))},{key:"window",converter:M.converters.any},{key:"duplex",converter:M.converters.DOMString,allowedValues:vL}]);sm.exports={Request:re,makeRequest:Oa}});var Xa=I((rO,pm)=>{"use strict";var{Response:HL,makeNetworkError:se,makeAppropriateNetworkError:Ha,filterResponse:cC,makeResponse:Wa}=Ga(),{Headers:am}=Vr(),{Request:WL,makeRequest:_L}=Fo(),lC=require("zlib"),{bytesMatch:jL,makePolicyContainer:ZL,clonePolicyContainer:zL,requestBadPort:XL,TAOCheck:$L,appendRequestOriginHeader:eT,responseLocationURL:AT,requestCurrentURL:yt,setRequestReferrerPolicyOnRedirect:tT,tryUpgradeRequestToAPotentiallyTrustworthyURL:rT,createOpaqueTimingInfo:pC,appendFetchMetadata:nT,corsCheck:iT,crossOriginResourcePolicyCheck:oT,determineRequestsReferrer:sT,coarsenedSharedCurrentTime:mC,createDeferredPromise:aT,isBlobLike:gT,sameOrigin:dC,isCancelled:_n,isAborted:gm,isErrorLike:cT,fullyReadBody:Cm,readableStreamClose:lT,isomorphicEncode:QC,urlIsLocal:uT,urlIsHttpHttpsScheme:yC,urlHasHttpsScheme:CT}=YA(),{kState:BC,kHeaders:uC,kGuard:ET,kRealm:cm}=Mt(),Mo=require("assert"),{safelyExtractBody:_a}=so(),{redirectStatus:Em,nullBodyStatus:hm,safeMethods:hT,requestBodyHeader:IT,subresource:dT,DOMException:ja}=rr(),{kHeadersList:fC}=me(),QT=require("events"),{Readable:BT,pipeline:fT}=require("stream"),{isErrored:pT,isReadable:Za,nodeMajor:lm,nodeMinor:mT}=_(),{dataURLProcessor:yT,serializeAMimeType:wT}=tt(),{TransformStream:DT}=require("stream/web"),{getGlobalDispatcher:ST}=On(),{webidl:bT}=gA(),{STATUS_CODES:kT}=require("http"),CC,EC=globalThis.ReadableStream,za=class extends QT{constructor(A){super(),this.dispatcher=A,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21)}terminate(A){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(A),this.emit("terminated",A))}abort(A){this.state==="ongoing"&&(this.state="aborted",A||(A=new ja("The operation was aborted.","AbortError")),this.serializedAbortReason=A,this.connection?.destroy(A),this.emit("terminated",A))}};async function NT(e,A={}){bT.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});let t=aT(),r;try{r=new WL(e,A)}catch(u){return t.reject(u),t.promise}let n=r[BC];if(r.signal.aborted)return hC(t,n,null,r.signal.reason),t.promise;n.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(n.serviceWorkers="none");let o=null,s=null,a=!1,g=null;return r.signal.addEventListener("abort",()=>{a=!0,hC(t,n,o,r.signal.reason),g?.abort()},{once:!0}),g=dm({request:n,processResponseEndOfBody:u=>Im(u,"fetch"),processResponse:u=>{if(!a){if(u.aborted){hC(t,n,o,g.serializedAbortReason);return}if(u.type==="error"){t.reject(Object.assign(new TypeError("fetch failed"),{cause:u.error}));return}o=new HL,o[BC]=u,o[cm]=s,o[uC][fC]=u.headersList,o[uC][ET]="immutable",o[uC][cm]=s,t.resolve(o)}},dispatcher:A.dispatcher??ST()}),t.promise}function Im(e,A="other"){if(e.type==="error"&&e.aborted||!e.urlList?.length)return;let t=e.urlList[0],r=e.timingInfo,n=e.cacheState;!yC(t)||r!==null&&(r.timingAllowPassed||(r=pC({startTime:r.startTime}),n=""),r.endTime=mC(),e.timingInfo=r,RT(r,t,A,globalThis,n))}function RT(e,A,t,r,n){(lm>18||lm===18&&mT>=2)&&performance.markResourceTiming(e,A,t,r,n)}function hC(e,A,t,r){if(r||(r=new ja("The operation was aborted.","AbortError")),e.reject(r),A.body!=null&&Za(A.body?.stream)&&A.body.stream.cancel(r).catch(i=>{if(i.code!=="ERR_INVALID_STATE")throw i}),t==null)return;let n=t[BC];n.body!=null&&Za(n.body?.stream)&&n.body.stream.cancel(r).catch(i=>{if(i.code!=="ERR_INVALID_STATE")throw i})}function dm({request:e,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:n,processResponseConsumeBody:i,useParallelQueue:o=!1,dispatcher:s}){let a=null,g=!1;e.client!=null&&(a=e.client.globalObject,g=e.client.crossOriginIsolatedCapability);let c=mC(g),l=pC({startTime:c}),u={controller:new za(s),request:e,timingInfo:l,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:i,processResponseEndOfBody:n,taskDestination:a,crossOriginIsolatedCapability:g};if(Mo(!e.body||e.body.stream),e.window==="client"&&(e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"),e.origin==="client"&&(e.origin=e.client?.origin),e.policyContainer==="client"&&(e.client!=null?e.policyContainer=zL(e.client.policyContainer):e.policyContainer=ZL()),!e.headersList.contains("accept")){let C="*/*";e.headersList.append("accept",C)}return e.headersList.contains("accept-language")||e.headersList.append("accept-language","*"),e.priority,dT.includes(e.destination),Qm(u).catch(C=>{u.controller.terminate(C)}),u.controller}async function Qm(e,A=!1){let t=e.request,r=null;if(t.localURLsOnly&&!uT(yt(t))&&(r=se("local URLs only")),rT(t),XL(t)==="blocked"&&(r=se("bad port")),t.referrerPolicy===""&&(t.referrerPolicy=t.policyContainer.referrerPolicy),t.referrer!=="no-referrer"&&(t.referrer=sT(t)),r===null&&(r=await(async()=>{let i=yt(t);return dC(i,t.url)&&t.responseTainting==="basic"||i.protocol==="data:"||t.mode==="navigate"||t.mode==="websocket"?(t.responseTainting="basic",await um(e)):t.mode==="same-origin"?se('request mode cannot be "same-origin"'):t.mode==="no-cors"?t.redirect!=="follow"?se('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await um(e)):yC(yt(t))?(t.responseTainting="cors",await Bm(e)):se("URL scheme must be a HTTP(S) scheme")})()),A)return r;r.status!==0&&!r.internalResponse&&(t.responseTainting,t.responseTainting==="basic"?r=cC(r,"basic"):t.responseTainting==="cors"?r=cC(r,"cors"):t.responseTainting==="opaque"?r=cC(r,"opaque"):Mo(!1));let n=r.status===0?r:r.internalResponse;if(n.urlList.length===0&&n.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),r.type==="opaque"&&n.status===206&&n.rangeRequested&&!t.headers.contains("range")&&(r=n=se()),r.status!==0&&(t.method==="HEAD"||t.method==="CONNECT"||hm.includes(n.status))&&(n.body=null,e.controller.dump=!0),t.integrity){let i=s=>IC(e,se(s));if(t.responseTainting==="opaque"||r.body==null){i(r.error);return}let o=s=>{if(!jL(s,t.integrity)){i("integrity mismatch");return}r.body=_a(s)[0],IC(e,r)};await Cm(r.body,o,i)}else IC(e,r)}async function um(e){if(_n(e)&&e.request.redirectCount===0)return Ha(e);let{request:A}=e,{protocol:t}=yt(A);switch(t){case"about:":return se("about scheme is not supported");case"blob:":{CC||(CC=require("buffer").resolveObjectURL);let r=yt(A);if(r.search.length!==0)return se("NetworkError when attempting to fetch resource.");let n=CC(r.toString());if(A.method!=="GET"||!gT(n))return se("invalid method");let i=_a(n),o=i[0],s=QC(`${o.length}`),a=i[1]??"",g=Wa({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:s}],["content-type",{name:"Content-Type",value:a}]]});return g.body=o,g}case"data:":{let r=yt(A),n=yT(r);if(n==="failure")return se("failed to fetch the data URL");let i=wT(n.mimeType);return Wa({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:_a(n.body)[0]})}case"file:":return se("not implemented... yet...");case"http:":case"https:":return await Bm(e).catch(r=>se(r));default:return se("unknown scheme")}}function FT(e,A){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(A))}async function IC(e,A){A.type==="error"&&(A.urlList=[e.request.urlList[0]],A.timingInfo=pC({startTime:e.timingInfo.startTime}));let t=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(A))};if(e.processResponse!=null&&queueMicrotask(()=>e.processResponse(A)),A.body==null)t();else{let r=(i,o)=>{o.enqueue(i)},n=new DT({start(){},transform:r,flush:t},{size(){return 1}},{size(){return 1}});A.body={stream:A.body.stream.pipeThrough(n)}}if(e.processResponseConsumeBody!=null){let r=i=>e.processResponseConsumeBody(A,i),n=i=>e.processResponseConsumeBody(A,i);A.body==null?queueMicrotask(()=>r(null)):await Cm(A.body,r,n)}}async function Bm(e){let A=e.request,t=null,r=null,n=e.timingInfo;if(A.serviceWorkers,t===null){if(A.redirect==="follow"&&(A.serviceWorkers="none"),r=t=await fm(e),A.responseTainting==="cors"&&iT(A,t)==="failure")return se("cors failure");$L(A,t)==="failure"&&(A.timingAllowFailed=!0)}return(A.responseTainting==="opaque"||t.type==="opaque")&&oT(A.origin,A.client,A.destination,r)==="blocked"?se("blocked"):(Em.includes(r.status)&&(A.redirect!=="manual"&&e.controller.connection.destroy(),A.redirect==="error"?t=se("unexpected redirect"):A.redirect==="manual"?t=r:A.redirect==="follow"?t=await MT(e,t):Mo(!1)),t.timingInfo=n,t)}async function MT(e,A){let t=e.request,r=A.internalResponse?A.internalResponse:A,n;try{if(n=AT(r,yt(t).hash),n==null)return A}catch(o){return se(o)}if(!yC(n))return se("URL scheme must be a HTTP(S) scheme");if(t.redirectCount===20)return se("redirect count exceeded");if(t.redirectCount+=1,t.mode==="cors"&&(n.username||n.password)&&!dC(t,n))return se('cross origin not allowed for request mode "cors"');if(t.responseTainting==="cors"&&(n.username||n.password))return se('URL cannot contain credentials for request mode "cors"');if(r.status!==303&&t.body!=null&&t.body.source==null)return se();if([301,302].includes(r.status)&&t.method==="POST"||r.status===303&&!["GET","HEAD"].includes(t.method)){t.method="GET",t.body=null;for(let o of IT)t.headersList.delete(o)}dC(yt(t),n)||t.headersList.delete("authorization"),t.body!=null&&(Mo(t.body.source!=null),t.body=_a(t.body.source)[0]);let i=e.timingInfo;return i.redirectEndTime=i.postRedirectStartTime=mC(e.crossOriginIsolatedCapability),i.redirectStartTime===0&&(i.redirectStartTime=i.startTime),t.urlList.push(n),tT(t,r),Qm(e,!0)}async function fm(e,A=!1,t=!1){let r=e.request,n=null,i=null,o=null,s=null,a=!1;r.window==="no-window"&&r.redirect==="error"?(n=e,i=r):(i=_L(r),n={...e},n.request=i);let g=r.credentials==="include"||r.credentials==="same-origin"&&r.responseTainting==="basic",c=i.body?i.body.length:null,l=null;if(i.body==null&&["POST","PUT"].includes(i.method)&&(l="0"),c!=null&&(l=QC(`${c}`)),l!=null&&i.headersList.append("content-length",l),c!=null&&i.keepalive,i.referrer instanceof URL&&i.headersList.append("referer",QC(i.referrer.href)),eT(i),nT(i),i.headersList.contains("user-agent")||i.headersList.append("user-agent","undici"),i.cache==="default"&&(i.headersList.contains("if-modified-since")||i.headersList.contains("if-none-match")||i.headersList.contains("if-unmodified-since")||i.headersList.contains("if-match")||i.headersList.contains("if-range"))&&(i.cache="no-store"),i.cache==="no-cache"&&!i.preventNoCacheCacheControlHeaderModification&&!i.headersList.contains("cache-control")&&i.headersList.append("cache-control","max-age=0"),(i.cache==="no-store"||i.cache==="reload")&&(i.headersList.contains("pragma")||i.headersList.append("pragma","no-cache"),i.headersList.contains("cache-control")||i.headersList.append("cache-control","no-cache")),i.headersList.contains("range")&&i.headersList.append("accept-encoding","identity"),i.headersList.contains("accept-encoding")||(CT(yt(i))?i.headersList.append("accept-encoding","br, gzip, deflate"):i.headersList.append("accept-encoding","gzip, deflate")),s==null&&(i.cache="no-store"),i.mode!=="no-store"&&i.mode,o==null){if(i.mode==="only-if-cached")return se("only if cached");let u=await xT(n,g,t);!hT.includes(i.method)&&u.status>=200&&u.status<=399,a&&u.status,o==null&&(o=u)}if(o.urlList=[...i.urlList],i.headersList.contains("range")&&(o.rangeRequested=!0),o.requestIncludesCredentials=g,o.status===407)return r.window==="no-window"?se():_n(e)?Ha(e):se("proxy authentication required");if(o.status===421&&!t&&(r.body==null||r.body.source!=null)){if(_n(e))return Ha(e);e.controller.connection.destroy(),o=await fm(e,A,!0)}return o}async function xT(e,A=!1,t=!1){Mo(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(E){this.destroyed||(this.destroyed=!0,this.abort?.(E??new ja("The operation was aborted.","AbortError")))}};let r=e.request,n=null,i=e.timingInfo;null==null&&(r.cache="no-store");let s=t?"yes":"no";r.mode;let a=null;if(r.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(r.body!=null){let E=async function*(Q){_n(e)||(yield Q,e.processRequestBodyChunkLength?.(Q.byteLength))},h=()=>{_n(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},B=Q=>{_n(e)||(Q.name==="AbortError"?e.controller.abort():e.controller.terminate(Q))};a=async function*(){try{for await(let Q of r.body.stream)yield*E(Q);h()}catch(Q){B(Q)}}()}try{let{body:E,status:h,statusText:B,headersList:Q,socket:w}=await C({body:a});if(w)n=Wa({status:h,statusText:B,headersList:Q,socket:w});else{let p=E[Symbol.asyncIterator]();e.controller.next=()=>p.next(),n=Wa({status:h,statusText:B,headersList:Q})}}catch(E){return E.name==="AbortError"?(e.controller.connection.destroy(),Ha(e)):se(E)}let g=()=>{e.controller.resume()},c=E=>{e.controller.abort(E)};EC||(EC=require("stream/web").ReadableStream);let l=new EC({async start(E){e.controller.controller=E},async pull(E){await g(E)},async cancel(E){await c(E)}},{highWaterMark:0,size(){return 1}});n.body={stream:l},e.controller.on("terminated",u),e.controller.resume=async()=>{for(;;){let E,h;try{let{done:B,value:Q}=await e.controller.next();if(gm(e))break;E=B?void 0:Q}catch(B){e.controller.ended&&!i.encodedBodySize?E=void 0:(E=B,h=!0)}if(E===void 0){lT(e.controller.controller),FT(e,n);return}if(i.decodedBodySize+=E?.byteLength??0,h){e.controller.terminate(E);return}if(e.controller.controller.enqueue(new Uint8Array(E)),pT(l)){e.controller.terminate();return}if(!e.controller.controller.desiredSize)return}};function u(E){gm(e)?(n.aborted=!0,Za(l)&&e.controller.controller.error(e.controller.serializedAbortReason)):Za(l)&&e.controller.controller.error(new TypeError("terminated",{cause:cT(E)?E:void 0})),e.controller.connection.destroy()}return n;async function C({body:E}){let h=yt(r),B=e.controller.dispatcher;return new Promise((Q,w)=>B.dispatch({path:h.pathname+h.search,origin:h.origin,method:r.method,body:e.controller.dispatcher.isMockActive?r.body&&r.body.source:E,headers:r.headersList.entries,maxRedirections:0,upgrade:r.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(p){let{connection:D}=e.controller;D.destroyed?p(new ja("The operation was aborted.","AbortError")):(e.controller.on("terminated",p),this.abort=D.abort=p)},onHeaders(p,D,O,G){if(p<200)return;let X=[],Y="",ne=new am;for(let Le=0;Leoe.trim()):Te.toLowerCase()==="location"&&(Y=et),ne.append(Te,et)}this.body=new BT({read:O});let Ee=[],be=r.redirect==="follow"&&Y&&Em.includes(p);if(r.method!=="HEAD"&&r.method!=="CONNECT"&&!hm.includes(p)&&!be)for(let Le of X)if(Le==="x-gzip"||Le==="gzip")Ee.push(lC.createGunzip());else if(Le==="deflate")Ee.push(lC.createInflate());else if(Le==="br")Ee.push(lC.createBrotliDecompress());else{Ee.length=0;break}return Q({status:p,statusText:G,headersList:ne[fC],body:Ee.length?fT(this.body,...Ee,()=>{}):this.body.on("error",()=>{})}),!0},onData(p){if(e.controller.dump)return;let D=p;return i.encodedBodySize+=D.byteLength,this.body.push(D)},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.ended=!0,this.body.push(null)},onError(p){this.abort&&e.controller.off("terminated",this.abort),this.body?.destroy(p),e.controller.terminate(p),w(p)},onUpgrade(p,D,O){if(p!==101)return;let G=new am;for(let X=0;X{"use strict";mm.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var wm=I((iO,ym)=>{"use strict";var{webidl:LA}=gA(),$a=Symbol("ProgressEvent state"),Or=class extends Event{constructor(A,t={}){A=LA.converters.DOMString(A),t=LA.converters.ProgressEventInit(t??{}),super(A,t),this[$a]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return LA.brandCheck(this,Or),this[$a].lengthComputable}get loaded(){return LA.brandCheck(this,Or),this[$a].loaded}get total(){return LA.brandCheck(this,Or),this[$a].total}};LA.converters.ProgressEventInit=LA.dictionaryConverter([{key:"lengthComputable",converter:LA.converters.boolean,defaultValue:!1},{key:"loaded",converter:LA.converters["unsigned long long"],defaultValue:0},{key:"total",converter:LA.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:LA.converters.boolean,defaultValue:!1},{key:"cancelable",converter:LA.converters.boolean,defaultValue:!1},{key:"composed",converter:LA.converters.boolean,defaultValue:!1}]);ym.exports={ProgressEvent:Or}});var Sm=I((oO,Dm)=>{"use strict";function LT(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}Dm.exports={getEncoding:LT}});var Lm=I((sO,xm)=>{"use strict";var{kState:jn,kError:DC,kResult:bm,kAborted:xo,kLastProgressEventFired:SC}=wC(),{ProgressEvent:TT}=wm(),{getEncoding:km}=Sm(),{DOMException:UT}=rr(),{serializeAMimeType:qT,parseMIMEType:Nm}=tt(),{types:vT}=require("util"),{StringDecoder:Rm}=require("string_decoder"),{btoa:Fm}=require("buffer"),PT={enumerable:!0,writable:!1,configurable:!1};function JT(e,A,t,r){if(e[jn]==="loading")throw new UT("Invalid state","InvalidStateError");e[jn]="loading",e[bm]=null,e[DC]=null;let i=A.stream().getReader(),o=[],s=i.read(),a=!0;(async()=>{for(;!e[xo];)try{let{done:g,value:c}=await s;if(a&&!e[xo]&&queueMicrotask(()=>{cr("loadstart",e)}),a=!1,!g&&vT.isUint8Array(c))o.push(c),(e[SC]===void 0||Date.now()-e[SC]>=50)&&!e[xo]&&(e[SC]=Date.now(),queueMicrotask(()=>{cr("progress",e)})),s=i.read();else if(g){queueMicrotask(()=>{e[jn]="done";try{let l=YT(o,t,A.type,r);if(e[xo])return;e[bm]=l,cr("load",e)}catch(l){e[DC]=l,cr("error",e)}e[jn]!=="loading"&&cr("loadend",e)});break}}catch(g){if(e[xo])return;queueMicrotask(()=>{e[jn]="done",e[DC]=g,cr("error",e),e[jn]!=="loading"&&cr("loadend",e)});break}})()}function cr(e,A){let t=new TT(e,{bubbles:!1,cancelable:!1});A.dispatchEvent(t)}function YT(e,A,t,r){switch(A){case"DataURL":{let n="data:",i=Nm(t||"application/octet-stream");i!=="failure"&&(n+=qT(i)),n+=";base64,";let o=new Rm("latin1");for(let s of e)n+=Fm(o.write(s));return n+=Fm(o.end()),n}case"Text":{let n="failure";if(r&&(n=km(r)),n==="failure"&&t){let i=Nm(t);i!=="failure"&&(n=km(i.parameters.get("charset")))}return n==="failure"&&(n="UTF-8"),GT(e,n)}case"ArrayBuffer":return Mm(e).buffer;case"BinaryString":{let n="",i=new Rm("latin1");for(let o of e)n+=i.write(o);return n+=i.end(),n}}}function GT(e,A){let t=Mm(e),r=KT(t),n=0;r!==null&&(A=r,n=r==="UTF-8"?3:2);let i=t.slice(n);return new TextDecoder(A).decode(i)}function KT(e){let[A,t,r]=e;return A===239&&t===187&&r===191?"UTF-8":A===254&&t===255?"UTF-16BE":A===255&&t===254?"UTF-16LE":null}function Mm(e){let A=e.reduce((r,n)=>r+n.byteLength,0),t=0;return e.reduce((r,n)=>(r.set(n,t),t+=n.byteLength,r),new Uint8Array(A))}xm.exports={staticPropertyDescriptors:PT,readOperation:JT,fireAProgressEvent:cr}});var vm=I((aO,qm)=>{"use strict";var{staticPropertyDescriptors:Zn,readOperation:eg,fireAProgressEvent:Tm}=Lm(),{kState:Hr,kError:Um,kResult:Ag,kEvents:Z,kAborted:VT}=wC(),{webidl:ie}=gA(),{kEnumerableProperty:pA}=_(),z=class extends EventTarget{constructor(){super(),this[Hr]="empty",this[Ag]=null,this[Um]=null,this[Z]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(A){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),A=ie.converters.Blob(A,{strict:!1}),eg(this,A,"ArrayBuffer")}readAsBinaryString(A){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),A=ie.converters.Blob(A,{strict:!1}),eg(this,A,"BinaryString")}readAsText(A,t=void 0){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),A=ie.converters.Blob(A,{strict:!1}),t!==void 0&&(t=ie.converters.DOMString(t)),eg(this,A,"Text",t)}readAsDataURL(A){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),A=ie.converters.Blob(A,{strict:!1}),eg(this,A,"DataURL")}abort(){if(this[Hr]==="empty"||this[Hr]==="done"){this[Ag]=null;return}this[Hr]==="loading"&&(this[Hr]="done",this[Ag]=null),this[VT]=!0,Tm("abort",this),this[Hr]!=="loading"&&Tm("loadend",this)}get readyState(){switch(ie.brandCheck(this,z),this[Hr]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return ie.brandCheck(this,z),this[Ag]}get error(){return ie.brandCheck(this,z),this[Um]}get onloadend(){return ie.brandCheck(this,z),this[Z].loadend}set onloadend(A){ie.brandCheck(this,z),this[Z].loadend&&this.removeEventListener("loadend",this[Z].loadend),typeof A=="function"?(this[Z].loadend=A,this.addEventListener("loadend",A)):this[Z].loadend=null}get onerror(){return ie.brandCheck(this,z),this[Z].error}set onerror(A){ie.brandCheck(this,z),this[Z].error&&this.removeEventListener("error",this[Z].error),typeof A=="function"?(this[Z].error=A,this.addEventListener("error",A)):this[Z].error=null}get onloadstart(){return ie.brandCheck(this,z),this[Z].loadstart}set onloadstart(A){ie.brandCheck(this,z),this[Z].loadstart&&this.removeEventListener("loadstart",this[Z].loadstart),typeof A=="function"?(this[Z].loadstart=A,this.addEventListener("loadstart",A)):this[Z].loadstart=null}get onprogress(){return ie.brandCheck(this,z),this[Z].progress}set onprogress(A){ie.brandCheck(this,z),this[Z].progress&&this.removeEventListener("progress",this[Z].progress),typeof A=="function"?(this[Z].progress=A,this.addEventListener("progress",A)):this[Z].progress=null}get onload(){return ie.brandCheck(this,z),this[Z].load}set onload(A){ie.brandCheck(this,z),this[Z].load&&this.removeEventListener("load",this[Z].load),typeof A=="function"?(this[Z].load=A,this.addEventListener("load",A)):this[Z].load=null}get onabort(){return ie.brandCheck(this,z),this[Z].abort}set onabort(A){ie.brandCheck(this,z),this[Z].abort&&this.removeEventListener("abort",this[Z].abort),typeof A=="function"?(this[Z].abort=A,this.addEventListener("abort",A)):this[Z].abort=null}};z.EMPTY=z.prototype.EMPTY=0;z.LOADING=z.prototype.LOADING=1;z.DONE=z.prototype.DONE=2;Object.defineProperties(z.prototype,{EMPTY:Zn,LOADING:Zn,DONE:Zn,readAsArrayBuffer:pA,readAsBinaryString:pA,readAsText:pA,readAsDataURL:pA,abort:pA,readyState:pA,result:pA,error:pA,onloadstart:pA,onprogress:pA,onload:pA,onabort:pA,onerror:pA,onloadend:pA,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(z,{EMPTY:Zn,LOADING:Zn,DONE:Zn});qm.exports={FileReader:z}});var tg=I((gO,Pm)=>{"use strict";Pm.exports={kConstruct:Symbol("constructable")}});var Gm=I((cO,Ym)=>{"use strict";var OT=require("assert"),{URLSerializer:Jm}=tt(),{isValidHeaderName:HT}=YA();function WT(e,A,t=!1){let r=Jm(e,t),n=Jm(A,t);return r===n}function _T(e){OT(e!==null);let A=[];for(let t of e.split(",")){if(t=t.trim(),t.length){if(!HT(t))continue}else continue;A.push(t)}return A}Ym.exports={urlEquals:WT,fieldValues:_T}});var jm=I((lO,_m)=>{"use strict";var{kConstruct:jT}=tg(),{urlEquals:ZT,fieldValues:bC}=Gm(),{kEnumerableProperty:Wr,isDisturbed:zT}=_(),{kHeadersList:Km}=me(),{webidl:N}=gA(),{Response:Om,cloneResponse:XT}=Ga(),{Request:wt}=Fo(),{kState:CA,kHeaders:rg,kGuard:Vm,kRealm:$T}=Mt(),{fetching:eU}=Xa(),{urlIsHttpHttpsScheme:ng,createDeferredPromise:zn,readAllBytes:AU}=YA(),kC=require("assert"),{getGlobalDispatcher:tU}=On(),Dt,$n,ig,lr,Xn,sg,Hm,Yt=class{constructor(){fe(this,$n);fe(this,lr);fe(this,sg);fe(this,Dt,void 0);arguments[0]!==jT&&N.illegalConstructor(),$(this,Dt,arguments[1])}async match(A,t={}){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.match"}),A=N.converters.RequestInfo(A),t=N.converters.CacheQueryOptions(t);let r=await this.matchAll(A,t);if(r.length!==0)return r[0]}async matchAll(A=void 0,t={}){N.brandCheck(this,Yt),A!==void 0&&(A=N.converters.RequestInfo(A)),t=N.converters.CacheQueryOptions(t);let r=null;if(A!==void 0)if(A instanceof wt){if(r=A[CA],r.method!=="GET"&&!t.ignoreMethod)return[]}else typeof A=="string"&&(r=new wt(A)[CA]);let n=[];if(A===void 0)for(let o of d(this,Dt))n.push(o[1]);else{let o=UA(this,lr,Xn).call(this,r,t);for(let s of o)n.push(s[1])}let i=[];for(let o of n){let s=new Om(o.body?.source??null),a=s[CA].body;s[CA]=o,s[CA].body=a,s[rg][Km]=o.headersList,s[rg][Vm]="immutable",i.push(s)}return Object.freeze(i)}async add(A){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.add"}),A=N.converters.RequestInfo(A);let t=[A];return await this.addAll(t)}async addAll(A){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.addAll"}),A=N.converters["sequence"](A);let t=[],r=[];for(let l of A){if(typeof l=="string")continue;let u=l[CA];if(!ng(u.url)||u.method!=="GET")throw N.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}let n=[];for(let l of A){let u=new wt(l)[CA];if(!ng(u.url))throw N.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});u.initiator="fetch",u.destination="subresource",r.push(u);let C=zn();n.push(eU({request:u,dispatcher:tU(),processResponse(E){if(E.type==="error"||E.status===206||E.status<200||E.status>299)C.reject(N.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(E.headersList.contains("vary")){let h=bC(E.headersList.get("vary"));for(let B of h)if(B==="*"){C.reject(N.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let Q of n)Q.abort();return}}},processResponseEndOfBody(E){if(E.aborted){C.reject(new DOMException("aborted","AbortError"));return}C.resolve(E)}})),t.push(C.promise)}let o=await Promise.all(t),s=[],a=0;for(let l of o){let u={type:"put",request:r[a],response:l};s.push(u),a++}let g=zn(),c=null;try{UA(this,$n,ig).call(this,s)}catch(l){c=l}return queueMicrotask(()=>{c===null?g.resolve(void 0):g.reject(c)}),g.promise}async put(A,t){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,2,{header:"Cache.put"}),A=N.converters.RequestInfo(A),t=N.converters.Response(t);let r=null;if(A instanceof wt?r=A[CA]:r=new wt(A)[CA],!ng(r.url)||r.method!=="GET")throw N.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});let n=t[CA];if(n.status===206)throw N.errors.exception({header:"Cache.put",message:"Got 206 status"});if(n.headersList.contains("vary")){let u=bC(n.headersList.get("vary"));for(let C of u)if(C==="*")throw N.errors.exception({header:"Cache.put",message:"Got * vary field value"})}if(n.body&&(zT(n.body.stream)||n.body.stream.locked))throw N.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});let i=XT(n),o=zn();if(n.body!=null){let C=n.body.stream.getReader();AU(C,E=>o.resolve(E),E=>o.reject(E))}else o.resolve(void 0);let s=[],a={type:"put",request:r,response:i};s.push(a);let g=await o.promise;i.body!=null&&(i.body.source=g);let c=zn(),l=null;try{UA(this,$n,ig).call(this,s)}catch(u){l=u}return queueMicrotask(()=>{l===null?c.resolve():c.reject(l)}),c.promise}async delete(A,t={}){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),A=N.converters.RequestInfo(A),t=N.converters.CacheQueryOptions(t);let r=null;if(A instanceof wt){if(r=A[CA],r.method!=="GET"&&!t.ignoreMethod)return!1}else kC(typeof A=="string"),r=new wt(A)[CA];let n=[],i={type:"delete",request:r,options:t};n.push(i);let o=zn(),s=null,a;try{a=UA(this,$n,ig).call(this,n)}catch(g){s=g}return queueMicrotask(()=>{s===null?o.resolve(!!a?.length):o.reject(s)}),o.promise}async keys(A=void 0,t={}){N.brandCheck(this,Yt),A!==void 0&&(A=N.converters.RequestInfo(A)),t=N.converters.CacheQueryOptions(t);let r=null;if(A!==void 0)if(A instanceof wt){if(r=A[CA],r.method!=="GET"&&!t.ignoreMethod)return[]}else typeof A=="string"&&(r=new wt(A)[CA]);let n=zn(),i=[];if(A===void 0)for(let o of d(this,Dt))i.push(o[0]);else{let o=UA(this,lr,Xn).call(this,r,t);for(let s of o)i.push(s[0])}return queueMicrotask(()=>{let o=[];for(let s of i){let a=new wt("https://a");a[CA]=s,a[rg][Km]=s.headersList,a[rg][Vm]="immutable",a[$T]=s.client,o.push(a)}n.resolve(Object.freeze(o))}),n.promise}},og=Yt;Dt=new WeakMap,$n=new WeakSet,ig=function(A){let t=d(this,Dt),r=[...t],n=[],i=[];try{for(let o of A){if(o.type!=="delete"&&o.type!=="put")throw N.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(o.type==="delete"&&o.response!=null)throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(UA(this,lr,Xn).call(this,o.request,o.options,n).length)throw new DOMException("???","InvalidStateError");let s;if(o.type==="delete"){if(s=UA(this,lr,Xn).call(this,o.request,o.options),s.length===0)return[];for(let a of s){let g=t.indexOf(a);kC(g!==-1),t.splice(g,1)}}else if(o.type==="put"){if(o.response==null)throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=o.request;if(!ng(a.url))throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(o.options!=null)throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});s=UA(this,lr,Xn).call(this,o.request);for(let g of s){let c=t.indexOf(g);kC(c!==-1),t.splice(c,1)}t.push([o.request,o.response]),n.push([o.request,o.response])}i.push([o.request,o.response])}return i}catch(o){throw d(this,Dt).length=0,$(this,Dt,r),o}},lr=new WeakSet,Xn=function(A,t,r){let n=[],i=r??d(this,Dt);for(let o of i){let[s,a]=o;UA(this,sg,Hm).call(this,A,s,a,t)&&n.push(o)}return n},sg=new WeakSet,Hm=function(A,t,r=null,n){let i=new URL(A.url),o=new URL(t.url);if(n?.ignoreSearch&&(o.search="",i.search=""),!ZT(i,o,!0))return!1;if(r==null||n?.ignoreVary||!r.headersList.contains("vary"))return!0;let s=bC(r.headersList.get("vary"));for(let a of s){if(a==="*")return!1;let g=t.headersList.get(a),c=A.headersList.get(a);if(g!==c)return!1}return!0};Object.defineProperties(og.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Wr,matchAll:Wr,add:Wr,addAll:Wr,put:Wr,delete:Wr,keys:Wr});var Wm=[{key:"ignoreSearch",converter:N.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:N.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:N.converters.boolean,defaultValue:!1}];N.converters.CacheQueryOptions=N.dictionaryConverter(Wm);N.converters.MultiCacheQueryOptions=N.dictionaryConverter([...Wm,{key:"cacheName",converter:N.converters.DOMString}]);N.converters.Response=N.interfaceConverter(Om);N.converters["sequence"]=N.sequenceConverter(N.converters.RequestInfo);_m.exports={Cache:og}});var zm=I((CO,Zm)=>{"use strict";var{kConstruct:Lo}=tg(),{Cache:ag}=jm(),{webidl:EA}=gA(),{kEnumerableProperty:To}=_(),jA,_r=class{constructor(){fe(this,jA,new Map);arguments[0]!==Lo&&EA.illegalConstructor()}async match(A,t={}){if(EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),A=EA.converters.RequestInfo(A),t=EA.converters.MultiCacheQueryOptions(t),t.cacheName!=null){if(d(this,jA).has(t.cacheName)){let r=d(this,jA).get(t.cacheName);return await new ag(Lo,r).match(A,t)}}else for(let r of d(this,jA).values()){let i=await new ag(Lo,r).match(A,t);if(i!==void 0)return i}}async has(A){return EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),A=EA.converters.DOMString(A),d(this,jA).has(A)}async open(A){if(EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),A=EA.converters.DOMString(A),d(this,jA).has(A)){let r=d(this,jA).get(A);return new ag(Lo,r)}let t=[];return d(this,jA).set(A,t),new ag(Lo,t)}async delete(A){return EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),A=EA.converters.DOMString(A),d(this,jA).delete(A)}async keys(){return EA.brandCheck(this,_r),[...d(this,jA).keys()]}},gg=_r;jA=new WeakMap;Object.defineProperties(gg.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:To,has:To,open:To,delete:To,keys:To});Zm.exports={CacheStorage:gg}});var $m=I((hO,Xm)=>{"use strict";Xm.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var NC=I((IO,ty)=>{"use strict";var ey=require("assert"),{kHeadersList:Ay}=me();function rU(e){if(e.length===0)return!1;for(let A of e){let t=A.charCodeAt(0);if(t>=0||t<=8||t>=10||t<=31||t===127)return!1}}function nU(e){for(let A of e){let t=A.charCodeAt(0);if(t<=32||t>127||A==="("||A===")"||A===">"||A==="<"||A==="@"||A===","||A===";"||A===":"||A==="\\"||A==='"'||A==="/"||A==="["||A==="]"||A==="?"||A==="="||A==="{"||A==="}")throw new Error("Invalid cookie name")}}function iU(e){for(let A of e){let t=A.charCodeAt(0);if(t<33||t===34||t===44||t===59||t===92||t>126)throw new Error("Invalid header value")}}function oU(e){for(let A of e)if(A.charCodeAt(0)<33||A===";")throw new Error("Invalid cookie path")}function sU(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw new Error("Invalid cookie domain")}function aU(e){typeof e=="number"&&(e=new Date(e));let A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r=A[e.getUTCDay()],n=e.getUTCDate().toString().padStart(2,"0"),i=t[e.getUTCMonth()],o=e.getUTCFullYear(),s=e.getUTCHours().toString().padStart(2,"0"),a=e.getUTCMinutes().toString().padStart(2,"0"),g=e.getUTCSeconds().toString().padStart(2,"0");return`${r}, ${n} ${i} ${o} ${s}:${a}:${g} GMT`}function gU(e){if(e<0)throw new Error("Invalid cookie max-age")}function cU(e){if(e.name.length===0)return null;nU(e.name),iU(e.value);let A=[`${e.name}=${e.value}`];e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&A.push("Secure"),e.httpOnly&&A.push("HttpOnly"),typeof e.maxAge=="number"&&(gU(e.maxAge),A.push(`Max-Age=${e.maxAge}`)),e.domain&&(sU(e.domain),A.push(`Domain=${e.domain}`)),e.path&&(oU(e.path),A.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!=="Invalid Date"&&A.push(`Expires=${aU(e.expires)}`),e.sameSite&&A.push(`SameSite=${e.sameSite}`);for(let t of e.unparsed){if(!t.includes("="))throw new Error("Invalid unparsed");let[r,...n]=t.split("=");A.push(`${r.trim()}=${n.join("=")}`)}return A.join("; ")}var cg;function lU(e){if(e[Ay])return e[Ay];cg||(cg=Object.getOwnPropertySymbols(e).find(t=>t.description==="headers list"),ey(cg,"Headers cannot be parsed"));let A=e[cg];return ey(A),A}ty.exports={isCTLExcludingHtab:rU,stringify:cU,getHeadersList:lU}});var ny=I((dO,ry)=>{"use strict";var{maxNameValuePairSize:uU,maxAttributeValueSize:CU}=$m(),{isCTLExcludingHtab:EU}=NC(),{collectASequenceOfCodePointsFast:lg}=tt(),hU=require("assert");function IU(e){if(EU(e))return null;let A="",t="",r="",n="";if(e.includes(";")){let i={position:0};A=lg(";",e,i),t=e.slice(i.position)}else A=e;if(!A.includes("="))n=A;else{let i={position:0};r=lg("=",A,i),n=A.slice(i.position+1)}return r=r.trim(),n=n.trim(),r.length+n.length>uU?null:{name:r,value:n,...ei(t)}}function ei(e,A={}){if(e.length===0)return A;hU(e[0]===";"),e=e.slice(1);let t="";e.includes(";")?(t=lg(";",e,{position:0}),e=e.slice(t.length)):(t=e,e="");let r="",n="";if(t.includes("=")){let o={position:0};r=lg("=",t,o),n=t.slice(o.position+1)}else r=t;if(r=r.trim(),n=n.trim(),n.length>CU)return ei(e,A);let i=r.toLowerCase();if(i==="expires"){let o=new Date(n);A.expires=o}else if(i==="max-age"){let o=n.charCodeAt(0);if((o<48||o>57)&&n[0]!=="-"||!/^\d+$/.test(n))return ei(e,A);let s=Number(n);A.maxAge=s}else if(i==="domain"){let o=n;o[0]==="."&&(o=o.slice(1)),o=o.toLowerCase(),A.domain=o}else if(i==="path"){let o="";n.length===0||n[0]!=="/"?o="/":o=n,A.path=o}else if(i==="secure")A.secure=!0;else if(i==="httponly")A.httpOnly=!0;else if(i==="samesite"){let o="Default",s=n.toLowerCase();s.includes("none")&&(o="None"),s.includes("strict")&&(o="Strict"),s.includes("lax")&&(o="Lax"),A.sameSite=o}else A.unparsed??(A.unparsed=[]),A.unparsed.push(`${r}=${n}`);return ei(e,A)}ry.exports={parseSetCookie:IU,parseUnparsedAttributes:ei}});var ay=I((QO,sy)=>{"use strict";var{parseSetCookie:dU}=ny(),{stringify:iy,getHeadersList:QU}=NC(),{webidl:K}=gA(),{Headers:ug}=Vr();function BU(e){K.argumentLengthCheck(arguments,1,{header:"getCookies"}),K.brandCheck(e,ug,{strict:!1});let A=e.get("cookie"),t={};if(!A)return t;for(let r of A.split(";")){let[n,...i]=r.split("=");t[n.trim()]=i.join("=")}return t}function fU(e,A,t){K.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),K.brandCheck(e,ug,{strict:!1}),A=K.converters.DOMString(A),t=K.converters.DeleteCookieAttributes(t),oy(e,{name:A,value:"",expires:new Date(0),...t})}function pU(e){K.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),K.brandCheck(e,ug,{strict:!1});let A=QU(e).cookies;return A?A.map(t=>dU(Array.isArray(t)?t[1]:t)):[]}function oy(e,A){K.argumentLengthCheck(arguments,2,{header:"setCookie"}),K.brandCheck(e,ug,{strict:!1}),A=K.converters.Cookie(A),iy(A)&&e.append("Set-Cookie",iy(A))}K.converters.DeleteCookieAttributes=K.dictionaryConverter([{converter:K.nullableConverter(K.converters.DOMString),key:"path",defaultValue:null},{converter:K.nullableConverter(K.converters.DOMString),key:"domain",defaultValue:null}]);K.converters.Cookie=K.dictionaryConverter([{converter:K.converters.DOMString,key:"name"},{converter:K.converters.DOMString,key:"value"},{converter:K.nullableConverter(e=>typeof e=="number"?K.converters["unsigned long long"](e):new Date(e)),key:"expires",defaultValue:null},{converter:K.nullableConverter(K.converters["long long"]),key:"maxAge",defaultValue:null},{converter:K.nullableConverter(K.converters.DOMString),key:"domain",defaultValue:null},{converter:K.nullableConverter(K.converters.DOMString),key:"path",defaultValue:null},{converter:K.nullableConverter(K.converters.boolean),key:"secure",defaultValue:null},{converter:K.nullableConverter(K.converters.boolean),key:"httpOnly",defaultValue:null},{converter:K.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:K.sequenceConverter(K.converters.DOMString),key:"unparsed",defaultValue:[]}]);sy.exports={getCookies:BU,deleteCookie:fU,getSetCookies:pU,setCookie:oy}});var Ai=I((BO,gy)=>{"use strict";var mU="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",yU={enumerable:!0,writable:!1,configurable:!1},wU={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},DU={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},SU=2**16-1,bU={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},kU=Buffer.allocUnsafe(0);gy.exports={uid:mU,staticPropertyDescriptors:yU,states:wU,opcodes:DU,maxUnsigned16Bit:SU,parserStates:bU,emptyBuffer:kU}});var Uo=I((fO,cy)=>{"use strict";cy.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var FC=I((pO,ly)=>{"use strict";var{webidl:R}=gA(),{kEnumerableProperty:mA}=_(),{MessagePort:NU}=require("worker_threads"),it,Gt=class extends Event{constructor(t,r={}){R.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),t=R.converters.DOMString(t),r=R.converters.MessageEventInit(r);super(t,r);fe(this,it,void 0);$(this,it,r)}get data(){return R.brandCheck(this,Gt),d(this,it).data}get origin(){return R.brandCheck(this,Gt),d(this,it).origin}get lastEventId(){return R.brandCheck(this,Gt),d(this,it).lastEventId}get source(){return R.brandCheck(this,Gt),d(this,it).source}get ports(){return R.brandCheck(this,Gt),Object.isFrozen(d(this,it).ports)||Object.freeze(d(this,it).ports),d(this,it).ports}initMessageEvent(t,r=!1,n=!1,i=null,o="",s="",a=null,g=[]){return R.brandCheck(this,Gt),R.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new Gt(t,{bubbles:r,cancelable:n,data:i,origin:o,lastEventId:s,source:a,ports:g})}},Cg=Gt;it=new WeakMap;var Zr,qo=class extends Event{constructor(t,r={}){R.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),t=R.converters.DOMString(t),r=R.converters.CloseEventInit(r);super(t,r);fe(this,Zr,void 0);$(this,Zr,r)}get wasClean(){return R.brandCheck(this,qo),d(this,Zr).wasClean}get code(){return R.brandCheck(this,qo),d(this,Zr).code}get reason(){return R.brandCheck(this,qo),d(this,Zr).reason}},Eg=qo;Zr=new WeakMap;var Kt,jr=class extends Event{constructor(t,r){R.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(t,r);fe(this,Kt,void 0);t=R.converters.DOMString(t),r=R.converters.ErrorEventInit(r??{}),$(this,Kt,r)}get message(){return R.brandCheck(this,jr),d(this,Kt).message}get filename(){return R.brandCheck(this,jr),d(this,Kt).filename}get lineno(){return R.brandCheck(this,jr),d(this,Kt).lineno}get colno(){return R.brandCheck(this,jr),d(this,Kt).colno}get error(){return R.brandCheck(this,jr),d(this,Kt).error}},hg=jr;Kt=new WeakMap;Object.defineProperties(Cg.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:mA,origin:mA,lastEventId:mA,source:mA,ports:mA,initMessageEvent:mA});Object.defineProperties(Eg.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:mA,code:mA,wasClean:mA});Object.defineProperties(hg.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:mA,filename:mA,lineno:mA,colno:mA,error:mA});R.converters.MessagePort=R.interfaceConverter(NU);R.converters["sequence"]=R.sequenceConverter(R.converters.MessagePort);var RC=[{key:"bubbles",converter:R.converters.boolean,defaultValue:!1},{key:"cancelable",converter:R.converters.boolean,defaultValue:!1},{key:"composed",converter:R.converters.boolean,defaultValue:!1}];R.converters.MessageEventInit=R.dictionaryConverter([...RC,{key:"data",converter:R.converters.any,defaultValue:null},{key:"origin",converter:R.converters.USVString,defaultValue:""},{key:"lastEventId",converter:R.converters.DOMString,defaultValue:""},{key:"source",converter:R.nullableConverter(R.converters.MessagePort),defaultValue:null},{key:"ports",converter:R.converters["sequence"],get defaultValue(){return[]}}]);R.converters.CloseEventInit=R.dictionaryConverter([...RC,{key:"wasClean",converter:R.converters.boolean,defaultValue:!1},{key:"code",converter:R.converters["unsigned short"],defaultValue:0},{key:"reason",converter:R.converters.USVString,defaultValue:""}]);R.converters.ErrorEventInit=R.dictionaryConverter([...RC,{key:"message",converter:R.converters.DOMString,defaultValue:""},{key:"filename",converter:R.converters.USVString,defaultValue:""},{key:"lineno",converter:R.converters["unsigned long"],defaultValue:0},{key:"colno",converter:R.converters["unsigned long"],defaultValue:0},{key:"error",converter:R.converters.any}]);ly.exports={MessageEvent:Cg,CloseEvent:Eg,ErrorEvent:hg}});var Qg=I((yO,Ey)=>{"use strict";var{kReadyState:Ig,kController:RU,kResponse:FU,kBinaryType:MU,kWebSocketURL:xU}=Uo(),{states:dg,opcodes:uy}=Ai(),{MessageEvent:LU,ErrorEvent:TU}=FC();function UU(e){return e[Ig]===dg.OPEN}function qU(e){return e[Ig]===dg.CLOSING}function vU(e){return e[Ig]===dg.CLOSED}function MC(e,A,t=Event,r){let n=new t(e,r);A.dispatchEvent(n)}function PU(e,A,t){if(e[Ig]!==dg.OPEN)return;let r;if(A===uy.TEXT)try{r=new TextDecoder("utf-8",{fatal:!0}).decode(t)}catch{Cy(e,"Received invalid UTF-8 in text frame.");return}else A===uy.BINARY&&(e[MU]==="blob"?r=new Blob([t]):r=new Uint8Array(t).buffer);MC("message",e,LU,{origin:e[xU].origin,data:r})}function JU(e){if(e.length===0)return!1;for(let A of e){let t=A.charCodeAt(0);if(t<33||t>126||A==="("||A===")"||A==="<"||A===">"||A==="@"||A===","||A===";"||A===":"||A==="\\"||A==='"'||A==="/"||A==="["||A==="]"||A==="?"||A==="="||A==="{"||A==="}"||t===32||t===9)return!1}return!0}function YU(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function Cy(e,A){let{[RU]:t,[FU]:r}=e;t.abort(),r?.socket&&!r.socket.destroyed&&r.socket.destroy(),A&&MC("error",e,TU,{error:new Error(A)})}Ey.exports={isEstablished:UU,isClosing:qU,isClosed:vU,fireEvent:MC,isValidSubprotocol:JU,isValidStatusCode:YU,failWebsocketConnection:Cy,websocketMessageReceived:PU}});var fy=I((wO,By)=>{"use strict";var{randomBytes:GU,createHash:KU}=require("crypto"),xC=require("diagnostics_channel"),{uid:VU,states:Iy}=Ai(),{kReadyState:dy,kSentClose:hy,kByteParser:Qy,kReceivedClose:OU}=Uo(),{fireEvent:HU,failWebsocketConnection:zr}=Qg(),{CloseEvent:WU}=FC(),{makeRequest:_U}=Fo(),{fetching:jU}=Xa(),{Headers:ZU}=Vr(),{getGlobalDispatcher:zU}=On(),{kHeadersList:XU}=me(),Vt={};Vt.open=xC.channel("undici:websocket:open");Vt.close=xC.channel("undici:websocket:close");Vt.socketError=xC.channel("undici:websocket:socket_error");function $U(e,A,t,r,n){let i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";let o=_U({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(n.headers){let c=new ZU(n.headers)[XU];o.headersList=c}let s=GU(16).toString("base64");o.headersList.append("sec-websocket-key",s),o.headersList.append("sec-websocket-version","13");for(let c of A)o.headersList.append("sec-websocket-protocol",c);let a="";return jU({request:o,useParallelQueue:!0,dispatcher:n.dispatcher??zU(),processResponse(c){if(c.type==="error"||c.status!==101){zr(t,"Received network error or non-101 status code.");return}if(A.length!==0&&!c.headersList.get("Sec-WebSocket-Protocol")){zr(t,"Server did not respond with sent protocols.");return}if(c.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){zr(t,'Server did not set Upgrade header to "websocket".');return}if(c.headersList.get("Connection")?.toLowerCase()!=="upgrade"){zr(t,'Server did not set Connection header to "upgrade".');return}let l=c.headersList.get("Sec-WebSocket-Accept"),u=KU("sha1").update(s+VU).digest("base64");if(l!==u){zr(t,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let C=c.headersList.get("Sec-WebSocket-Extensions");if(C!==null&&C!==a){zr(t,"Received different permessage-deflate than the one set.");return}let E=c.headersList.get("Sec-WebSocket-Protocol");if(E!==null&&E!==o.headersList.get("Sec-WebSocket-Protocol")){zr(t,"Protocol was not set in the opening handshake.");return}c.socket.on("data",eq),c.socket.on("close",Aq),c.socket.on("error",tq),Vt.open.hasSubscribers&&Vt.open.publish({address:c.socket.address(),protocol:E,extensions:C}),r(c)}})}function eq(e){this.ws[Qy].write(e)||this.pause()}function Aq(){let{ws:e}=this,A=e[hy]&&e[OU],t=1005,r="",n=e[Qy].closingInfo;n?(t=n.code??1005,r=n.reason):e[hy]||(t=1006),e[dy]=Iy.CLOSED,HU("close",e,WU,{wasClean:A,code:t,reason:r}),Vt.close.hasSubscribers&&Vt.close.publish({websocket:e,code:t,reason:r})}function tq(e){let{ws:A}=this;A[dy]=Iy.CLOSING,Vt.socketError.hasSubscribers&&Vt.socketError.publish(e),this.destroy()}By.exports={establishWebSocketConnection:$U}});var TC=I((DO,py)=>{"use strict";var{randomBytes:rq}=require("crypto"),{maxUnsigned16Bit:nq}=Ai(),LC=class{constructor(A){this.frameData=A,this.maskKey=rq(4)}createFrame(A){let t=this.frameData?.byteLength??0,r=t,n=6;t>nq?(n+=8,r=127):t>125&&(n+=2,r=126);let i=Buffer.allocUnsafe(t+n);i[0]=i[1]=0,i[0]|=128,i[0]=(i[0]&240)+A;i[n-4]=this.maskKey[0],i[n-3]=this.maskKey[1],i[n-2]=this.maskKey[2],i[n-1]=this.maskKey[3],i[1]=r,r===126?i.writeUInt16BE(t,2):r===127&&(i[2]=i[3]=0,i.writeUIntBE(t,4,6)),i[1]|=128;for(let o=0;o{"use strict";var{Writable:iq}=require("stream"),by=require("diagnostics_channel"),{parserStates:ZA,opcodes:zA,states:oq,emptyBuffer:sq}=Ai(),{kReadyState:aq,kSentClose:my,kResponse:yy,kReceivedClose:wy}=Uo(),{isValidStatusCode:Dy,failWebsocketConnection:vo,websocketMessageReceived:gq}=Qg(),{WebsocketFrameSend:Sy}=TC(),ti={};ti.ping=by.channel("undici:websocket:ping");ti.pong=by.channel("undici:websocket:pong");var ot,hA,yA,H,ri,UC=class extends iq{constructor(t){super();fe(this,ot,[]);fe(this,hA,0);fe(this,yA,ZA.INFO);fe(this,H,{});fe(this,ri,[]);this.ws=t}_write(t,r,n){d(this,ot).push(t),$(this,hA,d(this,hA)+t.length),this.run(n)}run(t){var r;for(;;){if(d(this,yA)===ZA.INFO){if(d(this,hA)<2)return t();let n=this.consume(2);if(d(this,H).fin=(n[0]&128)!==0,d(this,H).opcode=n[0]&15,(r=d(this,H)).originalOpcode??(r.originalOpcode=d(this,H).opcode),d(this,H).fragmented=!d(this,H).fin&&d(this,H).opcode!==zA.CONTINUATION,d(this,H).fragmented&&d(this,H).opcode!==zA.BINARY&&d(this,H).opcode!==zA.TEXT){vo(this.ws,"Invalid frame type was fragmented.");return}let i=n[1]&127;if(i<=125?(d(this,H).payloadLength=i,$(this,yA,ZA.READ_DATA)):i===126?$(this,yA,ZA.PAYLOADLENGTH_16):i===127&&$(this,yA,ZA.PAYLOADLENGTH_64),d(this,H).fragmented&&i>125){vo(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((d(this,H).opcode===zA.PING||d(this,H).opcode===zA.PONG||d(this,H).opcode===zA.CLOSE)&&i>125){vo(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(d(this,H).opcode===zA.CLOSE){if(i===1){vo(this.ws,"Received close frame with a 1-byte body.");return}let o=this.consume(i);if(d(this,H).closeInfo=this.parseCloseBody(!1,o),!this.ws[my]){let s=Buffer.allocUnsafe(2);s.writeUInt16BE(d(this,H).closeInfo.code,0);let a=new Sy(s);this.ws[yy].socket.write(a.createFrame(zA.CLOSE),g=>{g||(this.ws[my]=!0)})}this.ws[aq]=oq.CLOSING,this.ws[wy]=!0,this.end();return}else if(d(this,H).opcode===zA.PING){let o=this.consume(i);if(!this.ws[wy]){let s=new Sy(o);this.ws[yy].socket.write(s.createFrame(zA.PONG)),ti.ping.hasSubscribers&&ti.ping.publish({payload:o})}if($(this,yA,ZA.INFO),d(this,hA)>0)continue;t();return}else if(d(this,H).opcode===zA.PONG){let o=this.consume(i);if(ti.pong.hasSubscribers&&ti.pong.publish({payload:o}),d(this,hA)>0)continue;t();return}}else if(d(this,yA)===ZA.PAYLOADLENGTH_16){if(d(this,hA)<2)return t();let n=this.consume(2);d(this,H).payloadLength=n.readUInt16BE(0),$(this,yA,ZA.READ_DATA)}else if(d(this,yA)===ZA.PAYLOADLENGTH_64){if(d(this,hA)<8)return t();let n=this.consume(8),i=n.readUInt32BE(0);if(i>2**31-1){vo(this.ws,"Received payload length > 2^31 bytes.");return}let o=n.readUInt32BE(4);d(this,H).payloadLength=(i<<8)+o,$(this,yA,ZA.READ_DATA)}else if(d(this,yA)===ZA.READ_DATA){if(d(this,hA)=d(this,H).payloadLength){let n=this.consume(d(this,H).payloadLength);if(d(this,ri).push(n),!d(this,H).fragmented||d(this,H).fin&&d(this,H).opcode===zA.CONTINUATION){let i=Buffer.concat(d(this,ri));gq(this.ws,d(this,H).originalOpcode,i),$(this,H,{}),d(this,ri).length=0}$(this,yA,ZA.INFO)}}if(!(d(this,hA)>0)){t();break}}}consume(t){if(t>d(this,hA))return null;if(t===0)return sq;if(d(this,ot)[0].length===t)return $(this,hA,d(this,hA)-d(this,ot)[0].length),d(this,ot).shift();let r=Buffer.allocUnsafe(t),n=0;for(;n!==t;){let i=d(this,ot)[0],{length:o}=i;if(o+n===t){r.set(d(this,ot).shift(),n);break}else if(o+n>t){r.set(i.subarray(0,t-n),n),d(this,ot)[0]=i.subarray(t-n);break}else r.set(d(this,ot).shift(),n),n+=i.length}return $(this,hA,d(this,hA)-t),r}parseCloseBody(t,r){let n;if(r.length>=2&&(n=r.readUInt16BE(0)),t)return Dy(n)?{code:n}:null;let i=r.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191&&(i=i.subarray(3)),n!==void 0&&!Dy(n))return null;try{i=new TextDecoder("utf-8",{fatal:!0}).decode(i)}catch{return null}return{code:n,reason:i}}get closingInfo(){return d(this,H).closeInfo}};ot=new WeakMap,hA=new WeakMap,yA=new WeakMap,H=new WeakMap,ri=new WeakMap;ky.exports={ByteParser:UC}});var vy=I((kO,qy)=>{"use strict";var{webidl:T}=gA(),{DOMException:ur}=rr(),{URLSerializer:cq}=tt(),{staticPropertyDescriptors:Cr,states:ni,opcodes:Po,emptyBuffer:lq}=Ai(),{kWebSocketURL:Ry,kReadyState:Ot,kController:uq,kBinaryType:Bg,kResponse:fg,kSentClose:Cq,kByteParser:Eq}=Uo(),{isEstablished:Fy,isClosing:My,isValidSubprotocol:hq,failWebsocketConnection:Iq,fireEvent:dq}=Qg(),{establishWebSocketConnection:Qq}=fy(),{WebsocketFrameSend:Jo}=TC(),{ByteParser:Bq}=Ny(),{kEnumerableProperty:XA,isBlobLike:Ly}=_(),{getGlobalDispatcher:fq}=On(),{types:Ty}=require("util"),xy=!1,we,$A,Yo,Go,pg,Uy,Ce=class extends EventTarget{constructor(t,r=[]){super();fe(this,pg);fe(this,we,{open:null,error:null,close:null,message:null});fe(this,$A,0);fe(this,Yo,"");fe(this,Go,"");T.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),xy||(xy=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));let n=T.converters["DOMString or sequence or WebSocketInit"](r);t=T.converters.USVString(t),r=n.protocols;let i;try{i=new URL(t)}catch(o){throw new ur(o,"SyntaxError")}if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new ur(`Expected a ws: or wss: protocol, got ${i.protocol}`,"SyntaxError");if(i.hash)throw new ur("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(o=>o.toLowerCase())).size)throw new ur("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(o=>hq(o)))throw new ur("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Ry]=i,this[uq]=Qq(i,r,this,o=>UA(this,pg,Uy).call(this,o),n),this[Ot]=Ce.CONNECTING,this[Bg]="blob"}close(t=void 0,r=void 0){if(T.brandCheck(this,Ce),t!==void 0&&(t=T.converters["unsigned short"](t,{clamp:!0})),r!==void 0&&(r=T.converters.USVString(r)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new ur("invalid code","InvalidAccessError");let n=0;if(r!==void 0&&(n=Buffer.byteLength(r),n>123))throw new ur(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError");if(!(this[Ot]===Ce.CLOSING||this[Ot]===Ce.CLOSED))if(!Fy(this))Iq(this,"Connection was closed before it was established."),this[Ot]=Ce.CLOSING;else if(My(this))this[Ot]=Ce.CLOSING;else{let i=new Jo;t!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(t,0)):t!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(t,0),i.frameData.write(r,2,"utf-8")):i.frameData=lq,this[fg].socket.write(i.createFrame(Po.CLOSE),s=>{s||(this[Cq]=!0)}),this[Ot]=ni.CLOSING}}send(t){if(T.brandCheck(this,Ce),T.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),t=T.converters.WebSocketSendData(t),this[Ot]===Ce.CONNECTING)throw new ur("Sent before connected.","InvalidStateError");if(!Fy(this)||My(this))return;let r=this[fg].socket;if(typeof t=="string"){let n=Buffer.from(t),o=new Jo(n).createFrame(Po.TEXT);$(this,$A,d(this,$A)+n.byteLength),r.write(o,()=>{$(this,$A,d(this,$A)-n.byteLength)})}else if(Ty.isArrayBuffer(t)){let n=Buffer.from(t),o=new Jo(n).createFrame(Po.BINARY);$(this,$A,d(this,$A)+n.byteLength),r.write(o,()=>{$(this,$A,d(this,$A)-n.byteLength)})}else if(ArrayBuffer.isView(t)){let n=Buffer.from(t,t.byteOffset,t.byteLength),o=new Jo(n).createFrame(Po.BINARY);$(this,$A,d(this,$A)+n.byteLength),r.write(o,()=>{$(this,$A,d(this,$A)-n.byteLength)})}else if(Ly(t)){let n=new Jo;t.arrayBuffer().then(i=>{let o=Buffer.from(i);n.frameData=o;let s=n.createFrame(Po.BINARY);$(this,$A,d(this,$A)+o.byteLength),r.write(s,()=>{$(this,$A,d(this,$A)-o.byteLength)})})}}get readyState(){return T.brandCheck(this,Ce),this[Ot]}get bufferedAmount(){return T.brandCheck(this,Ce),d(this,$A)}get url(){return T.brandCheck(this,Ce),cq(this[Ry])}get extensions(){return T.brandCheck(this,Ce),d(this,Go)}get protocol(){return T.brandCheck(this,Ce),d(this,Yo)}get onopen(){return T.brandCheck(this,Ce),d(this,we).open}set onopen(t){T.brandCheck(this,Ce),d(this,we).open&&this.removeEventListener("open",d(this,we).open),typeof t=="function"?(d(this,we).open=t,this.addEventListener("open",t)):d(this,we).open=null}get onerror(){return T.brandCheck(this,Ce),d(this,we).error}set onerror(t){T.brandCheck(this,Ce),d(this,we).error&&this.removeEventListener("error",d(this,we).error),typeof t=="function"?(d(this,we).error=t,this.addEventListener("error",t)):d(this,we).error=null}get onclose(){return T.brandCheck(this,Ce),d(this,we).close}set onclose(t){T.brandCheck(this,Ce),d(this,we).close&&this.removeEventListener("close",d(this,we).close),typeof t=="function"?(d(this,we).close=t,this.addEventListener("close",t)):d(this,we).close=null}get onmessage(){return T.brandCheck(this,Ce),d(this,we).message}set onmessage(t){T.brandCheck(this,Ce),d(this,we).message&&this.removeEventListener("message",d(this,we).message),typeof t=="function"?(d(this,we).message=t,this.addEventListener("message",t)):d(this,we).message=null}get binaryType(){return T.brandCheck(this,Ce),this[Bg]}set binaryType(t){T.brandCheck(this,Ce),t!=="blob"&&t!=="arraybuffer"?this[Bg]="blob":this[Bg]=t}},TA=Ce;we=new WeakMap,$A=new WeakMap,Yo=new WeakMap,Go=new WeakMap,pg=new WeakSet,Uy=function(t){this[fg]=t;let r=new Bq(this);r.on("drain",function(){this.ws[fg].socket.resume()}),t.socket.ws=this,this[Eq]=r,this[Ot]=ni.OPEN;let n=t.headersList.get("sec-websocket-extensions");n!==null&&$(this,Go,n);let i=t.headersList.get("sec-websocket-protocol");i!==null&&$(this,Yo,i),dq("open",this)};TA.CONNECTING=TA.prototype.CONNECTING=ni.CONNECTING;TA.OPEN=TA.prototype.OPEN=ni.OPEN;TA.CLOSING=TA.prototype.CLOSING=ni.CLOSING;TA.CLOSED=TA.prototype.CLOSED=ni.CLOSED;Object.defineProperties(TA.prototype,{CONNECTING:Cr,OPEN:Cr,CLOSING:Cr,CLOSED:Cr,url:XA,readyState:XA,bufferedAmount:XA,onopen:XA,onerror:XA,onclose:XA,close:XA,onmessage:XA,binaryType:XA,send:XA,extensions:XA,protocol:XA,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(TA,{CONNECTING:Cr,OPEN:Cr,CLOSING:Cr,CLOSED:Cr});T.converters["sequence"]=T.sequenceConverter(T.converters.DOMString);T.converters["DOMString or sequence"]=function(e){return T.util.Type(e)==="Object"&&Symbol.iterator in e?T.converters["sequence"](e):T.converters.DOMString(e)};T.converters.WebSocketInit=T.dictionaryConverter([{key:"protocols",converter:T.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return fq()}},{key:"headers",converter:T.nullableConverter(T.converters.HeadersInit)}]);T.converters["DOMString or sequence or WebSocketInit"]=function(e){return T.util.Type(e)==="Object"&&!(Symbol.iterator in e)?T.converters.WebSocketInit(e):{protocols:T.converters["DOMString or sequence"](e)}};T.converters.WebSocketSendData=function(e){if(T.util.Type(e)==="Object"){if(Ly(e))return T.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||Ty.isAnyArrayBuffer(e))return T.converters.BufferSource(e)}return T.converters.USVString(e)};qy.exports={WebSocket:TA}});var Gy=I((RO,P)=>{"use strict";var pq=Qo(),Py=sa(),Jy=le(),mq=qn(),yq=nf(),wq=mo(),Xr=_(),{InvalidArgumentError:mg}=Jy,ii=Zf(),Dq=co(),Sq=Ou(),bq=Mp(),kq=_u(),Nq=xu(),Rq=vp(),{getGlobalDispatcher:Yy,setGlobalDispatcher:Fq}=On(),Mq=Vp(),xq=Hl(),Lq=la(),qC;try{require("crypto"),qC=!0}catch{qC=!1}Object.assign(Py.prototype,ii);P.exports.Dispatcher=Py;P.exports.Client=pq;P.exports.Pool=mq;P.exports.BalancedPool=yq;P.exports.Agent=wq;P.exports.ProxyAgent=Rq;P.exports.DecoratorHandler=Mq;P.exports.RedirectHandler=xq;P.exports.createRedirectInterceptor=Lq;P.exports.buildConnector=Dq;P.exports.errors=Jy;function Ko(e){return(A,t,r)=>{if(typeof t=="function"&&(r=t,t=null),!A||typeof A!="string"&&typeof A!="object"&&!(A instanceof URL))throw new mg("invalid url");if(t!=null&&typeof t!="object")throw new mg("invalid opts");if(t&&t.path!=null){if(typeof t.path!="string")throw new mg("invalid opts.path");let o=t.path;t.path.startsWith("/")||(o=`/${o}`),A=new URL(Xr.parseOrigin(A).origin+o)}else t||(t=typeof A=="object"?A:{}),A=Xr.parseURL(A);let{agent:n,dispatcher:i=Yy()}=t;if(n)throw new mg("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...t,origin:A.origin,path:A.search?`${A.pathname}${A.search}`:A.pathname,method:t.method||(t.body?"PUT":"GET")},r)}}P.exports.setGlobalDispatcher=Fq;P.exports.getGlobalDispatcher=Yy;if(Xr.nodeMajor>16||Xr.nodeMajor===16&&Xr.nodeMinor>=8){let e=null;P.exports.fetch=async function(o){e||(e=Xa().fetch);try{return await e(...arguments)}catch(s){throw Error.captureStackTrace(s,this),s}},P.exports.Headers=Vr().Headers,P.exports.Response=Ga().Response,P.exports.Request=Fo().Request,P.exports.FormData=ia().FormData,P.exports.File=ra().File,P.exports.FileReader=vm().FileReader;let{setGlobalOrigin:A,getGlobalOrigin:t}=no();P.exports.setGlobalOrigin=A,P.exports.getGlobalOrigin=t;let{CacheStorage:r}=zm(),{kConstruct:n}=tg();P.exports.caches=new r(n)}if(Xr.nodeMajor>=16){let{deleteCookie:e,getCookies:A,getSetCookies:t,setCookie:r}=ay();P.exports.deleteCookie=e,P.exports.getCookies=A,P.exports.getSetCookies=t,P.exports.setCookie=r;let{parseMIMEType:n,serializeAMimeType:i}=tt();P.exports.parseMIMEType=n,P.exports.serializeAMimeType=i}if(Xr.nodeMajor>=18&&qC){let{WebSocket:e}=vy();P.exports.WebSocket=e}P.exports.request=Ko(ii.request);P.exports.stream=Ko(ii.stream);P.exports.pipeline=Ko(ii.pipeline);P.exports.connect=Ko(ii.connect);P.exports.upgrade=Ko(ii.upgrade);P.exports.MockClient=Sq;P.exports.MockPool=kq;P.exports.MockAgent=bq;P.exports.mockErrors=Nq});var $C=I((N9,Z0)=>{"use strict";Z0.exports=function(){function e(A,t,r,n,i){return Ar?r+1:A+1:n===i?t:t+1}return function(A,t){if(A===t)return 0;if(A.length>t.length){var r=A;A=t,t=r}for(var n=A.length,i=t.length;n>0&&A.charCodeAt(n-1)===t.charCodeAt(i-1);)n--,i--;for(var o=0;oqA,DMMFClass:()=>fi,Debug:()=>cc,Decimal:()=>bt,Extensions:()=>Ac,MetricsClient:()=>Bn,NotFoundError:()=>Ft,PrismaClientInitializationError:()=>De,PrismaClientKnownRequestError:()=>_e,PrismaClientRustPanicError:()=>JA,PrismaClientUnknownRequestError:()=>oA,PrismaClientValidationError:()=>sA,Public:()=>tc,Sql:()=>je,Types:()=>rc,defineDmmfProperty:()=>ld,empty:()=>Cd,getPrismaClient:()=>Kw,join:()=>ud,makeStrictEnum:()=>Vw,objectEnumValues:()=>Dg,raw:()=>rl,sqltag:()=>nl,warnEnvConflicts:()=>Ow,warnOnce:()=>Al});module.exports=Xw(hP);var Ac={};Bi(Ac,{defineExtension:()=>cE,getExtensionContext:()=>lE});function cE(e){return typeof e=="function"?e:A=>A.$extends(e)}function lE(e){return e}var tc={};Bi(tc,{validator:()=>uE});function uE(...e){return A=>A}var rc={};Bi(rc,{Extensions:()=>CE,Public:()=>EE,Result:()=>hE,Utils:()=>IE});var CE={};var EE={};var hE={};var IE={};function dE(e,A){for(let t of A)for(let r of Object.getOwnPropertyNames(t.prototype))Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r)??Object.create(null))}var nA=(e,A)=>{let t={};for(let r of e){let n=r[A];t[n]=r}return t};function QE(e){return e.substring(0,1).toLowerCase()+e.substring(1)}var is=class{constructor({datamodel:A}){this.datamodel=A,this.datamodelEnumMap=this.getDatamodelEnumMap(),this.modelMap=this.getModelMap(),this.typeMap=this.getTypeMap(),this.typeAndModelMap=this.getTypeModelMap()}getDatamodelEnumMap(){return nA(this.datamodel.enums,"name")}getModelMap(){return{...nA(this.datamodel.models,"name")}}getTypeMap(){return{...nA(this.datamodel.types,"name")}}getTypeModelMap(){return{...this.getTypeMap(),...this.getModelMap()}}},os=class{constructor({mappings:A}){this.mappings=A,this.mappingsMap=this.getMappingsMap()}getMappingsMap(){return nA(this.mappings.modelOperations,"model")}getOtherOperationNames(){return[Object.values(this.mappings.otherOperations.write),Object.values(this.mappings.otherOperations.read)].flat()}},ss=class{constructor({schema:A}){this.outputTypeToMergedOutputType=A=>({...A,fields:A.fields});this.schema=A,this.enumMap=this.getEnumMap(),this.outputTypes=this.getOutputTypes(),this.outputTypeMap=this.getMergedOutputTypeMap(),this.resolveOutputTypes(),this.inputObjectTypes=this.schema.inputObjectTypes,this.inputTypeMap=this.getInputTypeMap(),this.resolveInputTypes(),this.resolveFieldArgumentTypes(),this.queryType=this.outputTypeMap.prisma.Query,this.mutationType=this.outputTypeMap.prisma.Mutation,this.rootFieldMap=this.getRootFieldMap()}get[Symbol.toStringTag](){return"DMMFClass"}resolveOutputTypes(){this.resolveOutputTypesInNamespace("prisma"),this.resolveOutputTypesInNamespace("model")}resolveOutputTypesInNamespace(A){for(let t of this.outputTypes[A]){for(let r of t.fields){if(typeof r.outputType.type!="string"||r.outputType.location==="scalar")continue;let n=r.outputType.namespace??"model";r.outputType.location==="outputObjectTypes"?r.outputType.type=this.outputTypeMap[n][r.outputType.type]:r.outputType.location==="enumTypes"&&(r.outputType.type=this.enumMap[n][r.outputType.type])}t.fieldMap=nA(t.fields,"name")}}resolveInputTypes(){this.resolveNamespaceInputTypes("model"),this.resolveNamespaceInputTypes("prisma")}resolveNamespaceInputTypes(A){let t=this.inputObjectTypes[A]??[];for(let r of t){for(let n of r.fields)for(let i of n.inputTypes){if(typeof i.type!="string")continue;let o=i.type;if(i.location==="scalar")continue;let s=i.namespace??"model";i.location==="inputObjectTypes"&&(i.type=this.inputTypeMap[s][o]),i.location==="enumTypes"&&(i.type=this.enumMap[s][o])}r.fieldMap=nA(r.fields,"name")}}resolveFieldArgumentTypes(){this.resolveFieldArgumentTypesInNamespace("model"),this.resolveFieldArgumentTypesInNamespace("prisma")}resolveFieldArgumentTypesInNamespace(A){let t=this.outputTypes[A]??[];for(let r of t)for(let n of r.fields)for(let i of n.args)for(let o of i.inputTypes){let s=o.type;if(typeof s!="string"||o.location==="scalar")continue;let a=o.namespace??"model";o.location==="inputObjectTypes"&&(o.type=this.inputTypeMap[a][s]),o.location==="enumTypes"&&(o.type=this.enumMap[a][s])}}getOutputTypes(){return{model:this.schema.outputObjectTypes.model.map(this.outputTypeToMergedOutputType),prisma:this.schema.outputObjectTypes.prisma.map(this.outputTypeToMergedOutputType)}}getEnumMap(){return{prisma:nA(this.schema.enumTypes.prisma,"name"),model:this.schema.enumTypes.model?nA(this.schema.enumTypes.model,"name"):{}}}hasEnumInNamespace(A,t){return this.schema.enumTypes[t]?.find(r=>r.name===A)!==void 0}getMergedOutputTypeMap(){return{model:nA(this.outputTypes.model,"name"),prisma:nA(this.outputTypes.prisma,"name")}}getInputTypeMap(){return{prisma:nA(this.schema.inputObjectTypes.prisma,"name"),model:this.schema.inputObjectTypes.model?nA(this.schema.inputObjectTypes.model,"name"):{}}}getRootFieldMap(){return{...nA(this.queryType.fields,"name"),...nA(this.mutationType.fields,"name")}}},fi=class{constructor(A){return Object.assign(this,new is(A),new os(A),new ss(A))}};dE(fi,[is,os,ss]);var qA;(A=>{let e;(p=>(p.findUnique="findUnique",p.findUniqueOrThrow="findUniqueOrThrow",p.findFirst="findFirst",p.findFirstOrThrow="findFirstOrThrow",p.findMany="findMany",p.create="create",p.createMany="createMany",p.update="update",p.updateMany="updateMany",p.upsert="upsert",p.delete="delete",p.deleteMany="deleteMany",p.groupBy="groupBy",p.count="count",p.aggregate="aggregate",p.findRaw="findRaw",p.aggregateRaw="aggregateRaw"))(e=A.ModelAction||(A.ModelAction={}))})(qA||(qA={}));var us=W(kE()),pD=100,pi=[];typeof process<"u"&&typeof process.stderr?.write!="function"&&(us.default.log=console.debug??console.log);function mD(e){let A=(0,us.default)(e),t=Object.assign((...r)=>(A.log=t.log,r.length!==0&&pi.push([e,...r]),pi.length>pD&&pi.shift(),A("",...r)),A);return t}var cc=Object.assign(mD,us.default);function NE(e=7500){let A=pi.map(t=>t.map(r=>typeof r=="string"?r:JSON.stringify(r)).join(" ")).join(` + `);return A.length2&&n.push.apply(n,t.slice(1,t.length-1)),new e(this.value,this.cases.concat([{match:function(o){var s={},a=Boolean(n.some(function(g){return ZD(g,o,function(c,l){s[c]=l})})&&i.every(function(g){return g(o)}));return{matched:a,value:a&&Object.keys(s).length?mh in s?s[mh]:s:o}},handler:r}]))},A.when=function(t,r){return new e(this.value,this.cases.concat([{match:function(n){return{matched:Boolean(t(n)),value:n}},handler:r}]))},A.otherwise=function(t){return new e(this.value,this.cases.concat([{match:function(r){return{matched:!0,value:r}},handler:t}])).run()},A.exhaustive=function(){return this.run()},A.run=function(){for(var t=this.value,r=void 0,n=0;n!process.env.PRISMA_DISABLE_WARNINGS};function wi(e,...A){AS.warn()&&console.warn(`${eS.warn} ${e}`,...A)}var tS=(0,Uh.promisify)(Th.default.exec),IA=pe("prisma:get-platform"),rS=["1.0.x","1.1.x","3.0.x"];async function qh(){let e=fs.default.platform(),A=process.arch;if(e==="freebsd"){let o=await ps("freebsd-version");if(o&&o.trim().length>0){let a=/^(\d+)\.?/.exec(o);if(a)return{platform:"freebsd",targetDistro:`freebsd${a[1]}`,arch:A}}}if(e!=="linux")return{platform:e,arch:A};let t=await iS(),r=await ES(),n=sS({arch:A,archFromUname:r,familyDistro:t.familyDistro}),{libssl:i}=await aS(n);return{platform:"linux",libssl:i,arch:A,archFromUname:r,...t}}function nS(e){let A=/^ID="?([^"\n]*)"?$/im,t=/^ID_LIKE="?([^"\n]*)"?$/im,r=A.exec(e),n=r&&r[1]&&r[1].toLowerCase()||"",i=t.exec(e),o=i&&i[1]&&i[1].toLowerCase()||"",s=ds({id:n,idLike:o}).with({id:"alpine"},({id:a})=>({targetDistro:"musl",familyDistro:a,originalDistro:a})).with({id:"raspbian"},({id:a})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:a})).with({id:"nixos"},({id:a})=>({targetDistro:"nixos",originalDistro:a,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:a})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:a})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:a})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:a})).when(({idLike:a})=>a.includes("debian")||a.includes("ubuntu"),({id:a})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:a})).when(({idLike:a})=>n==="arch"||a.includes("arch"),({id:a})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:a})).when(({idLike:a})=>a.includes("centos")||a.includes("fedora")||a.includes("rhel")||a.includes("suse"),({id:a})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:a})).otherwise(({id:a})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:a}));return IA(`Found distro info: +-${JSON.stringify(s,null,2)}`),s}async function iS(){let e="/etc/os-release";try{let A=await bc.default.readFile(e,{encoding:"utf-8"});return nS(A)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function oS(e){let A=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(A){let t=`${A[1]}.x`;return vh(t)}}function xh(e){let A=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(A){let t=`${A[1]}${A[2]??".0"}.x`;return vh(t)}}function vh(e){let A=(()=>{if(Ph(e))return e;let t=e.split(".");return t[1]="0",t.join(".")})();if(rS.includes(A))return A}function sS(e){return ds(e).with({familyDistro:"musl"},()=>(IA('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:A})=>(IA('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${A}-linux-gnu`,`/lib/${A}-linux-gnu`])).with({familyDistro:"rhel"},()=>(IA('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:A,arch:t,archFromUname:r})=>(IA(`Don't know any platform-specific paths for "${A}" on ${t} (${r})`),[]))}async function aS(e){let A='grep -v "libssl.so.0"',t=await Lh(e);if(t){IA(`Found libssl.so file using platform-specific paths: ${t}`);let i=xh(t);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"libssl-specific-path"}}IA('Falling back to "ldconfig" and other generic paths');let r=await ps(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${A}`);if(r||(r=await Lh(["/lib64","/usr/lib64","/lib"])),r){IA(`Found libssl.so file using "ldconfig" or other generic paths: ${r}`);let i=xh(r);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"ldconfig"}}let n=await ps("openssl version -v");if(n){IA(`Found openssl binary with version: ${n}`);let i=oS(n);if(IA(`The parsed openssl version is: ${i}`),i)return{libssl:i,strategy:"openssl-binary"}}return IA("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Lh(e){for(let A of e){let t=await gS(A);if(t)return t}}async function gS(e){try{return(await bc.default.readdir(e)).find(t=>t.startsWith("libssl.so.")&&!t.startsWith("libssl.so.0"))}catch(A){if(A.code==="ENOENT")return;throw A}}async function cn(){let{binaryTarget:e}=await lS();return e}function cS(e){return e.binaryTarget!==void 0}var Bs={};async function lS(){if(cS(Bs))return Promise.resolve({...Bs,memoized:!0});let e=await qh(),A=uS(e);return Bs={...e,binaryTarget:A},{...Bs,memoized:!1}}function uS(e){let{platform:A,arch:t,archFromUname:r,libssl:n,targetDistro:i,familyDistro:o,originalDistro:s}=e;A==="linux"&&!["x64","arm64"].includes(t)&&wi(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${r}".`);let a="1.1.x";if(A==="linux"&&n===void 0){let c=ds({familyDistro:o}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");wi(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${a}". ++${JSON.stringify(s,null,2)}`),s}async function iS(){let e="/etc/os-release";try{let A=await bc.default.readFile(e,{encoding:"utf-8"});return nS(A)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function oS(e){let A=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(A){let t=`${A[1]}.x`;return vh(t)}}function xh(e){let A=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(A){let t=`${A[1]}${A[2]??".0"}.x`;return vh(t)}}function vh(e){let A=(()=>{if(Ph(e))return e;let t=e.split(".");return t[1]="0",t.join(".")})();if(rS.includes(A))return A}function sS(e){return ds(e).with({familyDistro:"musl"},()=>(IA('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:A})=>(IA('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${A}-linux-gnu`,`/lib/${A}-linux-gnu`])).with({familyDistro:"rhel"},()=>(IA('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:A,arch:t,archFromUname:r})=>(IA(`Don't know any platform-specific paths for "${A}" on ${t} (${r})`),[]))}async function aS(e){let A='grep -v "libssl.so.0"',t=await Lh(e);if(t){IA(`Found libssl.so file using platform-specific paths: ${t}`);let i=xh(t);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"libssl-specific-path"}}IA('Falling back to "ldconfig" and other generic paths');let r=await ps(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${A}`);if(r||(r=await Lh(["/lib64","/usr/lib64","/lib"])),r){IA(`Found libssl.so file using "ldconfig" or other generic paths: ${r}`);let i=xh(r);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"ldconfig"}}let n=await ps("openssl version -v");if(n){IA(`Found openssl binary with version: ${n}`);let i=oS(n);if(IA(`The parsed openssl version is: ${i}`),i)return{libssl:i,strategy:"openssl-binary"}}return IA("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Lh(e){for(let A of e){let t=await gS(A);if(t)return t}}async function gS(e){try{return(await bc.default.readdir(e)).find(t=>t.startsWith("libssl.so")&&!t.startsWith("libssl.so.0"))}catch(A){if(A.code==="ENOENT")return;throw A}}async function cn(){let{binaryTarget:e}=await lS();return e}function cS(e){return e.binaryTarget!==void 0}var Bs={};async function lS(){if(cS(Bs))return Promise.resolve({...Bs,memoized:!0});let e=await qh(),A=uS(e);return Bs={...e,binaryTarget:A},{...Bs,memoized:!1}}function uS(e){let{platform:A,arch:t,archFromUname:r,libssl:n,targetDistro:i,familyDistro:o,originalDistro:s}=e;A==="linux"&&!["x64","arm64"].includes(t)&&wi(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${r}".`);let a="1.1.x";if(A==="linux"&&n===void 0){let c=ds({familyDistro:o}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");wi(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${a}". + ${c}`)}let g="debian";if(A==="linux"&&i===void 0&&wi(`Prisma doesn't know which engines to download for the Linux distro "${s}". Falling back to Prisma engines built "${g}". + Please report your experience by creating an issue at ${Mh("https://github.com/prisma/prisma/issues")} so we can add your distro to the list of known supported distros.`),A==="darwin"&&t==="arm64")return"darwin-arm64";if(A==="darwin")return"darwin";if(A==="win32")return"windows";if(A==="freebsd")return i;if(A==="openbsd")return"openbsd";if(A==="netbsd")return"netbsd";if(A==="linux"&&i==="nixos")return"linux-nixos";if(A==="linux"&&t==="arm64")return`${i==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${n||a}`;if(A==="linux"&&t==="arm")return`linux-arm-openssl-${n||a}`;if(A==="linux"&&i==="musl"){let c="linux-musl";return!n||Ph(n)?c:`${c}-openssl-${n}`}return A==="linux"&&i&&n?`${i}-openssl-${n}`:(A!=="linux"&&wi(`Prisma detected unknown OS "${A}" and may not work as expected. Defaulting to "linux".`),n?`${g}-openssl-${n}`:i?`${i}-openssl-${a}`:`${g}-openssl-${a}`)}async function CS(e){try{return await e()}catch{return}}function ps(e){return CS(async()=>{let A=await tS(e);return IA(`Command "${e}" successfully returned "${A.stdout}"`),A.stdout})}async function ES(){return typeof fs.default.machine=="function"?fs.default.machine():(await ps("uname -m"))?.trim()}function Ph(e){return e.startsWith("1.")}var kc=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","openbsd","netbsd","arm"];var Yc=W(qI()),Us=W(require("fs"));var dn=W(require("path"));function vI(e){let A=e.ignoreProcessEnv?{}:process.env,t=r=>r.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(i,o){let s=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(o);if(!s)return i;let a=s[1],g,c;if(a==="\\")c=s[0],g=c.replace("\\$","$");else{let l=s[2];c=s[0].substring(a.length),g=Object.hasOwnProperty.call(A,l)?A[l]:e.parsed[l]||"",g=t(g)}return i.replace(c,g)},r)??r;for(let r in e.parsed){let n=Object.hasOwnProperty.call(A,r)?A[r]:e.parsed[r];e.parsed[r]=t(n)}for(let r in e.parsed)A[r]=e.parsed[r];return e}var Jc=pe("prisma:tryLoadEnv");function Ri({rootEnvPath:e,schemaEnvPath:A},t={conflictCheck:"none"}){let r=PI(e);t.conflictCheck!=="none"&&Ob(r,A,t.conflictCheck);let n=null;return JI(r?.path,A)||(n=PI(A)),!r&&!n&&Jc("No Environment variables loaded"),n?.dotenvResult.error?console.error(At($e("Schema Env Error: "))+n.dotenvResult.error):{message:[r?.message,n?.message].filter(Boolean).join(` + `),parsed:{...r?.dotenvResult?.parsed,...n?.dotenvResult?.parsed}}}function Ob(e,A,t){let r=e?.dotenvResult.parsed,n=!JI(e?.path,A);if(r&&A&&n&&Us.default.existsSync(A)){let i=Yc.default.parse(Us.default.readFileSync(A)),o=[];for(let s in i)r[s]===i[s]&&o.push(s);if(o.length>0){let s=dn.default.relative(process.cwd(),e.path),a=dn.default.relative(process.cwd(),A);if(t==="error"){let g=`There is a conflict between env var${o.length>1?"s":""} in ${iA(s)} and ${iA(a)} +diff --git a/node_modules/@prisma/client/runtime/library.js b/node_modules/@prisma/client/runtime/library.js +index 1c01fa5..5914e5f 100644 +--- a/node_modules/@prisma/client/runtime/library.js ++++ b/node_modules/@prisma/client/runtime/library.js +@@ -6,7 +6,7 @@ + `);let n;for(;(n=Ql.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,` + `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function xn(e){console.log(`[dotenv@${Ul}][DEBUG] ${e}`)}function Gl(e){return e[0]==="~"?no.join(Kl.homedir(),e.slice(1)):e}function Wl(e){let t=no.resolve(process.cwd(),".env"),r="utf8",n=Boolean(e&&e.debug),i=Boolean(e&&e.override);e&&(e.path!=null&&(t=Gl(e.path)),e.encoding!=null&&(r=e.encoding));try{let o=ur.parse(Bl.readFileSync(t,{encoding:r}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&xn(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&xn(`Failed to load ${t} ${o.message}`),{error:o}}}var ur={config:Wl,parse:Jl};cr.exports.config=ur.config;cr.exports.parse=ur.parse;cr.exports=ur});var co=L((Pm,uo)=>{"use strict";uo.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var mo=L((Em,po)=>{"use strict";var Zl=co();po.exports=e=>{let t=Zl(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var fo=L((Tm,Xl)=>{Xl.exports={name:"@prisma/engines-version",version:"5.1.0-28.a9b7003df90aa623086e4d6f4e43c72468e6339b",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"a9b7003df90aa623086e4d6f4e43c72468e6339b"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.17.1",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var En=L(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.enginesVersion=void 0;dr.enginesVersion=fo().prisma.enginesVersion});var An=L((Nm,ho)=>{"use strict";ho.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Po=L((qm,wo)=>{"use strict";wo.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var On=L((jm,Eo)=>{"use strict";var uu=Po();Eo.exports=e=>typeof e=="string"?e.replace(uu(),""):e});var To=L((Km,mr)=>{"use strict";mr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};mr.exports.default=mr.exports});var ni=L((jx,Hs)=>{"use strict";Hs.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;sue,DMMFClass:()=>bt,Debug:()=>an,Decimal:()=>we,Extensions:()=>Yr,MetricsClient:()=>st,NotFoundError:()=>Ce,PrismaClientInitializationError:()=>_,PrismaClientKnownRequestError:()=>H,PrismaClientRustPanicError:()=>ae,PrismaClientUnknownRequestError:()=>z,PrismaClientValidationError:()=>te,Public:()=>Zr,Sql:()=>U,Types:()=>Xr,defineDmmfProperty:()=>Co,empty:()=>Ao,getPrismaClient:()=>Ka,join:()=>Mo,makeStrictEnum:()=>Va,objectEnumValues:()=>Pr,raw:()=>Ln,sqltag:()=>$n,warnEnvConflicts:()=>Ua,warnOnce:()=>In});module.exports=za(Yp);var Yr={};xt(Yr,{defineExtension:()=>di,getExtensionContext:()=>mi});function di(e){return typeof e=="function"?e:t=>t.$extends(e)}function mi(e){return e}var Zr={};xt(Zr,{validator:()=>fi});function fi(...e){return t=>t}var Xr={};xt(Xr,{Extensions:()=>gi,Public:()=>yi,Result:()=>hi,Utils:()=>xi});var gi={};var yi={};var hi={};var xi={};function bi(e,t){for(let r of t)for(let n of Object.getOwnPropertyNames(r.prototype))Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)??Object.create(null))}var Z=(e,t)=>{let r={};for(let n of e){let i=n[t];r[i]=n}return r};function wi(e){return e.substring(0,1).toLowerCase()+e.substring(1)}var Wt=class{constructor({datamodel:t}){this.datamodel=t,this.datamodelEnumMap=this.getDatamodelEnumMap(),this.modelMap=this.getModelMap(),this.typeMap=this.getTypeMap(),this.typeAndModelMap=this.getTypeModelMap()}getDatamodelEnumMap(){return Z(this.datamodel.enums,"name")}getModelMap(){return{...Z(this.datamodel.models,"name")}}getTypeMap(){return{...Z(this.datamodel.types,"name")}}getTypeModelMap(){return{...this.getTypeMap(),...this.getModelMap()}}},Ht=class{constructor({mappings:t}){this.mappings=t,this.mappingsMap=this.getMappingsMap()}getMappingsMap(){return Z(this.mappings.modelOperations,"model")}getOtherOperationNames(){return[Object.values(this.mappings.otherOperations.write),Object.values(this.mappings.otherOperations.read)].flat()}},zt=class{constructor({schema:t}){this.outputTypeToMergedOutputType=t=>({...t,fields:t.fields});this.schema=t,this.enumMap=this.getEnumMap(),this.outputTypes=this.getOutputTypes(),this.outputTypeMap=this.getMergedOutputTypeMap(),this.resolveOutputTypes(),this.inputObjectTypes=this.schema.inputObjectTypes,this.inputTypeMap=this.getInputTypeMap(),this.resolveInputTypes(),this.resolveFieldArgumentTypes(),this.queryType=this.outputTypeMap.prisma.Query,this.mutationType=this.outputTypeMap.prisma.Mutation,this.rootFieldMap=this.getRootFieldMap()}get[Symbol.toStringTag](){return"DMMFClass"}resolveOutputTypes(){this.resolveOutputTypesInNamespace("prisma"),this.resolveOutputTypesInNamespace("model")}resolveOutputTypesInNamespace(t){for(let r of this.outputTypes[t]){for(let n of r.fields){if(typeof n.outputType.type!="string"||n.outputType.location==="scalar")continue;let i=n.outputType.namespace??"model";n.outputType.location==="outputObjectTypes"?n.outputType.type=this.outputTypeMap[i][n.outputType.type]:n.outputType.location==="enumTypes"&&(n.outputType.type=this.enumMap[i][n.outputType.type])}r.fieldMap=Z(r.fields,"name")}}resolveInputTypes(){this.resolveNamespaceInputTypes("model"),this.resolveNamespaceInputTypes("prisma")}resolveNamespaceInputTypes(t){let r=this.inputObjectTypes[t]??[];for(let n of r){for(let i of n.fields)for(let o of i.inputTypes){if(typeof o.type!="string")continue;let s=o.type;if(o.location==="scalar")continue;let a=o.namespace??"model";o.location==="inputObjectTypes"&&(o.type=this.inputTypeMap[a][s]),o.location==="enumTypes"&&(o.type=this.enumMap[a][s])}n.fieldMap=Z(n.fields,"name")}}resolveFieldArgumentTypes(){this.resolveFieldArgumentTypesInNamespace("model"),this.resolveFieldArgumentTypesInNamespace("prisma")}resolveFieldArgumentTypesInNamespace(t){let r=this.outputTypes[t]??[];for(let n of r)for(let i of n.fields)for(let o of i.args)for(let s of o.inputTypes){let a=s.type;if(typeof a!="string"||s.location==="scalar")continue;let l=s.namespace??"model";s.location==="inputObjectTypes"&&(s.type=this.inputTypeMap[l][a]),s.location==="enumTypes"&&(s.type=this.enumMap[l][a])}}getOutputTypes(){return{model:this.schema.outputObjectTypes.model.map(this.outputTypeToMergedOutputType),prisma:this.schema.outputObjectTypes.prisma.map(this.outputTypeToMergedOutputType)}}getEnumMap(){return{prisma:Z(this.schema.enumTypes.prisma,"name"),model:this.schema.enumTypes.model?Z(this.schema.enumTypes.model,"name"):{}}}hasEnumInNamespace(t,r){return this.schema.enumTypes[r]?.find(n=>n.name===t)!==void 0}getMergedOutputTypeMap(){return{model:Z(this.outputTypes.model,"name"),prisma:Z(this.outputTypes.prisma,"name")}}getInputTypeMap(){return{prisma:Z(this.schema.inputObjectTypes.prisma,"name"),model:this.schema.inputObjectTypes.model?Z(this.schema.inputObjectTypes.model,"name"):{}}}getRootFieldMap(){return{...Z(this.queryType.fields,"name"),...Z(this.mutationType.fields,"name")}}},bt=class{constructor(t){return Object.assign(this,new Wt(t),new Ht(t),new zt(t))}};bi(bt,[Wt,Ht,zt]);var ue;(t=>{let e;(x=>(x.findUnique="findUnique",x.findUniqueOrThrow="findUniqueOrThrow",x.findFirst="findFirst",x.findFirstOrThrow="findFirstOrThrow",x.findMany="findMany",x.create="create",x.createMany="createMany",x.update="update",x.updateMany="updateMany",x.upsert="upsert",x.delete="delete",x.deleteMany="deleteMany",x.groupBy="groupBy",x.count="count",x.aggregate="aggregate",x.findRaw="findRaw",x.aggregateRaw="aggregateRaw"))(e=t.ModelAction||(t.ModelAction={}))})(ue||(ue={}));var tr=A(Fi()),bl=100,wt=[];typeof process<"u"&&typeof process.stderr?.write!="function"&&(tr.default.log=console.debug??console.log);function wl(e){let t=(0,tr.default)(e),r=Object.assign((...n)=>(t.log=r.log,n.length!==0&&wt.push([e,...n]),wt.length>bl&&wt.shift(),t("",...n)),t);return r}var an=Object.assign(wl,tr.default);function Oi(e=7500){let t=wt.map(r=>r.map(n=>typeof n=="string"?n:JSON.stringify(n)).join(" ")).join(` + `);return t.length2&&i.push.apply(i,r.slice(1,r.length-1)),new e(this.value,this.cases.concat([{match:function(s){var a={},l=Boolean(i.some(function(u){return El(u,s,function(c,p){a[c]=p})})&&o.every(function(u){return u(s)}));return{matched:l,value:l&&Object.keys(a).length?$i in a?a[$i]:a:s}},handler:n}]))},t.when=function(r,n){return new e(this.value,this.cases.concat([{match:function(i){return{matched:Boolean(r(i)),value:i}},handler:n}]))},t.otherwise=function(r){return new e(this.value,this.cases.concat([{match:function(n){return{matched:!0,value:n}},handler:r}])).run()},t.exhaustive=function(){return this.run()},t.run=function(){for(var r=this.value,n=void 0,i=0;i!process.env.PRISMA_DISABLE_WARNINGS};function vt(e,...t){Al.warn()&&console.warn(`${Ml.warn} ${e}`,...t)}var Sl=(0,Yi.promisify)(zi.default.exec),ie=N("prisma:get-platform"),Rl=["1.0.x","1.1.x","3.0.x"];async function Zi(){let e=ar.default.platform(),t=process.arch;if(e==="freebsd"){let s=await lr("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await Ol(),n=await ql(),i=Dl({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await _l(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Fl(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=et({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return ie(`Found distro info: +-${JSON.stringify(a,null,2)}`),a}async function Ol(){let e="/etc/os-release";try{let t=await gn.default.readFile(e,{encoding:"utf-8"});return Fl(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function kl(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return Xi(r)}}function Wi(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return Xi(r)}}function Xi(e){let t=(()=>{if(to(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(Rl.includes(t))return t}function Dl(e){return et(e).with({familyDistro:"musl"},()=>(ie('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(ie('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(ie('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(ie(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function _l(e){let t='grep -v "libssl.so.0"',r=await Hi(e);if(r){ie(`Found libssl.so file using platform-specific paths: ${r}`);let o=Wi(r);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}ie('Falling back to "ldconfig" and other generic paths');let n=await lr(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Hi(["/lib64","/usr/lib64","/lib"])),n){ie(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=Wi(n);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await lr("openssl version -v");if(i){ie(`Found openssl binary with version: ${i}`);let o=kl(i);if(ie(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return ie("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Hi(e){for(let t of e){let r=await Il(t);if(r)return r}}async function Il(e){try{return(await gn.default.readdir(e)).find(r=>r.startsWith("libssl.so.")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function nt(){let{binaryTarget:e}=await eo();return e}function Nl(e){return e.binaryTarget!==void 0}async function yn(){let{memoized:e,...t}=await eo();return t}var sr={};async function eo(){if(Nl(sr))return Promise.resolve({...sr,memoized:!0});let e=await Zi(),t=Ll(e);return sr={...e,binaryTarget:t},{...sr,memoized:!1}}function Ll(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&vt(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(t==="linux"&&i===void 0){let c=et({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");vt(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". ++${JSON.stringify(a,null,2)}`),a}async function Ol(){let e="/etc/os-release";try{let t=await gn.default.readFile(e,{encoding:"utf-8"});return Fl(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function kl(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return Xi(r)}}function Wi(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return Xi(r)}}function Xi(e){let t=(()=>{if(to(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(Rl.includes(t))return t}function Dl(e){return et(e).with({familyDistro:"musl"},()=>(ie('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(ie('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(ie('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(ie(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function _l(e){let t='grep -v "libssl.so.0"',r=await Hi(e);if(r){ie(`Found libssl.so file using platform-specific paths: ${r}`);let o=Wi(r);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}ie('Falling back to "ldconfig" and other generic paths');let n=await lr(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Hi(["/lib64","/usr/lib64","/lib"])),n){ie(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=Wi(n);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await lr("openssl version -v");if(i){ie(`Found openssl binary with version: ${i}`);let o=kl(i);if(ie(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return ie("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Hi(e){for(let t of e){let r=await Il(t);if(r)return r}}async function Il(e){try{return(await gn.default.readdir(e)).find(r=>r.startsWith("libssl.so")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function nt(){let{binaryTarget:e}=await eo();return e}function Nl(e){return e.binaryTarget!==void 0}async function yn(){let{memoized:e,...t}=await eo();return t}var sr={};async function eo(){if(Nl(sr))return Promise.resolve({...sr,memoized:!0});let e=await Zi(),t=Ll(e);return sr={...e,binaryTarget:t},{...sr,memoized:!1}}function Ll(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&vt(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(t==="linux"&&i===void 0){let c=et({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");vt(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". + ${c}`)}let u="debian";if(t==="linux"&&o===void 0&&vt(`Prisma doesn't know which engines to download for the Linux distro "${a}". Falling back to Prisma engines built "${u}". + Please report your experience by creating an issue at ${Tt("https://github.com/prisma/prisma/issues")} so we can add your distro to the list of known supported distros.`),t==="darwin"&&r==="arm64")return"darwin-arm64";if(t==="darwin")return"darwin";if(t==="win32")return"windows";if(t==="freebsd")return o;if(t==="openbsd")return"openbsd";if(t==="netbsd")return"netbsd";if(t==="linux"&&o==="nixos")return"linux-nixos";if(t==="linux"&&r==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(t==="linux"&&r==="arm")return`linux-arm-openssl-${i||l}`;if(t==="linux"&&o==="musl"){let c="linux-musl";return!i||to(i)?c:`${c}-openssl-${i}`}return t==="linux"&&o&&i?`${o}-openssl-${i}`:(t!=="linux"&&vt(`Prisma detected unknown OS "${t}" and may not work as expected. Defaulting to "linux".`),i?`${u}-openssl-${i}`:o?`${o}-openssl-${l}`:`${u}-openssl-${l}`)}async function $l(e){try{return await e()}catch{return}}function lr(e){return $l(async()=>{let t=await Sl(e);return ie(`Command "${e}" successfully returned "${t.stdout}"`),t.stdout})}async function ql(){return typeof ar.default.machine=="function"?ar.default.machine():(await lr("uname -m"))?.trim()}function to(e){return e.startsWith("1.")}var hn=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","openbsd","netbsd","arm"];var wn=A(io()),pr=A(require("fs"));var it=A(require("path"));function oo(e){let t=e.ignoreProcessEnv?{}:process.env,r=n=>n.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(o,s){let a=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(s);if(!a)return o;let l=a[1],u,c;if(l==="\\")c=a[0],u=c.replace("\\$","$");else{let p=a[2];c=a[0].substring(l.length),u=Object.hasOwnProperty.call(t,p)?t[p]:e.parsed[p]||"",u=r(u)}return o.replace(c,u)},n)??n;for(let n in e.parsed){let i=Object.hasOwnProperty.call(t,n)?t[n]:e.parsed[n];e.parsed[n]=r(i)}for(let n in e.parsed)t[n]=e.parsed[n];return e}var bn=N("prisma:tryLoadEnv");function Ct({rootEnvPath:e,schemaEnvPath:t},r={conflictCheck:"none"}){let n=so(e);r.conflictCheck!=="none"&&Hl(n,t,r.conflictCheck);let i=null;return ao(n?.path,t)||(i=so(t)),!n&&!i&&bn("No Environment variables loaded"),i?.dotenvResult.error?console.error(pe(ne("Schema Env Error: "))+i.dotenvResult.error):{message:[n?.message,i?.message].filter(Boolean).join(` + `),parsed:{...n?.dotenvResult?.parsed,...i?.dotenvResult?.parsed}}}function Hl(e,t,r){let n=e?.dotenvResult.parsed,i=!ao(e?.path,t);if(n&&t&&i&&pr.default.existsSync(t)){let o=wn.default.parse(pr.default.readFileSync(t)),s=[];for(let a in o)n[a]===o[a]&&s.push(a);if(s.length>0){let a=it.default.relative(process.cwd(),e.path),l=it.default.relative(process.cwd(),t);if(r==="error"){let u=`There is a conflict between env var${s.length>1?"s":""} in ${X(a)} and ${X(l)} diff --git a/patches/@prisma+engines+5.1.0.patch b/patches/@prisma+engines+5.1.0.patch new file mode 100644 index 0000000..e681122 --- /dev/null +++ b/patches/@prisma+engines+5.1.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@prisma/engines/dist/index.js b/node_modules/@prisma/engines/dist/index.js +index 9e41501..42dc4b0 100644 +--- a/node_modules/@prisma/engines/dist/index.js ++++ b/node_modules/@prisma/engines/dist/index.js +@@ -21451,7 +21451,7 @@ async function findLibSSLInLocations(directories) { + async function findLibSSL(directory) { + try { + const dirContents = await import_promises.default.readdir(directory); +- return dirContents.find((value) => value.startsWith("libssl.so.") && !value.startsWith("libssl.so.0")); ++ return dirContents.find((value) => value.startsWith("libssl.so") && !value.startsWith("libssl.so.0")); + } catch (e2) { + if (e2.code === "ENOENT") { + return void 0; From 726d88d3a1dffea28fcdcaedce0eecac7b051acc Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 14:36:53 -0700 Subject: [PATCH 06/12] See if binary target ordering matters at all, and revert "heresy: patch-package to remove the dot" This reverts commit 3d507169089df89038b73e7804dea639d2af60db. --- package-lock.json | 575 ---------------------------- package.json | 4 +- patches/@prisma+client+5.1.0.patch | 26 -- patches/@prisma+engines+5.1.0.patch | 13 - prisma/schema.prisma | 2 +- 5 files changed, 2 insertions(+), 618 deletions(-) delete mode 100644 patches/@prisma+client+5.1.0.patch delete mode 100644 patches/@prisma+engines+5.1.0.patch diff --git a/package-lock.json b/package-lock.json index 3fccdc0..f8100c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,14 +7,12 @@ "": { "name": "prisma-20905", "version": "1.0.0", - "hasInstallScript": true, "license": "ISC", "dependencies": { "@prisma/client": "5.1.0" }, "devDependencies": { "@types/node": "^20.5.7", - "patch-package": "^8.0.0", "prisma": "5.1.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", @@ -120,12 +118,6 @@ "integrity": "sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==", "dev": true }, - "node_modules/@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", - "dev": true - }, "node_modules/acorn": { "version": "8.10.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", @@ -147,139 +139,18 @@ "node": ">=0.4.0" } }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -289,153 +160,6 @@ "node": ">=0.3.1" } }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "dev": true, - "dependencies": { - "micromatch": "^4.0.2" - } - }, - "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/json-stable-stringify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", - "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", - "dev": true, - "dependencies": { - "jsonify": "^0.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -448,79 +172,12 @@ "node": ">=6" } }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.11" - } - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", @@ -530,100 +187,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/patch-package": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", - "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", - "dev": true, - "dependencies": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "ci-info": "^3.7.0", - "cross-spawn": "^7.0.3", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^9.0.0", - "json-stable-stringify": "^1.0.2", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "rimraf": "^2.6.3", - "semver": "^7.5.3", - "slash": "^2.0.0", - "tmp": "^0.0.33", - "yaml": "^2.2.2" - }, - "bin": { - "patch-package": "index.js" - }, - "engines": { - "node": ">=14", - "npm": ">5" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/prisma": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.1.0.tgz", @@ -640,63 +203,6 @@ "node": ">=16.13" } }, - "node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -706,42 +212,6 @@ "node": ">=4" } }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/ts-node": { "version": "10.9.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", @@ -812,57 +282,12 @@ "node": ">=14.17" } }, - "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz", - "integrity": "sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==", - "dev": true, - "engines": { - "node": ">= 14" - } - }, "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", diff --git a/package.json b/package.json index 89a269b..e632b5b 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,13 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "postinstall": "patch-package" + "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@types/node": "^20.5.7", - "patch-package": "^8.0.0", "prisma": "5.1.0", "ts-node": "^10.9.1", "tsconfig-paths": "^4.2.0", diff --git a/patches/@prisma+client+5.1.0.patch b/patches/@prisma+client+5.1.0.patch deleted file mode 100644 index 6f71f2b..0000000 --- a/patches/@prisma+client+5.1.0.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/node_modules/@prisma/client/runtime/binary.js b/node_modules/@prisma/client/runtime/binary.js -index 77e07fc..20eac9c 100644 ---- a/node_modules/@prisma/client/runtime/binary.js -+++ b/node_modules/@prisma/client/runtime/binary.js -@@ -57,7 +57,7 @@ ${r.count} ${r.noun} ${r.is} pending: - ${A.format(t)} - `.trim())}};Fp.exports=Xu});var vp=I((jV,qp)=>{"use strict";var{kProxy:Kx,kClose:Vx,kDestroy:Ox,kInterceptors:Hx}=me(),{URL:xp}=require("url"),Lp=mo(),Wx=qn(),_x=go(),{InvalidArgumentError:ko,RequestAbortedError:jx}=le(),Tp=co(),bo=Symbol("proxy agent"),qa=Symbol("proxy client"),va=Symbol("proxy headers"),$u=Symbol("request tls settings"),Zx=Symbol("proxy tls settings"),Up=Symbol("connect endpoint function");function zx(e){return e==="https:"?443:80}function Xx(e){if(typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ko("Proxy opts.uri is mandatory");return{uri:e.uri,protocol:e.protocol||"https"}}function $x(e,A){return new Wx(e,A)}var eC=class extends _x{constructor(A){if(super(A),this[Kx]=Xx(A),this[bo]=new Lp(A),this[Hx]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A=="string"&&(A={uri:A}),!A||!A.uri)throw new ko("Proxy opts.uri is mandatory");let{clientFactory:t=$x}=A;if(typeof t!="function")throw new ko("Proxy opts.clientFactory must be a function.");if(this[$u]=A.requestTls,this[Zx]=A.proxyTls,this[va]=A.headers||{},A.auth&&A.token)throw new ko("opts.auth cannot be used in combination with opts.token");A.auth?this[va]["proxy-authorization"]=`Basic ${A.auth}`:A.token&&(this[va]["proxy-authorization"]=A.token);let r=new xp(A.uri),{origin:n,port:i,host:o}=r,s=Tp({...A.proxyTls});this[Up]=Tp({...A.requestTls}),this[qa]=t(r,{connect:s}),this[bo]=new Lp({...A,connect:async(a,g)=>{let c=a.host;a.port||(c+=`:${zx(a.protocol)}`);try{let{socket:l,statusCode:u}=await this[qa].connect({origin:n,port:i,path:c,signal:a.signal,headers:{...this[va],host:o}});if(u!==200&&(l.on("error",()=>{}).destroy(),g(new jx("Proxy response !== 200 when HTTP Tunneling"))),a.protocol!=="https:"){g(null,l);return}let C;this[$u]?C=this[$u].servername:C=a.servername,this[Up]({...a,servername:C,httpSocket:l},g)}catch(l){g(l)}}})}dispatch(A,t){let{host:r}=new xp(A.origin),n=eL(A.headers);return AL(n),this[bo].dispatch({...A,headers:{...n,host:r}},t)}async[Vx](){await this[bo].close(),await this[qa].close()}async[Ox](){await this[bo].destroy(),await this[qa].destroy()}};function eL(e){if(Array.isArray(e)){let A={};for(let t=0;tt.toLowerCase()==="proxy-authorization"))throw new ko("Proxy-Authorization should be sent in ProxyAgent constructor")}qp.exports=eC});var On=I((ZV,Gp)=>{"use strict";var Pp=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:tL}=le(),rL=mo();Yp()===void 0&&Jp(new rL);function Jp(e){if(!e||typeof e.dispatch!="function")throw new tL("Argument agent must implement Agent");Object.defineProperty(globalThis,Pp,{value:e,writable:!0,enumerable:!1,configurable:!1})}function Yp(){return globalThis[Pp]}Gp.exports={setGlobalDispatcher:Jp,getGlobalDispatcher:Yp}});var Vp=I((XV,Kp)=>{"use strict";Kp.exports=class{constructor(A){this.handler=A}onConnect(...A){return this.handler.onConnect(...A)}onError(...A){return this.handler.onError(...A)}onUpgrade(...A){return this.handler.onUpgrade(...A)}onHeaders(...A){return this.handler.onHeaders(...A)}onData(...A){return this.handler.onData(...A)}onComplete(...A){return this.handler.onComplete(...A)}onBodySent(...A){return this.handler.onBodySent(...A)}}});var Vr=I(($V,_p)=>{"use strict";var{kHeadersList:QA}=me(),{kGuard:Kr}=Mt(),{kEnumerableProperty:mt}=_(),{makeIterator:AC,isValidHeaderName:No,isValidHeaderValue:Op}=YA(),{webidl:J}=gA(),nL=require("assert"),BA=Symbol("headers map"),fA=Symbol("headers map sorted");function Hp(e){let A=e.length;for(;/[\r\n\t ]/.test(e.charAt(--A)););return e.slice(0,A+1).replace(/^[\r\n\t ]+/,"")}function Wp(e,A){if(Array.isArray(A))for(let t of A){if(t.length!==2)throw J.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${t.length}.`});e.append(t[0],t[1])}else if(typeof A=="object"&&A!==null)for(let[t,r]of Object.entries(A))e.append(t,r);else throw J.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})}var Hn=class{constructor(A){gE(this,"cookies",null);A instanceof Hn?(this[BA]=new Map(A[BA]),this[fA]=A[fA],this.cookies=A.cookies):(this[BA]=new Map(A),this[fA]=null)}contains(A){return A=A.toLowerCase(),this[BA].has(A)}clear(){this[BA].clear(),this[fA]=null,this.cookies=null}append(A,t){this[fA]=null;let r=A.toLowerCase(),n=this[BA].get(r);if(n){let i=r==="cookie"?"; ":", ";this[BA].set(r,{name:n.name,value:`${n.value}${i}${t}`})}else this[BA].set(r,{name:A,value:t});r==="set-cookie"&&(this.cookies??(this.cookies=[]),this.cookies.push(t))}set(A,t){this[fA]=null;let r=A.toLowerCase();return r==="set-cookie"&&(this.cookies=[t]),this[BA].set(r,{name:A,value:t})}delete(A){return this[fA]=null,A=A.toLowerCase(),A==="set-cookie"&&(this.cookies=null),this[BA].delete(A)}get(A){return this.contains(A)?this[BA].get(A.toLowerCase())?.value??null:null}*[Symbol.iterator](){for(let[A,{value:t}]of this[BA])yield[A,t]}get entries(){let A={};if(this[BA].size)for(let{name:t,value:r}of this[BA].values())A[t]=r;return A}},Ye=class{constructor(A=void 0){this[QA]=new Hn,this[Kr]="none",A!==void 0&&(A=J.converters.HeadersInit(A),Wp(this,A))}append(A,t){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,2,{header:"Headers.append"}),A=J.converters.ByteString(A),t=J.converters.ByteString(t),t=Hp(t),No(A)){if(!Op(t))throw J.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"})}else throw J.errors.invalidArgument({prefix:"Headers.append",value:A,type:"header name"});if(this[Kr]==="immutable")throw new TypeError("immutable");return this[Kr],this[QA].append(A,t)}delete(A){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),A=J.converters.ByteString(A),!No(A))throw J.errors.invalidArgument({prefix:"Headers.delete",value:A,type:"header name"});if(this[Kr]==="immutable")throw new TypeError("immutable");if(this[Kr],!!this[QA].contains(A))return this[QA].delete(A)}get(A){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.get"}),A=J.converters.ByteString(A),!No(A))throw J.errors.invalidArgument({prefix:"Headers.get",value:A,type:"header name"});return this[QA].get(A)}has(A){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.has"}),A=J.converters.ByteString(A),!No(A))throw J.errors.invalidArgument({prefix:"Headers.has",value:A,type:"header name"});return this[QA].contains(A)}set(A,t){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,2,{header:"Headers.set"}),A=J.converters.ByteString(A),t=J.converters.ByteString(t),t=Hp(t),No(A)){if(!Op(t))throw J.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}else throw J.errors.invalidArgument({prefix:"Headers.set",value:A,type:"header name"});if(this[Kr]==="immutable")throw new TypeError("immutable");return this[Kr],this[QA].set(A,t)}getSetCookie(){J.brandCheck(this,Ye);let A=this[QA].cookies;return A?[...A]:[]}get[fA](){if(this[QA][fA])return this[QA][fA];let A=[],t=[...this[QA]].sort((n,i)=>n[0][...this[fA].values()],"Headers","key")}values(){return J.brandCheck(this,Ye),AC(()=>[...this[fA].values()],"Headers","value")}entries(){return J.brandCheck(this,Ye),AC(()=>[...this[fA].values()],"Headers","key+value")}forEach(A,t=globalThis){if(J.brandCheck(this,Ye),J.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),typeof A!="function")throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(let[r,n]of this)A.apply(t,[n,r,this])}[Symbol.for("nodejs.util.inspect.custom")](){return J.brandCheck(this,Ye),this[QA]}};Ye.prototype[Symbol.iterator]=Ye.prototype.entries;Object.defineProperties(Ye.prototype,{append:mt,delete:mt,get:mt,has:mt,set:mt,getSetCookie:mt,keys:mt,values:mt,entries:mt,forEach:mt,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}});J.converters.HeadersInit=function(e){if(J.util.Type(e)==="Object")return e[Symbol.iterator]?J.converters["sequence>"](e):J.converters["record"](e);throw J.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};_p.exports={fill:Wp,Headers:Ye,HeadersList:Hn}});var Ga=I((AO,Am)=>{"use strict";var{Headers:iL,HeadersList:jp,fill:oL}=Vr(),{extractBody:Zp,cloneBody:sL,mixinBody:aL}=so(),nC=_(),{kEnumerableProperty:xA}=nC,{isValidReasonPhrase:gL,isCancelled:cL,isAborted:lL,isBlobLike:uL,serializeJavascriptValueToJSONString:CL,isErrorLike:EL,isomorphicEncode:hL}=YA(),{redirectStatus:IL,nullBodyStatus:dL,DOMException:QL}=rr(),{kState:Qe,kHeaders:Ge,kGuard:Wn,kRealm:MA}=Mt(),{webidl:v}=gA(),{FormData:BL}=ia(),{getGlobalOrigin:fL}=no(),{URLSerializer:zp}=tt(),{kHeadersList:tC}=me(),iC=require("assert"),{types:rC}=require("util"),$p=globalThis.ReadableStream||require("stream/web").ReadableStream,Re=class{static error(){let A={settingsObject:{}},t=new Re;return t[Qe]=Ja(),t[MA]=A,t[Ge][tC]=t[Qe].headersList,t[Ge][Wn]="immutable",t[Ge][MA]=A,t}static json(A=void 0,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"}),t!==null&&(t=v.converters.ResponseInit(t));let r=new TextEncoder("utf-8").encode(CL(A)),n=Zp(r),i={settingsObject:{}},o=new Re;return o[MA]=i,o[Ge][Wn]="response",o[Ge][MA]=i,Xp(o,t,{body:n[0],type:"application/json"}),o}static redirect(A,t=302){let r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),A=v.converters.USVString(A),t=v.converters["unsigned short"](t);let n;try{n=new URL(A,fL())}catch(s){throw Object.assign(new TypeError("Failed to parse URL from "+A),{cause:s})}if(!IL.includes(t))throw new RangeError("Invalid status code "+t);let i=new Re;i[MA]=r,i[Ge][Wn]="immutable",i[Ge][MA]=r,i[Qe].status=t;let o=hL(zp(n));return i[Qe].headersList.append("location",o),i}constructor(A=null,t={}){A!==null&&(A=v.converters.BodyInit(A)),t=v.converters.ResponseInit(t),this[MA]={settingsObject:{}},this[Qe]=Ya({}),this[Ge]=new iL,this[Ge][Wn]="response",this[Ge][tC]=this[Qe].headersList,this[Ge][MA]=this[MA];let r=null;if(A!=null){let[n,i]=Zp(A);r={body:n,type:i}}Xp(this,t,r)}get type(){return v.brandCheck(this,Re),this[Qe].type}get url(){v.brandCheck(this,Re);let A=this[Qe].urlList,t=A[A.length-1]??null;return t===null?"":zp(t,!0)}get redirected(){return v.brandCheck(this,Re),this[Qe].urlList.length>1}get status(){return v.brandCheck(this,Re),this[Qe].status}get ok(){return v.brandCheck(this,Re),this[Qe].status>=200&&this[Qe].status<=299}get statusText(){return v.brandCheck(this,Re),this[Qe].statusText}get headers(){return v.brandCheck(this,Re),this[Ge]}get body(){return v.brandCheck(this,Re),this[Qe].body?this[Qe].body.stream:null}get bodyUsed(){return v.brandCheck(this,Re),!!this[Qe].body&&nC.isDisturbed(this[Qe].body.stream)}clone(){if(v.brandCheck(this,Re),this.bodyUsed||this.body&&this.body.locked)throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let A=oC(this[Qe]),t=new Re;return t[Qe]=A,t[MA]=this[MA],t[Ge][tC]=A.headersList,t[Ge][Wn]=this[Ge][Wn],t[Ge][MA]=this[Ge][MA],t}};aL(Re);Object.defineProperties(Re.prototype,{type:xA,url:xA,status:xA,ok:xA,redirected:xA,statusText:xA,headers:xA,clone:xA,body:xA,bodyUsed:xA,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Re,{json:xA,redirect:xA,error:xA});function oC(e){if(e.internalResponse)return em(oC(e.internalResponse),e.type);let A=Ya({...e,body:null});return e.body!=null&&(A.body=sL(e.body)),A}function Ya(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new jp(e.headersList):new jp,urlList:e.urlList?[...e.urlList]:[]}}function Ja(e){let A=EL(e);return Ya({type:"error",status:0,error:A?e:new Error(e&&String(e)),aborted:e&&e.name==="AbortError"})}function Pa(e,A){return A={internalResponse:e,...A},new Proxy(e,{get(t,r){return r in A?A[r]:t[r]},set(t,r,n){return iC(!(r in A)),t[r]=n,!0}})}function em(e,A){if(A==="basic")return Pa(e,{type:"basic",headersList:e.headersList});if(A==="cors")return Pa(e,{type:"cors",headersList:e.headersList});if(A==="opaque")return Pa(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(A==="opaqueredirect")return Pa(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});iC(!1)}function pL(e){return iC(cL(e)),lL(e)?Ja(new QL("The operation was aborted.","AbortError")):Ja("Request was cancelled.")}function Xp(e,A,t){if(A.status!==null&&(A.status<200||A.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in A&&A.statusText!=null&&!gL(String(A.statusText)))throw new TypeError("Invalid statusText");if("status"in A&&A.status!=null&&(e[Qe].status=A.status),"statusText"in A&&A.statusText!=null&&(e[Qe].statusText=A.statusText),"headers"in A&&A.headers!=null&&oL(e[Ge],A.headers),t){if(dL.includes(e.status))throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status});e[Qe].body=t.body,t.type!=null&&!e[Qe].headersList.contains("Content-Type")&&e[Qe].headersList.append("content-type",t.type)}}v.converters.ReadableStream=v.interfaceConverter($p);v.converters.FormData=v.interfaceConverter(BL);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){return typeof e=="string"?v.converters.USVString(e):uL(e)?v.converters.Blob(e,{strict:!1}):rC.isAnyArrayBuffer(e)||rC.isTypedArray(e)||rC.isDataView(e)?v.converters.BufferSource(e):nC.isFormDataLike(e)?v.converters.FormData(e,{strict:!1}):e instanceof URLSearchParams?v.converters.URLSearchParams(e):v.converters.DOMString(e)};v.converters.BodyInit=function(e){return e instanceof $p?v.converters.ReadableStream(e):e?.[Symbol.asyncIterator]?e:v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);Am.exports={makeNetworkError:Ja,makeResponse:Ya,makeAppropriateNetworkError:pL,filterResponse:em,Response:Re,cloneResponse:oC}});var Fo=I((tO,sm)=>{"use strict";var{extractBody:mL,mixinBody:yL,cloneBody:wL}=so(),{Headers:sC,fill:DL,HeadersList:tm}=Vr(),{FinalizationRegistry:SL}=Qu()(),gC=_(),{isValidHTTPToken:bL,sameOrigin:kL,normalizeMethod:NL,makePolicyContainer:RL}=YA(),{forbiddenMethods:FL,corsSafeListedMethods:ML,referrerPolicy:xL,requestRedirect:LL,requestMode:TL,requestCredentials:UL,requestCache:qL,requestDuplex:vL}=rr(),{kEnumerableProperty:xe}=gC,{kHeaders:Ke,kSignal:Ro,kState:ue,kGuard:Ka,kRealm:_A}=Mt(),{webidl:M}=gA(),{getGlobalOrigin:PL}=no(),{URLSerializer:JL}=tt(),{kHeadersList:Va}=me(),YL=require("assert"),{getMaxListeners:rm,setMaxListeners:nm,getEventListeners:GL,defaultMaxListeners:im}=require("events"),aC=globalThis.TransformStream,om=Symbol("init"),KL=Symbol("abortController"),VL=new SL(({signal:e,abort:A})=>{e.removeEventListener("abort",A)}),re=class{constructor(A,t={}){if(A===om)return;M.argumentLengthCheck(arguments,1,{header:"Request constructor"}),A=M.converters.RequestInfo(A),t=M.converters.RequestInit(t),this[_A]={settingsObject:{baseUrl:PL(),get origin(){return this.baseUrl?.origin},policyContainer:RL()}};let r=null,n=null,i=this[_A].settingsObject.baseUrl,o=null;if(typeof A=="string"){let h;try{h=new URL(A,i)}catch(B){throw new TypeError("Failed to parse URL from "+A,{cause:B})}if(h.username||h.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+A);r=Oa({urlList:[h]}),n="cors"}else YL(A instanceof re),r=A[ue],o=A[Ro];let s=this[_A].settingsObject.origin,a="client";if(r.window?.constructor?.name==="EnvironmentSettingsObject"&&kL(r.window,s)&&(a=r.window),t.window!=null)throw new TypeError(`'window' option '${a}' must be null`);if("window"in t&&(a="no-window"),r=Oa({method:r.method,headersList:r.headersList,unsafeRequest:r.unsafeRequest,client:this[_A].settingsObject,window:a,priority:r.priority,origin:r.origin,referrer:r.referrer,referrerPolicy:r.referrerPolicy,mode:r.mode,credentials:r.credentials,cache:r.cache,redirect:r.redirect,integrity:r.integrity,keepalive:r.keepalive,reloadNavigation:r.reloadNavigation,historyNavigation:r.historyNavigation,urlList:[...r.urlList]}),Object.keys(t).length>0&&(r.mode==="navigate"&&(r.mode="same-origin"),r.reloadNavigation=!1,r.historyNavigation=!1,r.origin="client",r.referrer="client",r.referrerPolicy="",r.url=r.urlList[r.urlList.length-1],r.urlList=[r.url]),t.referrer!==void 0){let h=t.referrer;if(h==="")r.referrer="no-referrer";else{let B;try{B=new URL(h,i)}catch(Q){throw new TypeError(`Referrer "${h}" is not a valid URL.`,{cause:Q})}r.referrer=B}}t.referrerPolicy!==void 0&&(r.referrerPolicy=t.referrerPolicy);let g;if(t.mode!==void 0?g=t.mode:g=n,g==="navigate")throw M.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(g!=null&&(r.mode=g),t.credentials!==void 0&&(r.credentials=t.credentials),t.cache!==void 0&&(r.cache=t.cache),r.cache==="only-if-cached"&&r.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(t.redirect!==void 0&&(r.redirect=t.redirect),t.integrity!==void 0&&t.integrity!=null&&(r.integrity=String(t.integrity)),t.keepalive!==void 0&&(r.keepalive=Boolean(t.keepalive)),t.method!==void 0){let h=t.method;if(!bL(t.method))throw TypeError(`'${t.method}' is not a valid HTTP method.`);if(FL.indexOf(h.toUpperCase())!==-1)throw TypeError(`'${t.method}' HTTP method is unsupported.`);h=NL(t.method),r.method=h}t.signal!==void 0&&(o=t.signal),this[ue]=r;let c=new AbortController;if(this[Ro]=c.signal,this[Ro][_A]=this[_A],o!=null){if(!o||typeof o.aborted!="boolean"||typeof o.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(o.aborted)c.abort(o.reason);else{this[KL]=c;let h=new WeakRef(c),B=function(){let Q=h.deref();Q!==void 0&&Q.abort(this.reason)};try{(typeof rm=="function"&&rm(o)===im||GL(o,"abort").length>=im)&&nm(100,o)}catch{}o.addEventListener("abort",B,{once:!0}),VL.register(c,{signal:o,abort:B})}}if(this[Ke]=new sC,this[Ke][Va]=r.headersList,this[Ke][Ka]="request",this[Ke][_A]=this[_A],g==="no-cors"){if(!ML.includes(r.method))throw new TypeError(`'${r.method} is unsupported in no-cors mode.`);this[Ke][Ka]="request-no-cors"}if(Object.keys(t).length!==0){let h=new sC(this[Ke]);if(t.headers!==void 0&&(h=t.headers),this[Ke][Va].clear(),h.constructor.name==="Headers")for(let[B,Q]of h)this[Ke].append(B,Q);else DL(this[Ke],h)}let l=A instanceof re?A[ue].body:null;if((t.body!=null||l!=null)&&(r.method==="GET"||r.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let u=null;if(t.body!=null){let[h,B]=mL(t.body,r.keepalive);u=h,B&&!this[Ke][Va].contains("content-type")&&this[Ke].append("content-type",B)}let C=u??l;if(C!=null&&C.source==null){if(u!=null&&t.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(r.mode!=="same-origin"&&r.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');r.useCORSPreflightFlag=!0}let E=C;if(u==null&&l!=null){if(gC.isDisturbed(l.stream)||l.stream.locked)throw new TypeError("Cannot construct a Request with a Request object that has already been used.");aC||(aC=require("stream/web").TransformStream);let h=new aC;l.stream.pipeThrough(h),E={source:l.source,length:l.length,stream:h.readable}}this[ue].body=E}get method(){return M.brandCheck(this,re),this[ue].method}get url(){return M.brandCheck(this,re),JL(this[ue].url)}get headers(){return M.brandCheck(this,re),this[Ke]}get destination(){return M.brandCheck(this,re),this[ue].destination}get referrer(){return M.brandCheck(this,re),this[ue].referrer==="no-referrer"?"":this[ue].referrer==="client"?"about:client":this[ue].referrer.toString()}get referrerPolicy(){return M.brandCheck(this,re),this[ue].referrerPolicy}get mode(){return M.brandCheck(this,re),this[ue].mode}get credentials(){return this[ue].credentials}get cache(){return M.brandCheck(this,re),this[ue].cache}get redirect(){return M.brandCheck(this,re),this[ue].redirect}get integrity(){return M.brandCheck(this,re),this[ue].integrity}get keepalive(){return M.brandCheck(this,re),this[ue].keepalive}get isReloadNavigation(){return M.brandCheck(this,re),this[ue].reloadNavigation}get isHistoryNavigation(){return M.brandCheck(this,re),this[ue].historyNavigation}get signal(){return M.brandCheck(this,re),this[Ro]}get body(){return M.brandCheck(this,re),this[ue].body?this[ue].body.stream:null}get bodyUsed(){return M.brandCheck(this,re),!!this[ue].body&&gC.isDisturbed(this[ue].body.stream)}get duplex(){return M.brandCheck(this,re),"half"}clone(){if(M.brandCheck(this,re),this.bodyUsed||this.body?.locked)throw new TypeError("unusable");let A=OL(this[ue]),t=new re(om);t[ue]=A,t[_A]=this[_A],t[Ke]=new sC,t[Ke][Va]=A.headersList,t[Ke][Ka]=this[Ke][Ka],t[Ke][_A]=this[Ke][_A];let r=new AbortController;return this.signal.aborted?r.abort(this.signal.reason):this.signal.addEventListener("abort",()=>{r.abort(this.signal.reason)},{once:!0}),t[Ro]=r.signal,t}};yL(re);function Oa(e){let A={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...e,headersList:e.headersList?new tm(e.headersList):new tm};return A.url=A.urlList[0],A}function OL(e){let A=Oa({...e,body:null});return e.body!=null&&(A.body=wL(e.body)),A}Object.defineProperties(re.prototype,{method:xe,url:xe,headers:xe,redirect:xe,clone:xe,signal:xe,duplex:xe,destination:xe,body:xe,bodyUsed:xe,isHistoryNavigation:xe,isReloadNavigation:xe,keepalive:xe,integrity:xe,cache:xe,credentials:xe,attribute:xe,referrerPolicy:xe,referrer:xe,mode:xe,[Symbol.toStringTag]:{value:"Request",configurable:!0}});M.converters.Request=M.interfaceConverter(re);M.converters.RequestInfo=function(e){return typeof e=="string"?M.converters.USVString(e):e instanceof re?M.converters.Request(e):M.converters.USVString(e)};M.converters.AbortSignal=M.interfaceConverter(AbortSignal);M.converters.RequestInit=M.dictionaryConverter([{key:"method",converter:M.converters.ByteString},{key:"headers",converter:M.converters.HeadersInit},{key:"body",converter:M.nullableConverter(M.converters.BodyInit)},{key:"referrer",converter:M.converters.USVString},{key:"referrerPolicy",converter:M.converters.DOMString,allowedValues:xL},{key:"mode",converter:M.converters.DOMString,allowedValues:TL},{key:"credentials",converter:M.converters.DOMString,allowedValues:UL},{key:"cache",converter:M.converters.DOMString,allowedValues:qL},{key:"redirect",converter:M.converters.DOMString,allowedValues:LL},{key:"integrity",converter:M.converters.DOMString},{key:"keepalive",converter:M.converters.boolean},{key:"signal",converter:M.nullableConverter(e=>M.converters.AbortSignal(e,{strict:!1}))},{key:"window",converter:M.converters.any},{key:"duplex",converter:M.converters.DOMString,allowedValues:vL}]);sm.exports={Request:re,makeRequest:Oa}});var Xa=I((rO,pm)=>{"use strict";var{Response:HL,makeNetworkError:se,makeAppropriateNetworkError:Ha,filterResponse:cC,makeResponse:Wa}=Ga(),{Headers:am}=Vr(),{Request:WL,makeRequest:_L}=Fo(),lC=require("zlib"),{bytesMatch:jL,makePolicyContainer:ZL,clonePolicyContainer:zL,requestBadPort:XL,TAOCheck:$L,appendRequestOriginHeader:eT,responseLocationURL:AT,requestCurrentURL:yt,setRequestReferrerPolicyOnRedirect:tT,tryUpgradeRequestToAPotentiallyTrustworthyURL:rT,createOpaqueTimingInfo:pC,appendFetchMetadata:nT,corsCheck:iT,crossOriginResourcePolicyCheck:oT,determineRequestsReferrer:sT,coarsenedSharedCurrentTime:mC,createDeferredPromise:aT,isBlobLike:gT,sameOrigin:dC,isCancelled:_n,isAborted:gm,isErrorLike:cT,fullyReadBody:Cm,readableStreamClose:lT,isomorphicEncode:QC,urlIsLocal:uT,urlIsHttpHttpsScheme:yC,urlHasHttpsScheme:CT}=YA(),{kState:BC,kHeaders:uC,kGuard:ET,kRealm:cm}=Mt(),Mo=require("assert"),{safelyExtractBody:_a}=so(),{redirectStatus:Em,nullBodyStatus:hm,safeMethods:hT,requestBodyHeader:IT,subresource:dT,DOMException:ja}=rr(),{kHeadersList:fC}=me(),QT=require("events"),{Readable:BT,pipeline:fT}=require("stream"),{isErrored:pT,isReadable:Za,nodeMajor:lm,nodeMinor:mT}=_(),{dataURLProcessor:yT,serializeAMimeType:wT}=tt(),{TransformStream:DT}=require("stream/web"),{getGlobalDispatcher:ST}=On(),{webidl:bT}=gA(),{STATUS_CODES:kT}=require("http"),CC,EC=globalThis.ReadableStream,za=class extends QT{constructor(A){super(),this.dispatcher=A,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21)}terminate(A){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(A),this.emit("terminated",A))}abort(A){this.state==="ongoing"&&(this.state="aborted",A||(A=new ja("The operation was aborted.","AbortError")),this.serializedAbortReason=A,this.connection?.destroy(A),this.emit("terminated",A))}};async function NT(e,A={}){bT.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});let t=aT(),r;try{r=new WL(e,A)}catch(u){return t.reject(u),t.promise}let n=r[BC];if(r.signal.aborted)return hC(t,n,null,r.signal.reason),t.promise;n.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(n.serviceWorkers="none");let o=null,s=null,a=!1,g=null;return r.signal.addEventListener("abort",()=>{a=!0,hC(t,n,o,r.signal.reason),g?.abort()},{once:!0}),g=dm({request:n,processResponseEndOfBody:u=>Im(u,"fetch"),processResponse:u=>{if(!a){if(u.aborted){hC(t,n,o,g.serializedAbortReason);return}if(u.type==="error"){t.reject(Object.assign(new TypeError("fetch failed"),{cause:u.error}));return}o=new HL,o[BC]=u,o[cm]=s,o[uC][fC]=u.headersList,o[uC][ET]="immutable",o[uC][cm]=s,t.resolve(o)}},dispatcher:A.dispatcher??ST()}),t.promise}function Im(e,A="other"){if(e.type==="error"&&e.aborted||!e.urlList?.length)return;let t=e.urlList[0],r=e.timingInfo,n=e.cacheState;!yC(t)||r!==null&&(r.timingAllowPassed||(r=pC({startTime:r.startTime}),n=""),r.endTime=mC(),e.timingInfo=r,RT(r,t,A,globalThis,n))}function RT(e,A,t,r,n){(lm>18||lm===18&&mT>=2)&&performance.markResourceTiming(e,A,t,r,n)}function hC(e,A,t,r){if(r||(r=new ja("The operation was aborted.","AbortError")),e.reject(r),A.body!=null&&Za(A.body?.stream)&&A.body.stream.cancel(r).catch(i=>{if(i.code!=="ERR_INVALID_STATE")throw i}),t==null)return;let n=t[BC];n.body!=null&&Za(n.body?.stream)&&n.body.stream.cancel(r).catch(i=>{if(i.code!=="ERR_INVALID_STATE")throw i})}function dm({request:e,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:n,processResponseConsumeBody:i,useParallelQueue:o=!1,dispatcher:s}){let a=null,g=!1;e.client!=null&&(a=e.client.globalObject,g=e.client.crossOriginIsolatedCapability);let c=mC(g),l=pC({startTime:c}),u={controller:new za(s),request:e,timingInfo:l,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:i,processResponseEndOfBody:n,taskDestination:a,crossOriginIsolatedCapability:g};if(Mo(!e.body||e.body.stream),e.window==="client"&&(e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"),e.origin==="client"&&(e.origin=e.client?.origin),e.policyContainer==="client"&&(e.client!=null?e.policyContainer=zL(e.client.policyContainer):e.policyContainer=ZL()),!e.headersList.contains("accept")){let C="*/*";e.headersList.append("accept",C)}return e.headersList.contains("accept-language")||e.headersList.append("accept-language","*"),e.priority,dT.includes(e.destination),Qm(u).catch(C=>{u.controller.terminate(C)}),u.controller}async function Qm(e,A=!1){let t=e.request,r=null;if(t.localURLsOnly&&!uT(yt(t))&&(r=se("local URLs only")),rT(t),XL(t)==="blocked"&&(r=se("bad port")),t.referrerPolicy===""&&(t.referrerPolicy=t.policyContainer.referrerPolicy),t.referrer!=="no-referrer"&&(t.referrer=sT(t)),r===null&&(r=await(async()=>{let i=yt(t);return dC(i,t.url)&&t.responseTainting==="basic"||i.protocol==="data:"||t.mode==="navigate"||t.mode==="websocket"?(t.responseTainting="basic",await um(e)):t.mode==="same-origin"?se('request mode cannot be "same-origin"'):t.mode==="no-cors"?t.redirect!=="follow"?se('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await um(e)):yC(yt(t))?(t.responseTainting="cors",await Bm(e)):se("URL scheme must be a HTTP(S) scheme")})()),A)return r;r.status!==0&&!r.internalResponse&&(t.responseTainting,t.responseTainting==="basic"?r=cC(r,"basic"):t.responseTainting==="cors"?r=cC(r,"cors"):t.responseTainting==="opaque"?r=cC(r,"opaque"):Mo(!1));let n=r.status===0?r:r.internalResponse;if(n.urlList.length===0&&n.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),r.type==="opaque"&&n.status===206&&n.rangeRequested&&!t.headers.contains("range")&&(r=n=se()),r.status!==0&&(t.method==="HEAD"||t.method==="CONNECT"||hm.includes(n.status))&&(n.body=null,e.controller.dump=!0),t.integrity){let i=s=>IC(e,se(s));if(t.responseTainting==="opaque"||r.body==null){i(r.error);return}let o=s=>{if(!jL(s,t.integrity)){i("integrity mismatch");return}r.body=_a(s)[0],IC(e,r)};await Cm(r.body,o,i)}else IC(e,r)}async function um(e){if(_n(e)&&e.request.redirectCount===0)return Ha(e);let{request:A}=e,{protocol:t}=yt(A);switch(t){case"about:":return se("about scheme is not supported");case"blob:":{CC||(CC=require("buffer").resolveObjectURL);let r=yt(A);if(r.search.length!==0)return se("NetworkError when attempting to fetch resource.");let n=CC(r.toString());if(A.method!=="GET"||!gT(n))return se("invalid method");let i=_a(n),o=i[0],s=QC(`${o.length}`),a=i[1]??"",g=Wa({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:s}],["content-type",{name:"Content-Type",value:a}]]});return g.body=o,g}case"data:":{let r=yt(A),n=yT(r);if(n==="failure")return se("failed to fetch the data URL");let i=wT(n.mimeType);return Wa({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:_a(n.body)[0]})}case"file:":return se("not implemented... yet...");case"http:":case"https:":return await Bm(e).catch(r=>se(r));default:return se("unknown scheme")}}function FT(e,A){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(A))}async function IC(e,A){A.type==="error"&&(A.urlList=[e.request.urlList[0]],A.timingInfo=pC({startTime:e.timingInfo.startTime}));let t=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(A))};if(e.processResponse!=null&&queueMicrotask(()=>e.processResponse(A)),A.body==null)t();else{let r=(i,o)=>{o.enqueue(i)},n=new DT({start(){},transform:r,flush:t},{size(){return 1}},{size(){return 1}});A.body={stream:A.body.stream.pipeThrough(n)}}if(e.processResponseConsumeBody!=null){let r=i=>e.processResponseConsumeBody(A,i),n=i=>e.processResponseConsumeBody(A,i);A.body==null?queueMicrotask(()=>r(null)):await Cm(A.body,r,n)}}async function Bm(e){let A=e.request,t=null,r=null,n=e.timingInfo;if(A.serviceWorkers,t===null){if(A.redirect==="follow"&&(A.serviceWorkers="none"),r=t=await fm(e),A.responseTainting==="cors"&&iT(A,t)==="failure")return se("cors failure");$L(A,t)==="failure"&&(A.timingAllowFailed=!0)}return(A.responseTainting==="opaque"||t.type==="opaque")&&oT(A.origin,A.client,A.destination,r)==="blocked"?se("blocked"):(Em.includes(r.status)&&(A.redirect!=="manual"&&e.controller.connection.destroy(),A.redirect==="error"?t=se("unexpected redirect"):A.redirect==="manual"?t=r:A.redirect==="follow"?t=await MT(e,t):Mo(!1)),t.timingInfo=n,t)}async function MT(e,A){let t=e.request,r=A.internalResponse?A.internalResponse:A,n;try{if(n=AT(r,yt(t).hash),n==null)return A}catch(o){return se(o)}if(!yC(n))return se("URL scheme must be a HTTP(S) scheme");if(t.redirectCount===20)return se("redirect count exceeded");if(t.redirectCount+=1,t.mode==="cors"&&(n.username||n.password)&&!dC(t,n))return se('cross origin not allowed for request mode "cors"');if(t.responseTainting==="cors"&&(n.username||n.password))return se('URL cannot contain credentials for request mode "cors"');if(r.status!==303&&t.body!=null&&t.body.source==null)return se();if([301,302].includes(r.status)&&t.method==="POST"||r.status===303&&!["GET","HEAD"].includes(t.method)){t.method="GET",t.body=null;for(let o of IT)t.headersList.delete(o)}dC(yt(t),n)||t.headersList.delete("authorization"),t.body!=null&&(Mo(t.body.source!=null),t.body=_a(t.body.source)[0]);let i=e.timingInfo;return i.redirectEndTime=i.postRedirectStartTime=mC(e.crossOriginIsolatedCapability),i.redirectStartTime===0&&(i.redirectStartTime=i.startTime),t.urlList.push(n),tT(t,r),Qm(e,!0)}async function fm(e,A=!1,t=!1){let r=e.request,n=null,i=null,o=null,s=null,a=!1;r.window==="no-window"&&r.redirect==="error"?(n=e,i=r):(i=_L(r),n={...e},n.request=i);let g=r.credentials==="include"||r.credentials==="same-origin"&&r.responseTainting==="basic",c=i.body?i.body.length:null,l=null;if(i.body==null&&["POST","PUT"].includes(i.method)&&(l="0"),c!=null&&(l=QC(`${c}`)),l!=null&&i.headersList.append("content-length",l),c!=null&&i.keepalive,i.referrer instanceof URL&&i.headersList.append("referer",QC(i.referrer.href)),eT(i),nT(i),i.headersList.contains("user-agent")||i.headersList.append("user-agent","undici"),i.cache==="default"&&(i.headersList.contains("if-modified-since")||i.headersList.contains("if-none-match")||i.headersList.contains("if-unmodified-since")||i.headersList.contains("if-match")||i.headersList.contains("if-range"))&&(i.cache="no-store"),i.cache==="no-cache"&&!i.preventNoCacheCacheControlHeaderModification&&!i.headersList.contains("cache-control")&&i.headersList.append("cache-control","max-age=0"),(i.cache==="no-store"||i.cache==="reload")&&(i.headersList.contains("pragma")||i.headersList.append("pragma","no-cache"),i.headersList.contains("cache-control")||i.headersList.append("cache-control","no-cache")),i.headersList.contains("range")&&i.headersList.append("accept-encoding","identity"),i.headersList.contains("accept-encoding")||(CT(yt(i))?i.headersList.append("accept-encoding","br, gzip, deflate"):i.headersList.append("accept-encoding","gzip, deflate")),s==null&&(i.cache="no-store"),i.mode!=="no-store"&&i.mode,o==null){if(i.mode==="only-if-cached")return se("only if cached");let u=await xT(n,g,t);!hT.includes(i.method)&&u.status>=200&&u.status<=399,a&&u.status,o==null&&(o=u)}if(o.urlList=[...i.urlList],i.headersList.contains("range")&&(o.rangeRequested=!0),o.requestIncludesCredentials=g,o.status===407)return r.window==="no-window"?se():_n(e)?Ha(e):se("proxy authentication required");if(o.status===421&&!t&&(r.body==null||r.body.source!=null)){if(_n(e))return Ha(e);e.controller.connection.destroy(),o=await fm(e,A,!0)}return o}async function xT(e,A=!1,t=!1){Mo(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(E){this.destroyed||(this.destroyed=!0,this.abort?.(E??new ja("The operation was aborted.","AbortError")))}};let r=e.request,n=null,i=e.timingInfo;null==null&&(r.cache="no-store");let s=t?"yes":"no";r.mode;let a=null;if(r.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(r.body!=null){let E=async function*(Q){_n(e)||(yield Q,e.processRequestBodyChunkLength?.(Q.byteLength))},h=()=>{_n(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},B=Q=>{_n(e)||(Q.name==="AbortError"?e.controller.abort():e.controller.terminate(Q))};a=async function*(){try{for await(let Q of r.body.stream)yield*E(Q);h()}catch(Q){B(Q)}}()}try{let{body:E,status:h,statusText:B,headersList:Q,socket:w}=await C({body:a});if(w)n=Wa({status:h,statusText:B,headersList:Q,socket:w});else{let p=E[Symbol.asyncIterator]();e.controller.next=()=>p.next(),n=Wa({status:h,statusText:B,headersList:Q})}}catch(E){return E.name==="AbortError"?(e.controller.connection.destroy(),Ha(e)):se(E)}let g=()=>{e.controller.resume()},c=E=>{e.controller.abort(E)};EC||(EC=require("stream/web").ReadableStream);let l=new EC({async start(E){e.controller.controller=E},async pull(E){await g(E)},async cancel(E){await c(E)}},{highWaterMark:0,size(){return 1}});n.body={stream:l},e.controller.on("terminated",u),e.controller.resume=async()=>{for(;;){let E,h;try{let{done:B,value:Q}=await e.controller.next();if(gm(e))break;E=B?void 0:Q}catch(B){e.controller.ended&&!i.encodedBodySize?E=void 0:(E=B,h=!0)}if(E===void 0){lT(e.controller.controller),FT(e,n);return}if(i.decodedBodySize+=E?.byteLength??0,h){e.controller.terminate(E);return}if(e.controller.controller.enqueue(new Uint8Array(E)),pT(l)){e.controller.terminate();return}if(!e.controller.controller.desiredSize)return}};function u(E){gm(e)?(n.aborted=!0,Za(l)&&e.controller.controller.error(e.controller.serializedAbortReason)):Za(l)&&e.controller.controller.error(new TypeError("terminated",{cause:cT(E)?E:void 0})),e.controller.connection.destroy()}return n;async function C({body:E}){let h=yt(r),B=e.controller.dispatcher;return new Promise((Q,w)=>B.dispatch({path:h.pathname+h.search,origin:h.origin,method:r.method,body:e.controller.dispatcher.isMockActive?r.body&&r.body.source:E,headers:r.headersList.entries,maxRedirections:0,upgrade:r.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(p){let{connection:D}=e.controller;D.destroyed?p(new ja("The operation was aborted.","AbortError")):(e.controller.on("terminated",p),this.abort=D.abort=p)},onHeaders(p,D,O,G){if(p<200)return;let X=[],Y="",ne=new am;for(let Le=0;Leoe.trim()):Te.toLowerCase()==="location"&&(Y=et),ne.append(Te,et)}this.body=new BT({read:O});let Ee=[],be=r.redirect==="follow"&&Y&&Em.includes(p);if(r.method!=="HEAD"&&r.method!=="CONNECT"&&!hm.includes(p)&&!be)for(let Le of X)if(Le==="x-gzip"||Le==="gzip")Ee.push(lC.createGunzip());else if(Le==="deflate")Ee.push(lC.createInflate());else if(Le==="br")Ee.push(lC.createBrotliDecompress());else{Ee.length=0;break}return Q({status:p,statusText:G,headersList:ne[fC],body:Ee.length?fT(this.body,...Ee,()=>{}):this.body.on("error",()=>{})}),!0},onData(p){if(e.controller.dump)return;let D=p;return i.encodedBodySize+=D.byteLength,this.body.push(D)},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.ended=!0,this.body.push(null)},onError(p){this.abort&&e.controller.off("terminated",this.abort),this.body?.destroy(p),e.controller.terminate(p),w(p)},onUpgrade(p,D,O){if(p!==101)return;let G=new am;for(let X=0;X{"use strict";mm.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var wm=I((iO,ym)=>{"use strict";var{webidl:LA}=gA(),$a=Symbol("ProgressEvent state"),Or=class extends Event{constructor(A,t={}){A=LA.converters.DOMString(A),t=LA.converters.ProgressEventInit(t??{}),super(A,t),this[$a]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return LA.brandCheck(this,Or),this[$a].lengthComputable}get loaded(){return LA.brandCheck(this,Or),this[$a].loaded}get total(){return LA.brandCheck(this,Or),this[$a].total}};LA.converters.ProgressEventInit=LA.dictionaryConverter([{key:"lengthComputable",converter:LA.converters.boolean,defaultValue:!1},{key:"loaded",converter:LA.converters["unsigned long long"],defaultValue:0},{key:"total",converter:LA.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:LA.converters.boolean,defaultValue:!1},{key:"cancelable",converter:LA.converters.boolean,defaultValue:!1},{key:"composed",converter:LA.converters.boolean,defaultValue:!1}]);ym.exports={ProgressEvent:Or}});var Sm=I((oO,Dm)=>{"use strict";function LT(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}Dm.exports={getEncoding:LT}});var Lm=I((sO,xm)=>{"use strict";var{kState:jn,kError:DC,kResult:bm,kAborted:xo,kLastProgressEventFired:SC}=wC(),{ProgressEvent:TT}=wm(),{getEncoding:km}=Sm(),{DOMException:UT}=rr(),{serializeAMimeType:qT,parseMIMEType:Nm}=tt(),{types:vT}=require("util"),{StringDecoder:Rm}=require("string_decoder"),{btoa:Fm}=require("buffer"),PT={enumerable:!0,writable:!1,configurable:!1};function JT(e,A,t,r){if(e[jn]==="loading")throw new UT("Invalid state","InvalidStateError");e[jn]="loading",e[bm]=null,e[DC]=null;let i=A.stream().getReader(),o=[],s=i.read(),a=!0;(async()=>{for(;!e[xo];)try{let{done:g,value:c}=await s;if(a&&!e[xo]&&queueMicrotask(()=>{cr("loadstart",e)}),a=!1,!g&&vT.isUint8Array(c))o.push(c),(e[SC]===void 0||Date.now()-e[SC]>=50)&&!e[xo]&&(e[SC]=Date.now(),queueMicrotask(()=>{cr("progress",e)})),s=i.read();else if(g){queueMicrotask(()=>{e[jn]="done";try{let l=YT(o,t,A.type,r);if(e[xo])return;e[bm]=l,cr("load",e)}catch(l){e[DC]=l,cr("error",e)}e[jn]!=="loading"&&cr("loadend",e)});break}}catch(g){if(e[xo])return;queueMicrotask(()=>{e[jn]="done",e[DC]=g,cr("error",e),e[jn]!=="loading"&&cr("loadend",e)});break}})()}function cr(e,A){let t=new TT(e,{bubbles:!1,cancelable:!1});A.dispatchEvent(t)}function YT(e,A,t,r){switch(A){case"DataURL":{let n="data:",i=Nm(t||"application/octet-stream");i!=="failure"&&(n+=qT(i)),n+=";base64,";let o=new Rm("latin1");for(let s of e)n+=Fm(o.write(s));return n+=Fm(o.end()),n}case"Text":{let n="failure";if(r&&(n=km(r)),n==="failure"&&t){let i=Nm(t);i!=="failure"&&(n=km(i.parameters.get("charset")))}return n==="failure"&&(n="UTF-8"),GT(e,n)}case"ArrayBuffer":return Mm(e).buffer;case"BinaryString":{let n="",i=new Rm("latin1");for(let o of e)n+=i.write(o);return n+=i.end(),n}}}function GT(e,A){let t=Mm(e),r=KT(t),n=0;r!==null&&(A=r,n=r==="UTF-8"?3:2);let i=t.slice(n);return new TextDecoder(A).decode(i)}function KT(e){let[A,t,r]=e;return A===239&&t===187&&r===191?"UTF-8":A===254&&t===255?"UTF-16BE":A===255&&t===254?"UTF-16LE":null}function Mm(e){let A=e.reduce((r,n)=>r+n.byteLength,0),t=0;return e.reduce((r,n)=>(r.set(n,t),t+=n.byteLength,r),new Uint8Array(A))}xm.exports={staticPropertyDescriptors:PT,readOperation:JT,fireAProgressEvent:cr}});var vm=I((aO,qm)=>{"use strict";var{staticPropertyDescriptors:Zn,readOperation:eg,fireAProgressEvent:Tm}=Lm(),{kState:Hr,kError:Um,kResult:Ag,kEvents:Z,kAborted:VT}=wC(),{webidl:ie}=gA(),{kEnumerableProperty:pA}=_(),z=class extends EventTarget{constructor(){super(),this[Hr]="empty",this[Ag]=null,this[Um]=null,this[Z]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(A){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),A=ie.converters.Blob(A,{strict:!1}),eg(this,A,"ArrayBuffer")}readAsBinaryString(A){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),A=ie.converters.Blob(A,{strict:!1}),eg(this,A,"BinaryString")}readAsText(A,t=void 0){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),A=ie.converters.Blob(A,{strict:!1}),t!==void 0&&(t=ie.converters.DOMString(t)),eg(this,A,"Text",t)}readAsDataURL(A){ie.brandCheck(this,z),ie.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),A=ie.converters.Blob(A,{strict:!1}),eg(this,A,"DataURL")}abort(){if(this[Hr]==="empty"||this[Hr]==="done"){this[Ag]=null;return}this[Hr]==="loading"&&(this[Hr]="done",this[Ag]=null),this[VT]=!0,Tm("abort",this),this[Hr]!=="loading"&&Tm("loadend",this)}get readyState(){switch(ie.brandCheck(this,z),this[Hr]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return ie.brandCheck(this,z),this[Ag]}get error(){return ie.brandCheck(this,z),this[Um]}get onloadend(){return ie.brandCheck(this,z),this[Z].loadend}set onloadend(A){ie.brandCheck(this,z),this[Z].loadend&&this.removeEventListener("loadend",this[Z].loadend),typeof A=="function"?(this[Z].loadend=A,this.addEventListener("loadend",A)):this[Z].loadend=null}get onerror(){return ie.brandCheck(this,z),this[Z].error}set onerror(A){ie.brandCheck(this,z),this[Z].error&&this.removeEventListener("error",this[Z].error),typeof A=="function"?(this[Z].error=A,this.addEventListener("error",A)):this[Z].error=null}get onloadstart(){return ie.brandCheck(this,z),this[Z].loadstart}set onloadstart(A){ie.brandCheck(this,z),this[Z].loadstart&&this.removeEventListener("loadstart",this[Z].loadstart),typeof A=="function"?(this[Z].loadstart=A,this.addEventListener("loadstart",A)):this[Z].loadstart=null}get onprogress(){return ie.brandCheck(this,z),this[Z].progress}set onprogress(A){ie.brandCheck(this,z),this[Z].progress&&this.removeEventListener("progress",this[Z].progress),typeof A=="function"?(this[Z].progress=A,this.addEventListener("progress",A)):this[Z].progress=null}get onload(){return ie.brandCheck(this,z),this[Z].load}set onload(A){ie.brandCheck(this,z),this[Z].load&&this.removeEventListener("load",this[Z].load),typeof A=="function"?(this[Z].load=A,this.addEventListener("load",A)):this[Z].load=null}get onabort(){return ie.brandCheck(this,z),this[Z].abort}set onabort(A){ie.brandCheck(this,z),this[Z].abort&&this.removeEventListener("abort",this[Z].abort),typeof A=="function"?(this[Z].abort=A,this.addEventListener("abort",A)):this[Z].abort=null}};z.EMPTY=z.prototype.EMPTY=0;z.LOADING=z.prototype.LOADING=1;z.DONE=z.prototype.DONE=2;Object.defineProperties(z.prototype,{EMPTY:Zn,LOADING:Zn,DONE:Zn,readAsArrayBuffer:pA,readAsBinaryString:pA,readAsText:pA,readAsDataURL:pA,abort:pA,readyState:pA,result:pA,error:pA,onloadstart:pA,onprogress:pA,onload:pA,onabort:pA,onerror:pA,onloadend:pA,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(z,{EMPTY:Zn,LOADING:Zn,DONE:Zn});qm.exports={FileReader:z}});var tg=I((gO,Pm)=>{"use strict";Pm.exports={kConstruct:Symbol("constructable")}});var Gm=I((cO,Ym)=>{"use strict";var OT=require("assert"),{URLSerializer:Jm}=tt(),{isValidHeaderName:HT}=YA();function WT(e,A,t=!1){let r=Jm(e,t),n=Jm(A,t);return r===n}function _T(e){OT(e!==null);let A=[];for(let t of e.split(",")){if(t=t.trim(),t.length){if(!HT(t))continue}else continue;A.push(t)}return A}Ym.exports={urlEquals:WT,fieldValues:_T}});var jm=I((lO,_m)=>{"use strict";var{kConstruct:jT}=tg(),{urlEquals:ZT,fieldValues:bC}=Gm(),{kEnumerableProperty:Wr,isDisturbed:zT}=_(),{kHeadersList:Km}=me(),{webidl:N}=gA(),{Response:Om,cloneResponse:XT}=Ga(),{Request:wt}=Fo(),{kState:CA,kHeaders:rg,kGuard:Vm,kRealm:$T}=Mt(),{fetching:eU}=Xa(),{urlIsHttpHttpsScheme:ng,createDeferredPromise:zn,readAllBytes:AU}=YA(),kC=require("assert"),{getGlobalDispatcher:tU}=On(),Dt,$n,ig,lr,Xn,sg,Hm,Yt=class{constructor(){fe(this,$n);fe(this,lr);fe(this,sg);fe(this,Dt,void 0);arguments[0]!==jT&&N.illegalConstructor(),$(this,Dt,arguments[1])}async match(A,t={}){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.match"}),A=N.converters.RequestInfo(A),t=N.converters.CacheQueryOptions(t);let r=await this.matchAll(A,t);if(r.length!==0)return r[0]}async matchAll(A=void 0,t={}){N.brandCheck(this,Yt),A!==void 0&&(A=N.converters.RequestInfo(A)),t=N.converters.CacheQueryOptions(t);let r=null;if(A!==void 0)if(A instanceof wt){if(r=A[CA],r.method!=="GET"&&!t.ignoreMethod)return[]}else typeof A=="string"&&(r=new wt(A)[CA]);let n=[];if(A===void 0)for(let o of d(this,Dt))n.push(o[1]);else{let o=UA(this,lr,Xn).call(this,r,t);for(let s of o)n.push(s[1])}let i=[];for(let o of n){let s=new Om(o.body?.source??null),a=s[CA].body;s[CA]=o,s[CA].body=a,s[rg][Km]=o.headersList,s[rg][Vm]="immutable",i.push(s)}return Object.freeze(i)}async add(A){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.add"}),A=N.converters.RequestInfo(A);let t=[A];return await this.addAll(t)}async addAll(A){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.addAll"}),A=N.converters["sequence"](A);let t=[],r=[];for(let l of A){if(typeof l=="string")continue;let u=l[CA];if(!ng(u.url)||u.method!=="GET")throw N.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}let n=[];for(let l of A){let u=new wt(l)[CA];if(!ng(u.url))throw N.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});u.initiator="fetch",u.destination="subresource",r.push(u);let C=zn();n.push(eU({request:u,dispatcher:tU(),processResponse(E){if(E.type==="error"||E.status===206||E.status<200||E.status>299)C.reject(N.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(E.headersList.contains("vary")){let h=bC(E.headersList.get("vary"));for(let B of h)if(B==="*"){C.reject(N.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let Q of n)Q.abort();return}}},processResponseEndOfBody(E){if(E.aborted){C.reject(new DOMException("aborted","AbortError"));return}C.resolve(E)}})),t.push(C.promise)}let o=await Promise.all(t),s=[],a=0;for(let l of o){let u={type:"put",request:r[a],response:l};s.push(u),a++}let g=zn(),c=null;try{UA(this,$n,ig).call(this,s)}catch(l){c=l}return queueMicrotask(()=>{c===null?g.resolve(void 0):g.reject(c)}),g.promise}async put(A,t){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,2,{header:"Cache.put"}),A=N.converters.RequestInfo(A),t=N.converters.Response(t);let r=null;if(A instanceof wt?r=A[CA]:r=new wt(A)[CA],!ng(r.url)||r.method!=="GET")throw N.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});let n=t[CA];if(n.status===206)throw N.errors.exception({header:"Cache.put",message:"Got 206 status"});if(n.headersList.contains("vary")){let u=bC(n.headersList.get("vary"));for(let C of u)if(C==="*")throw N.errors.exception({header:"Cache.put",message:"Got * vary field value"})}if(n.body&&(zT(n.body.stream)||n.body.stream.locked))throw N.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});let i=XT(n),o=zn();if(n.body!=null){let C=n.body.stream.getReader();AU(C,E=>o.resolve(E),E=>o.reject(E))}else o.resolve(void 0);let s=[],a={type:"put",request:r,response:i};s.push(a);let g=await o.promise;i.body!=null&&(i.body.source=g);let c=zn(),l=null;try{UA(this,$n,ig).call(this,s)}catch(u){l=u}return queueMicrotask(()=>{l===null?c.resolve():c.reject(l)}),c.promise}async delete(A,t={}){N.brandCheck(this,Yt),N.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),A=N.converters.RequestInfo(A),t=N.converters.CacheQueryOptions(t);let r=null;if(A instanceof wt){if(r=A[CA],r.method!=="GET"&&!t.ignoreMethod)return!1}else kC(typeof A=="string"),r=new wt(A)[CA];let n=[],i={type:"delete",request:r,options:t};n.push(i);let o=zn(),s=null,a;try{a=UA(this,$n,ig).call(this,n)}catch(g){s=g}return queueMicrotask(()=>{s===null?o.resolve(!!a?.length):o.reject(s)}),o.promise}async keys(A=void 0,t={}){N.brandCheck(this,Yt),A!==void 0&&(A=N.converters.RequestInfo(A)),t=N.converters.CacheQueryOptions(t);let r=null;if(A!==void 0)if(A instanceof wt){if(r=A[CA],r.method!=="GET"&&!t.ignoreMethod)return[]}else typeof A=="string"&&(r=new wt(A)[CA]);let n=zn(),i=[];if(A===void 0)for(let o of d(this,Dt))i.push(o[0]);else{let o=UA(this,lr,Xn).call(this,r,t);for(let s of o)i.push(s[0])}return queueMicrotask(()=>{let o=[];for(let s of i){let a=new wt("https://a");a[CA]=s,a[rg][Km]=s.headersList,a[rg][Vm]="immutable",a[$T]=s.client,o.push(a)}n.resolve(Object.freeze(o))}),n.promise}},og=Yt;Dt=new WeakMap,$n=new WeakSet,ig=function(A){let t=d(this,Dt),r=[...t],n=[],i=[];try{for(let o of A){if(o.type!=="delete"&&o.type!=="put")throw N.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(o.type==="delete"&&o.response!=null)throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(UA(this,lr,Xn).call(this,o.request,o.options,n).length)throw new DOMException("???","InvalidStateError");let s;if(o.type==="delete"){if(s=UA(this,lr,Xn).call(this,o.request,o.options),s.length===0)return[];for(let a of s){let g=t.indexOf(a);kC(g!==-1),t.splice(g,1)}}else if(o.type==="put"){if(o.response==null)throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=o.request;if(!ng(a.url))throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(o.options!=null)throw N.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});s=UA(this,lr,Xn).call(this,o.request);for(let g of s){let c=t.indexOf(g);kC(c!==-1),t.splice(c,1)}t.push([o.request,o.response]),n.push([o.request,o.response])}i.push([o.request,o.response])}return i}catch(o){throw d(this,Dt).length=0,$(this,Dt,r),o}},lr=new WeakSet,Xn=function(A,t,r){let n=[],i=r??d(this,Dt);for(let o of i){let[s,a]=o;UA(this,sg,Hm).call(this,A,s,a,t)&&n.push(o)}return n},sg=new WeakSet,Hm=function(A,t,r=null,n){let i=new URL(A.url),o=new URL(t.url);if(n?.ignoreSearch&&(o.search="",i.search=""),!ZT(i,o,!0))return!1;if(r==null||n?.ignoreVary||!r.headersList.contains("vary"))return!0;let s=bC(r.headersList.get("vary"));for(let a of s){if(a==="*")return!1;let g=t.headersList.get(a),c=A.headersList.get(a);if(g!==c)return!1}return!0};Object.defineProperties(og.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Wr,matchAll:Wr,add:Wr,addAll:Wr,put:Wr,delete:Wr,keys:Wr});var Wm=[{key:"ignoreSearch",converter:N.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:N.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:N.converters.boolean,defaultValue:!1}];N.converters.CacheQueryOptions=N.dictionaryConverter(Wm);N.converters.MultiCacheQueryOptions=N.dictionaryConverter([...Wm,{key:"cacheName",converter:N.converters.DOMString}]);N.converters.Response=N.interfaceConverter(Om);N.converters["sequence"]=N.sequenceConverter(N.converters.RequestInfo);_m.exports={Cache:og}});var zm=I((CO,Zm)=>{"use strict";var{kConstruct:Lo}=tg(),{Cache:ag}=jm(),{webidl:EA}=gA(),{kEnumerableProperty:To}=_(),jA,_r=class{constructor(){fe(this,jA,new Map);arguments[0]!==Lo&&EA.illegalConstructor()}async match(A,t={}){if(EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),A=EA.converters.RequestInfo(A),t=EA.converters.MultiCacheQueryOptions(t),t.cacheName!=null){if(d(this,jA).has(t.cacheName)){let r=d(this,jA).get(t.cacheName);return await new ag(Lo,r).match(A,t)}}else for(let r of d(this,jA).values()){let i=await new ag(Lo,r).match(A,t);if(i!==void 0)return i}}async has(A){return EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),A=EA.converters.DOMString(A),d(this,jA).has(A)}async open(A){if(EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),A=EA.converters.DOMString(A),d(this,jA).has(A)){let r=d(this,jA).get(A);return new ag(Lo,r)}let t=[];return d(this,jA).set(A,t),new ag(Lo,t)}async delete(A){return EA.brandCheck(this,_r),EA.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),A=EA.converters.DOMString(A),d(this,jA).delete(A)}async keys(){return EA.brandCheck(this,_r),[...d(this,jA).keys()]}},gg=_r;jA=new WeakMap;Object.defineProperties(gg.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:To,has:To,open:To,delete:To,keys:To});Zm.exports={CacheStorage:gg}});var $m=I((hO,Xm)=>{"use strict";Xm.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var NC=I((IO,ty)=>{"use strict";var ey=require("assert"),{kHeadersList:Ay}=me();function rU(e){if(e.length===0)return!1;for(let A of e){let t=A.charCodeAt(0);if(t>=0||t<=8||t>=10||t<=31||t===127)return!1}}function nU(e){for(let A of e){let t=A.charCodeAt(0);if(t<=32||t>127||A==="("||A===")"||A===">"||A==="<"||A==="@"||A===","||A===";"||A===":"||A==="\\"||A==='"'||A==="/"||A==="["||A==="]"||A==="?"||A==="="||A==="{"||A==="}")throw new Error("Invalid cookie name")}}function iU(e){for(let A of e){let t=A.charCodeAt(0);if(t<33||t===34||t===44||t===59||t===92||t>126)throw new Error("Invalid header value")}}function oU(e){for(let A of e)if(A.charCodeAt(0)<33||A===";")throw new Error("Invalid cookie path")}function sU(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw new Error("Invalid cookie domain")}function aU(e){typeof e=="number"&&(e=new Date(e));let A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r=A[e.getUTCDay()],n=e.getUTCDate().toString().padStart(2,"0"),i=t[e.getUTCMonth()],o=e.getUTCFullYear(),s=e.getUTCHours().toString().padStart(2,"0"),a=e.getUTCMinutes().toString().padStart(2,"0"),g=e.getUTCSeconds().toString().padStart(2,"0");return`${r}, ${n} ${i} ${o} ${s}:${a}:${g} GMT`}function gU(e){if(e<0)throw new Error("Invalid cookie max-age")}function cU(e){if(e.name.length===0)return null;nU(e.name),iU(e.value);let A=[`${e.name}=${e.value}`];e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&A.push("Secure"),e.httpOnly&&A.push("HttpOnly"),typeof e.maxAge=="number"&&(gU(e.maxAge),A.push(`Max-Age=${e.maxAge}`)),e.domain&&(sU(e.domain),A.push(`Domain=${e.domain}`)),e.path&&(oU(e.path),A.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!=="Invalid Date"&&A.push(`Expires=${aU(e.expires)}`),e.sameSite&&A.push(`SameSite=${e.sameSite}`);for(let t of e.unparsed){if(!t.includes("="))throw new Error("Invalid unparsed");let[r,...n]=t.split("=");A.push(`${r.trim()}=${n.join("=")}`)}return A.join("; ")}var cg;function lU(e){if(e[Ay])return e[Ay];cg||(cg=Object.getOwnPropertySymbols(e).find(t=>t.description==="headers list"),ey(cg,"Headers cannot be parsed"));let A=e[cg];return ey(A),A}ty.exports={isCTLExcludingHtab:rU,stringify:cU,getHeadersList:lU}});var ny=I((dO,ry)=>{"use strict";var{maxNameValuePairSize:uU,maxAttributeValueSize:CU}=$m(),{isCTLExcludingHtab:EU}=NC(),{collectASequenceOfCodePointsFast:lg}=tt(),hU=require("assert");function IU(e){if(EU(e))return null;let A="",t="",r="",n="";if(e.includes(";")){let i={position:0};A=lg(";",e,i),t=e.slice(i.position)}else A=e;if(!A.includes("="))n=A;else{let i={position:0};r=lg("=",A,i),n=A.slice(i.position+1)}return r=r.trim(),n=n.trim(),r.length+n.length>uU?null:{name:r,value:n,...ei(t)}}function ei(e,A={}){if(e.length===0)return A;hU(e[0]===";"),e=e.slice(1);let t="";e.includes(";")?(t=lg(";",e,{position:0}),e=e.slice(t.length)):(t=e,e="");let r="",n="";if(t.includes("=")){let o={position:0};r=lg("=",t,o),n=t.slice(o.position+1)}else r=t;if(r=r.trim(),n=n.trim(),n.length>CU)return ei(e,A);let i=r.toLowerCase();if(i==="expires"){let o=new Date(n);A.expires=o}else if(i==="max-age"){let o=n.charCodeAt(0);if((o<48||o>57)&&n[0]!=="-"||!/^\d+$/.test(n))return ei(e,A);let s=Number(n);A.maxAge=s}else if(i==="domain"){let o=n;o[0]==="."&&(o=o.slice(1)),o=o.toLowerCase(),A.domain=o}else if(i==="path"){let o="";n.length===0||n[0]!=="/"?o="/":o=n,A.path=o}else if(i==="secure")A.secure=!0;else if(i==="httponly")A.httpOnly=!0;else if(i==="samesite"){let o="Default",s=n.toLowerCase();s.includes("none")&&(o="None"),s.includes("strict")&&(o="Strict"),s.includes("lax")&&(o="Lax"),A.sameSite=o}else A.unparsed??(A.unparsed=[]),A.unparsed.push(`${r}=${n}`);return ei(e,A)}ry.exports={parseSetCookie:IU,parseUnparsedAttributes:ei}});var ay=I((QO,sy)=>{"use strict";var{parseSetCookie:dU}=ny(),{stringify:iy,getHeadersList:QU}=NC(),{webidl:K}=gA(),{Headers:ug}=Vr();function BU(e){K.argumentLengthCheck(arguments,1,{header:"getCookies"}),K.brandCheck(e,ug,{strict:!1});let A=e.get("cookie"),t={};if(!A)return t;for(let r of A.split(";")){let[n,...i]=r.split("=");t[n.trim()]=i.join("=")}return t}function fU(e,A,t){K.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),K.brandCheck(e,ug,{strict:!1}),A=K.converters.DOMString(A),t=K.converters.DeleteCookieAttributes(t),oy(e,{name:A,value:"",expires:new Date(0),...t})}function pU(e){K.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),K.brandCheck(e,ug,{strict:!1});let A=QU(e).cookies;return A?A.map(t=>dU(Array.isArray(t)?t[1]:t)):[]}function oy(e,A){K.argumentLengthCheck(arguments,2,{header:"setCookie"}),K.brandCheck(e,ug,{strict:!1}),A=K.converters.Cookie(A),iy(A)&&e.append("Set-Cookie",iy(A))}K.converters.DeleteCookieAttributes=K.dictionaryConverter([{converter:K.nullableConverter(K.converters.DOMString),key:"path",defaultValue:null},{converter:K.nullableConverter(K.converters.DOMString),key:"domain",defaultValue:null}]);K.converters.Cookie=K.dictionaryConverter([{converter:K.converters.DOMString,key:"name"},{converter:K.converters.DOMString,key:"value"},{converter:K.nullableConverter(e=>typeof e=="number"?K.converters["unsigned long long"](e):new Date(e)),key:"expires",defaultValue:null},{converter:K.nullableConverter(K.converters["long long"]),key:"maxAge",defaultValue:null},{converter:K.nullableConverter(K.converters.DOMString),key:"domain",defaultValue:null},{converter:K.nullableConverter(K.converters.DOMString),key:"path",defaultValue:null},{converter:K.nullableConverter(K.converters.boolean),key:"secure",defaultValue:null},{converter:K.nullableConverter(K.converters.boolean),key:"httpOnly",defaultValue:null},{converter:K.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:K.sequenceConverter(K.converters.DOMString),key:"unparsed",defaultValue:[]}]);sy.exports={getCookies:BU,deleteCookie:fU,getSetCookies:pU,setCookie:oy}});var Ai=I((BO,gy)=>{"use strict";var mU="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",yU={enumerable:!0,writable:!1,configurable:!1},wU={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},DU={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},SU=2**16-1,bU={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},kU=Buffer.allocUnsafe(0);gy.exports={uid:mU,staticPropertyDescriptors:yU,states:wU,opcodes:DU,maxUnsigned16Bit:SU,parserStates:bU,emptyBuffer:kU}});var Uo=I((fO,cy)=>{"use strict";cy.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var FC=I((pO,ly)=>{"use strict";var{webidl:R}=gA(),{kEnumerableProperty:mA}=_(),{MessagePort:NU}=require("worker_threads"),it,Gt=class extends Event{constructor(t,r={}){R.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),t=R.converters.DOMString(t),r=R.converters.MessageEventInit(r);super(t,r);fe(this,it,void 0);$(this,it,r)}get data(){return R.brandCheck(this,Gt),d(this,it).data}get origin(){return R.brandCheck(this,Gt),d(this,it).origin}get lastEventId(){return R.brandCheck(this,Gt),d(this,it).lastEventId}get source(){return R.brandCheck(this,Gt),d(this,it).source}get ports(){return R.brandCheck(this,Gt),Object.isFrozen(d(this,it).ports)||Object.freeze(d(this,it).ports),d(this,it).ports}initMessageEvent(t,r=!1,n=!1,i=null,o="",s="",a=null,g=[]){return R.brandCheck(this,Gt),R.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new Gt(t,{bubbles:r,cancelable:n,data:i,origin:o,lastEventId:s,source:a,ports:g})}},Cg=Gt;it=new WeakMap;var Zr,qo=class extends Event{constructor(t,r={}){R.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),t=R.converters.DOMString(t),r=R.converters.CloseEventInit(r);super(t,r);fe(this,Zr,void 0);$(this,Zr,r)}get wasClean(){return R.brandCheck(this,qo),d(this,Zr).wasClean}get code(){return R.brandCheck(this,qo),d(this,Zr).code}get reason(){return R.brandCheck(this,qo),d(this,Zr).reason}},Eg=qo;Zr=new WeakMap;var Kt,jr=class extends Event{constructor(t,r){R.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(t,r);fe(this,Kt,void 0);t=R.converters.DOMString(t),r=R.converters.ErrorEventInit(r??{}),$(this,Kt,r)}get message(){return R.brandCheck(this,jr),d(this,Kt).message}get filename(){return R.brandCheck(this,jr),d(this,Kt).filename}get lineno(){return R.brandCheck(this,jr),d(this,Kt).lineno}get colno(){return R.brandCheck(this,jr),d(this,Kt).colno}get error(){return R.brandCheck(this,jr),d(this,Kt).error}},hg=jr;Kt=new WeakMap;Object.defineProperties(Cg.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:mA,origin:mA,lastEventId:mA,source:mA,ports:mA,initMessageEvent:mA});Object.defineProperties(Eg.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:mA,code:mA,wasClean:mA});Object.defineProperties(hg.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:mA,filename:mA,lineno:mA,colno:mA,error:mA});R.converters.MessagePort=R.interfaceConverter(NU);R.converters["sequence"]=R.sequenceConverter(R.converters.MessagePort);var RC=[{key:"bubbles",converter:R.converters.boolean,defaultValue:!1},{key:"cancelable",converter:R.converters.boolean,defaultValue:!1},{key:"composed",converter:R.converters.boolean,defaultValue:!1}];R.converters.MessageEventInit=R.dictionaryConverter([...RC,{key:"data",converter:R.converters.any,defaultValue:null},{key:"origin",converter:R.converters.USVString,defaultValue:""},{key:"lastEventId",converter:R.converters.DOMString,defaultValue:""},{key:"source",converter:R.nullableConverter(R.converters.MessagePort),defaultValue:null},{key:"ports",converter:R.converters["sequence"],get defaultValue(){return[]}}]);R.converters.CloseEventInit=R.dictionaryConverter([...RC,{key:"wasClean",converter:R.converters.boolean,defaultValue:!1},{key:"code",converter:R.converters["unsigned short"],defaultValue:0},{key:"reason",converter:R.converters.USVString,defaultValue:""}]);R.converters.ErrorEventInit=R.dictionaryConverter([...RC,{key:"message",converter:R.converters.DOMString,defaultValue:""},{key:"filename",converter:R.converters.USVString,defaultValue:""},{key:"lineno",converter:R.converters["unsigned long"],defaultValue:0},{key:"colno",converter:R.converters["unsigned long"],defaultValue:0},{key:"error",converter:R.converters.any}]);ly.exports={MessageEvent:Cg,CloseEvent:Eg,ErrorEvent:hg}});var Qg=I((yO,Ey)=>{"use strict";var{kReadyState:Ig,kController:RU,kResponse:FU,kBinaryType:MU,kWebSocketURL:xU}=Uo(),{states:dg,opcodes:uy}=Ai(),{MessageEvent:LU,ErrorEvent:TU}=FC();function UU(e){return e[Ig]===dg.OPEN}function qU(e){return e[Ig]===dg.CLOSING}function vU(e){return e[Ig]===dg.CLOSED}function MC(e,A,t=Event,r){let n=new t(e,r);A.dispatchEvent(n)}function PU(e,A,t){if(e[Ig]!==dg.OPEN)return;let r;if(A===uy.TEXT)try{r=new TextDecoder("utf-8",{fatal:!0}).decode(t)}catch{Cy(e,"Received invalid UTF-8 in text frame.");return}else A===uy.BINARY&&(e[MU]==="blob"?r=new Blob([t]):r=new Uint8Array(t).buffer);MC("message",e,LU,{origin:e[xU].origin,data:r})}function JU(e){if(e.length===0)return!1;for(let A of e){let t=A.charCodeAt(0);if(t<33||t>126||A==="("||A===")"||A==="<"||A===">"||A==="@"||A===","||A===";"||A===":"||A==="\\"||A==='"'||A==="/"||A==="["||A==="]"||A==="?"||A==="="||A==="{"||A==="}"||t===32||t===9)return!1}return!0}function YU(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function Cy(e,A){let{[RU]:t,[FU]:r}=e;t.abort(),r?.socket&&!r.socket.destroyed&&r.socket.destroy(),A&&MC("error",e,TU,{error:new Error(A)})}Ey.exports={isEstablished:UU,isClosing:qU,isClosed:vU,fireEvent:MC,isValidSubprotocol:JU,isValidStatusCode:YU,failWebsocketConnection:Cy,websocketMessageReceived:PU}});var fy=I((wO,By)=>{"use strict";var{randomBytes:GU,createHash:KU}=require("crypto"),xC=require("diagnostics_channel"),{uid:VU,states:Iy}=Ai(),{kReadyState:dy,kSentClose:hy,kByteParser:Qy,kReceivedClose:OU}=Uo(),{fireEvent:HU,failWebsocketConnection:zr}=Qg(),{CloseEvent:WU}=FC(),{makeRequest:_U}=Fo(),{fetching:jU}=Xa(),{Headers:ZU}=Vr(),{getGlobalDispatcher:zU}=On(),{kHeadersList:XU}=me(),Vt={};Vt.open=xC.channel("undici:websocket:open");Vt.close=xC.channel("undici:websocket:close");Vt.socketError=xC.channel("undici:websocket:socket_error");function $U(e,A,t,r,n){let i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";let o=_U({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(n.headers){let c=new ZU(n.headers)[XU];o.headersList=c}let s=GU(16).toString("base64");o.headersList.append("sec-websocket-key",s),o.headersList.append("sec-websocket-version","13");for(let c of A)o.headersList.append("sec-websocket-protocol",c);let a="";return jU({request:o,useParallelQueue:!0,dispatcher:n.dispatcher??zU(),processResponse(c){if(c.type==="error"||c.status!==101){zr(t,"Received network error or non-101 status code.");return}if(A.length!==0&&!c.headersList.get("Sec-WebSocket-Protocol")){zr(t,"Server did not respond with sent protocols.");return}if(c.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){zr(t,'Server did not set Upgrade header to "websocket".');return}if(c.headersList.get("Connection")?.toLowerCase()!=="upgrade"){zr(t,'Server did not set Connection header to "upgrade".');return}let l=c.headersList.get("Sec-WebSocket-Accept"),u=KU("sha1").update(s+VU).digest("base64");if(l!==u){zr(t,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let C=c.headersList.get("Sec-WebSocket-Extensions");if(C!==null&&C!==a){zr(t,"Received different permessage-deflate than the one set.");return}let E=c.headersList.get("Sec-WebSocket-Protocol");if(E!==null&&E!==o.headersList.get("Sec-WebSocket-Protocol")){zr(t,"Protocol was not set in the opening handshake.");return}c.socket.on("data",eq),c.socket.on("close",Aq),c.socket.on("error",tq),Vt.open.hasSubscribers&&Vt.open.publish({address:c.socket.address(),protocol:E,extensions:C}),r(c)}})}function eq(e){this.ws[Qy].write(e)||this.pause()}function Aq(){let{ws:e}=this,A=e[hy]&&e[OU],t=1005,r="",n=e[Qy].closingInfo;n?(t=n.code??1005,r=n.reason):e[hy]||(t=1006),e[dy]=Iy.CLOSED,HU("close",e,WU,{wasClean:A,code:t,reason:r}),Vt.close.hasSubscribers&&Vt.close.publish({websocket:e,code:t,reason:r})}function tq(e){let{ws:A}=this;A[dy]=Iy.CLOSING,Vt.socketError.hasSubscribers&&Vt.socketError.publish(e),this.destroy()}By.exports={establishWebSocketConnection:$U}});var TC=I((DO,py)=>{"use strict";var{randomBytes:rq}=require("crypto"),{maxUnsigned16Bit:nq}=Ai(),LC=class{constructor(A){this.frameData=A,this.maskKey=rq(4)}createFrame(A){let t=this.frameData?.byteLength??0,r=t,n=6;t>nq?(n+=8,r=127):t>125&&(n+=2,r=126);let i=Buffer.allocUnsafe(t+n);i[0]=i[1]=0,i[0]|=128,i[0]=(i[0]&240)+A;i[n-4]=this.maskKey[0],i[n-3]=this.maskKey[1],i[n-2]=this.maskKey[2],i[n-1]=this.maskKey[3],i[1]=r,r===126?i.writeUInt16BE(t,2):r===127&&(i[2]=i[3]=0,i.writeUIntBE(t,4,6)),i[1]|=128;for(let o=0;o{"use strict";var{Writable:iq}=require("stream"),by=require("diagnostics_channel"),{parserStates:ZA,opcodes:zA,states:oq,emptyBuffer:sq}=Ai(),{kReadyState:aq,kSentClose:my,kResponse:yy,kReceivedClose:wy}=Uo(),{isValidStatusCode:Dy,failWebsocketConnection:vo,websocketMessageReceived:gq}=Qg(),{WebsocketFrameSend:Sy}=TC(),ti={};ti.ping=by.channel("undici:websocket:ping");ti.pong=by.channel("undici:websocket:pong");var ot,hA,yA,H,ri,UC=class extends iq{constructor(t){super();fe(this,ot,[]);fe(this,hA,0);fe(this,yA,ZA.INFO);fe(this,H,{});fe(this,ri,[]);this.ws=t}_write(t,r,n){d(this,ot).push(t),$(this,hA,d(this,hA)+t.length),this.run(n)}run(t){var r;for(;;){if(d(this,yA)===ZA.INFO){if(d(this,hA)<2)return t();let n=this.consume(2);if(d(this,H).fin=(n[0]&128)!==0,d(this,H).opcode=n[0]&15,(r=d(this,H)).originalOpcode??(r.originalOpcode=d(this,H).opcode),d(this,H).fragmented=!d(this,H).fin&&d(this,H).opcode!==zA.CONTINUATION,d(this,H).fragmented&&d(this,H).opcode!==zA.BINARY&&d(this,H).opcode!==zA.TEXT){vo(this.ws,"Invalid frame type was fragmented.");return}let i=n[1]&127;if(i<=125?(d(this,H).payloadLength=i,$(this,yA,ZA.READ_DATA)):i===126?$(this,yA,ZA.PAYLOADLENGTH_16):i===127&&$(this,yA,ZA.PAYLOADLENGTH_64),d(this,H).fragmented&&i>125){vo(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((d(this,H).opcode===zA.PING||d(this,H).opcode===zA.PONG||d(this,H).opcode===zA.CLOSE)&&i>125){vo(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(d(this,H).opcode===zA.CLOSE){if(i===1){vo(this.ws,"Received close frame with a 1-byte body.");return}let o=this.consume(i);if(d(this,H).closeInfo=this.parseCloseBody(!1,o),!this.ws[my]){let s=Buffer.allocUnsafe(2);s.writeUInt16BE(d(this,H).closeInfo.code,0);let a=new Sy(s);this.ws[yy].socket.write(a.createFrame(zA.CLOSE),g=>{g||(this.ws[my]=!0)})}this.ws[aq]=oq.CLOSING,this.ws[wy]=!0,this.end();return}else if(d(this,H).opcode===zA.PING){let o=this.consume(i);if(!this.ws[wy]){let s=new Sy(o);this.ws[yy].socket.write(s.createFrame(zA.PONG)),ti.ping.hasSubscribers&&ti.ping.publish({payload:o})}if($(this,yA,ZA.INFO),d(this,hA)>0)continue;t();return}else if(d(this,H).opcode===zA.PONG){let o=this.consume(i);if(ti.pong.hasSubscribers&&ti.pong.publish({payload:o}),d(this,hA)>0)continue;t();return}}else if(d(this,yA)===ZA.PAYLOADLENGTH_16){if(d(this,hA)<2)return t();let n=this.consume(2);d(this,H).payloadLength=n.readUInt16BE(0),$(this,yA,ZA.READ_DATA)}else if(d(this,yA)===ZA.PAYLOADLENGTH_64){if(d(this,hA)<8)return t();let n=this.consume(8),i=n.readUInt32BE(0);if(i>2**31-1){vo(this.ws,"Received payload length > 2^31 bytes.");return}let o=n.readUInt32BE(4);d(this,H).payloadLength=(i<<8)+o,$(this,yA,ZA.READ_DATA)}else if(d(this,yA)===ZA.READ_DATA){if(d(this,hA)=d(this,H).payloadLength){let n=this.consume(d(this,H).payloadLength);if(d(this,ri).push(n),!d(this,H).fragmented||d(this,H).fin&&d(this,H).opcode===zA.CONTINUATION){let i=Buffer.concat(d(this,ri));gq(this.ws,d(this,H).originalOpcode,i),$(this,H,{}),d(this,ri).length=0}$(this,yA,ZA.INFO)}}if(!(d(this,hA)>0)){t();break}}}consume(t){if(t>d(this,hA))return null;if(t===0)return sq;if(d(this,ot)[0].length===t)return $(this,hA,d(this,hA)-d(this,ot)[0].length),d(this,ot).shift();let r=Buffer.allocUnsafe(t),n=0;for(;n!==t;){let i=d(this,ot)[0],{length:o}=i;if(o+n===t){r.set(d(this,ot).shift(),n);break}else if(o+n>t){r.set(i.subarray(0,t-n),n),d(this,ot)[0]=i.subarray(t-n);break}else r.set(d(this,ot).shift(),n),n+=i.length}return $(this,hA,d(this,hA)-t),r}parseCloseBody(t,r){let n;if(r.length>=2&&(n=r.readUInt16BE(0)),t)return Dy(n)?{code:n}:null;let i=r.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191&&(i=i.subarray(3)),n!==void 0&&!Dy(n))return null;try{i=new TextDecoder("utf-8",{fatal:!0}).decode(i)}catch{return null}return{code:n,reason:i}}get closingInfo(){return d(this,H).closeInfo}};ot=new WeakMap,hA=new WeakMap,yA=new WeakMap,H=new WeakMap,ri=new WeakMap;ky.exports={ByteParser:UC}});var vy=I((kO,qy)=>{"use strict";var{webidl:T}=gA(),{DOMException:ur}=rr(),{URLSerializer:cq}=tt(),{staticPropertyDescriptors:Cr,states:ni,opcodes:Po,emptyBuffer:lq}=Ai(),{kWebSocketURL:Ry,kReadyState:Ot,kController:uq,kBinaryType:Bg,kResponse:fg,kSentClose:Cq,kByteParser:Eq}=Uo(),{isEstablished:Fy,isClosing:My,isValidSubprotocol:hq,failWebsocketConnection:Iq,fireEvent:dq}=Qg(),{establishWebSocketConnection:Qq}=fy(),{WebsocketFrameSend:Jo}=TC(),{ByteParser:Bq}=Ny(),{kEnumerableProperty:XA,isBlobLike:Ly}=_(),{getGlobalDispatcher:fq}=On(),{types:Ty}=require("util"),xy=!1,we,$A,Yo,Go,pg,Uy,Ce=class extends EventTarget{constructor(t,r=[]){super();fe(this,pg);fe(this,we,{open:null,error:null,close:null,message:null});fe(this,$A,0);fe(this,Yo,"");fe(this,Go,"");T.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),xy||(xy=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));let n=T.converters["DOMString or sequence or WebSocketInit"](r);t=T.converters.USVString(t),r=n.protocols;let i;try{i=new URL(t)}catch(o){throw new ur(o,"SyntaxError")}if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new ur(`Expected a ws: or wss: protocol, got ${i.protocol}`,"SyntaxError");if(i.hash)throw new ur("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(o=>o.toLowerCase())).size)throw new ur("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(o=>hq(o)))throw new ur("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Ry]=i,this[uq]=Qq(i,r,this,o=>UA(this,pg,Uy).call(this,o),n),this[Ot]=Ce.CONNECTING,this[Bg]="blob"}close(t=void 0,r=void 0){if(T.brandCheck(this,Ce),t!==void 0&&(t=T.converters["unsigned short"](t,{clamp:!0})),r!==void 0&&(r=T.converters.USVString(r)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new ur("invalid code","InvalidAccessError");let n=0;if(r!==void 0&&(n=Buffer.byteLength(r),n>123))throw new ur(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError");if(!(this[Ot]===Ce.CLOSING||this[Ot]===Ce.CLOSED))if(!Fy(this))Iq(this,"Connection was closed before it was established."),this[Ot]=Ce.CLOSING;else if(My(this))this[Ot]=Ce.CLOSING;else{let i=new Jo;t!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(t,0)):t!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(t,0),i.frameData.write(r,2,"utf-8")):i.frameData=lq,this[fg].socket.write(i.createFrame(Po.CLOSE),s=>{s||(this[Cq]=!0)}),this[Ot]=ni.CLOSING}}send(t){if(T.brandCheck(this,Ce),T.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),t=T.converters.WebSocketSendData(t),this[Ot]===Ce.CONNECTING)throw new ur("Sent before connected.","InvalidStateError");if(!Fy(this)||My(this))return;let r=this[fg].socket;if(typeof t=="string"){let n=Buffer.from(t),o=new Jo(n).createFrame(Po.TEXT);$(this,$A,d(this,$A)+n.byteLength),r.write(o,()=>{$(this,$A,d(this,$A)-n.byteLength)})}else if(Ty.isArrayBuffer(t)){let n=Buffer.from(t),o=new Jo(n).createFrame(Po.BINARY);$(this,$A,d(this,$A)+n.byteLength),r.write(o,()=>{$(this,$A,d(this,$A)-n.byteLength)})}else if(ArrayBuffer.isView(t)){let n=Buffer.from(t,t.byteOffset,t.byteLength),o=new Jo(n).createFrame(Po.BINARY);$(this,$A,d(this,$A)+n.byteLength),r.write(o,()=>{$(this,$A,d(this,$A)-n.byteLength)})}else if(Ly(t)){let n=new Jo;t.arrayBuffer().then(i=>{let o=Buffer.from(i);n.frameData=o;let s=n.createFrame(Po.BINARY);$(this,$A,d(this,$A)+o.byteLength),r.write(s,()=>{$(this,$A,d(this,$A)-o.byteLength)})})}}get readyState(){return T.brandCheck(this,Ce),this[Ot]}get bufferedAmount(){return T.brandCheck(this,Ce),d(this,$A)}get url(){return T.brandCheck(this,Ce),cq(this[Ry])}get extensions(){return T.brandCheck(this,Ce),d(this,Go)}get protocol(){return T.brandCheck(this,Ce),d(this,Yo)}get onopen(){return T.brandCheck(this,Ce),d(this,we).open}set onopen(t){T.brandCheck(this,Ce),d(this,we).open&&this.removeEventListener("open",d(this,we).open),typeof t=="function"?(d(this,we).open=t,this.addEventListener("open",t)):d(this,we).open=null}get onerror(){return T.brandCheck(this,Ce),d(this,we).error}set onerror(t){T.brandCheck(this,Ce),d(this,we).error&&this.removeEventListener("error",d(this,we).error),typeof t=="function"?(d(this,we).error=t,this.addEventListener("error",t)):d(this,we).error=null}get onclose(){return T.brandCheck(this,Ce),d(this,we).close}set onclose(t){T.brandCheck(this,Ce),d(this,we).close&&this.removeEventListener("close",d(this,we).close),typeof t=="function"?(d(this,we).close=t,this.addEventListener("close",t)):d(this,we).close=null}get onmessage(){return T.brandCheck(this,Ce),d(this,we).message}set onmessage(t){T.brandCheck(this,Ce),d(this,we).message&&this.removeEventListener("message",d(this,we).message),typeof t=="function"?(d(this,we).message=t,this.addEventListener("message",t)):d(this,we).message=null}get binaryType(){return T.brandCheck(this,Ce),this[Bg]}set binaryType(t){T.brandCheck(this,Ce),t!=="blob"&&t!=="arraybuffer"?this[Bg]="blob":this[Bg]=t}},TA=Ce;we=new WeakMap,$A=new WeakMap,Yo=new WeakMap,Go=new WeakMap,pg=new WeakSet,Uy=function(t){this[fg]=t;let r=new Bq(this);r.on("drain",function(){this.ws[fg].socket.resume()}),t.socket.ws=this,this[Eq]=r,this[Ot]=ni.OPEN;let n=t.headersList.get("sec-websocket-extensions");n!==null&&$(this,Go,n);let i=t.headersList.get("sec-websocket-protocol");i!==null&&$(this,Yo,i),dq("open",this)};TA.CONNECTING=TA.prototype.CONNECTING=ni.CONNECTING;TA.OPEN=TA.prototype.OPEN=ni.OPEN;TA.CLOSING=TA.prototype.CLOSING=ni.CLOSING;TA.CLOSED=TA.prototype.CLOSED=ni.CLOSED;Object.defineProperties(TA.prototype,{CONNECTING:Cr,OPEN:Cr,CLOSING:Cr,CLOSED:Cr,url:XA,readyState:XA,bufferedAmount:XA,onopen:XA,onerror:XA,onclose:XA,close:XA,onmessage:XA,binaryType:XA,send:XA,extensions:XA,protocol:XA,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(TA,{CONNECTING:Cr,OPEN:Cr,CLOSING:Cr,CLOSED:Cr});T.converters["sequence"]=T.sequenceConverter(T.converters.DOMString);T.converters["DOMString or sequence"]=function(e){return T.util.Type(e)==="Object"&&Symbol.iterator in e?T.converters["sequence"](e):T.converters.DOMString(e)};T.converters.WebSocketInit=T.dictionaryConverter([{key:"protocols",converter:T.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return fq()}},{key:"headers",converter:T.nullableConverter(T.converters.HeadersInit)}]);T.converters["DOMString or sequence or WebSocketInit"]=function(e){return T.util.Type(e)==="Object"&&!(Symbol.iterator in e)?T.converters.WebSocketInit(e):{protocols:T.converters["DOMString or sequence"](e)}};T.converters.WebSocketSendData=function(e){if(T.util.Type(e)==="Object"){if(Ly(e))return T.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||Ty.isAnyArrayBuffer(e))return T.converters.BufferSource(e)}return T.converters.USVString(e)};qy.exports={WebSocket:TA}});var Gy=I((RO,P)=>{"use strict";var pq=Qo(),Py=sa(),Jy=le(),mq=qn(),yq=nf(),wq=mo(),Xr=_(),{InvalidArgumentError:mg}=Jy,ii=Zf(),Dq=co(),Sq=Ou(),bq=Mp(),kq=_u(),Nq=xu(),Rq=vp(),{getGlobalDispatcher:Yy,setGlobalDispatcher:Fq}=On(),Mq=Vp(),xq=Hl(),Lq=la(),qC;try{require("crypto"),qC=!0}catch{qC=!1}Object.assign(Py.prototype,ii);P.exports.Dispatcher=Py;P.exports.Client=pq;P.exports.Pool=mq;P.exports.BalancedPool=yq;P.exports.Agent=wq;P.exports.ProxyAgent=Rq;P.exports.DecoratorHandler=Mq;P.exports.RedirectHandler=xq;P.exports.createRedirectInterceptor=Lq;P.exports.buildConnector=Dq;P.exports.errors=Jy;function Ko(e){return(A,t,r)=>{if(typeof t=="function"&&(r=t,t=null),!A||typeof A!="string"&&typeof A!="object"&&!(A instanceof URL))throw new mg("invalid url");if(t!=null&&typeof t!="object")throw new mg("invalid opts");if(t&&t.path!=null){if(typeof t.path!="string")throw new mg("invalid opts.path");let o=t.path;t.path.startsWith("/")||(o=`/${o}`),A=new URL(Xr.parseOrigin(A).origin+o)}else t||(t=typeof A=="object"?A:{}),A=Xr.parseURL(A);let{agent:n,dispatcher:i=Yy()}=t;if(n)throw new mg("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...t,origin:A.origin,path:A.search?`${A.pathname}${A.search}`:A.pathname,method:t.method||(t.body?"PUT":"GET")},r)}}P.exports.setGlobalDispatcher=Fq;P.exports.getGlobalDispatcher=Yy;if(Xr.nodeMajor>16||Xr.nodeMajor===16&&Xr.nodeMinor>=8){let e=null;P.exports.fetch=async function(o){e||(e=Xa().fetch);try{return await e(...arguments)}catch(s){throw Error.captureStackTrace(s,this),s}},P.exports.Headers=Vr().Headers,P.exports.Response=Ga().Response,P.exports.Request=Fo().Request,P.exports.FormData=ia().FormData,P.exports.File=ra().File,P.exports.FileReader=vm().FileReader;let{setGlobalOrigin:A,getGlobalOrigin:t}=no();P.exports.setGlobalOrigin=A,P.exports.getGlobalOrigin=t;let{CacheStorage:r}=zm(),{kConstruct:n}=tg();P.exports.caches=new r(n)}if(Xr.nodeMajor>=16){let{deleteCookie:e,getCookies:A,getSetCookies:t,setCookie:r}=ay();P.exports.deleteCookie=e,P.exports.getCookies=A,P.exports.getSetCookies=t,P.exports.setCookie=r;let{parseMIMEType:n,serializeAMimeType:i}=tt();P.exports.parseMIMEType=n,P.exports.serializeAMimeType=i}if(Xr.nodeMajor>=18&&qC){let{WebSocket:e}=vy();P.exports.WebSocket=e}P.exports.request=Ko(ii.request);P.exports.stream=Ko(ii.stream);P.exports.pipeline=Ko(ii.pipeline);P.exports.connect=Ko(ii.connect);P.exports.upgrade=Ko(ii.upgrade);P.exports.MockClient=Sq;P.exports.MockPool=kq;P.exports.MockAgent=bq;P.exports.mockErrors=Nq});var $C=I((N9,Z0)=>{"use strict";Z0.exports=function(){function e(A,t,r,n,i){return Ar?r+1:A+1:n===i?t:t+1}return function(A,t){if(A===t)return 0;if(A.length>t.length){var r=A;A=t,t=r}for(var n=A.length,i=t.length;n>0&&A.charCodeAt(n-1)===t.charCodeAt(i-1);)n--,i--;for(var o=0;oqA,DMMFClass:()=>fi,Debug:()=>cc,Decimal:()=>bt,Extensions:()=>Ac,MetricsClient:()=>Bn,NotFoundError:()=>Ft,PrismaClientInitializationError:()=>De,PrismaClientKnownRequestError:()=>_e,PrismaClientRustPanicError:()=>JA,PrismaClientUnknownRequestError:()=>oA,PrismaClientValidationError:()=>sA,Public:()=>tc,Sql:()=>je,Types:()=>rc,defineDmmfProperty:()=>ld,empty:()=>Cd,getPrismaClient:()=>Kw,join:()=>ud,makeStrictEnum:()=>Vw,objectEnumValues:()=>Dg,raw:()=>rl,sqltag:()=>nl,warnEnvConflicts:()=>Ow,warnOnce:()=>Al});module.exports=Xw(hP);var Ac={};Bi(Ac,{defineExtension:()=>cE,getExtensionContext:()=>lE});function cE(e){return typeof e=="function"?e:A=>A.$extends(e)}function lE(e){return e}var tc={};Bi(tc,{validator:()=>uE});function uE(...e){return A=>A}var rc={};Bi(rc,{Extensions:()=>CE,Public:()=>EE,Result:()=>hE,Utils:()=>IE});var CE={};var EE={};var hE={};var IE={};function dE(e,A){for(let t of A)for(let r of Object.getOwnPropertyNames(t.prototype))Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r)??Object.create(null))}var nA=(e,A)=>{let t={};for(let r of e){let n=r[A];t[n]=r}return t};function QE(e){return e.substring(0,1).toLowerCase()+e.substring(1)}var is=class{constructor({datamodel:A}){this.datamodel=A,this.datamodelEnumMap=this.getDatamodelEnumMap(),this.modelMap=this.getModelMap(),this.typeMap=this.getTypeMap(),this.typeAndModelMap=this.getTypeModelMap()}getDatamodelEnumMap(){return nA(this.datamodel.enums,"name")}getModelMap(){return{...nA(this.datamodel.models,"name")}}getTypeMap(){return{...nA(this.datamodel.types,"name")}}getTypeModelMap(){return{...this.getTypeMap(),...this.getModelMap()}}},os=class{constructor({mappings:A}){this.mappings=A,this.mappingsMap=this.getMappingsMap()}getMappingsMap(){return nA(this.mappings.modelOperations,"model")}getOtherOperationNames(){return[Object.values(this.mappings.otherOperations.write),Object.values(this.mappings.otherOperations.read)].flat()}},ss=class{constructor({schema:A}){this.outputTypeToMergedOutputType=A=>({...A,fields:A.fields});this.schema=A,this.enumMap=this.getEnumMap(),this.outputTypes=this.getOutputTypes(),this.outputTypeMap=this.getMergedOutputTypeMap(),this.resolveOutputTypes(),this.inputObjectTypes=this.schema.inputObjectTypes,this.inputTypeMap=this.getInputTypeMap(),this.resolveInputTypes(),this.resolveFieldArgumentTypes(),this.queryType=this.outputTypeMap.prisma.Query,this.mutationType=this.outputTypeMap.prisma.Mutation,this.rootFieldMap=this.getRootFieldMap()}get[Symbol.toStringTag](){return"DMMFClass"}resolveOutputTypes(){this.resolveOutputTypesInNamespace("prisma"),this.resolveOutputTypesInNamespace("model")}resolveOutputTypesInNamespace(A){for(let t of this.outputTypes[A]){for(let r of t.fields){if(typeof r.outputType.type!="string"||r.outputType.location==="scalar")continue;let n=r.outputType.namespace??"model";r.outputType.location==="outputObjectTypes"?r.outputType.type=this.outputTypeMap[n][r.outputType.type]:r.outputType.location==="enumTypes"&&(r.outputType.type=this.enumMap[n][r.outputType.type])}t.fieldMap=nA(t.fields,"name")}}resolveInputTypes(){this.resolveNamespaceInputTypes("model"),this.resolveNamespaceInputTypes("prisma")}resolveNamespaceInputTypes(A){let t=this.inputObjectTypes[A]??[];for(let r of t){for(let n of r.fields)for(let i of n.inputTypes){if(typeof i.type!="string")continue;let o=i.type;if(i.location==="scalar")continue;let s=i.namespace??"model";i.location==="inputObjectTypes"&&(i.type=this.inputTypeMap[s][o]),i.location==="enumTypes"&&(i.type=this.enumMap[s][o])}r.fieldMap=nA(r.fields,"name")}}resolveFieldArgumentTypes(){this.resolveFieldArgumentTypesInNamespace("model"),this.resolveFieldArgumentTypesInNamespace("prisma")}resolveFieldArgumentTypesInNamespace(A){let t=this.outputTypes[A]??[];for(let r of t)for(let n of r.fields)for(let i of n.args)for(let o of i.inputTypes){let s=o.type;if(typeof s!="string"||o.location==="scalar")continue;let a=o.namespace??"model";o.location==="inputObjectTypes"&&(o.type=this.inputTypeMap[a][s]),o.location==="enumTypes"&&(o.type=this.enumMap[a][s])}}getOutputTypes(){return{model:this.schema.outputObjectTypes.model.map(this.outputTypeToMergedOutputType),prisma:this.schema.outputObjectTypes.prisma.map(this.outputTypeToMergedOutputType)}}getEnumMap(){return{prisma:nA(this.schema.enumTypes.prisma,"name"),model:this.schema.enumTypes.model?nA(this.schema.enumTypes.model,"name"):{}}}hasEnumInNamespace(A,t){return this.schema.enumTypes[t]?.find(r=>r.name===A)!==void 0}getMergedOutputTypeMap(){return{model:nA(this.outputTypes.model,"name"),prisma:nA(this.outputTypes.prisma,"name")}}getInputTypeMap(){return{prisma:nA(this.schema.inputObjectTypes.prisma,"name"),model:this.schema.inputObjectTypes.model?nA(this.schema.inputObjectTypes.model,"name"):{}}}getRootFieldMap(){return{...nA(this.queryType.fields,"name"),...nA(this.mutationType.fields,"name")}}},fi=class{constructor(A){return Object.assign(this,new is(A),new os(A),new ss(A))}};dE(fi,[is,os,ss]);var qA;(A=>{let e;(p=>(p.findUnique="findUnique",p.findUniqueOrThrow="findUniqueOrThrow",p.findFirst="findFirst",p.findFirstOrThrow="findFirstOrThrow",p.findMany="findMany",p.create="create",p.createMany="createMany",p.update="update",p.updateMany="updateMany",p.upsert="upsert",p.delete="delete",p.deleteMany="deleteMany",p.groupBy="groupBy",p.count="count",p.aggregate="aggregate",p.findRaw="findRaw",p.aggregateRaw="aggregateRaw"))(e=A.ModelAction||(A.ModelAction={}))})(qA||(qA={}));var us=W(kE()),pD=100,pi=[];typeof process<"u"&&typeof process.stderr?.write!="function"&&(us.default.log=console.debug??console.log);function mD(e){let A=(0,us.default)(e),t=Object.assign((...r)=>(A.log=t.log,r.length!==0&&pi.push([e,...r]),pi.length>pD&&pi.shift(),A("",...r)),A);return t}var cc=Object.assign(mD,us.default);function NE(e=7500){let A=pi.map(t=>t.map(r=>typeof r=="string"?r:JSON.stringify(r)).join(" ")).join(` - `);return A.length2&&n.push.apply(n,t.slice(1,t.length-1)),new e(this.value,this.cases.concat([{match:function(o){var s={},a=Boolean(n.some(function(g){return ZD(g,o,function(c,l){s[c]=l})})&&i.every(function(g){return g(o)}));return{matched:a,value:a&&Object.keys(s).length?mh in s?s[mh]:s:o}},handler:r}]))},A.when=function(t,r){return new e(this.value,this.cases.concat([{match:function(n){return{matched:Boolean(t(n)),value:n}},handler:r}]))},A.otherwise=function(t){return new e(this.value,this.cases.concat([{match:function(r){return{matched:!0,value:r}},handler:t}])).run()},A.exhaustive=function(){return this.run()},A.run=function(){for(var t=this.value,r=void 0,n=0;n!process.env.PRISMA_DISABLE_WARNINGS};function wi(e,...A){AS.warn()&&console.warn(`${eS.warn} ${e}`,...A)}var tS=(0,Uh.promisify)(Th.default.exec),IA=pe("prisma:get-platform"),rS=["1.0.x","1.1.x","3.0.x"];async function qh(){let e=fs.default.platform(),A=process.arch;if(e==="freebsd"){let o=await ps("freebsd-version");if(o&&o.trim().length>0){let a=/^(\d+)\.?/.exec(o);if(a)return{platform:"freebsd",targetDistro:`freebsd${a[1]}`,arch:A}}}if(e!=="linux")return{platform:e,arch:A};let t=await iS(),r=await ES(),n=sS({arch:A,archFromUname:r,familyDistro:t.familyDistro}),{libssl:i}=await aS(n);return{platform:"linux",libssl:i,arch:A,archFromUname:r,...t}}function nS(e){let A=/^ID="?([^"\n]*)"?$/im,t=/^ID_LIKE="?([^"\n]*)"?$/im,r=A.exec(e),n=r&&r[1]&&r[1].toLowerCase()||"",i=t.exec(e),o=i&&i[1]&&i[1].toLowerCase()||"",s=ds({id:n,idLike:o}).with({id:"alpine"},({id:a})=>({targetDistro:"musl",familyDistro:a,originalDistro:a})).with({id:"raspbian"},({id:a})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:a})).with({id:"nixos"},({id:a})=>({targetDistro:"nixos",originalDistro:a,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:a})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:a})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:a})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:a})).when(({idLike:a})=>a.includes("debian")||a.includes("ubuntu"),({id:a})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:a})).when(({idLike:a})=>n==="arch"||a.includes("arch"),({id:a})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:a})).when(({idLike:a})=>a.includes("centos")||a.includes("fedora")||a.includes("rhel")||a.includes("suse"),({id:a})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:a})).otherwise(({id:a})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:a}));return IA(`Found distro info: --${JSON.stringify(s,null,2)}`),s}async function iS(){let e="/etc/os-release";try{let A=await bc.default.readFile(e,{encoding:"utf-8"});return nS(A)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function oS(e){let A=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(A){let t=`${A[1]}.x`;return vh(t)}}function xh(e){let A=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(A){let t=`${A[1]}${A[2]??".0"}.x`;return vh(t)}}function vh(e){let A=(()=>{if(Ph(e))return e;let t=e.split(".");return t[1]="0",t.join(".")})();if(rS.includes(A))return A}function sS(e){return ds(e).with({familyDistro:"musl"},()=>(IA('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:A})=>(IA('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${A}-linux-gnu`,`/lib/${A}-linux-gnu`])).with({familyDistro:"rhel"},()=>(IA('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:A,arch:t,archFromUname:r})=>(IA(`Don't know any platform-specific paths for "${A}" on ${t} (${r})`),[]))}async function aS(e){let A='grep -v "libssl.so.0"',t=await Lh(e);if(t){IA(`Found libssl.so file using platform-specific paths: ${t}`);let i=xh(t);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"libssl-specific-path"}}IA('Falling back to "ldconfig" and other generic paths');let r=await ps(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${A}`);if(r||(r=await Lh(["/lib64","/usr/lib64","/lib"])),r){IA(`Found libssl.so file using "ldconfig" or other generic paths: ${r}`);let i=xh(r);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"ldconfig"}}let n=await ps("openssl version -v");if(n){IA(`Found openssl binary with version: ${n}`);let i=oS(n);if(IA(`The parsed openssl version is: ${i}`),i)return{libssl:i,strategy:"openssl-binary"}}return IA("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Lh(e){for(let A of e){let t=await gS(A);if(t)return t}}async function gS(e){try{return(await bc.default.readdir(e)).find(t=>t.startsWith("libssl.so.")&&!t.startsWith("libssl.so.0"))}catch(A){if(A.code==="ENOENT")return;throw A}}async function cn(){let{binaryTarget:e}=await lS();return e}function cS(e){return e.binaryTarget!==void 0}var Bs={};async function lS(){if(cS(Bs))return Promise.resolve({...Bs,memoized:!0});let e=await qh(),A=uS(e);return Bs={...e,binaryTarget:A},{...Bs,memoized:!1}}function uS(e){let{platform:A,arch:t,archFromUname:r,libssl:n,targetDistro:i,familyDistro:o,originalDistro:s}=e;A==="linux"&&!["x64","arm64"].includes(t)&&wi(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${r}".`);let a="1.1.x";if(A==="linux"&&n===void 0){let c=ds({familyDistro:o}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");wi(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${a}". -+${JSON.stringify(s,null,2)}`),s}async function iS(){let e="/etc/os-release";try{let A=await bc.default.readFile(e,{encoding:"utf-8"});return nS(A)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function oS(e){let A=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(A){let t=`${A[1]}.x`;return vh(t)}}function xh(e){let A=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(A){let t=`${A[1]}${A[2]??".0"}.x`;return vh(t)}}function vh(e){let A=(()=>{if(Ph(e))return e;let t=e.split(".");return t[1]="0",t.join(".")})();if(rS.includes(A))return A}function sS(e){return ds(e).with({familyDistro:"musl"},()=>(IA('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:A})=>(IA('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${A}-linux-gnu`,`/lib/${A}-linux-gnu`])).with({familyDistro:"rhel"},()=>(IA('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:A,arch:t,archFromUname:r})=>(IA(`Don't know any platform-specific paths for "${A}" on ${t} (${r})`),[]))}async function aS(e){let A='grep -v "libssl.so.0"',t=await Lh(e);if(t){IA(`Found libssl.so file using platform-specific paths: ${t}`);let i=xh(t);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"libssl-specific-path"}}IA('Falling back to "ldconfig" and other generic paths');let r=await ps(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${A}`);if(r||(r=await Lh(["/lib64","/usr/lib64","/lib"])),r){IA(`Found libssl.so file using "ldconfig" or other generic paths: ${r}`);let i=xh(r);if(IA(`The parsed libssl version is: ${i}`),i)return{libssl:i,strategy:"ldconfig"}}let n=await ps("openssl version -v");if(n){IA(`Found openssl binary with version: ${n}`);let i=oS(n);if(IA(`The parsed openssl version is: ${i}`),i)return{libssl:i,strategy:"openssl-binary"}}return IA("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Lh(e){for(let A of e){let t=await gS(A);if(t)return t}}async function gS(e){try{return(await bc.default.readdir(e)).find(t=>t.startsWith("libssl.so")&&!t.startsWith("libssl.so.0"))}catch(A){if(A.code==="ENOENT")return;throw A}}async function cn(){let{binaryTarget:e}=await lS();return e}function cS(e){return e.binaryTarget!==void 0}var Bs={};async function lS(){if(cS(Bs))return Promise.resolve({...Bs,memoized:!0});let e=await qh(),A=uS(e);return Bs={...e,binaryTarget:A},{...Bs,memoized:!1}}function uS(e){let{platform:A,arch:t,archFromUname:r,libssl:n,targetDistro:i,familyDistro:o,originalDistro:s}=e;A==="linux"&&!["x64","arm64"].includes(t)&&wi(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${r}".`);let a="1.1.x";if(A==="linux"&&n===void 0){let c=ds({familyDistro:o}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");wi(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${a}". - ${c}`)}let g="debian";if(A==="linux"&&i===void 0&&wi(`Prisma doesn't know which engines to download for the Linux distro "${s}". Falling back to Prisma engines built "${g}". - Please report your experience by creating an issue at ${Mh("https://github.com/prisma/prisma/issues")} so we can add your distro to the list of known supported distros.`),A==="darwin"&&t==="arm64")return"darwin-arm64";if(A==="darwin")return"darwin";if(A==="win32")return"windows";if(A==="freebsd")return i;if(A==="openbsd")return"openbsd";if(A==="netbsd")return"netbsd";if(A==="linux"&&i==="nixos")return"linux-nixos";if(A==="linux"&&t==="arm64")return`${i==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${n||a}`;if(A==="linux"&&t==="arm")return`linux-arm-openssl-${n||a}`;if(A==="linux"&&i==="musl"){let c="linux-musl";return!n||Ph(n)?c:`${c}-openssl-${n}`}return A==="linux"&&i&&n?`${i}-openssl-${n}`:(A!=="linux"&&wi(`Prisma detected unknown OS "${A}" and may not work as expected. Defaulting to "linux".`),n?`${g}-openssl-${n}`:i?`${i}-openssl-${a}`:`${g}-openssl-${a}`)}async function CS(e){try{return await e()}catch{return}}function ps(e){return CS(async()=>{let A=await tS(e);return IA(`Command "${e}" successfully returned "${A.stdout}"`),A.stdout})}async function ES(){return typeof fs.default.machine=="function"?fs.default.machine():(await ps("uname -m"))?.trim()}function Ph(e){return e.startsWith("1.")}var kc=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","openbsd","netbsd","arm"];var Yc=W(qI()),Us=W(require("fs"));var dn=W(require("path"));function vI(e){let A=e.ignoreProcessEnv?{}:process.env,t=r=>r.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(i,o){let s=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(o);if(!s)return i;let a=s[1],g,c;if(a==="\\")c=s[0],g=c.replace("\\$","$");else{let l=s[2];c=s[0].substring(a.length),g=Object.hasOwnProperty.call(A,l)?A[l]:e.parsed[l]||"",g=t(g)}return i.replace(c,g)},r)??r;for(let r in e.parsed){let n=Object.hasOwnProperty.call(A,r)?A[r]:e.parsed[r];e.parsed[r]=t(n)}for(let r in e.parsed)A[r]=e.parsed[r];return e}var Jc=pe("prisma:tryLoadEnv");function Ri({rootEnvPath:e,schemaEnvPath:A},t={conflictCheck:"none"}){let r=PI(e);t.conflictCheck!=="none"&&Ob(r,A,t.conflictCheck);let n=null;return JI(r?.path,A)||(n=PI(A)),!r&&!n&&Jc("No Environment variables loaded"),n?.dotenvResult.error?console.error(At($e("Schema Env Error: "))+n.dotenvResult.error):{message:[r?.message,n?.message].filter(Boolean).join(` - `),parsed:{...r?.dotenvResult?.parsed,...n?.dotenvResult?.parsed}}}function Ob(e,A,t){let r=e?.dotenvResult.parsed,n=!JI(e?.path,A);if(r&&A&&n&&Us.default.existsSync(A)){let i=Yc.default.parse(Us.default.readFileSync(A)),o=[];for(let s in i)r[s]===i[s]&&o.push(s);if(o.length>0){let s=dn.default.relative(process.cwd(),e.path),a=dn.default.relative(process.cwd(),A);if(t==="error"){let g=`There is a conflict between env var${o.length>1?"s":""} in ${iA(s)} and ${iA(a)} -diff --git a/node_modules/@prisma/client/runtime/library.js b/node_modules/@prisma/client/runtime/library.js -index 1c01fa5..5914e5f 100644 ---- a/node_modules/@prisma/client/runtime/library.js -+++ b/node_modules/@prisma/client/runtime/library.js -@@ -6,7 +6,7 @@ - `);let n;for(;(n=Ql.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,` - `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function xn(e){console.log(`[dotenv@${Ul}][DEBUG] ${e}`)}function Gl(e){return e[0]==="~"?no.join(Kl.homedir(),e.slice(1)):e}function Wl(e){let t=no.resolve(process.cwd(),".env"),r="utf8",n=Boolean(e&&e.debug),i=Boolean(e&&e.override);e&&(e.path!=null&&(t=Gl(e.path)),e.encoding!=null&&(r=e.encoding));try{let o=ur.parse(Bl.readFileSync(t,{encoding:r}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&xn(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&xn(`Failed to load ${t} ${o.message}`),{error:o}}}var ur={config:Wl,parse:Jl};cr.exports.config=ur.config;cr.exports.parse=ur.parse;cr.exports=ur});var co=L((Pm,uo)=>{"use strict";uo.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var mo=L((Em,po)=>{"use strict";var Zl=co();po.exports=e=>{let t=Zl(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var fo=L((Tm,Xl)=>{Xl.exports={name:"@prisma/engines-version",version:"5.1.0-28.a9b7003df90aa623086e4d6f4e43c72468e6339b",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"a9b7003df90aa623086e4d6f4e43c72468e6339b"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.17.1",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var En=L(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.enginesVersion=void 0;dr.enginesVersion=fo().prisma.enginesVersion});var An=L((Nm,ho)=>{"use strict";ho.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Po=L((qm,wo)=>{"use strict";wo.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var On=L((jm,Eo)=>{"use strict";var uu=Po();Eo.exports=e=>typeof e=="string"?e.replace(uu(),""):e});var To=L((Km,mr)=>{"use strict";mr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};mr.exports.default=mr.exports});var ni=L((jx,Hs)=>{"use strict";Hs.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;sue,DMMFClass:()=>bt,Debug:()=>an,Decimal:()=>we,Extensions:()=>Yr,MetricsClient:()=>st,NotFoundError:()=>Ce,PrismaClientInitializationError:()=>_,PrismaClientKnownRequestError:()=>H,PrismaClientRustPanicError:()=>ae,PrismaClientUnknownRequestError:()=>z,PrismaClientValidationError:()=>te,Public:()=>Zr,Sql:()=>U,Types:()=>Xr,defineDmmfProperty:()=>Co,empty:()=>Ao,getPrismaClient:()=>Ka,join:()=>Mo,makeStrictEnum:()=>Va,objectEnumValues:()=>Pr,raw:()=>Ln,sqltag:()=>$n,warnEnvConflicts:()=>Ua,warnOnce:()=>In});module.exports=za(Yp);var Yr={};xt(Yr,{defineExtension:()=>di,getExtensionContext:()=>mi});function di(e){return typeof e=="function"?e:t=>t.$extends(e)}function mi(e){return e}var Zr={};xt(Zr,{validator:()=>fi});function fi(...e){return t=>t}var Xr={};xt(Xr,{Extensions:()=>gi,Public:()=>yi,Result:()=>hi,Utils:()=>xi});var gi={};var yi={};var hi={};var xi={};function bi(e,t){for(let r of t)for(let n of Object.getOwnPropertyNames(r.prototype))Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)??Object.create(null))}var Z=(e,t)=>{let r={};for(let n of e){let i=n[t];r[i]=n}return r};function wi(e){return e.substring(0,1).toLowerCase()+e.substring(1)}var Wt=class{constructor({datamodel:t}){this.datamodel=t,this.datamodelEnumMap=this.getDatamodelEnumMap(),this.modelMap=this.getModelMap(),this.typeMap=this.getTypeMap(),this.typeAndModelMap=this.getTypeModelMap()}getDatamodelEnumMap(){return Z(this.datamodel.enums,"name")}getModelMap(){return{...Z(this.datamodel.models,"name")}}getTypeMap(){return{...Z(this.datamodel.types,"name")}}getTypeModelMap(){return{...this.getTypeMap(),...this.getModelMap()}}},Ht=class{constructor({mappings:t}){this.mappings=t,this.mappingsMap=this.getMappingsMap()}getMappingsMap(){return Z(this.mappings.modelOperations,"model")}getOtherOperationNames(){return[Object.values(this.mappings.otherOperations.write),Object.values(this.mappings.otherOperations.read)].flat()}},zt=class{constructor({schema:t}){this.outputTypeToMergedOutputType=t=>({...t,fields:t.fields});this.schema=t,this.enumMap=this.getEnumMap(),this.outputTypes=this.getOutputTypes(),this.outputTypeMap=this.getMergedOutputTypeMap(),this.resolveOutputTypes(),this.inputObjectTypes=this.schema.inputObjectTypes,this.inputTypeMap=this.getInputTypeMap(),this.resolveInputTypes(),this.resolveFieldArgumentTypes(),this.queryType=this.outputTypeMap.prisma.Query,this.mutationType=this.outputTypeMap.prisma.Mutation,this.rootFieldMap=this.getRootFieldMap()}get[Symbol.toStringTag](){return"DMMFClass"}resolveOutputTypes(){this.resolveOutputTypesInNamespace("prisma"),this.resolveOutputTypesInNamespace("model")}resolveOutputTypesInNamespace(t){for(let r of this.outputTypes[t]){for(let n of r.fields){if(typeof n.outputType.type!="string"||n.outputType.location==="scalar")continue;let i=n.outputType.namespace??"model";n.outputType.location==="outputObjectTypes"?n.outputType.type=this.outputTypeMap[i][n.outputType.type]:n.outputType.location==="enumTypes"&&(n.outputType.type=this.enumMap[i][n.outputType.type])}r.fieldMap=Z(r.fields,"name")}}resolveInputTypes(){this.resolveNamespaceInputTypes("model"),this.resolveNamespaceInputTypes("prisma")}resolveNamespaceInputTypes(t){let r=this.inputObjectTypes[t]??[];for(let n of r){for(let i of n.fields)for(let o of i.inputTypes){if(typeof o.type!="string")continue;let s=o.type;if(o.location==="scalar")continue;let a=o.namespace??"model";o.location==="inputObjectTypes"&&(o.type=this.inputTypeMap[a][s]),o.location==="enumTypes"&&(o.type=this.enumMap[a][s])}n.fieldMap=Z(n.fields,"name")}}resolveFieldArgumentTypes(){this.resolveFieldArgumentTypesInNamespace("model"),this.resolveFieldArgumentTypesInNamespace("prisma")}resolveFieldArgumentTypesInNamespace(t){let r=this.outputTypes[t]??[];for(let n of r)for(let i of n.fields)for(let o of i.args)for(let s of o.inputTypes){let a=s.type;if(typeof a!="string"||s.location==="scalar")continue;let l=s.namespace??"model";s.location==="inputObjectTypes"&&(s.type=this.inputTypeMap[l][a]),s.location==="enumTypes"&&(s.type=this.enumMap[l][a])}}getOutputTypes(){return{model:this.schema.outputObjectTypes.model.map(this.outputTypeToMergedOutputType),prisma:this.schema.outputObjectTypes.prisma.map(this.outputTypeToMergedOutputType)}}getEnumMap(){return{prisma:Z(this.schema.enumTypes.prisma,"name"),model:this.schema.enumTypes.model?Z(this.schema.enumTypes.model,"name"):{}}}hasEnumInNamespace(t,r){return this.schema.enumTypes[r]?.find(n=>n.name===t)!==void 0}getMergedOutputTypeMap(){return{model:Z(this.outputTypes.model,"name"),prisma:Z(this.outputTypes.prisma,"name")}}getInputTypeMap(){return{prisma:Z(this.schema.inputObjectTypes.prisma,"name"),model:this.schema.inputObjectTypes.model?Z(this.schema.inputObjectTypes.model,"name"):{}}}getRootFieldMap(){return{...Z(this.queryType.fields,"name"),...Z(this.mutationType.fields,"name")}}},bt=class{constructor(t){return Object.assign(this,new Wt(t),new Ht(t),new zt(t))}};bi(bt,[Wt,Ht,zt]);var ue;(t=>{let e;(x=>(x.findUnique="findUnique",x.findUniqueOrThrow="findUniqueOrThrow",x.findFirst="findFirst",x.findFirstOrThrow="findFirstOrThrow",x.findMany="findMany",x.create="create",x.createMany="createMany",x.update="update",x.updateMany="updateMany",x.upsert="upsert",x.delete="delete",x.deleteMany="deleteMany",x.groupBy="groupBy",x.count="count",x.aggregate="aggregate",x.findRaw="findRaw",x.aggregateRaw="aggregateRaw"))(e=t.ModelAction||(t.ModelAction={}))})(ue||(ue={}));var tr=A(Fi()),bl=100,wt=[];typeof process<"u"&&typeof process.stderr?.write!="function"&&(tr.default.log=console.debug??console.log);function wl(e){let t=(0,tr.default)(e),r=Object.assign((...n)=>(t.log=r.log,n.length!==0&&wt.push([e,...n]),wt.length>bl&&wt.shift(),t("",...n)),t);return r}var an=Object.assign(wl,tr.default);function Oi(e=7500){let t=wt.map(r=>r.map(n=>typeof n=="string"?n:JSON.stringify(n)).join(" ")).join(` - `);return t.length2&&i.push.apply(i,r.slice(1,r.length-1)),new e(this.value,this.cases.concat([{match:function(s){var a={},l=Boolean(i.some(function(u){return El(u,s,function(c,p){a[c]=p})})&&o.every(function(u){return u(s)}));return{matched:l,value:l&&Object.keys(a).length?$i in a?a[$i]:a:s}},handler:n}]))},t.when=function(r,n){return new e(this.value,this.cases.concat([{match:function(i){return{matched:Boolean(r(i)),value:i}},handler:n}]))},t.otherwise=function(r){return new e(this.value,this.cases.concat([{match:function(n){return{matched:!0,value:n}},handler:r}])).run()},t.exhaustive=function(){return this.run()},t.run=function(){for(var r=this.value,n=void 0,i=0;i!process.env.PRISMA_DISABLE_WARNINGS};function vt(e,...t){Al.warn()&&console.warn(`${Ml.warn} ${e}`,...t)}var Sl=(0,Yi.promisify)(zi.default.exec),ie=N("prisma:get-platform"),Rl=["1.0.x","1.1.x","3.0.x"];async function Zi(){let e=ar.default.platform(),t=process.arch;if(e==="freebsd"){let s=await lr("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await Ol(),n=await ql(),i=Dl({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await _l(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Fl(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=et({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return ie(`Found distro info: --${JSON.stringify(a,null,2)}`),a}async function Ol(){let e="/etc/os-release";try{let t=await gn.default.readFile(e,{encoding:"utf-8"});return Fl(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function kl(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return Xi(r)}}function Wi(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return Xi(r)}}function Xi(e){let t=(()=>{if(to(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(Rl.includes(t))return t}function Dl(e){return et(e).with({familyDistro:"musl"},()=>(ie('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(ie('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(ie('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(ie(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function _l(e){let t='grep -v "libssl.so.0"',r=await Hi(e);if(r){ie(`Found libssl.so file using platform-specific paths: ${r}`);let o=Wi(r);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}ie('Falling back to "ldconfig" and other generic paths');let n=await lr(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Hi(["/lib64","/usr/lib64","/lib"])),n){ie(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=Wi(n);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await lr("openssl version -v");if(i){ie(`Found openssl binary with version: ${i}`);let o=kl(i);if(ie(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return ie("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Hi(e){for(let t of e){let r=await Il(t);if(r)return r}}async function Il(e){try{return(await gn.default.readdir(e)).find(r=>r.startsWith("libssl.so.")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function nt(){let{binaryTarget:e}=await eo();return e}function Nl(e){return e.binaryTarget!==void 0}async function yn(){let{memoized:e,...t}=await eo();return t}var sr={};async function eo(){if(Nl(sr))return Promise.resolve({...sr,memoized:!0});let e=await Zi(),t=Ll(e);return sr={...e,binaryTarget:t},{...sr,memoized:!1}}function Ll(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&vt(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(t==="linux"&&i===void 0){let c=et({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");vt(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". -+${JSON.stringify(a,null,2)}`),a}async function Ol(){let e="/etc/os-release";try{let t=await gn.default.readFile(e,{encoding:"utf-8"});return Fl(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function kl(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return Xi(r)}}function Wi(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return Xi(r)}}function Xi(e){let t=(()=>{if(to(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(Rl.includes(t))return t}function Dl(e){return et(e).with({familyDistro:"musl"},()=>(ie('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(ie('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(ie('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(ie(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function _l(e){let t='grep -v "libssl.so.0"',r=await Hi(e);if(r){ie(`Found libssl.so file using platform-specific paths: ${r}`);let o=Wi(r);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}ie('Falling back to "ldconfig" and other generic paths');let n=await lr(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Hi(["/lib64","/usr/lib64","/lib"])),n){ie(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=Wi(n);if(ie(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await lr("openssl version -v");if(i){ie(`Found openssl binary with version: ${i}`);let o=kl(i);if(ie(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return ie("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Hi(e){for(let t of e){let r=await Il(t);if(r)return r}}async function Il(e){try{return(await gn.default.readdir(e)).find(r=>r.startsWith("libssl.so")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function nt(){let{binaryTarget:e}=await eo();return e}function Nl(e){return e.binaryTarget!==void 0}async function yn(){let{memoized:e,...t}=await eo();return t}var sr={};async function eo(){if(Nl(sr))return Promise.resolve({...sr,memoized:!0});let e=await Zi(),t=Ll(e);return sr={...e,binaryTarget:t},{...sr,memoized:!1}}function Ll(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&vt(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures. If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(t==="linux"&&i===void 0){let c=et({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");vt(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". - ${c}`)}let u="debian";if(t==="linux"&&o===void 0&&vt(`Prisma doesn't know which engines to download for the Linux distro "${a}". Falling back to Prisma engines built "${u}". - Please report your experience by creating an issue at ${Tt("https://github.com/prisma/prisma/issues")} so we can add your distro to the list of known supported distros.`),t==="darwin"&&r==="arm64")return"darwin-arm64";if(t==="darwin")return"darwin";if(t==="win32")return"windows";if(t==="freebsd")return o;if(t==="openbsd")return"openbsd";if(t==="netbsd")return"netbsd";if(t==="linux"&&o==="nixos")return"linux-nixos";if(t==="linux"&&r==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(t==="linux"&&r==="arm")return`linux-arm-openssl-${i||l}`;if(t==="linux"&&o==="musl"){let c="linux-musl";return!i||to(i)?c:`${c}-openssl-${i}`}return t==="linux"&&o&&i?`${o}-openssl-${i}`:(t!=="linux"&&vt(`Prisma detected unknown OS "${t}" and may not work as expected. Defaulting to "linux".`),i?`${u}-openssl-${i}`:o?`${o}-openssl-${l}`:`${u}-openssl-${l}`)}async function $l(e){try{return await e()}catch{return}}function lr(e){return $l(async()=>{let t=await Sl(e);return ie(`Command "${e}" successfully returned "${t.stdout}"`),t.stdout})}async function ql(){return typeof ar.default.machine=="function"?ar.default.machine():(await lr("uname -m"))?.trim()}function to(e){return e.startsWith("1.")}var hn=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","openbsd","netbsd","arm"];var wn=A(io()),pr=A(require("fs"));var it=A(require("path"));function oo(e){let t=e.ignoreProcessEnv?{}:process.env,r=n=>n.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(o,s){let a=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(s);if(!a)return o;let l=a[1],u,c;if(l==="\\")c=a[0],u=c.replace("\\$","$");else{let p=a[2];c=a[0].substring(l.length),u=Object.hasOwnProperty.call(t,p)?t[p]:e.parsed[p]||"",u=r(u)}return o.replace(c,u)},n)??n;for(let n in e.parsed){let i=Object.hasOwnProperty.call(t,n)?t[n]:e.parsed[n];e.parsed[n]=r(i)}for(let n in e.parsed)t[n]=e.parsed[n];return e}var bn=N("prisma:tryLoadEnv");function Ct({rootEnvPath:e,schemaEnvPath:t},r={conflictCheck:"none"}){let n=so(e);r.conflictCheck!=="none"&&Hl(n,t,r.conflictCheck);let i=null;return ao(n?.path,t)||(i=so(t)),!n&&!i&&bn("No Environment variables loaded"),i?.dotenvResult.error?console.error(pe(ne("Schema Env Error: "))+i.dotenvResult.error):{message:[n?.message,i?.message].filter(Boolean).join(` - `),parsed:{...n?.dotenvResult?.parsed,...i?.dotenvResult?.parsed}}}function Hl(e,t,r){let n=e?.dotenvResult.parsed,i=!ao(e?.path,t);if(n&&t&&i&&pr.default.existsSync(t)){let o=wn.default.parse(pr.default.readFileSync(t)),s=[];for(let a in o)n[a]===o[a]&&s.push(a);if(s.length>0){let a=it.default.relative(process.cwd(),e.path),l=it.default.relative(process.cwd(),t);if(r==="error"){let u=`There is a conflict between env var${s.length>1?"s":""} in ${X(a)} and ${X(l)} diff --git a/patches/@prisma+engines+5.1.0.patch b/patches/@prisma+engines+5.1.0.patch deleted file mode 100644 index e681122..0000000 --- a/patches/@prisma+engines+5.1.0.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/node_modules/@prisma/engines/dist/index.js b/node_modules/@prisma/engines/dist/index.js -index 9e41501..42dc4b0 100644 ---- a/node_modules/@prisma/engines/dist/index.js -+++ b/node_modules/@prisma/engines/dist/index.js -@@ -21451,7 +21451,7 @@ async function findLibSSLInLocations(directories) { - async function findLibSSL(directory) { - try { - const dirContents = await import_promises.default.readdir(directory); -- return dirContents.find((value) => value.startsWith("libssl.so.") && !value.startsWith("libssl.so.0")); -+ return dirContents.find((value) => value.startsWith("libssl.so") && !value.startsWith("libssl.so.0")); - } catch (e2) { - if (e2.code === "ENOENT") { - return void 0; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a304301..a231a08 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -3,7 +3,7 @@ generator client { provider = "prisma-client-js" - binaryTargets = ["native", "debian-openssl-3.0.x"] + binaryTargets = ["debian-openssl-3.0.x", "native"] previewFeatures = ["postgresqlExtensions"] } From 2220b858a5c8934650f96f439ddd051e5d43e31b Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 14:48:06 -0700 Subject: [PATCH 07/12] no native, only openssl 3 --- prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a231a08..1e9227b 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -3,7 +3,7 @@ generator client { provider = "prisma-client-js" - binaryTargets = ["debian-openssl-3.0.x", "native"] + binaryTargets = ["debian-openssl-3.0.x"] previewFeatures = ["postgresqlExtensions"] } From 4d48e97b122a67de80cfdcc3a1bcca620e8f9103 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 16:17:32 -0700 Subject: [PATCH 08/12] try an ENGINE environment variable --- .github/workflows/deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c005fdd..c806287 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,11 +28,19 @@ jobs: - name: Start postgres run: nix develop --command pg_ctl start + - name: uname + run: echo "$(uname -m)" + - name: echo some stuff in non-nix context run: ls -al "/usr/lib/$(uname -m)-linux-gnu" - name: echo some stuff in nix context run: nix develop --command ls -al "/usr/lib/$(uname -m)-linux-gnu" + - name: echo some stuff in node_modules + run: | + ls -al "node_modules/@prisma/engines" + ls -al "node_modules/prisma/" + - name: 🛠 Run migrations - run: DEBUG=prisma* nix develop --command npx prisma migrate reset --force + run: PRISMA_QUERY_ENGINE_LIBRARY="node_modules/@prisma/engines/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force From 1d72fbb61e5436a481629639f14c25b3e6201e98 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 16:58:27 -0700 Subject: [PATCH 09/12] try node_modules/prisma intead of node_modules/@prisma --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c806287..5e08b68 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,4 +43,4 @@ jobs: ls -al "node_modules/prisma/" - name: 🛠 Run migrations - run: PRISMA_QUERY_ENGINE_LIBRARY="node_modules/@prisma/engines/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force + run: PRISMA_QUERY_ENGINE_LIBRARY="node_modules/prisma/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force From 20e7ad3a82167349f8f973fcda033d652e6cde20 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 17:06:50 -0700 Subject: [PATCH 10/12] use node_modules/.prisma instead of /prisma, as suggested --- .github/workflows/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5e08b68..d43d002 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,10 +37,16 @@ jobs: - name: echo some stuff in nix context run: nix develop --command ls -al "/usr/lib/$(uname -m)-linux-gnu" + - name: prisma generate + run: nix develop --command npx prisma generate + - name: echo some stuff in node_modules run: | ls -al "node_modules/@prisma/engines" ls -al "node_modules/prisma/" + ls -al "node_modules/.prisma/client" - name: 🛠 Run migrations - run: PRISMA_QUERY_ENGINE_LIBRARY="node_modules/prisma/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force + run: | + ls -al "$(pwd)/node_modules/.prisma/client" + PRISMA_QUERY_ENGINE_LIBRARY="$(pwd)/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force From 7a2cbde4016ef0372d306e291225455fb4b24b64 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 17:28:54 -0700 Subject: [PATCH 11/12] skip generate in case it's blowing away the prior generate result --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d43d002..c871f3b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,4 +49,4 @@ jobs: - name: 🛠 Run migrations run: | ls -al "$(pwd)/node_modules/.prisma/client" - PRISMA_QUERY_ENGINE_LIBRARY="$(pwd)/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force + PRISMA_QUERY_ENGINE_LIBRARY="$(pwd)/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force --skip-generate From cc3f1d5fd34d9c7f6427765322e3d65e88e9fea9 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Fri, 13 Oct 2023 17:49:20 -0700 Subject: [PATCH 12/12] re-add native target since i want to work locally --- prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 1e9227b..a304301 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -3,7 +3,7 @@ generator client { provider = "prisma-client-js" - binaryTargets = ["debian-openssl-3.0.x"] + binaryTargets = ["native", "debian-openssl-3.0.x"] previewFeatures = ["postgresqlExtensions"] }