From a6f4891c418671a052865e7d77ed3ab79fee9593 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 6 Dec 2025 10:36:05 -0500 Subject: [PATCH] fix --- .gitignore | 7 +- .vscode/settings.json | 5 - node_modules/.package-lock.json | 2544 -- node_modules/typescript-eslint/LICENSE | 21 - node_modules/typescript-eslint/README.md | 12 - .../typescript-eslint/dist/index.d.ts | 154 - node_modules/typescript-eslint/dist/index.js | 173 - node_modules/typescript-eslint/package.json | 96 - node_modules/undici-types/LICENSE | 21 - node_modules/undici-types/README.md | 6 - node_modules/undici-types/agent.d.ts | 32 - node_modules/undici-types/api.d.ts | 43 - node_modules/undici-types/balanced-pool.d.ts | 29 - .../undici-types/cache-interceptor.d.ts | 172 - node_modules/undici-types/cache.d.ts | 36 - node_modules/undici-types/client-stats.d.ts | 15 - node_modules/undici-types/client.d.ts | 108 - node_modules/undici-types/connector.d.ts | 34 - node_modules/undici-types/content-type.d.ts | 21 - node_modules/undici-types/cookies.d.ts | 30 - .../undici-types/diagnostics-channel.d.ts | 74 - node_modules/undici-types/dispatcher.d.ts | 276 - .../undici-types/env-http-proxy-agent.d.ts | 22 - node_modules/undici-types/errors.d.ts | 161 - node_modules/undici-types/eventsource.d.ts | 66 - node_modules/undici-types/fetch.d.ts | 211 - node_modules/undici-types/formdata.d.ts | 108 - .../undici-types/global-dispatcher.d.ts | 9 - node_modules/undici-types/global-origin.d.ts | 7 - node_modules/undici-types/h2c-client.d.ts | 73 - node_modules/undici-types/handlers.d.ts | 15 - node_modules/undici-types/header.d.ts | 160 - node_modules/undici-types/index.d.ts | 80 - node_modules/undici-types/interceptors.d.ts | 39 - node_modules/undici-types/mock-agent.d.ts | 68 - .../undici-types/mock-call-history.d.ts | 111 - node_modules/undici-types/mock-client.d.ts | 27 - node_modules/undici-types/mock-errors.d.ts | 12 - .../undici-types/mock-interceptor.d.ts | 94 - node_modules/undici-types/mock-pool.d.ts | 27 - node_modules/undici-types/package.json | 55 - node_modules/undici-types/patch.d.ts | 29 - node_modules/undici-types/pool-stats.d.ts | 19 - node_modules/undici-types/pool.d.ts | 41 - node_modules/undici-types/proxy-agent.d.ts | 29 - node_modules/undici-types/readable.d.ts | 68 - node_modules/undici-types/retry-agent.d.ts | 8 - node_modules/undici-types/retry-handler.d.ts | 125 - node_modules/undici-types/snapshot-agent.d.ts | 109 - node_modules/undici-types/util.d.ts | 18 - node_modules/undici-types/utility.d.ts | 7 - node_modules/undici-types/webidl.d.ts | 341 - node_modules/undici-types/websocket.d.ts | 186 - node_modules/uri-js/LICENSE | 11 - node_modules/uri-js/README.md | 203 - node_modules/uri-js/dist/es5/uri.all.d.ts | 59 - node_modules/uri-js/dist/es5/uri.all.js | 1443 - node_modules/uri-js/dist/es5/uri.all.js.map | 1 - node_modules/uri-js/dist/es5/uri.all.min.d.ts | 59 - node_modules/uri-js/dist/es5/uri.all.min.js | 3 - .../uri-js/dist/es5/uri.all.min.js.map | 1 - node_modules/uri-js/dist/esnext/index.d.ts | 1 - node_modules/uri-js/dist/esnext/index.js | 17 - node_modules/uri-js/dist/esnext/index.js.map | 1 - .../uri-js/dist/esnext/regexps-iri.d.ts | 3 - .../uri-js/dist/esnext/regexps-iri.js | 3 - .../uri-js/dist/esnext/regexps-iri.js.map | 1 - .../uri-js/dist/esnext/regexps-uri.d.ts | 4 - .../uri-js/dist/esnext/regexps-uri.js | 42 - .../uri-js/dist/esnext/regexps-uri.js.map | 1 - .../uri-js/dist/esnext/schemes/http.d.ts | 3 - .../uri-js/dist/esnext/schemes/http.js | 28 - .../uri-js/dist/esnext/schemes/http.js.map | 1 - .../uri-js/dist/esnext/schemes/https.d.ts | 3 - .../uri-js/dist/esnext/schemes/https.js | 9 - .../uri-js/dist/esnext/schemes/https.js.map | 1 - .../uri-js/dist/esnext/schemes/mailto.d.ts | 12 - .../uri-js/dist/esnext/schemes/mailto.js | 148 - .../uri-js/dist/esnext/schemes/mailto.js.map | 1 - .../uri-js/dist/esnext/schemes/urn-uuid.d.ts | 7 - .../uri-js/dist/esnext/schemes/urn-uuid.js | 23 - .../dist/esnext/schemes/urn-uuid.js.map | 1 - .../uri-js/dist/esnext/schemes/urn.d.ts | 10 - .../uri-js/dist/esnext/schemes/urn.js | 49 - .../uri-js/dist/esnext/schemes/urn.js.map | 1 - .../uri-js/dist/esnext/schemes/ws.d.ts | 7 - node_modules/uri-js/dist/esnext/schemes/ws.js | 41 - .../uri-js/dist/esnext/schemes/ws.js.map | 1 - .../uri-js/dist/esnext/schemes/wss.d.ts | 3 - .../uri-js/dist/esnext/schemes/wss.js | 9 - .../uri-js/dist/esnext/schemes/wss.js.map | 1 - node_modules/uri-js/dist/esnext/uri.d.ts | 59 - node_modules/uri-js/dist/esnext/uri.js | 480 - node_modules/uri-js/dist/esnext/uri.js.map | 1 - node_modules/uri-js/dist/esnext/util.d.ts | 6 - node_modules/uri-js/dist/esnext/util.js | 36 - node_modules/uri-js/dist/esnext/util.js.map | 1 - node_modules/uri-js/package.json | 77 - node_modules/uri-js/yarn.lock | 2558 -- node_modules/util-deprecate/History.md | 16 - node_modules/util-deprecate/LICENSE | 24 - node_modules/util-deprecate/README.md | 53 - node_modules/util-deprecate/browser.js | 67 - node_modules/util-deprecate/node.js | 6 - node_modules/util-deprecate/package.json | 27 - node_modules/vite/LICENSE.md | 2144 - node_modules/vite/README.md | 20 - node_modules/vite/bin/openChrome.js | 68 - node_modules/vite/bin/vite.js | 79 - node_modules/vite/client.d.ts | 279 - node_modules/vite/dist/client/client.mjs | 1106 - node_modules/vite/dist/client/env.mjs | 19 - node_modules/vite/dist/node/chunks/build.js | 4 - node_modules/vite/dist/node/chunks/build2.js | 5538 --- node_modules/vite/dist/node/chunks/chunk.js | 31 - node_modules/vite/dist/node/chunks/config.js | 36619 ---------------- node_modules/vite/dist/node/chunks/config2.js | 4 - node_modules/vite/dist/node/chunks/dist.js | 6758 --- node_modules/vite/dist/node/chunks/lib.js | 377 - node_modules/vite/dist/node/chunks/logger.js | 329 - .../node/chunks/moduleRunnerTransport.d.ts | 96 - .../vite/dist/node/chunks/optimizer.js | 4 - .../vite/dist/node/chunks/postcss-import.js | 479 - node_modules/vite/dist/node/chunks/preview.js | 4 - node_modules/vite/dist/node/chunks/server.js | 4 - node_modules/vite/dist/node/cli.js | 698 - node_modules/vite/dist/node/index.d.ts | 3668 -- node_modules/vite/dist/node/index.js | 30 - .../vite/dist/node/module-runner.d.ts | 311 - node_modules/vite/dist/node/module-runner.js | 1160 - node_modules/vite/misc/false.js | 1 - node_modules/vite/misc/true.js | 1 - node_modules/vite/package.json | 199 - node_modules/vite/types/customEvent.d.ts | 50 - node_modules/vite/types/hmrPayload.d.ts | 74 - node_modules/vite/types/hot.d.ts | 39 - node_modules/vite/types/import-meta.d.ts | 5 - node_modules/vite/types/importGlob.d.ts | 89 - node_modules/vite/types/importMeta.d.ts | 30 - .../internal/cssPreprocessorOptions.d.ts | 44 - .../types/internal/lightningcssOptions.d.ts | 18 - .../vite/types/internal/terserOptions.d.ts | 11 - node_modules/vite/types/metadata.d.ts | 33 - node_modules/vite/types/package.json | 4 - node_modules/vitefu/LICENSE | 21 - node_modules/vitefu/README.md | 11 - node_modules/vitefu/package.json | 51 - node_modules/vitefu/src/index.cjs | 18 - node_modules/vitefu/src/index.d.cts | 59 - node_modules/vitefu/src/index.d.ts | 187 - node_modules/vitefu/src/index.js | 315 - node_modules/vitefu/src/sync.cjs | 66 - node_modules/which/CHANGELOG.md | 166 - node_modules/which/LICENSE | 15 - node_modules/which/README.md | 54 - node_modules/which/bin/node-which | 52 - node_modules/which/package.json | 43 - node_modules/which/which.js | 125 - node_modules/word-wrap/LICENSE | 21 - node_modules/word-wrap/README.md | 201 - node_modules/word-wrap/index.d.ts | 50 - node_modules/word-wrap/index.js | 61 - node_modules/word-wrap/package.json | 77 - node_modules/yocto-queue/index.d.ts | 56 - node_modules/yocto-queue/index.js | 68 - node_modules/yocto-queue/license | 9 - node_modules/yocto-queue/package.json | 43 - node_modules/yocto-queue/readme.md | 64 - node_modules/zimmerframe/LICENSE | 21 - node_modules/zimmerframe/README.md | 180 - node_modules/zimmerframe/package.json | 35 - node_modules/zimmerframe/src/index.d.ts | 2 - node_modules/zimmerframe/src/types.d.ts | 21 - node_modules/zimmerframe/src/walk.js | 168 - node_modules/zimmerframe/types/index.d.ts | 30 - node_modules/zimmerframe/types/index.d.ts.map | 23 - 176 files changed, 3 insertions(+), 74594 deletions(-) delete mode 100644 .vscode/settings.json delete mode 100644 node_modules/.package-lock.json delete mode 100644 node_modules/typescript-eslint/LICENSE delete mode 100644 node_modules/typescript-eslint/README.md delete mode 100644 node_modules/typescript-eslint/dist/index.d.ts delete mode 100644 node_modules/typescript-eslint/dist/index.js delete mode 100644 node_modules/typescript-eslint/package.json delete mode 100644 node_modules/undici-types/LICENSE delete mode 100644 node_modules/undici-types/README.md delete mode 100644 node_modules/undici-types/agent.d.ts delete mode 100644 node_modules/undici-types/api.d.ts delete mode 100644 node_modules/undici-types/balanced-pool.d.ts delete mode 100644 node_modules/undici-types/cache-interceptor.d.ts delete mode 100644 node_modules/undici-types/cache.d.ts delete mode 100644 node_modules/undici-types/client-stats.d.ts delete mode 100644 node_modules/undici-types/client.d.ts delete mode 100644 node_modules/undici-types/connector.d.ts delete mode 100644 node_modules/undici-types/content-type.d.ts delete mode 100644 node_modules/undici-types/cookies.d.ts delete mode 100644 node_modules/undici-types/diagnostics-channel.d.ts delete mode 100644 node_modules/undici-types/dispatcher.d.ts delete mode 100644 node_modules/undici-types/env-http-proxy-agent.d.ts delete mode 100644 node_modules/undici-types/errors.d.ts delete mode 100644 node_modules/undici-types/eventsource.d.ts delete mode 100644 node_modules/undici-types/fetch.d.ts delete mode 100644 node_modules/undici-types/formdata.d.ts delete mode 100644 node_modules/undici-types/global-dispatcher.d.ts delete mode 100644 node_modules/undici-types/global-origin.d.ts delete mode 100644 node_modules/undici-types/h2c-client.d.ts delete mode 100644 node_modules/undici-types/handlers.d.ts delete mode 100644 node_modules/undici-types/header.d.ts delete mode 100644 node_modules/undici-types/index.d.ts delete mode 100644 node_modules/undici-types/interceptors.d.ts delete mode 100644 node_modules/undici-types/mock-agent.d.ts delete mode 100644 node_modules/undici-types/mock-call-history.d.ts delete mode 100644 node_modules/undici-types/mock-client.d.ts delete mode 100644 node_modules/undici-types/mock-errors.d.ts delete mode 100644 node_modules/undici-types/mock-interceptor.d.ts delete mode 100644 node_modules/undici-types/mock-pool.d.ts delete mode 100644 node_modules/undici-types/package.json delete mode 100644 node_modules/undici-types/patch.d.ts delete mode 100644 node_modules/undici-types/pool-stats.d.ts delete mode 100644 node_modules/undici-types/pool.d.ts delete mode 100644 node_modules/undici-types/proxy-agent.d.ts delete mode 100644 node_modules/undici-types/readable.d.ts delete mode 100644 node_modules/undici-types/retry-agent.d.ts delete mode 100644 node_modules/undici-types/retry-handler.d.ts delete mode 100644 node_modules/undici-types/snapshot-agent.d.ts delete mode 100644 node_modules/undici-types/util.d.ts delete mode 100644 node_modules/undici-types/utility.d.ts delete mode 100644 node_modules/undici-types/webidl.d.ts delete mode 100644 node_modules/undici-types/websocket.d.ts delete mode 100755 node_modules/uri-js/LICENSE delete mode 100755 node_modules/uri-js/README.md delete mode 100755 node_modules/uri-js/dist/es5/uri.all.d.ts delete mode 100755 node_modules/uri-js/dist/es5/uri.all.js delete mode 100755 node_modules/uri-js/dist/es5/uri.all.js.map delete mode 100755 node_modules/uri-js/dist/es5/uri.all.min.d.ts delete mode 100755 node_modules/uri-js/dist/es5/uri.all.min.js delete mode 100755 node_modules/uri-js/dist/es5/uri.all.min.js.map delete mode 100755 node_modules/uri-js/dist/esnext/index.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/index.js delete mode 100755 node_modules/uri-js/dist/esnext/index.js.map delete mode 100755 node_modules/uri-js/dist/esnext/regexps-iri.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/regexps-iri.js delete mode 100755 node_modules/uri-js/dist/esnext/regexps-iri.js.map delete mode 100755 node_modules/uri-js/dist/esnext/regexps-uri.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/regexps-uri.js delete mode 100755 node_modules/uri-js/dist/esnext/regexps-uri.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/http.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/http.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/http.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/https.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/https.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/https.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/mailto.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/mailto.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/mailto.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/urn-uuid.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/urn.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/urn.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/urn.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/ws.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/ws.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/ws.js.map delete mode 100755 node_modules/uri-js/dist/esnext/schemes/wss.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/schemes/wss.js delete mode 100755 node_modules/uri-js/dist/esnext/schemes/wss.js.map delete mode 100755 node_modules/uri-js/dist/esnext/uri.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/uri.js delete mode 100755 node_modules/uri-js/dist/esnext/uri.js.map delete mode 100755 node_modules/uri-js/dist/esnext/util.d.ts delete mode 100755 node_modules/uri-js/dist/esnext/util.js delete mode 100755 node_modules/uri-js/dist/esnext/util.js.map delete mode 100755 node_modules/uri-js/package.json delete mode 100755 node_modules/uri-js/yarn.lock delete mode 100644 node_modules/util-deprecate/History.md delete mode 100644 node_modules/util-deprecate/LICENSE delete mode 100644 node_modules/util-deprecate/README.md delete mode 100644 node_modules/util-deprecate/browser.js delete mode 100644 node_modules/util-deprecate/node.js delete mode 100644 node_modules/util-deprecate/package.json delete mode 100644 node_modules/vite/LICENSE.md delete mode 100644 node_modules/vite/README.md delete mode 100644 node_modules/vite/bin/openChrome.js delete mode 100755 node_modules/vite/bin/vite.js delete mode 100644 node_modules/vite/client.d.ts delete mode 100644 node_modules/vite/dist/client/client.mjs delete mode 100644 node_modules/vite/dist/client/env.mjs delete mode 100644 node_modules/vite/dist/node/chunks/build.js delete mode 100644 node_modules/vite/dist/node/chunks/build2.js delete mode 100644 node_modules/vite/dist/node/chunks/chunk.js delete mode 100644 node_modules/vite/dist/node/chunks/config.js delete mode 100644 node_modules/vite/dist/node/chunks/config2.js delete mode 100644 node_modules/vite/dist/node/chunks/dist.js delete mode 100644 node_modules/vite/dist/node/chunks/lib.js delete mode 100644 node_modules/vite/dist/node/chunks/logger.js delete mode 100644 node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts delete mode 100644 node_modules/vite/dist/node/chunks/optimizer.js delete mode 100644 node_modules/vite/dist/node/chunks/postcss-import.js delete mode 100644 node_modules/vite/dist/node/chunks/preview.js delete mode 100644 node_modules/vite/dist/node/chunks/server.js delete mode 100644 node_modules/vite/dist/node/cli.js delete mode 100644 node_modules/vite/dist/node/index.d.ts delete mode 100644 node_modules/vite/dist/node/index.js delete mode 100644 node_modules/vite/dist/node/module-runner.d.ts delete mode 100644 node_modules/vite/dist/node/module-runner.js delete mode 100644 node_modules/vite/misc/false.js delete mode 100644 node_modules/vite/misc/true.js delete mode 100644 node_modules/vite/package.json delete mode 100644 node_modules/vite/types/customEvent.d.ts delete mode 100644 node_modules/vite/types/hmrPayload.d.ts delete mode 100644 node_modules/vite/types/hot.d.ts delete mode 100644 node_modules/vite/types/import-meta.d.ts delete mode 100644 node_modules/vite/types/importGlob.d.ts delete mode 100644 node_modules/vite/types/importMeta.d.ts delete mode 100644 node_modules/vite/types/internal/cssPreprocessorOptions.d.ts delete mode 100644 node_modules/vite/types/internal/lightningcssOptions.d.ts delete mode 100644 node_modules/vite/types/internal/terserOptions.d.ts delete mode 100644 node_modules/vite/types/metadata.d.ts delete mode 100644 node_modules/vite/types/package.json delete mode 100644 node_modules/vitefu/LICENSE delete mode 100644 node_modules/vitefu/README.md delete mode 100644 node_modules/vitefu/package.json delete mode 100644 node_modules/vitefu/src/index.cjs delete mode 100644 node_modules/vitefu/src/index.d.cts delete mode 100644 node_modules/vitefu/src/index.d.ts delete mode 100644 node_modules/vitefu/src/index.js delete mode 100644 node_modules/vitefu/src/sync.cjs delete mode 100644 node_modules/which/CHANGELOG.md delete mode 100644 node_modules/which/LICENSE delete mode 100644 node_modules/which/README.md delete mode 100755 node_modules/which/bin/node-which delete mode 100644 node_modules/which/package.json delete mode 100644 node_modules/which/which.js delete mode 100644 node_modules/word-wrap/LICENSE delete mode 100644 node_modules/word-wrap/README.md delete mode 100644 node_modules/word-wrap/index.d.ts delete mode 100644 node_modules/word-wrap/index.js delete mode 100644 node_modules/word-wrap/package.json delete mode 100644 node_modules/yocto-queue/index.d.ts delete mode 100644 node_modules/yocto-queue/index.js delete mode 100644 node_modules/yocto-queue/license delete mode 100644 node_modules/yocto-queue/package.json delete mode 100644 node_modules/yocto-queue/readme.md delete mode 100644 node_modules/zimmerframe/LICENSE delete mode 100644 node_modules/zimmerframe/README.md delete mode 100644 node_modules/zimmerframe/package.json delete mode 100644 node_modules/zimmerframe/src/index.d.ts delete mode 100644 node_modules/zimmerframe/src/types.d.ts delete mode 100644 node_modules/zimmerframe/src/walk.js delete mode 100644 node_modules/zimmerframe/types/index.d.ts delete mode 100644 node_modules/zimmerframe/types/index.d.ts.map diff --git a/.gitignore b/.gitignore index e1959df..ad8669b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,3 @@ -node_modules -build -.vscode - # Output .output .vercel @@ -22,3 +18,6 @@ Thumbs.db # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* +node_modules +.vscode +.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index bc31e15..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files.associations": { - "*.css": "tailwindcss" - } -} diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json deleted file mode 100644 index a5be573..0000000 --- a/node_modules/.package-lock.json +++ /dev/null @@ -1,2544 +0,0 @@ -{ - "name": "eits-web", - "version": "0.0.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@esbuild/linux-x64": { - "version": "0.25.12", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.0", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/compat": { - "version": "1.4.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "peerDependencies": { - "eslint": "^8.40 || 9" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.1", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.1", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.7", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@polka/url": { - "version": "1.0.0-next.29", - "dev": true, - "license": "MIT" - }, - "node_modules/@rollup/plugin-commonjs": { - "version": "28.0.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "commondir": "^1.0.1", - "estree-walker": "^2.0.2", - "fdir": "^6.2.0", - "is-reference": "1.2.1", - "magic-string": "^0.30.3", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0 || 14 >= 14.17" - }, - "peerDependencies": { - "rollup": "^2.68.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/is-reference": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@rollup/plugin-json": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^5.1.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "16.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "@types/resolve": "1.20.2", - "deepmerge": "^4.2.2", - "is-module": "^1.0.0", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.78.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/pluginutils": { - "version": "5.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.53.3", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@standard-schema/spec": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@sveltejs/acorn-typescript": { - "version": "1.0.7", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^8.9.0" - } - }, - "node_modules/@sveltejs/adapter-node": { - "version": "5.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/plugin-commonjs": "^28.0.1", - "@rollup/plugin-json": "^6.1.0", - "@rollup/plugin-node-resolve": "^16.0.0", - "rollup": "^4.9.5" - }, - "peerDependencies": { - "@sveltejs/kit": "^2.4.0" - } - }, - "node_modules/@sveltejs/kit": { - "version": "2.49.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@standard-schema/spec": "^1.0.0", - "@sveltejs/acorn-typescript": "^1.0.5", - "@types/cookie": "^0.6.0", - "acorn": "^8.14.1", - "cookie": "^0.6.0", - "devalue": "^5.3.2", - "esm-env": "^1.2.2", - "kleur": "^4.1.5", - "magic-string": "^0.30.5", - "mrmime": "^2.0.0", - "sade": "^1.8.1", - "set-cookie-parser": "^2.6.0", - "sirv": "^3.0.0" - }, - "bin": { - "svelte-kit": "svelte-kit.js" - }, - "engines": { - "node": ">=18.13" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.0.0", - "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0", - "svelte": "^4.0.0 || ^5.0.0-next.0", - "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": true - } - } - }, - "node_modules/@sveltejs/vite-plugin-svelte": { - "version": "6.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@sveltejs/vite-plugin-svelte-inspector": "^5.0.0", - "debug": "^4.4.1", - "deepmerge": "^4.3.1", - "magic-string": "^0.30.17", - "vitefu": "^1.1.1" - }, - "engines": { - "node": "^20.19 || ^22.12 || >=24" - }, - "peerDependencies": { - "svelte": "^5.0.0", - "vite": "^6.3.0 || ^7.0.0" - } - }, - "node_modules/@sveltejs/vite-plugin-svelte-inspector": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.4.1" - }, - "engines": { - "node": "^20.19 || ^22.12 || >=24" - }, - "peerDependencies": { - "@sveltejs/vite-plugin-svelte": "^6.0.0-next.0", - "svelte": "^5.0.0", - "vite": "^6.3.0 || ^7.0.0" - } - }, - "node_modules/@tailwindcss/node": { - "version": "4.1.17", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/remapping": "^2.3.4", - "enhanced-resolve": "^5.18.3", - "jiti": "^2.6.1", - "lightningcss": "1.30.2", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.1.17" - } - }, - "node_modules/@tailwindcss/oxide": { - "version": "4.1.17", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.1.17", - "@tailwindcss/oxide-darwin-arm64": "4.1.17", - "@tailwindcss/oxide-darwin-x64": "4.1.17", - "@tailwindcss/oxide-freebsd-x64": "4.1.17", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.17", - "@tailwindcss/oxide-linux-arm64-gnu": "4.1.17", - "@tailwindcss/oxide-linux-arm64-musl": "4.1.17", - "@tailwindcss/oxide-linux-x64-gnu": "4.1.17", - "@tailwindcss/oxide-linux-x64-musl": "4.1.17", - "@tailwindcss/oxide-wasm32-wasi": "4.1.17", - "@tailwindcss/oxide-win32-arm64-msvc": "4.1.17", - "@tailwindcss/oxide-win32-x64-msvc": "4.1.17" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.1.17", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@tailwindcss/vite": { - "version": "4.1.17", - "dev": true, - "license": "MIT", - "dependencies": { - "@tailwindcss/node": "4.1.17", - "@tailwindcss/oxide": "4.1.17", - "tailwindcss": "4.1.17" - }, - "peerDependencies": { - "vite": "^5.2.0 || ^6 || ^7" - } - }, - "node_modules/@types/cookie": { - "version": "0.6.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "24.10.1", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~7.16.0" - } - }, - "node_modules/@types/resolve": { - "version": "1.20.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.48.0", - "@typescript-eslint/type-utils": "8.48.0", - "@typescript-eslint/utils": "8.48.0", - "@typescript-eslint/visitor-keys": "8.48.0", - "graphemer": "^1.4.0", - "ignore": "^7.0.0", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.48.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.48.0", - "@typescript-eslint/types": "8.48.0", - "@typescript-eslint/typescript-estree": "8.48.0", - "@typescript-eslint/visitor-keys": "8.48.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.48.0", - "@typescript-eslint/types": "^8.48.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.48.0", - "@typescript-eslint/visitor-keys": "8.48.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.48.0", - "@typescript-eslint/typescript-estree": "8.48.0", - "@typescript-eslint/utils": "8.48.0", - "debug": "^4.3.4", - "ts-api-utils": "^2.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.48.0", - "@typescript-eslint/tsconfig-utils": "8.48.0", - "@typescript-eslint/types": "8.48.0", - "@typescript-eslint/visitor-keys": "8.48.0", - "debug": "^4.3.4", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/node_modules/brace-expansion": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.48.0", - "@typescript-eslint/types": "8.48.0", - "@typescript-eslint/typescript-estree": "8.48.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.48.0", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/aria-query": { - "version": "5.3.2", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/axobject-query": { - "version": "4.1.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "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/chokidar": { - "version": "4.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/clsx": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/commondir": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/cookie": { - "version": "0.6.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/devalue": { - "version": "5.5.0", - "dev": true, - "license": "MIT" - }, - "node_modules/enhanced-resolve": { - "version": "5.18.3", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/esbuild": { - "version": "0.25.12", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.12", - "@esbuild/android-arm": "0.25.12", - "@esbuild/android-arm64": "0.25.12", - "@esbuild/android-x64": "0.25.12", - "@esbuild/darwin-arm64": "0.25.12", - "@esbuild/darwin-x64": "0.25.12", - "@esbuild/freebsd-arm64": "0.25.12", - "@esbuild/freebsd-x64": "0.25.12", - "@esbuild/linux-arm": "0.25.12", - "@esbuild/linux-arm64": "0.25.12", - "@esbuild/linux-ia32": "0.25.12", - "@esbuild/linux-loong64": "0.25.12", - "@esbuild/linux-mips64el": "0.25.12", - "@esbuild/linux-ppc64": "0.25.12", - "@esbuild/linux-riscv64": "0.25.12", - "@esbuild/linux-s390x": "0.25.12", - "@esbuild/linux-x64": "0.25.12", - "@esbuild/netbsd-arm64": "0.25.12", - "@esbuild/netbsd-x64": "0.25.12", - "@esbuild/openbsd-arm64": "0.25.12", - "@esbuild/openbsd-x64": "0.25.12", - "@esbuild/openharmony-arm64": "0.25.12", - "@esbuild/sunos-x64": "0.25.12", - "@esbuild/win32-arm64": "0.25.12", - "@esbuild/win32-ia32": "0.25.12", - "@esbuild/win32-x64": "0.25.12" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.1", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.39.1", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-config-prettier": { - "version": "10.1.8", - "dev": true, - "license": "MIT", - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "funding": { - "url": "https://opencollective.com/eslint-config-prettier" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-svelte": { - "version": "3.13.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.6.1", - "@jridgewell/sourcemap-codec": "^1.5.0", - "esutils": "^2.0.3", - "globals": "^16.0.0", - "known-css-properties": "^0.37.0", - "postcss": "^8.4.49", - "postcss-load-config": "^3.1.4", - "postcss-safe-parser": "^7.0.0", - "semver": "^7.6.3", - "svelte-eslint-parser": "^1.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, - "peerDependencies": { - "eslint": "^8.57.1 || ^9.0.0", - "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "svelte": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esm-env": { - "version": "1.2.2", - "dev": true, - "license": "MIT" - }, - "node_modules/espree": { - "version": "10.4.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrap": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/esutils": { - "version": "2.0.3", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "dev": true, - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "dev": true, - "license": "ISC" - }, - "node_modules/function-bind": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "16.5.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "dev": true, - "license": "ISC" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-core-module": { - "version": "2.16.1", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-module": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/is-reference": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.6" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/jiti": { - "version": "2.6.1", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/js-yaml": { - "version": "4.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/kleur": { - "version": "4.1.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/known-css-properties": { - "version": "0.37.0", - "dev": true, - "license": "MIT" - }, - "node_modules/levn": { - "version": "0.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.30.2", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.30.2", - "lightningcss-darwin-arm64": "1.30.2", - "lightningcss-darwin-x64": "1.30.2", - "lightningcss-freebsd-x64": "1.30.2", - "lightningcss-linux-arm-gnueabihf": "1.30.2", - "lightningcss-linux-arm64-gnu": "1.30.2", - "lightningcss-linux-arm64-musl": "1.30.2", - "lightningcss-linux-x64-gnu": "1.30.2", - "lightningcss-linux-x64-musl": "1.30.2", - "lightningcss-win32-arm64-msvc": "1.30.2", - "lightningcss-win32-x64-msvc": "1.30.2" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.30.2", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lilconfig": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/locate-character": { - "version": "3.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/locate-path": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "dev": true, - "license": "MIT" - }, - "node_modules/magic-string": { - "version": "0.30.21", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mri": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/mrmime": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.11", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/optionator": { - "version": "0.9.4", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.6", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-load-config": { - "version": "3.1.4", - "dev": true, - "license": "MIT", - "dependencies": { - "lilconfig": "^2.0.5", - "yaml": "^1.10.2" - }, - "engines": { - "node": ">= 10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/postcss-load-config/node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 6" - } - }, - "node_modules/postcss-safe-parser": { - "version": "7.0.1", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "postcss": "^8.4.31" - } - }, - "node_modules/postcss-scss": { - "version": "4.0.9", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss-scss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "engines": { - "node": ">=12.0" - }, - "peerDependencies": { - "postcss": "^8.4.29" - } - }, - "node_modules/postcss-selector-parser": { - "version": "7.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.7.3", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-plugin-svelte": { - "version": "3.4.0", - "dev": true, - "license": "MIT", - "peerDependencies": { - "prettier": "^3.0.0", - "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" - } - }, - "node_modules/prettier-plugin-tailwindcss": { - "version": "0.7.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.19" - }, - "peerDependencies": { - "@ianvs/prettier-plugin-sort-imports": "*", - "@prettier/plugin-hermes": "*", - "@prettier/plugin-oxc": "*", - "@prettier/plugin-pug": "*", - "@shopify/prettier-plugin-liquid": "*", - "@trivago/prettier-plugin-sort-imports": "*", - "@zackad/prettier-plugin-twig": "*", - "prettier": "^3.0", - "prettier-plugin-astro": "*", - "prettier-plugin-css-order": "*", - "prettier-plugin-jsdoc": "*", - "prettier-plugin-marko": "*", - "prettier-plugin-multiline-arrays": "*", - "prettier-plugin-organize-attributes": "*", - "prettier-plugin-organize-imports": "*", - "prettier-plugin-sort-imports": "*", - "prettier-plugin-svelte": "*" - }, - "peerDependenciesMeta": { - "@ianvs/prettier-plugin-sort-imports": { - "optional": true - }, - "@prettier/plugin-hermes": { - "optional": true - }, - "@prettier/plugin-oxc": { - "optional": true - }, - "@prettier/plugin-pug": { - "optional": true - }, - "@shopify/prettier-plugin-liquid": { - "optional": true - }, - "@trivago/prettier-plugin-sort-imports": { - "optional": true - }, - "@zackad/prettier-plugin-twig": { - "optional": true - }, - "prettier-plugin-astro": { - "optional": true - }, - "prettier-plugin-css-order": { - "optional": true - }, - "prettier-plugin-jsdoc": { - "optional": true - }, - "prettier-plugin-marko": { - "optional": true - }, - "prettier-plugin-multiline-arrays": { - "optional": true - }, - "prettier-plugin-organize-attributes": { - "optional": true - }, - "prettier-plugin-organize-imports": { - "optional": true - }, - "prettier-plugin-sort-imports": { - "optional": true - }, - "prettier-plugin-svelte": { - "optional": true - } - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/readdirp": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/resolve": { - "version": "1.22.11", - "dev": true, - "license": "MIT", - "dependencies": { - "is-core-module": "^2.16.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rollup": { - "version": "4.53.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.53.3", - "@rollup/rollup-android-arm64": "4.53.3", - "@rollup/rollup-darwin-arm64": "4.53.3", - "@rollup/rollup-darwin-x64": "4.53.3", - "@rollup/rollup-freebsd-arm64": "4.53.3", - "@rollup/rollup-freebsd-x64": "4.53.3", - "@rollup/rollup-linux-arm-gnueabihf": "4.53.3", - "@rollup/rollup-linux-arm-musleabihf": "4.53.3", - "@rollup/rollup-linux-arm64-gnu": "4.53.3", - "@rollup/rollup-linux-arm64-musl": "4.53.3", - "@rollup/rollup-linux-loong64-gnu": "4.53.3", - "@rollup/rollup-linux-ppc64-gnu": "4.53.3", - "@rollup/rollup-linux-riscv64-gnu": "4.53.3", - "@rollup/rollup-linux-riscv64-musl": "4.53.3", - "@rollup/rollup-linux-s390x-gnu": "4.53.3", - "@rollup/rollup-linux-x64-gnu": "4.53.3", - "@rollup/rollup-linux-x64-musl": "4.53.3", - "@rollup/rollup-openharmony-arm64": "4.53.3", - "@rollup/rollup-win32-arm64-msvc": "4.53.3", - "@rollup/rollup-win32-ia32-msvc": "4.53.3", - "@rollup/rollup-win32-x64-gnu": "4.53.3", - "@rollup/rollup-win32-x64-msvc": "4.53.3", - "fsevents": "~2.3.2" - } - }, - "node_modules/sade": { - "version": "1.8.1", - "dev": true, - "license": "MIT", - "dependencies": { - "mri": "^1.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/semver": { - "version": "7.7.3", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-cookie-parser": { - "version": "2.7.2", - "dev": true, - "license": "MIT" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/sirv": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@polka/url": "^1.0.0-next.24", - "mrmime": "^2.0.0", - "totalist": "^3.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svelte": { - "version": "5.45.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/remapping": "^2.3.4", - "@jridgewell/sourcemap-codec": "^1.5.0", - "@sveltejs/acorn-typescript": "^1.0.5", - "@types/estree": "^1.0.5", - "acorn": "^8.12.1", - "aria-query": "^5.3.1", - "axobject-query": "^4.1.0", - "clsx": "^2.1.1", - "devalue": "^5.5.0", - "esm-env": "^1.2.1", - "esrap": "^2.2.0", - "is-reference": "^3.0.3", - "locate-character": "^3.0.0", - "magic-string": "^0.30.11", - "zimmerframe": "^1.1.2" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/svelte-check": { - "version": "4.3.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "chokidar": "^4.0.1", - "fdir": "^6.2.0", - "picocolors": "^1.0.0", - "sade": "^1.7.4" - }, - "bin": { - "svelte-check": "bin/svelte-check" - }, - "engines": { - "node": ">= 18.0.0" - }, - "peerDependencies": { - "svelte": "^4.0.0 || ^5.0.0-next.0", - "typescript": ">=5.0.0" - } - }, - "node_modules/svelte-eslint-parser": { - "version": "1.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-scope": "^8.2.0", - "eslint-visitor-keys": "^4.0.0", - "espree": "^10.0.0", - "postcss": "^8.4.49", - "postcss-scss": "^4.0.9", - "postcss-selector-parser": "^7.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0", - "pnpm": "10.18.3" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, - "peerDependencies": { - "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "svelte": { - "optional": true - } - } - }, - "node_modules/tailwindcss": { - "version": "4.1.17", - "dev": true, - "license": "MIT" - }, - "node_modules/tapable": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/totalist": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/ts-api-utils": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.48.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.48.0", - "@typescript-eslint/parser": "8.48.0", - "@typescript-eslint/typescript-estree": "8.48.0", - "@typescript-eslint/utils": "8.48.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/undici-types": { - "version": "7.16.0", - "dev": true, - "license": "MIT" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/vite": { - "version": "7.2.4", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "lightningcss": "^1.21.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vitefu": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "workspaces": [ - "tests/deps/*", - "tests/projects/*", - "tests/projects/workspace/packages/*" - ], - "peerDependencies": { - "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0" - }, - "peerDependenciesMeta": { - "vite": { - "optional": true - } - } - }, - "node_modules/which": { - "version": "2.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zimmerframe": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - } - } -} diff --git a/node_modules/typescript-eslint/LICENSE b/node_modules/typescript-eslint/LICENSE deleted file mode 100644 index a116410..0000000 --- a/node_modules/typescript-eslint/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 typescript-eslint and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/typescript-eslint/README.md b/node_modules/typescript-eslint/README.md deleted file mode 100644 index 3c078ea..0000000 --- a/node_modules/typescript-eslint/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `typescript-eslint` - -> Tooling which enables you to use TypeScript with ESLint - -[![NPM Version](https://img.shields.io/npm/v/typescript-eslint.svg?style=flat-square)](https://www.npmjs.com/package/typescript-eslint) -[![NPM Downloads](https://img.shields.io/npm/dm/typescript-eslint.svg?style=flat-square)](https://www.npmjs.com/package/typescript-eslint) - -👉 See **https://typescript-eslint.io/packages/typescript-eslint** for documentation on this package. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/node_modules/typescript-eslint/dist/index.d.ts b/node_modules/typescript-eslint/dist/index.d.ts deleted file mode 100644 index ad5d93b..0000000 --- a/node_modules/typescript-eslint/dist/index.d.ts +++ /dev/null @@ -1,154 +0,0 @@ -import type { TSESLint } from '@typescript-eslint/utils'; -import type { CompatibleConfig, CompatibleConfigArray, CompatibleParser, CompatiblePlugin } from './compatibility-types'; -import { config } from './config-helper'; -export type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -export declare const parser: CompatibleParser; -export declare const plugin: CompatiblePlugin; -export declare const configs: { - /** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ - all: CompatibleConfigArray; - /** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ - base: CompatibleConfig; - /** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ - disableTypeChecked: CompatibleConfig; - /** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ - eslintRecommended: CompatibleConfig; - /** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ - recommended: CompatibleConfigArray; - /** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ - recommendedTypeChecked: CompatibleConfigArray; - /** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ - recommendedTypeCheckedOnly: CompatibleConfigArray; - /** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ - strict: CompatibleConfigArray; - /** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ - strictTypeChecked: CompatibleConfigArray; - /** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ - strictTypeCheckedOnly: CompatibleConfigArray; - /** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ - stylistic: CompatibleConfigArray; - /** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ - stylisticTypeChecked: CompatibleConfigArray; - /** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ - stylisticTypeCheckedOnly: CompatibleConfigArray; -}; -export type Config = TSESLint.FlatConfig.ConfigFile; -declare const _default: { - config: typeof config; - configs: { - /** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ - all: CompatibleConfigArray; - /** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ - base: CompatibleConfig; - /** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ - disableTypeChecked: CompatibleConfig; - /** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ - eslintRecommended: CompatibleConfig; - /** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ - recommended: CompatibleConfigArray; - /** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ - recommendedTypeChecked: CompatibleConfigArray; - /** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ - recommendedTypeCheckedOnly: CompatibleConfigArray; - /** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ - strict: CompatibleConfigArray; - /** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ - strictTypeChecked: CompatibleConfigArray; - /** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ - strictTypeCheckedOnly: CompatibleConfigArray; - /** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ - stylistic: CompatibleConfigArray; - /** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ - stylisticTypeChecked: CompatibleConfigArray; - /** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ - stylisticTypeCheckedOnly: CompatibleConfigArray; - }; - parser: CompatibleParser; - plugin: CompatiblePlugin; -}; -export default _default; -export { config, type ConfigWithExtends, type InfiniteDepthConfigWithExtends, type ConfigArray, } from './config-helper'; diff --git a/node_modules/typescript-eslint/dist/index.js b/node_modules/typescript-eslint/dist/index.js deleted file mode 100644 index 14332f9..0000000 --- a/node_modules/typescript-eslint/dist/index.js +++ /dev/null @@ -1,173 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.config = exports.configs = exports.plugin = exports.parser = void 0; -const eslint_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin")); -const raw_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin/use-at-your-own-risk/raw-plugin")); -const typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -const config_helper_1 = require("./config-helper"); -const getTSConfigRootDirFromStack_1 = require("./getTSConfigRootDirFromStack"); -exports.parser = raw_plugin_1.default.parser; -/* -we could build a plugin object here without the `configs` key - but if we do -that then we create a situation in which -``` -require('typescript-eslint').plugin !== require('@typescript-eslint/eslint-plugin') -``` - -This is bad because it means that 3rd party configs would be required to use -`typescript-eslint` or else they would break a user's config if the user either -used `tseslint.configs.recommended` et al or -``` -{ - plugins: { - '@typescript-eslint': tseslint.plugin, - }, -} -``` - -This might be something we could consider okay (eg 3rd party flat configs must -use our new package); however legacy configs consumed via `@eslint/eslintrc` -would never be able to satisfy this constraint and thus users would be blocked -from using them. -*/ -exports.plugin = eslint_plugin_1.default; -exports.configs = createConfigsGetters({ - /** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ - all: raw_plugin_1.default.flatConfigs['flat/all'], - /** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ - base: raw_plugin_1.default.flatConfigs['flat/base'], - /** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ - disableTypeChecked: raw_plugin_1.default.flatConfigs['flat/disable-type-checked'], - /** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ - eslintRecommended: raw_plugin_1.default.flatConfigs['flat/eslint-recommended'], - /** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ - recommended: raw_plugin_1.default.flatConfigs['flat/recommended'], - /** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ - recommendedTypeChecked: raw_plugin_1.default.flatConfigs['flat/recommended-type-checked'], - /** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ - recommendedTypeCheckedOnly: raw_plugin_1.default.flatConfigs['flat/recommended-type-checked-only'], - /** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ - strict: raw_plugin_1.default.flatConfigs['flat/strict'], - /** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ - strictTypeChecked: raw_plugin_1.default.flatConfigs['flat/strict-type-checked'], - /** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ - strictTypeCheckedOnly: raw_plugin_1.default.flatConfigs['flat/strict-type-checked-only'], - /** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ - stylistic: raw_plugin_1.default.flatConfigs['flat/stylistic'], - /** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ - stylisticTypeChecked: raw_plugin_1.default.flatConfigs['flat/stylistic-type-checked'], - /** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ - stylisticTypeCheckedOnly: raw_plugin_1.default.flatConfigs['flat/stylistic-type-checked-only'], -}); -function createConfigsGetters(values) { - const configs = {}; - Object.defineProperties(configs, Object.fromEntries(Object.entries(values).map(([key, value]) => [ - key, - { - enumerable: true, - get: () => { - const candidateRootDir = (0, getTSConfigRootDirFromStack_1.getTSConfigRootDirFromStack)(); - if (candidateRootDir) { - (0, typescript_estree_1.addCandidateTSConfigRootDir)(candidateRootDir); - } - return value; - }, - }, - ]))); - return configs; -} -/* -we do both a default and named exports to allow people to use this package from -both CJS and ESM in very natural ways. - -EG it means that all of the following are valid: - -```ts -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - ...tseslint.configs.recommended, -); -``` -```ts -import { config, parser, plugin } from 'typescript-eslint'; - -export default config( - { - languageOptions: { parser } - plugins: { ts: plugin }, - } -); -``` -```ts -const tseslint = require('typescript-eslint'); - -module.exports = tseslint.config( - ...tseslint.configs.recommended, -); -``` -```ts -const { config, parser, plugin } = require('typescript-eslint'); - -module.exports = config( - { - languageOptions: { parser } - plugins: { ts: plugin }, - } -); -``` -*/ -exports.default = { - config: config_helper_1.config, - configs: exports.configs, - parser: exports.parser, - plugin: exports.plugin, -}; -var config_helper_2 = require("./config-helper"); -// eslint-disable-next-line @typescript-eslint/no-deprecated -Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_helper_2.config; } }); diff --git a/node_modules/typescript-eslint/package.json b/node_modules/typescript-eslint/package.json deleted file mode 100644 index db25dcd..0000000 --- a/node_modules/typescript-eslint/package.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "name": "typescript-eslint", - "version": "8.48.0", - "description": "Tooling which enables you to use TypeScript with ESLint", - "files": [ - "dist", - "!*.tsbuildinfo", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "types": "./dist/index.d.ts", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/typescript-eslint" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io/packages/typescript-eslint", - "license": "MIT", - "keywords": [ - "ast", - "ecmascript", - "javascript", - "typescript", - "parser", - "syntax", - "eslint", - "eslintplugin", - "eslint-plugin" - ], - "scripts": { - "build": "yarn run -BT nx build", - "clean": "rimraf dist/ coverage/", - "format": "yarn run -T format", - "lint": "yarn run -BT nx lint", - "test": "yarn run -BT nx test", - "typecheck": "yarn run -BT nx typecheck" - }, - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.48.0", - "@typescript-eslint/parser": "8.48.0", - "@typescript-eslint/typescript-estree": "8.48.0", - "@typescript-eslint/utils": "8.48.0" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - }, - "devDependencies": { - "@vitest/coverage-v8": "^3.1.3", - "eslint": "*", - "rimraf": "*", - "typescript": "*", - "vitest": "^3.1.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "nx": { - "name": "typescript-eslint", - "includedScripts": [ - "clean" - ], - "targets": { - "lint": { - "command": "eslint" - }, - "typecheck": { - "outputs": [ - "{workspaceRoot}/dist", - "{projectRoot}/dist" - ] - }, - "test": { - "dependsOn": [ - "^build", - "typecheck" - ] - } - } - } -} diff --git a/node_modules/undici-types/LICENSE b/node_modules/undici-types/LICENSE deleted file mode 100644 index e7323bb..0000000 --- a/node_modules/undici-types/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Matteo Collina and Undici contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/undici-types/README.md b/node_modules/undici-types/README.md deleted file mode 100644 index 20a721c..0000000 --- a/node_modules/undici-types/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# undici-types - -This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version. - -- [GitHub nodejs/undici](https://github.com/nodejs/undici) -- [Undici Documentation](https://undici.nodejs.org/#/) diff --git a/node_modules/undici-types/agent.d.ts b/node_modules/undici-types/agent.d.ts deleted file mode 100644 index 4bb3512..0000000 --- a/node_modules/undici-types/agent.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { URL } from 'url' -import Pool from './pool' -import Dispatcher from './dispatcher' -import TClientStats from './client-stats' -import TPoolStats from './pool-stats' - -export default Agent - -declare class Agent extends Dispatcher { - constructor (opts?: Agent.Options) - /** `true` after `dispatcher.close()` has been called. */ - closed: boolean - /** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */ - destroyed: boolean - /** Dispatches a request. */ - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - /** Aggregate stats for a Agent by origin. */ - readonly stats: Record -} - -declare namespace Agent { - export interface Options extends Pool.Options { - /** Default: `(origin, opts) => new Pool(origin, opts)`. */ - factory?(origin: string | URL, opts: Object): Dispatcher; - - interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options['interceptors'] - maxOrigins?: number - } - - export interface DispatchOptions extends Dispatcher.DispatchOptions { - } -} diff --git a/node_modules/undici-types/api.d.ts b/node_modules/undici-types/api.d.ts deleted file mode 100644 index e58d08f..0000000 --- a/node_modules/undici-types/api.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { URL, UrlObject } from 'url' -import { Duplex } from 'stream' -import Dispatcher from './dispatcher' - -/** Performs an HTTP request. */ -declare function request ( - url: string | URL | UrlObject, - options?: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path' | 'method'> & Partial>, -): Promise> - -/** A faster version of `request`. */ -declare function stream ( - url: string | URL | UrlObject, - options: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path'>, - factory: Dispatcher.StreamFactory -): Promise> - -/** For easy use with `stream.pipeline`. */ -declare function pipeline ( - url: string | URL | UrlObject, - options: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path'>, - handler: Dispatcher.PipelineHandler -): Duplex - -/** Starts two-way communications with the requested resource. */ -declare function connect ( - url: string | URL | UrlObject, - options?: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path'> -): Promise> - -/** Upgrade to a different protocol. */ -declare function upgrade ( - url: string | URL | UrlObject, - options?: { dispatcher?: Dispatcher } & Omit -): Promise - -export { - request, - stream, - pipeline, - connect, - upgrade -} diff --git a/node_modules/undici-types/balanced-pool.d.ts b/node_modules/undici-types/balanced-pool.d.ts deleted file mode 100644 index 733239c..0000000 --- a/node_modules/undici-types/balanced-pool.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import Pool from './pool' -import Dispatcher from './dispatcher' -import { URL } from 'url' - -export default BalancedPool - -type BalancedPoolConnectOptions = Omit - -declare class BalancedPool extends Dispatcher { - constructor (url: string | string[] | URL | URL[], options?: Pool.Options) - - addUpstream (upstream: string | URL): BalancedPool - removeUpstream (upstream: string | URL): BalancedPool - upstreams: Array - - /** `true` after `pool.close()` has been called. */ - closed: boolean - /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ - destroyed: boolean - - // Override dispatcher APIs. - override connect ( - options: BalancedPoolConnectOptions - ): Promise - override connect ( - options: BalancedPoolConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} diff --git a/node_modules/undici-types/cache-interceptor.d.ts b/node_modules/undici-types/cache-interceptor.d.ts deleted file mode 100644 index e53be60..0000000 --- a/node_modules/undici-types/cache-interceptor.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { Readable, Writable } from 'node:stream' - -export default CacheHandler - -declare namespace CacheHandler { - export type CacheMethods = 'GET' | 'HEAD' | 'OPTIONS' | 'TRACE' - - export interface CacheHandlerOptions { - store: CacheStore - - cacheByDefault?: number - - type?: CacheOptions['type'] - } - - export interface CacheOptions { - store?: CacheStore - - /** - * The methods to cache - * Note we can only cache safe methods. Unsafe methods (i.e. PUT, POST) - * invalidate the cache for a origin. - * @see https://www.rfc-editor.org/rfc/rfc9111.html#name-invalidating-stored-respons - * @see https://www.rfc-editor.org/rfc/rfc9110#section-9.2.1 - */ - methods?: CacheMethods[] - - /** - * RFC9111 allows for caching responses that we aren't explicitly told to - * cache or to not cache. - * @see https://www.rfc-editor.org/rfc/rfc9111.html#section-3-5 - * @default undefined - */ - cacheByDefault?: number - - /** - * TODO docs - * @default 'shared' - */ - type?: 'shared' | 'private' - } - - export interface CacheControlDirectives { - 'max-stale'?: number; - 'min-fresh'?: number; - 'max-age'?: number; - 's-maxage'?: number; - 'stale-while-revalidate'?: number; - 'stale-if-error'?: number; - public?: true; - private?: true | string[]; - 'no-store'?: true; - 'no-cache'?: true | string[]; - 'must-revalidate'?: true; - 'proxy-revalidate'?: true; - immutable?: true; - 'no-transform'?: true; - 'must-understand'?: true; - 'only-if-cached'?: true; - } - - export interface CacheKey { - origin: string - method: string - path: string - headers?: Record - } - - export interface CacheValue { - statusCode: number - statusMessage: string - headers: Record - vary?: Record - etag?: string - cacheControlDirectives?: CacheControlDirectives - cachedAt: number - staleAt: number - deleteAt: number - } - - export interface DeleteByUri { - origin: string - method: string - path: string - } - - type GetResult = { - statusCode: number - statusMessage: string - headers: Record - vary?: Record - etag?: string - body?: Readable | Iterable | AsyncIterable | Buffer | Iterable | AsyncIterable | string - cacheControlDirectives: CacheControlDirectives, - cachedAt: number - staleAt: number - deleteAt: number - } - - /** - * Underlying storage provider for cached responses - */ - export interface CacheStore { - get(key: CacheKey): GetResult | Promise | undefined - - createWriteStream(key: CacheKey, val: CacheValue): Writable | undefined - - delete(key: CacheKey): void | Promise - } - - export interface MemoryCacheStoreOpts { - /** - * @default Infinity - */ - maxCount?: number - - /** - * @default Infinity - */ - maxSize?: number - - /** - * @default Infinity - */ - maxEntrySize?: number - - errorCallback?: (err: Error) => void - } - - export class MemoryCacheStore implements CacheStore { - constructor (opts?: MemoryCacheStoreOpts) - - get (key: CacheKey): GetResult | Promise | undefined - - createWriteStream (key: CacheKey, value: CacheValue): Writable | undefined - - delete (key: CacheKey): void | Promise - } - - export interface SqliteCacheStoreOpts { - /** - * Location of the database - * @default ':memory:' - */ - location?: string - - /** - * @default Infinity - */ - maxCount?: number - - /** - * @default Infinity - */ - maxEntrySize?: number - } - - export class SqliteCacheStore implements CacheStore { - constructor (opts?: SqliteCacheStoreOpts) - - /** - * Closes the connection to the database - */ - close (): void - - get (key: CacheKey): GetResult | Promise | undefined - - createWriteStream (key: CacheKey, value: CacheValue): Writable | undefined - - delete (key: CacheKey): void | Promise - } -} diff --git a/node_modules/undici-types/cache.d.ts b/node_modules/undici-types/cache.d.ts deleted file mode 100644 index 4c33335..0000000 --- a/node_modules/undici-types/cache.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { RequestInfo, Response, Request } from './fetch' - -export interface CacheStorage { - match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise, - has (cacheName: string): Promise, - open (cacheName: string): Promise, - delete (cacheName: string): Promise, - keys (): Promise -} - -declare const CacheStorage: { - prototype: CacheStorage - new(): CacheStorage -} - -export interface Cache { - match (request: RequestInfo, options?: CacheQueryOptions): Promise, - matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise, - add (request: RequestInfo): Promise, - addAll (requests: RequestInfo[]): Promise, - put (request: RequestInfo, response: Response): Promise, - delete (request: RequestInfo, options?: CacheQueryOptions): Promise, - keys (request?: RequestInfo, options?: CacheQueryOptions): Promise -} - -export interface CacheQueryOptions { - ignoreSearch?: boolean, - ignoreMethod?: boolean, - ignoreVary?: boolean -} - -export interface MultiCacheQueryOptions extends CacheQueryOptions { - cacheName?: string -} - -export declare const caches: CacheStorage diff --git a/node_modules/undici-types/client-stats.d.ts b/node_modules/undici-types/client-stats.d.ts deleted file mode 100644 index ad9bd84..0000000 --- a/node_modules/undici-types/client-stats.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Client from './client' - -export default ClientStats - -declare class ClientStats { - constructor (pool: Client) - /** If socket has open connection. */ - connected: boolean - /** Number of open socket connections in this client that do not have an active request. */ - pending: number - /** Number of currently active requests of this client. */ - running: number - /** Number of active, pending, or queued requests of this client. */ - size: number -} diff --git a/node_modules/undici-types/client.d.ts b/node_modules/undici-types/client.d.ts deleted file mode 100644 index bd1a32c..0000000 --- a/node_modules/undici-types/client.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { URL } from 'url' -import Dispatcher from './dispatcher' -import buildConnector from './connector' -import TClientStats from './client-stats' - -type ClientConnectOptions = Omit - -/** - * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default. - */ -export class Client extends Dispatcher { - constructor (url: string | URL, options?: Client.Options) - /** Property to get and set the pipelining factor. */ - pipelining: number - /** `true` after `client.close()` has been called. */ - closed: boolean - /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */ - destroyed: boolean - /** Aggregate stats for a Client. */ - readonly stats: TClientStats - - // Override dispatcher APIs. - override connect ( - options: ClientConnectOptions - ): Promise - override connect ( - options: ClientConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} - -export declare namespace Client { - export interface OptionsInterceptors { - Client: readonly Dispatcher.DispatchInterceptor[]; - } - export interface Options { - /** TODO */ - interceptors?: OptionsInterceptors; - /** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */ - maxHeaderSize?: number; - /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */ - headersTimeout?: number; - /** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */ - socketTimeout?: never; - /** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */ - requestTimeout?: never; - /** TODO */ - connectTimeout?: number; - /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */ - bodyTimeout?: number; - /** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */ - idleTimeout?: never; - /** @deprecated unsupported keepAlive, use pipelining=0 instead */ - keepAlive?: never; - /** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */ - keepAliveTimeout?: number; - /** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */ - maxKeepAliveTimeout?: never; - /** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */ - keepAliveMaxTimeout?: number; - /** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */ - keepAliveTimeoutThreshold?: number; - /** TODO */ - socketPath?: string; - /** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */ - pipelining?: number; - /** @deprecated use the connect option instead */ - tls?: never; - /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */ - strictContentLength?: boolean; - /** TODO */ - maxCachedSessions?: number; - /** TODO */ - connect?: Partial | buildConnector.connector; - /** TODO */ - maxRequestsPerClient?: number; - /** TODO */ - localAddress?: string; - /** Max response body size in bytes, -1 is disabled */ - maxResponseSize?: number; - /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */ - autoSelectFamily?: boolean; - /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */ - autoSelectFamilyAttemptTimeout?: number; - /** - * @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation. - * @default false - */ - allowH2?: boolean; - /** - * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame. - * @default 100 - */ - maxConcurrentStreams?: number; - } - export interface SocketInfo { - localAddress?: string - localPort?: number - remoteAddress?: string - remotePort?: number - remoteFamily?: string - timeout?: number - bytesWritten?: number - bytesRead?: number - } -} - -export default Client diff --git a/node_modules/undici-types/connector.d.ts b/node_modules/undici-types/connector.d.ts deleted file mode 100644 index bd92433..0000000 --- a/node_modules/undici-types/connector.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { TLSSocket, ConnectionOptions } from 'tls' -import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from 'net' - -export default buildConnector -declare function buildConnector (options?: buildConnector.BuildOptions): buildConnector.connector - -declare namespace buildConnector { - export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & { - allowH2?: boolean; - maxCachedSessions?: number | null; - socketPath?: string | null; - timeout?: number | null; - port?: number; - keepAlive?: boolean | null; - keepAliveInitialDelay?: number | null; - } - - export interface Options { - hostname: string - host?: string - protocol: string - port: string - servername?: string - localAddress?: string | null - httpSocket?: Socket - } - - export type Callback = (...args: CallbackArgs) => void - type CallbackArgs = [null, Socket | TLSSocket] | [Error, null] - - export interface connector { - (options: buildConnector.Options, callback: buildConnector.Callback): void - } -} diff --git a/node_modules/undici-types/content-type.d.ts b/node_modules/undici-types/content-type.d.ts deleted file mode 100644 index f2a87f1..0000000 --- a/node_modules/undici-types/content-type.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// - -interface MIMEType { - type: string - subtype: string - parameters: Map - essence: string -} - -/** - * Parse a string to a {@link MIMEType} object. Returns `failure` if the string - * couldn't be parsed. - * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type - */ -export function parseMIMEType (input: string): 'failure' | MIMEType - -/** - * Convert a MIMEType object to a string. - * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type - */ -export function serializeAMimeType (mimeType: MIMEType): string diff --git a/node_modules/undici-types/cookies.d.ts b/node_modules/undici-types/cookies.d.ts deleted file mode 100644 index f746d35..0000000 --- a/node_modules/undici-types/cookies.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/// - -import type { Headers } from './fetch' - -export interface Cookie { - name: string - value: string - expires?: Date | number - maxAge?: number - domain?: string - path?: string - secure?: boolean - httpOnly?: boolean - sameSite?: 'Strict' | 'Lax' | 'None' - unparsed?: string[] -} - -export function deleteCookie ( - headers: Headers, - name: string, - attributes?: { name?: string, domain?: string } -): void - -export function getCookies (headers: Headers): Record - -export function getSetCookies (headers: Headers): Cookie[] - -export function setCookie (headers: Headers, cookie: Cookie): void - -export function parseCookie (cookie: string): Cookie | null diff --git a/node_modules/undici-types/diagnostics-channel.d.ts b/node_modules/undici-types/diagnostics-channel.d.ts deleted file mode 100644 index 4925c87..0000000 --- a/node_modules/undici-types/diagnostics-channel.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Socket } from 'net' -import { URL } from 'url' -import buildConnector from './connector' -import Dispatcher from './dispatcher' - -declare namespace DiagnosticsChannel { - interface Request { - origin?: string | URL; - completed: boolean; - method?: Dispatcher.HttpMethod; - path: string; - headers: any; - } - interface Response { - statusCode: number; - statusText: string; - headers: Array; - } - interface ConnectParams { - host: URL['host']; - hostname: URL['hostname']; - protocol: URL['protocol']; - port: URL['port']; - servername: string | null; - } - type Connector = buildConnector.connector - export interface RequestCreateMessage { - request: Request; - } - export interface RequestBodySentMessage { - request: Request; - } - - export interface RequestBodyChunkSentMessage { - request: Request; - chunk: Uint8Array | string; - } - export interface RequestBodyChunkReceivedMessage { - request: Request; - chunk: Buffer; - } - export interface RequestHeadersMessage { - request: Request; - response: Response; - } - export interface RequestTrailersMessage { - request: Request; - trailers: Array; - } - export interface RequestErrorMessage { - request: Request; - error: Error; - } - export interface ClientSendHeadersMessage { - request: Request; - headers: string; - socket: Socket; - } - export interface ClientBeforeConnectMessage { - connectParams: ConnectParams; - connector: Connector; - } - export interface ClientConnectedMessage { - socket: Socket; - connectParams: ConnectParams; - connector: Connector; - } - export interface ClientConnectErrorMessage { - error: Error; - socket: Socket; - connectParams: ConnectParams; - connector: Connector; - } -} diff --git a/node_modules/undici-types/dispatcher.d.ts b/node_modules/undici-types/dispatcher.d.ts deleted file mode 100644 index fffe870..0000000 --- a/node_modules/undici-types/dispatcher.d.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { URL } from 'url' -import { Duplex, Readable, Writable } from 'stream' -import { EventEmitter } from 'events' -import { Blob } from 'buffer' -import { IncomingHttpHeaders } from './header' -import BodyReadable from './readable' -import { FormData } from './formdata' -import Errors from './errors' -import { Autocomplete } from './utility' - -type AbortSignal = unknown - -export default Dispatcher - -export type UndiciHeaders = Record | IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null - -/** Dispatcher is the core API used to dispatch requests. */ -declare class Dispatcher extends EventEmitter { - /** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */ - dispatch (options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - /** Starts two-way communications with the requested resource. */ - connect(options: Dispatcher.ConnectOptions): Promise> - connect(options: Dispatcher.ConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void - /** Compose a chain of dispatchers */ - compose (dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher - compose (...dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher - /** Performs an HTTP request. */ - request(options: Dispatcher.RequestOptions): Promise> - request(options: Dispatcher.RequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void - /** For easy use with `stream.pipeline`. */ - pipeline(options: Dispatcher.PipelineOptions, handler: Dispatcher.PipelineHandler): Duplex - /** A faster version of `Dispatcher.request`. */ - stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory): Promise> - stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory, callback: (err: Error | null, data: Dispatcher.StreamData) => void): void - /** Upgrade to a different protocol. */ - upgrade (options: Dispatcher.UpgradeOptions): Promise - upgrade (options: Dispatcher.UpgradeOptions, callback: (err: Error | null, data: Dispatcher.UpgradeData) => void): void - /** Closes the client and gracefully waits for enqueued requests to complete before invoking the callback (or returning a promise if no callback is provided). */ - close (): Promise - close (callback: () => void): void - /** Destroy the client abruptly with the given err. All the pending and running requests will be asynchronously aborted and error. Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided). Since this operation is asynchronously dispatched there might still be some progress on dispatched requests. */ - destroy (): Promise - destroy (err: Error | null): Promise - destroy (callback: () => void): void - destroy (err: Error | null, callback: () => void): void - - on (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - on (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - on (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - on (eventName: 'drain', callback: (origin: URL) => void): this - - once (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - once (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - once (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - once (eventName: 'drain', callback: (origin: URL) => void): this - - off (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - off (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - off (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - off (eventName: 'drain', callback: (origin: URL) => void): this - - addListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - addListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - addListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - addListener (eventName: 'drain', callback: (origin: URL) => void): this - - removeListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - removeListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - removeListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - removeListener (eventName: 'drain', callback: (origin: URL) => void): this - - prependListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - prependListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependListener (eventName: 'drain', callback: (origin: URL) => void): this - - prependOnceListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - prependOnceListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependOnceListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependOnceListener (eventName: 'drain', callback: (origin: URL) => void): this - - listeners (eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[] - listeners (eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - listeners (eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - listeners (eventName: 'drain'): ((origin: URL) => void)[] - - rawListeners (eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[] - rawListeners (eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - rawListeners (eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - rawListeners (eventName: 'drain'): ((origin: URL) => void)[] - - emit (eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean - emit (eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean - emit (eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean - emit (eventName: 'drain', origin: URL): boolean -} - -declare namespace Dispatcher { - export interface ComposedDispatcher extends Dispatcher {} - export type Dispatch = Dispatcher['dispatch'] - export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch - export interface DispatchOptions { - origin?: string | URL; - path: string; - method: HttpMethod; - /** Default: `null` */ - body?: string | Buffer | Uint8Array | Readable | null | FormData; - /** Default: `null` */ - headers?: UndiciHeaders; - /** Query string params to be embedded in the request URL. Default: `null` */ - query?: Record; - /** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */ - idempotent?: boolean; - /** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. Defaults to `method !== 'HEAD'`. */ - blocking?: boolean; - /** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */ - upgrade?: boolean | string | null; - /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers. Defaults to 300 seconds. */ - headersTimeout?: number | null; - /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0 to disable it entirely. Defaults to 300 seconds. */ - bodyTimeout?: number | null; - /** Whether the request should stablish a keep-alive or not. Default `false` */ - reset?: boolean; - /** Whether Undici should throw an error upon receiving a 4xx or 5xx response from the server. Defaults to false */ - throwOnError?: boolean; - /** For H2, it appends the expect: 100-continue header, and halts the request body until a 100-continue is received from the remote server */ - expectContinue?: boolean; - } - export interface ConnectOptions { - origin: string | URL; - path: string; - /** Default: `null` */ - headers?: UndiciHeaders; - /** Default: `null` */ - signal?: AbortSignal | EventEmitter | null; - /** This argument parameter is passed through to `ConnectData` */ - opaque?: TOpaque; - /** Default: false */ - redirectionLimitReached?: boolean; - /** Default: `null` */ - responseHeaders?: 'raw' | null; - } - export interface RequestOptions extends DispatchOptions { - /** Default: `null` */ - opaque?: TOpaque; - /** Default: `null` */ - signal?: AbortSignal | EventEmitter | null; - /** Default: false */ - redirectionLimitReached?: boolean; - /** Default: `null` */ - onInfo?: (info: { statusCode: number, headers: Record }) => void; - /** Default: `null` */ - responseHeaders?: 'raw' | null; - /** Default: `64 KiB` */ - highWaterMark?: number; - } - export interface PipelineOptions extends RequestOptions { - /** `true` if the `handler` will return an object stream. Default: `false` */ - objectMode?: boolean; - } - export interface UpgradeOptions { - path: string; - /** Default: `'GET'` */ - method?: string; - /** Default: `null` */ - headers?: UndiciHeaders; - /** A string of comma separated protocols, in descending preference order. Default: `'Websocket'` */ - protocol?: string; - /** Default: `null` */ - signal?: AbortSignal | EventEmitter | null; - /** Default: false */ - redirectionLimitReached?: boolean; - /** Default: `null` */ - responseHeaders?: 'raw' | null; - } - export interface ConnectData { - statusCode: number; - headers: IncomingHttpHeaders; - socket: Duplex; - opaque: TOpaque; - } - export interface ResponseData { - statusCode: number; - headers: IncomingHttpHeaders; - body: BodyReadable & BodyMixin; - trailers: Record; - opaque: TOpaque; - context: object; - } - export interface PipelineHandlerData { - statusCode: number; - headers: IncomingHttpHeaders; - opaque: TOpaque; - body: BodyReadable; - context: object; - } - export interface StreamData { - opaque: TOpaque; - trailers: Record; - } - export interface UpgradeData { - headers: IncomingHttpHeaders; - socket: Duplex; - opaque: TOpaque; - } - export interface StreamFactoryData { - statusCode: number; - headers: IncomingHttpHeaders; - opaque: TOpaque; - context: object; - } - export type StreamFactory = (data: StreamFactoryData) => Writable - - export interface DispatchController { - get aborted () : boolean - get paused () : boolean - get reason () : Error | null - abort (reason: Error): void - pause(): void - resume(): void - } - - export interface DispatchHandler { - onRequestStart?(controller: DispatchController, context: any): void; - onRequestUpgrade?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex): void; - onResponseStart?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string): void; - onResponseData?(controller: DispatchController, chunk: Buffer): void; - onResponseEnd?(controller: DispatchController, trailers: IncomingHttpHeaders): void; - onResponseError?(controller: DispatchController, error: Error): void; - - /** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */ - /** @deprecated */ - onConnect?(abort: (err?: Error) => void): void; - /** Invoked when an error has occurred. */ - /** @deprecated */ - onError?(err: Error): void; - /** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */ - /** @deprecated */ - onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void; - /** Invoked when response is received, before headers have been read. **/ - /** @deprecated */ - onResponseStarted?(): void; - /** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */ - /** @deprecated */ - onHeaders?(statusCode: number, headers: Buffer[], resume: () => void, statusText: string): boolean; - /** Invoked when response payload data is received. */ - /** @deprecated */ - onData?(chunk: Buffer): boolean; - /** Invoked when response payload and trailers have been received and the request has completed. */ - /** @deprecated */ - onComplete?(trailers: string[] | null): void; - /** Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests */ - /** @deprecated */ - onBodySent?(chunkSize: number, totalBytesSent: number): void; - } - export type PipelineHandler = (data: PipelineHandlerData) => Readable - export type HttpMethod = Autocomplete<'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'> - - /** - * @link https://fetch.spec.whatwg.org/#body-mixin - */ - interface BodyMixin { - readonly body?: never; - readonly bodyUsed: boolean; - arrayBuffer(): Promise; - blob(): Promise; - bytes(): Promise; - formData(): Promise; - json(): Promise; - text(): Promise; - } - - export interface DispatchInterceptor { - (dispatch: Dispatch): Dispatch - } -} diff --git a/node_modules/undici-types/env-http-proxy-agent.d.ts b/node_modules/undici-types/env-http-proxy-agent.d.ts deleted file mode 100644 index 1733d7f..0000000 --- a/node_modules/undici-types/env-http-proxy-agent.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import Agent from './agent' -import ProxyAgent from './proxy-agent' -import Dispatcher from './dispatcher' - -export default EnvHttpProxyAgent - -declare class EnvHttpProxyAgent extends Dispatcher { - constructor (opts?: EnvHttpProxyAgent.Options) - - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean -} - -declare namespace EnvHttpProxyAgent { - export interface Options extends Omit { - /** Overrides the value of the HTTP_PROXY environment variable */ - httpProxy?: string; - /** Overrides the value of the HTTPS_PROXY environment variable */ - httpsProxy?: string; - /** Overrides the value of the NO_PROXY environment variable */ - noProxy?: string; - } -} diff --git a/node_modules/undici-types/errors.d.ts b/node_modules/undici-types/errors.d.ts deleted file mode 100644 index fbf3195..0000000 --- a/node_modules/undici-types/errors.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { IncomingHttpHeaders } from './header' -import Client from './client' - -export default Errors - -declare namespace Errors { - export class UndiciError extends Error { - name: string - code: string - } - - /** Connect timeout error. */ - export class ConnectTimeoutError extends UndiciError { - name: 'ConnectTimeoutError' - code: 'UND_ERR_CONNECT_TIMEOUT' - } - - /** A header exceeds the `headersTimeout` option. */ - export class HeadersTimeoutError extends UndiciError { - name: 'HeadersTimeoutError' - code: 'UND_ERR_HEADERS_TIMEOUT' - } - - /** Headers overflow error. */ - export class HeadersOverflowError extends UndiciError { - name: 'HeadersOverflowError' - code: 'UND_ERR_HEADERS_OVERFLOW' - } - - /** A body exceeds the `bodyTimeout` option. */ - export class BodyTimeoutError extends UndiciError { - name: 'BodyTimeoutError' - code: 'UND_ERR_BODY_TIMEOUT' - } - - export class ResponseError extends UndiciError { - constructor ( - message: string, - code: number, - options: { - headers?: IncomingHttpHeaders | string[] | null, - body?: null | Record | string - } - ) - name: 'ResponseError' - code: 'UND_ERR_RESPONSE' - statusCode: number - body: null | Record | string - headers: IncomingHttpHeaders | string[] | null - } - - /** Passed an invalid argument. */ - export class InvalidArgumentError extends UndiciError { - name: 'InvalidArgumentError' - code: 'UND_ERR_INVALID_ARG' - } - - /** Returned an invalid value. */ - export class InvalidReturnValueError extends UndiciError { - name: 'InvalidReturnValueError' - code: 'UND_ERR_INVALID_RETURN_VALUE' - } - - /** The request has been aborted by the user. */ - export class RequestAbortedError extends UndiciError { - name: 'AbortError' - code: 'UND_ERR_ABORTED' - } - - /** Expected error with reason. */ - export class InformationalError extends UndiciError { - name: 'InformationalError' - code: 'UND_ERR_INFO' - } - - /** Request body length does not match content-length header. */ - export class RequestContentLengthMismatchError extends UndiciError { - name: 'RequestContentLengthMismatchError' - code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' - } - - /** Response body length does not match content-length header. */ - export class ResponseContentLengthMismatchError extends UndiciError { - name: 'ResponseContentLengthMismatchError' - code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH' - } - - /** Trying to use a destroyed client. */ - export class ClientDestroyedError extends UndiciError { - name: 'ClientDestroyedError' - code: 'UND_ERR_DESTROYED' - } - - /** Trying to use a closed client. */ - export class ClientClosedError extends UndiciError { - name: 'ClientClosedError' - code: 'UND_ERR_CLOSED' - } - - /** There is an error with the socket. */ - export class SocketError extends UndiciError { - name: 'SocketError' - code: 'UND_ERR_SOCKET' - socket: Client.SocketInfo | null - } - - /** Encountered unsupported functionality. */ - export class NotSupportedError extends UndiciError { - name: 'NotSupportedError' - code: 'UND_ERR_NOT_SUPPORTED' - } - - /** No upstream has been added to the BalancedPool. */ - export class BalancedPoolMissingUpstreamError extends UndiciError { - name: 'MissingUpstreamError' - code: 'UND_ERR_BPL_MISSING_UPSTREAM' - } - - export class HTTPParserError extends UndiciError { - name: 'HTTPParserError' - code: string - } - - /** The response exceed the length allowed. */ - export class ResponseExceededMaxSizeError extends UndiciError { - name: 'ResponseExceededMaxSizeError' - code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE' - } - - export class RequestRetryError extends UndiciError { - constructor ( - message: string, - statusCode: number, - headers?: IncomingHttpHeaders | string[] | null, - body?: null | Record | string - ) - name: 'RequestRetryError' - code: 'UND_ERR_REQ_RETRY' - statusCode: number - data: { - count: number; - } - - headers: Record - } - - export class SecureProxyConnectionError extends UndiciError { - constructor ( - cause?: Error, - message?: string, - options?: Record - ) - name: 'SecureProxyConnectionError' - code: 'UND_ERR_PRX_TLS' - } - - class MaxOriginsReachedError extends UndiciError { - name: 'MaxOriginsReachedError' - code: 'UND_ERR_MAX_ORIGINS_REACHED' - } -} diff --git a/node_modules/undici-types/eventsource.d.ts b/node_modules/undici-types/eventsource.d.ts deleted file mode 100644 index 081ca09..0000000 --- a/node_modules/undici-types/eventsource.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { MessageEvent, ErrorEvent } from './websocket' -import Dispatcher from './dispatcher' - -import { - EventListenerOptions, - AddEventListenerOptions, - EventListenerOrEventListenerObject -} from './patch' - -interface EventSourceEventMap { - error: ErrorEvent - message: MessageEvent - open: Event -} - -interface EventSource extends EventTarget { - close(): void - readonly CLOSED: 2 - readonly CONNECTING: 0 - readonly OPEN: 1 - onerror: ((this: EventSource, ev: ErrorEvent) => any) | null - onmessage: ((this: EventSource, ev: MessageEvent) => any) | null - onopen: ((this: EventSource, ev: Event) => any) | null - readonly readyState: 0 | 1 | 2 - readonly url: string - readonly withCredentials: boolean - - addEventListener( - type: K, - listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, - options?: boolean | AddEventListenerOptions - ): void - addEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | AddEventListenerOptions - ): void - removeEventListener( - type: K, - listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, - options?: boolean | EventListenerOptions - ): void - removeEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | EventListenerOptions - ): void -} - -export declare const EventSource: { - prototype: EventSource - new (url: string | URL, init?: EventSourceInit): EventSource - readonly CLOSED: 2 - readonly CONNECTING: 0 - readonly OPEN: 1 -} - -interface EventSourceInit { - withCredentials?: boolean - // @deprecated use `node.dispatcher` instead - dispatcher?: Dispatcher - node?: { - dispatcher?: Dispatcher - reconnectionTime?: number - } -} diff --git a/node_modules/undici-types/fetch.d.ts b/node_modules/undici-types/fetch.d.ts deleted file mode 100644 index 2cf5029..0000000 --- a/node_modules/undici-types/fetch.d.ts +++ /dev/null @@ -1,211 +0,0 @@ -// based on https://github.com/Ethan-Arrowood/undici-fetch/blob/249269714db874351589d2d364a0645d5160ae71/index.d.ts (MIT license) -// and https://github.com/node-fetch/node-fetch/blob/914ce6be5ec67a8bab63d68510aabf07cb818b6d/index.d.ts (MIT license) -/// - -import { Blob } from 'buffer' -import { URL, URLSearchParams } from 'url' -import { ReadableStream } from 'stream/web' -import { FormData } from './formdata' -import { HeaderRecord } from './header' -import Dispatcher from './dispatcher' - -export type RequestInfo = string | URL | Request - -export declare function fetch ( - input: RequestInfo, - init?: RequestInit -): Promise - -export type BodyInit = - | ArrayBuffer - | AsyncIterable - | Blob - | FormData - | Iterable - | NodeJS.ArrayBufferView - | URLSearchParams - | null - | string - -export class BodyMixin { - readonly body: ReadableStream | null - readonly bodyUsed: boolean - - readonly arrayBuffer: () => Promise - readonly blob: () => Promise - readonly bytes: () => Promise - /** - * @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments. - * It is recommended to use a library such as [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) as follows: - * - * @example - * ```js - * import { Busboy } from '@fastify/busboy' - * import { Readable } from 'node:stream' - * - * const response = await fetch('...') - * const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } }) - * - * // handle events emitted from `busboy` - * - * Readable.fromWeb(response.body).pipe(busboy) - * ``` - */ - readonly formData: () => Promise - readonly json: () => Promise - readonly text: () => Promise -} - -export interface SpecIterator { - next(...args: [] | [TNext]): IteratorResult; -} - -export interface SpecIterableIterator extends SpecIterator { - [Symbol.iterator](): SpecIterableIterator; -} - -export interface SpecIterable { - [Symbol.iterator](): SpecIterator; -} - -export type HeadersInit = [string, string][] | HeaderRecord | Headers - -export declare class Headers implements SpecIterable<[string, string]> { - constructor (init?: HeadersInit) - readonly append: (name: string, value: string) => void - readonly delete: (name: string) => void - readonly get: (name: string) => string | null - readonly has: (name: string) => boolean - readonly set: (name: string, value: string) => void - readonly getSetCookie: () => string[] - readonly forEach: ( - callbackfn: (value: string, key: string, iterable: Headers) => void, - thisArg?: unknown - ) => void - - readonly keys: () => SpecIterableIterator - readonly values: () => SpecIterableIterator - readonly entries: () => SpecIterableIterator<[string, string]> - readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]> -} - -export type RequestCache = - | 'default' - | 'force-cache' - | 'no-cache' - | 'no-store' - | 'only-if-cached' - | 'reload' - -export type RequestCredentials = 'omit' | 'include' | 'same-origin' - -type RequestDestination = - | '' - | 'audio' - | 'audioworklet' - | 'document' - | 'embed' - | 'font' - | 'image' - | 'manifest' - | 'object' - | 'paintworklet' - | 'report' - | 'script' - | 'sharedworker' - | 'style' - | 'track' - | 'video' - | 'worker' - | 'xslt' - -export interface RequestInit { - body?: BodyInit | null - cache?: RequestCache - credentials?: RequestCredentials - dispatcher?: Dispatcher - duplex?: RequestDuplex - headers?: HeadersInit - integrity?: string - keepalive?: boolean - method?: string - mode?: RequestMode - redirect?: RequestRedirect - referrer?: string - referrerPolicy?: ReferrerPolicy - signal?: AbortSignal | null - window?: null -} - -export type ReferrerPolicy = - | '' - | 'no-referrer' - | 'no-referrer-when-downgrade' - | 'origin' - | 'origin-when-cross-origin' - | 'same-origin' - | 'strict-origin' - | 'strict-origin-when-cross-origin' - | 'unsafe-url' - -export type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin' - -export type RequestRedirect = 'error' | 'follow' | 'manual' - -export type RequestDuplex = 'half' - -export declare class Request extends BodyMixin { - constructor (input: RequestInfo, init?: RequestInit) - - readonly cache: RequestCache - readonly credentials: RequestCredentials - readonly destination: RequestDestination - readonly headers: Headers - readonly integrity: string - readonly method: string - readonly mode: RequestMode - readonly redirect: RequestRedirect - readonly referrer: string - readonly referrerPolicy: ReferrerPolicy - readonly url: string - - readonly keepalive: boolean - readonly signal: AbortSignal - readonly duplex: RequestDuplex - - readonly clone: () => Request -} - -export interface ResponseInit { - readonly status?: number - readonly statusText?: string - readonly headers?: HeadersInit -} - -export type ResponseType = - | 'basic' - | 'cors' - | 'default' - | 'error' - | 'opaque' - | 'opaqueredirect' - -export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308 - -export declare class Response extends BodyMixin { - constructor (body?: BodyInit, init?: ResponseInit) - - readonly headers: Headers - readonly ok: boolean - readonly status: number - readonly statusText: string - readonly type: ResponseType - readonly url: string - readonly redirected: boolean - - readonly clone: () => Response - - static error (): Response - static json (data: any, init?: ResponseInit): Response - static redirect (url: string | URL, status: ResponseRedirectStatus): Response -} diff --git a/node_modules/undici-types/formdata.d.ts b/node_modules/undici-types/formdata.d.ts deleted file mode 100644 index 030f548..0000000 --- a/node_modules/undici-types/formdata.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -// Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/FormData.ts (MIT) -/// - -import { File } from 'buffer' -import { SpecIterableIterator } from './fetch' - -/** - * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs. - */ -declare type FormDataEntryValue = string | File - -/** - * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch(). - */ -export declare class FormData { - /** - * Appends a new value onto an existing key inside a FormData object, - * or adds the key if it does not already exist. - * - * The difference between `set()` and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values. - * - * @param name The name of the field whose data is contained in `value`. - * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) - or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string. - * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. - */ - append (name: string, value: unknown, fileName?: string): void - - /** - * Set a new value for an existing key inside FormData, - * or add the new field if it does not already exist. - * - * @param name The name of the field whose data is contained in `value`. - * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) - or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string. - * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. - * - */ - set (name: string, value: unknown, fileName?: string): void - - /** - * Returns the first value associated with a given key from within a `FormData` object. - * If you expect multiple values and want all of them, use the `getAll()` method instead. - * - * @param {string} name A name of the value you want to retrieve. - * - * @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null. - */ - get (name: string): FormDataEntryValue | null - - /** - * Returns all the values associated with a given key from within a `FormData` object. - * - * @param {string} name A name of the value you want to retrieve. - * - * @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list. - */ - getAll (name: string): FormDataEntryValue[] - - /** - * Returns a boolean stating whether a `FormData` object contains a certain key. - * - * @param name A string representing the name of the key you want to test for. - * - * @return A boolean value. - */ - has (name: string): boolean - - /** - * Deletes a key and its value(s) from a `FormData` object. - * - * @param name The name of the key you want to delete. - */ - delete (name: string): void - - /** - * Executes given callback function for each field of the FormData instance - */ - forEach: ( - callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void, - thisArg?: unknown - ) => void - - /** - * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all keys contained in this `FormData` object. - * Each key is a `string`. - */ - keys: () => SpecIterableIterator - - /** - * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all values contained in this object `FormData` object. - * Each value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue). - */ - values: () => SpecIterableIterator - - /** - * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs. - * The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue). - */ - entries: () => SpecIterableIterator<[string, FormDataEntryValue]> - - /** - * An alias for FormData#entries() - */ - [Symbol.iterator]: () => SpecIterableIterator<[string, FormDataEntryValue]> - - readonly [Symbol.toStringTag]: string -} diff --git a/node_modules/undici-types/global-dispatcher.d.ts b/node_modules/undici-types/global-dispatcher.d.ts deleted file mode 100644 index 2760e13..0000000 --- a/node_modules/undici-types/global-dispatcher.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import Dispatcher from './dispatcher' - -declare function setGlobalDispatcher (dispatcher: DispatcherImplementation): void -declare function getGlobalDispatcher (): Dispatcher - -export { - getGlobalDispatcher, - setGlobalDispatcher -} diff --git a/node_modules/undici-types/global-origin.d.ts b/node_modules/undici-types/global-origin.d.ts deleted file mode 100644 index 265769b..0000000 --- a/node_modules/undici-types/global-origin.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare function setGlobalOrigin (origin: string | URL | undefined): void -declare function getGlobalOrigin (): URL | undefined - -export { - setGlobalOrigin, - getGlobalOrigin -} diff --git a/node_modules/undici-types/h2c-client.d.ts b/node_modules/undici-types/h2c-client.d.ts deleted file mode 100644 index e7a6808..0000000 --- a/node_modules/undici-types/h2c-client.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { URL } from 'url' -import Dispatcher from './dispatcher' -import buildConnector from './connector' - -type H2ClientOptions = Omit - -/** - * A basic H2C client, mapped on top a single TCP connection. Pipelining is disabled by default. - */ -export class H2CClient extends Dispatcher { - constructor (url: string | URL, options?: H2CClient.Options) - /** Property to get and set the pipelining factor. */ - pipelining: number - /** `true` after `client.close()` has been called. */ - closed: boolean - /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */ - destroyed: boolean - - // Override dispatcher APIs. - override connect ( - options: H2ClientOptions - ): Promise - override connect ( - options: H2ClientOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} - -export declare namespace H2CClient { - export interface Options { - /** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */ - maxHeaderSize?: number; - /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */ - headersTimeout?: number; - /** TODO */ - connectTimeout?: number; - /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */ - bodyTimeout?: number; - /** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */ - keepAliveTimeout?: number; - /** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */ - keepAliveMaxTimeout?: number; - /** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */ - keepAliveTimeoutThreshold?: number; - /** TODO */ - socketPath?: string; - /** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */ - pipelining?: number; - /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */ - strictContentLength?: boolean; - /** TODO */ - maxCachedSessions?: number; - /** TODO */ - connect?: Omit, 'allowH2'> | buildConnector.connector; - /** TODO */ - maxRequestsPerClient?: number; - /** TODO */ - localAddress?: string; - /** Max response body size in bytes, -1 is disabled */ - maxResponseSize?: number; - /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */ - autoSelectFamily?: boolean; - /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */ - autoSelectFamilyAttemptTimeout?: number; - /** - * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame. - * @default 100 - */ - maxConcurrentStreams?: number - } -} - -export default H2CClient diff --git a/node_modules/undici-types/handlers.d.ts b/node_modules/undici-types/handlers.d.ts deleted file mode 100644 index 8007dbf..0000000 --- a/node_modules/undici-types/handlers.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Dispatcher from './dispatcher' - -export declare class RedirectHandler implements Dispatcher.DispatchHandler { - constructor ( - dispatch: Dispatcher.Dispatch, - maxRedirections: number, - opts: Dispatcher.DispatchOptions, - handler: Dispatcher.DispatchHandler, - redirectionLimitReached: boolean - ) -} - -export declare class DecoratorHandler implements Dispatcher.DispatchHandler { - constructor (handler: Dispatcher.DispatchHandler) -} diff --git a/node_modules/undici-types/header.d.ts b/node_modules/undici-types/header.d.ts deleted file mode 100644 index efd7b1d..0000000 --- a/node_modules/undici-types/header.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { Autocomplete } from './utility' - -/** - * The header type declaration of `undici`. - */ -export type IncomingHttpHeaders = Record - -type HeaderNames = Autocomplete< - | 'Accept' - | 'Accept-CH' - | 'Accept-Charset' - | 'Accept-Encoding' - | 'Accept-Language' - | 'Accept-Patch' - | 'Accept-Post' - | 'Accept-Ranges' - | 'Access-Control-Allow-Credentials' - | 'Access-Control-Allow-Headers' - | 'Access-Control-Allow-Methods' - | 'Access-Control-Allow-Origin' - | 'Access-Control-Expose-Headers' - | 'Access-Control-Max-Age' - | 'Access-Control-Request-Headers' - | 'Access-Control-Request-Method' - | 'Age' - | 'Allow' - | 'Alt-Svc' - | 'Alt-Used' - | 'Authorization' - | 'Cache-Control' - | 'Clear-Site-Data' - | 'Connection' - | 'Content-Disposition' - | 'Content-Encoding' - | 'Content-Language' - | 'Content-Length' - | 'Content-Location' - | 'Content-Range' - | 'Content-Security-Policy' - | 'Content-Security-Policy-Report-Only' - | 'Content-Type' - | 'Cookie' - | 'Cross-Origin-Embedder-Policy' - | 'Cross-Origin-Opener-Policy' - | 'Cross-Origin-Resource-Policy' - | 'Date' - | 'Device-Memory' - | 'ETag' - | 'Expect' - | 'Expect-CT' - | 'Expires' - | 'Forwarded' - | 'From' - | 'Host' - | 'If-Match' - | 'If-Modified-Since' - | 'If-None-Match' - | 'If-Range' - | 'If-Unmodified-Since' - | 'Keep-Alive' - | 'Last-Modified' - | 'Link' - | 'Location' - | 'Max-Forwards' - | 'Origin' - | 'Permissions-Policy' - | 'Priority' - | 'Proxy-Authenticate' - | 'Proxy-Authorization' - | 'Range' - | 'Referer' - | 'Referrer-Policy' - | 'Retry-After' - | 'Sec-Fetch-Dest' - | 'Sec-Fetch-Mode' - | 'Sec-Fetch-Site' - | 'Sec-Fetch-User' - | 'Sec-Purpose' - | 'Sec-WebSocket-Accept' - | 'Server' - | 'Server-Timing' - | 'Service-Worker-Navigation-Preload' - | 'Set-Cookie' - | 'SourceMap' - | 'Strict-Transport-Security' - | 'TE' - | 'Timing-Allow-Origin' - | 'Trailer' - | 'Transfer-Encoding' - | 'Upgrade' - | 'Upgrade-Insecure-Requests' - | 'User-Agent' - | 'Vary' - | 'Via' - | 'WWW-Authenticate' - | 'X-Content-Type-Options' - | 'X-Frame-Options' -> - -type IANARegisteredMimeType = Autocomplete< - | 'audio/aac' - | 'video/x-msvideo' - | 'image/avif' - | 'video/av1' - | 'application/octet-stream' - | 'image/bmp' - | 'text/css' - | 'text/csv' - | 'application/vnd.ms-fontobject' - | 'application/epub+zip' - | 'image/gif' - | 'application/gzip' - | 'text/html' - | 'image/x-icon' - | 'text/calendar' - | 'image/jpeg' - | 'text/javascript' - | 'application/json' - | 'application/ld+json' - | 'audio/x-midi' - | 'audio/mpeg' - | 'video/mp4' - | 'video/mpeg' - | 'audio/ogg' - | 'video/ogg' - | 'application/ogg' - | 'audio/opus' - | 'font/otf' - | 'application/pdf' - | 'image/png' - | 'application/rtf' - | 'image/svg+xml' - | 'image/tiff' - | 'video/mp2t' - | 'font/ttf' - | 'text/plain' - | 'application/wasm' - | 'video/webm' - | 'audio/webm' - | 'image/webp' - | 'font/woff' - | 'font/woff2' - | 'application/xhtml+xml' - | 'application/xml' - | 'application/zip' - | 'video/3gpp' - | 'video/3gpp2' - | 'model/gltf+json' - | 'model/gltf-binary' -> - -type KnownHeaderValues = { - 'content-type': IANARegisteredMimeType -} - -export type HeaderRecord = { - [K in HeaderNames | Lowercase]?: Lowercase extends keyof KnownHeaderValues - ? KnownHeaderValues[Lowercase] - : string -} diff --git a/node_modules/undici-types/index.d.ts b/node_modules/undici-types/index.d.ts deleted file mode 100644 index be0bc28..0000000 --- a/node_modules/undici-types/index.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import Dispatcher from './dispatcher' -import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher' -import { setGlobalOrigin, getGlobalOrigin } from './global-origin' -import Pool from './pool' -import { RedirectHandler, DecoratorHandler } from './handlers' - -import BalancedPool from './balanced-pool' -import Client from './client' -import H2CClient from './h2c-client' -import buildConnector from './connector' -import errors from './errors' -import Agent from './agent' -import MockClient from './mock-client' -import MockPool from './mock-pool' -import MockAgent from './mock-agent' -import { SnapshotAgent } from './snapshot-agent' -import { MockCallHistory, MockCallHistoryLog } from './mock-call-history' -import mockErrors from './mock-errors' -import ProxyAgent from './proxy-agent' -import EnvHttpProxyAgent from './env-http-proxy-agent' -import RetryHandler from './retry-handler' -import RetryAgent from './retry-agent' -import { request, pipeline, stream, connect, upgrade } from './api' -import interceptors from './interceptors' - -export * from './util' -export * from './cookies' -export * from './eventsource' -export * from './fetch' -export * from './formdata' -export * from './diagnostics-channel' -export * from './websocket' -export * from './content-type' -export * from './cache' -export { Interceptable } from './mock-interceptor' - -declare function globalThisInstall (): void - -export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, SnapshotAgent, MockCallHistory, MockCallHistoryLog, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent, H2CClient, globalThisInstall as install } -export default Undici - -declare namespace Undici { - const Dispatcher: typeof import('./dispatcher').default - const Pool: typeof import('./pool').default - const RedirectHandler: typeof import ('./handlers').RedirectHandler - const DecoratorHandler: typeof import ('./handlers').DecoratorHandler - const RetryHandler: typeof import ('./retry-handler').default - const BalancedPool: typeof import('./balanced-pool').default - const Client: typeof import('./client').default - const H2CClient: typeof import('./h2c-client').default - const buildConnector: typeof import('./connector').default - const errors: typeof import('./errors').default - const Agent: typeof import('./agent').default - const setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher - const getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher - const request: typeof import('./api').request - const stream: typeof import('./api').stream - const pipeline: typeof import('./api').pipeline - const connect: typeof import('./api').connect - const upgrade: typeof import('./api').upgrade - const MockClient: typeof import('./mock-client').default - const MockPool: typeof import('./mock-pool').default - const MockAgent: typeof import('./mock-agent').default - const SnapshotAgent: typeof import('./snapshot-agent').SnapshotAgent - const MockCallHistory: typeof import('./mock-call-history').MockCallHistory - const MockCallHistoryLog: typeof import('./mock-call-history').MockCallHistoryLog - const mockErrors: typeof import('./mock-errors').default - const fetch: typeof import('./fetch').fetch - const Headers: typeof import('./fetch').Headers - const Response: typeof import('./fetch').Response - const Request: typeof import('./fetch').Request - const FormData: typeof import('./formdata').FormData - const caches: typeof import('./cache').caches - const interceptors: typeof import('./interceptors').default - const cacheStores: { - MemoryCacheStore: typeof import('./cache-interceptor').default.MemoryCacheStore, - SqliteCacheStore: typeof import('./cache-interceptor').default.SqliteCacheStore - } - const install: typeof globalThisInstall -} diff --git a/node_modules/undici-types/interceptors.d.ts b/node_modules/undici-types/interceptors.d.ts deleted file mode 100644 index 74389db..0000000 --- a/node_modules/undici-types/interceptors.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import CacheHandler from './cache-interceptor' -import Dispatcher from './dispatcher' -import RetryHandler from './retry-handler' -import { LookupOptions } from 'node:dns' - -export default Interceptors - -declare namespace Interceptors { - export type DumpInterceptorOpts = { maxSize?: number } - export type RetryInterceptorOpts = RetryHandler.RetryOptions - export type RedirectInterceptorOpts = { maxRedirections?: number } - export type DecompressInterceptorOpts = { - skipErrorResponses?: boolean - skipStatusCodes?: number[] - } - - export type ResponseErrorInterceptorOpts = { throwOnError: boolean } - export type CacheInterceptorOpts = CacheHandler.CacheOptions - - // DNS interceptor - export type DNSInterceptorRecord = { address: string, ttl: number, family: 4 | 6 } - export type DNSInterceptorOriginRecords = { 4: { ips: DNSInterceptorRecord[] } | null, 6: { ips: DNSInterceptorRecord[] } | null } - export type DNSInterceptorOpts = { - maxTTL?: number - maxItems?: number - lookup?: (hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, addresses: DNSInterceptorRecord[]) => void) => void - pick?: (origin: URL, records: DNSInterceptorOriginRecords, affinity: 4 | 6) => DNSInterceptorRecord - dualStack?: boolean - affinity?: 4 | 6 - } - - export function dump (opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function retry (opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function redirect (opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function decompress (opts?: DecompressInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function responseError (opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function dns (opts?: DNSInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function cache (opts?: CacheInterceptorOpts): Dispatcher.DispatcherComposeInterceptor -} diff --git a/node_modules/undici-types/mock-agent.d.ts b/node_modules/undici-types/mock-agent.d.ts deleted file mode 100644 index 330926b..0000000 --- a/node_modules/undici-types/mock-agent.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import Agent from './agent' -import Dispatcher from './dispatcher' -import { Interceptable, MockInterceptor } from './mock-interceptor' -import MockDispatch = MockInterceptor.MockDispatch -import { MockCallHistory } from './mock-call-history' - -export default MockAgent - -interface PendingInterceptor extends MockDispatch { - origin: string; -} - -/** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */ -declare class MockAgent extends Dispatcher { - constructor (options?: TMockAgentOptions) - /** Creates and retrieves mock Dispatcher instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned. */ - get(origin: string): TInterceptable - get(origin: RegExp): TInterceptable - get(origin: ((origin: string) => boolean)): TInterceptable - /** Dispatches a mocked request. */ - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - /** Closes the mock agent and waits for registered mock pools and clients to also close before resolving. */ - close (): Promise - /** Disables mocking in MockAgent. */ - deactivate (): void - /** Enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called. */ - activate (): void - /** Define host matchers so only matching requests that aren't intercepted by the mock dispatchers will be attempted. */ - enableNetConnect (): void - enableNetConnect (host: string): void - enableNetConnect (host: RegExp): void - enableNetConnect (host: ((host: string) => boolean)): void - /** Causes all requests to throw when requests are not matched in a MockAgent intercept. */ - disableNetConnect (): void - /** get call history. returns the MockAgent call history or undefined if the option is not enabled. */ - getCallHistory (): MockCallHistory | undefined - /** clear every call history. Any MockCallHistoryLog will be deleted on the MockCallHistory instance */ - clearCallHistory (): void - /** Enable call history. Any subsequence calls will then be registered. */ - enableCallHistory (): this - /** Disable call history. Any subsequence calls will then not be registered. */ - disableCallHistory (): this - pendingInterceptors (): PendingInterceptor[] - assertNoPendingInterceptors (options?: { - pendingInterceptorsFormatter?: PendingInterceptorsFormatter; - }): void -} - -interface PendingInterceptorsFormatter { - format(pendingInterceptors: readonly PendingInterceptor[]): string; -} - -declare namespace MockAgent { - /** MockAgent options. */ - export interface Options extends Agent.Options { - /** A custom agent to be encapsulated by the MockAgent. */ - agent?: Dispatcher; - - /** Ignore trailing slashes in the path */ - ignoreTrailingSlash?: boolean; - - /** Accept URLs with search parameters using non standard syntaxes. default false */ - acceptNonStandardSearchParameters?: boolean; - - /** Enable call history. you can either call MockAgent.enableCallHistory(). default false */ - enableCallHistory?: boolean - } -} diff --git a/node_modules/undici-types/mock-call-history.d.ts b/node_modules/undici-types/mock-call-history.d.ts deleted file mode 100644 index df07fa0..0000000 --- a/node_modules/undici-types/mock-call-history.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import Dispatcher from './dispatcher' - -declare namespace MockCallHistoryLog { - /** request's configuration properties */ - export type MockCallHistoryLogProperties = 'protocol' | 'host' | 'port' | 'origin' | 'path' | 'hash' | 'fullUrl' | 'method' | 'searchParams' | 'body' | 'headers' -} - -/** a log reflecting request configuration */ -declare class MockCallHistoryLog { - constructor (requestInit: Dispatcher.DispatchOptions) - /** protocol used. ie. 'https:' or 'http:' etc... */ - protocol: string - /** request's host. */ - host: string - /** request's port. */ - port: string - /** request's origin. ie. https://localhost:3000. */ - origin: string - /** path. never contains searchParams. */ - path: string - /** request's hash. */ - hash: string - /** the full url requested. */ - fullUrl: string - /** request's method. */ - method: string - /** search params. */ - searchParams: Record - /** request's body */ - body: string | null | undefined - /** request's headers */ - headers: Record | null | undefined - - /** returns an Map of property / value pair */ - toMap (): Map | null | undefined> - - /** returns a string computed with all key value pair */ - toString (): string -} - -declare namespace MockCallHistory { - export type FilterCallsOperator = 'AND' | 'OR' - - /** modify the filtering behavior */ - export interface FilterCallsOptions { - /** the operator to apply when filtering. 'OR' will adds any MockCallHistoryLog matching any criteria given. 'AND' will adds only MockCallHistoryLog matching every criteria given. (default 'OR') */ - operator?: FilterCallsOperator | Lowercase - } - /** a function to be executed for filtering MockCallHistoryLog */ - export type FilterCallsFunctionCriteria = (log: MockCallHistoryLog) => boolean - - /** parameter to filter MockCallHistoryLog */ - export type FilterCallsParameter = string | RegExp | undefined | null - - /** an object to execute multiple filtering at once */ - export interface FilterCallsObjectCriteria extends Record { - /** filter by request protocol. ie https: */ - protocol?: FilterCallsParameter; - /** filter by request host. */ - host?: FilterCallsParameter; - /** filter by request port. */ - port?: FilterCallsParameter; - /** filter by request origin. */ - origin?: FilterCallsParameter; - /** filter by request path. */ - path?: FilterCallsParameter; - /** filter by request hash. */ - hash?: FilterCallsParameter; - /** filter by request fullUrl. */ - fullUrl?: FilterCallsParameter; - /** filter by request method. */ - method?: FilterCallsParameter; - } -} - -/** a call history to track requests configuration */ -declare class MockCallHistory { - constructor (name: string) - /** returns an array of MockCallHistoryLog. */ - calls (): Array - /** returns the first MockCallHistoryLog */ - firstCall (): MockCallHistoryLog | undefined - /** returns the last MockCallHistoryLog. */ - lastCall (): MockCallHistoryLog | undefined - /** returns the nth MockCallHistoryLog. */ - nthCall (position: number): MockCallHistoryLog | undefined - /** return all MockCallHistoryLog matching any of criteria given. if an object is used with multiple properties, you can change the operator to apply during filtering on options */ - filterCalls (criteria: MockCallHistory.FilterCallsFunctionCriteria | MockCallHistory.FilterCallsObjectCriteria | RegExp, options?: MockCallHistory.FilterCallsOptions): Array - /** return all MockCallHistoryLog matching the given protocol. if a string is given, it is matched with includes */ - filterCallsByProtocol (protocol: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given host. if a string is given, it is matched with includes */ - filterCallsByHost (host: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given port. if a string is given, it is matched with includes */ - filterCallsByPort (port: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given origin. if a string is given, it is matched with includes */ - filterCallsByOrigin (origin: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given path. if a string is given, it is matched with includes */ - filterCallsByPath (path: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given hash. if a string is given, it is matched with includes */ - filterCallsByHash (hash: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given fullUrl. if a string is given, it is matched with includes */ - filterCallsByFullUrl (fullUrl: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given method. if a string is given, it is matched with includes */ - filterCallsByMethod (method: MockCallHistory.FilterCallsParameter): Array - /** clear all MockCallHistoryLog on this MockCallHistory. */ - clear (): void - /** use it with for..of loop or spread operator */ - [Symbol.iterator]: () => Generator -} - -export { MockCallHistoryLog, MockCallHistory } diff --git a/node_modules/undici-types/mock-client.d.ts b/node_modules/undici-types/mock-client.d.ts deleted file mode 100644 index 702e824..0000000 --- a/node_modules/undici-types/mock-client.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Client from './client' -import Dispatcher from './dispatcher' -import MockAgent from './mock-agent' -import { MockInterceptor, Interceptable } from './mock-interceptor' - -export default MockClient - -/** MockClient extends the Client API and allows one to mock requests. */ -declare class MockClient extends Client implements Interceptable { - constructor (origin: string, options: MockClient.Options) - /** Intercepts any matching requests that use the same origin as this mock client. */ - intercept (options: MockInterceptor.Options): MockInterceptor - /** Dispatches a mocked request. */ - dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean - /** Closes the mock client and gracefully waits for enqueued requests to complete. */ - close (): Promise - /** Clean up all the prepared mocks. */ - cleanMocks (): void -} - -declare namespace MockClient { - /** MockClient options. */ - export interface Options extends Client.Options { - /** The agent to associate this MockClient with. */ - agent: MockAgent; - } -} diff --git a/node_modules/undici-types/mock-errors.d.ts b/node_modules/undici-types/mock-errors.d.ts deleted file mode 100644 index eefeecd..0000000 --- a/node_modules/undici-types/mock-errors.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Errors from './errors' - -export default MockErrors - -declare namespace MockErrors { - /** The request does not match any registered mock dispatches. */ - export class MockNotMatchedError extends Errors.UndiciError { - constructor (message?: string) - name: 'MockNotMatchedError' - code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED' - } -} diff --git a/node_modules/undici-types/mock-interceptor.d.ts b/node_modules/undici-types/mock-interceptor.d.ts deleted file mode 100644 index a48d715..0000000 --- a/node_modules/undici-types/mock-interceptor.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { IncomingHttpHeaders } from './header' -import Dispatcher from './dispatcher' -import { BodyInit, Headers } from './fetch' - -/** The scope associated with a mock dispatch. */ -declare class MockScope { - constructor (mockDispatch: MockInterceptor.MockDispatch) - /** Delay a reply by a set amount of time in ms. */ - delay (waitInMs: number): MockScope - /** Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely. */ - persist (): MockScope - /** Define a reply for a set amount of matching requests. */ - times (repeatTimes: number): MockScope -} - -/** The interceptor for a Mock. */ -declare class MockInterceptor { - constructor (options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]) - /** Mock an undici request with the defined reply. */ - reply(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallback): MockScope - reply( - statusCode: number, - data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler, - responseOptions?: MockInterceptor.MockResponseOptions - ): MockScope - /** Mock an undici request by throwing the defined reply error. */ - replyWithError(error: TError): MockScope - /** Set default reply headers on the interceptor for subsequent mocked replies. */ - defaultReplyHeaders (headers: IncomingHttpHeaders): MockInterceptor - /** Set default reply trailers on the interceptor for subsequent mocked replies. */ - defaultReplyTrailers (trailers: Record): MockInterceptor - /** Set automatically calculated content-length header on subsequent mocked replies. */ - replyContentLength (): MockInterceptor -} - -declare namespace MockInterceptor { - /** MockInterceptor options. */ - export interface Options { - /** Path to intercept on. */ - path: string | RegExp | ((path: string) => boolean); - /** Method to intercept on. Defaults to GET. */ - method?: string | RegExp | ((method: string) => boolean); - /** Body to intercept on. */ - body?: string | RegExp | ((body: string) => boolean); - /** Headers to intercept on. */ - headers?: Record boolean)> | ((headers: Record) => boolean); - /** Query params to intercept on */ - query?: Record; - } - export interface MockDispatch extends Options { - times: number | null; - persist: boolean; - consumed: boolean; - data: MockDispatchData; - } - export interface MockDispatchData extends MockResponseOptions { - error: TError | null; - statusCode?: number; - data?: TData | string; - } - export interface MockResponseOptions { - headers?: IncomingHttpHeaders; - trailers?: Record; - } - - export interface MockResponseCallbackOptions { - path: string; - method: string; - headers?: Headers | Record; - origin?: string; - body?: BodyInit | Dispatcher.DispatchOptions['body'] | null; - } - - export type MockResponseDataHandler = ( - opts: MockResponseCallbackOptions - ) => TData | Buffer | string - - export type MockReplyOptionsCallback = ( - opts: MockResponseCallbackOptions - ) => { statusCode: number, data?: TData | Buffer | string, responseOptions?: MockResponseOptions } -} - -interface Interceptable extends Dispatcher { - /** Intercepts any matching requests that use the same origin as this mock client. */ - intercept(options: MockInterceptor.Options): MockInterceptor; - /** Clean up all the prepared mocks. */ - cleanMocks (): void -} - -export { - Interceptable, - MockInterceptor, - MockScope -} diff --git a/node_modules/undici-types/mock-pool.d.ts b/node_modules/undici-types/mock-pool.d.ts deleted file mode 100644 index f35f357..0000000 --- a/node_modules/undici-types/mock-pool.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Pool from './pool' -import MockAgent from './mock-agent' -import { Interceptable, MockInterceptor } from './mock-interceptor' -import Dispatcher from './dispatcher' - -export default MockPool - -/** MockPool extends the Pool API and allows one to mock requests. */ -declare class MockPool extends Pool implements Interceptable { - constructor (origin: string, options: MockPool.Options) - /** Intercepts any matching requests that use the same origin as this mock pool. */ - intercept (options: MockInterceptor.Options): MockInterceptor - /** Dispatches a mocked request. */ - dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean - /** Closes the mock pool and gracefully waits for enqueued requests to complete. */ - close (): Promise - /** Clean up all the prepared mocks. */ - cleanMocks (): void -} - -declare namespace MockPool { - /** MockPool options. */ - export interface Options extends Pool.Options { - /** The agent to associate this MockPool with. */ - agent: MockAgent; - } -} diff --git a/node_modules/undici-types/package.json b/node_modules/undici-types/package.json deleted file mode 100644 index a5e7d9d..0000000 --- a/node_modules/undici-types/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "undici-types", - "version": "7.16.0", - "description": "A stand-alone types package for Undici", - "homepage": "https://undici.nodejs.org", - "bugs": { - "url": "https://github.com/nodejs/undici/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/nodejs/undici.git" - }, - "license": "MIT", - "types": "index.d.ts", - "files": [ - "*.d.ts" - ], - "contributors": [ - { - "name": "Daniele Belardi", - "url": "https://github.com/dnlup", - "author": true - }, - { - "name": "Ethan Arrowood", - "url": "https://github.com/ethan-arrowood", - "author": true - }, - { - "name": "Matteo Collina", - "url": "https://github.com/mcollina", - "author": true - }, - { - "name": "Matthew Aitken", - "url": "https://github.com/KhafraDev", - "author": true - }, - { - "name": "Robert Nagy", - "url": "https://github.com/ronag", - "author": true - }, - { - "name": "Szymon Marczak", - "url": "https://github.com/szmarczak", - "author": true - }, - { - "name": "Tomas Della Vedova", - "url": "https://github.com/delvedor", - "author": true - } - ] -} \ No newline at end of file diff --git a/node_modules/undici-types/patch.d.ts b/node_modules/undici-types/patch.d.ts deleted file mode 100644 index 8f7acbb..0000000 --- a/node_modules/undici-types/patch.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// - -// See https://github.com/nodejs/undici/issues/1740 - -export interface EventInit { - bubbles?: boolean - cancelable?: boolean - composed?: boolean -} - -export interface EventListenerOptions { - capture?: boolean -} - -export interface AddEventListenerOptions extends EventListenerOptions { - once?: boolean - passive?: boolean - signal?: AbortSignal -} - -export type EventListenerOrEventListenerObject = EventListener | EventListenerObject - -export interface EventListenerObject { - handleEvent (object: Event): void -} - -export interface EventListener { - (evt: Event): void -} diff --git a/node_modules/undici-types/pool-stats.d.ts b/node_modules/undici-types/pool-stats.d.ts deleted file mode 100644 index f76a5f6..0000000 --- a/node_modules/undici-types/pool-stats.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import Pool from './pool' - -export default PoolStats - -declare class PoolStats { - constructor (pool: Pool) - /** Number of open socket connections in this pool. */ - connected: number - /** Number of open socket connections in this pool that do not have an active request. */ - free: number - /** Number of pending requests across all clients in this pool. */ - pending: number - /** Number of queued requests across all clients in this pool. */ - queued: number - /** Number of currently active requests across all clients in this pool. */ - running: number - /** Number of active, pending, or queued requests across all clients in this pool. */ - size: number -} diff --git a/node_modules/undici-types/pool.d.ts b/node_modules/undici-types/pool.d.ts deleted file mode 100644 index 5198476..0000000 --- a/node_modules/undici-types/pool.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import Client from './client' -import TPoolStats from './pool-stats' -import { URL } from 'url' -import Dispatcher from './dispatcher' - -export default Pool - -type PoolConnectOptions = Omit - -declare class Pool extends Dispatcher { - constructor (url: string | URL, options?: Pool.Options) - /** `true` after `pool.close()` has been called. */ - closed: boolean - /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ - destroyed: boolean - /** Aggregate stats for a Pool. */ - readonly stats: TPoolStats - - // Override dispatcher APIs. - override connect ( - options: PoolConnectOptions - ): Promise - override connect ( - options: PoolConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} - -declare namespace Pool { - export type PoolStats = TPoolStats - export interface Options extends Client.Options { - /** Default: `(origin, opts) => new Client(origin, opts)`. */ - factory?(origin: URL, opts: object): Dispatcher; - /** The max number of clients to create. `null` if no limit. Default `null`. */ - connections?: number | null; - /** The amount of time before a client is removed from the pool and closed. `null` if no time limit. Default `null` */ - clientTtl?: number | null; - - interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors'] - } -} diff --git a/node_modules/undici-types/proxy-agent.d.ts b/node_modules/undici-types/proxy-agent.d.ts deleted file mode 100644 index 4155542..0000000 --- a/node_modules/undici-types/proxy-agent.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import Agent from './agent' -import buildConnector from './connector' -import Dispatcher from './dispatcher' -import { IncomingHttpHeaders } from './header' - -export default ProxyAgent - -declare class ProxyAgent extends Dispatcher { - constructor (options: ProxyAgent.Options | string) - - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - close (): Promise -} - -declare namespace ProxyAgent { - export interface Options extends Agent.Options { - uri: string; - /** - * @deprecated use opts.token - */ - auth?: string; - token?: string; - headers?: IncomingHttpHeaders; - requestTls?: buildConnector.BuildOptions; - proxyTls?: buildConnector.BuildOptions; - clientFactory?(origin: URL, opts: object): Dispatcher; - proxyTunnel?: boolean; - } -} diff --git a/node_modules/undici-types/readable.d.ts b/node_modules/undici-types/readable.d.ts deleted file mode 100644 index e4f314b..0000000 --- a/node_modules/undici-types/readable.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Readable } from 'stream' -import { Blob } from 'buffer' - -export default BodyReadable - -declare class BodyReadable extends Readable { - constructor (opts: { - resume: (this: Readable, size: number) => void | null; - abort: () => void | null; - contentType?: string; - contentLength?: number; - highWaterMark?: number; - }) - - /** Consumes and returns the body as a string - * https://fetch.spec.whatwg.org/#dom-body-text - */ - text (): Promise - - /** Consumes and returns the body as a JavaScript Object - * https://fetch.spec.whatwg.org/#dom-body-json - */ - json (): Promise - - /** Consumes and returns the body as a Blob - * https://fetch.spec.whatwg.org/#dom-body-blob - */ - blob (): Promise - - /** Consumes and returns the body as an Uint8Array - * https://fetch.spec.whatwg.org/#dom-body-bytes - */ - bytes (): Promise - - /** Consumes and returns the body as an ArrayBuffer - * https://fetch.spec.whatwg.org/#dom-body-arraybuffer - */ - arrayBuffer (): Promise - - /** Not implemented - * - * https://fetch.spec.whatwg.org/#dom-body-formdata - */ - formData (): Promise - - /** Returns true if the body is not null and the body has been consumed - * - * Otherwise, returns false - * - * https://fetch.spec.whatwg.org/#dom-body-bodyused - */ - readonly bodyUsed: boolean - - /** - * If body is null, it should return null as the body - * - * If body is not null, should return the body as a ReadableStream - * - * https://fetch.spec.whatwg.org/#dom-body-body - */ - readonly body: never | undefined - - /** Dumps the response body by reading `limit` number of bytes. - * @param opts.limit Number of bytes to read (optional) - Default: 131072 - * @param opts.signal AbortSignal to cancel the operation (optional) - */ - dump (opts?: { limit: number; signal?: AbortSignal }): Promise -} diff --git a/node_modules/undici-types/retry-agent.d.ts b/node_modules/undici-types/retry-agent.d.ts deleted file mode 100644 index 82268c3..0000000 --- a/node_modules/undici-types/retry-agent.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Dispatcher from './dispatcher' -import RetryHandler from './retry-handler' - -export default RetryAgent - -declare class RetryAgent extends Dispatcher { - constructor (dispatcher: Dispatcher, options?: RetryHandler.RetryOptions) -} diff --git a/node_modules/undici-types/retry-handler.d.ts b/node_modules/undici-types/retry-handler.d.ts deleted file mode 100644 index 3bc484b..0000000 --- a/node_modules/undici-types/retry-handler.d.ts +++ /dev/null @@ -1,125 +0,0 @@ -import Dispatcher from './dispatcher' - -export default RetryHandler - -declare class RetryHandler implements Dispatcher.DispatchHandler { - constructor ( - options: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }, - retryHandlers: RetryHandler.RetryHandlers - ) -} - -declare namespace RetryHandler { - export type RetryState = { counter: number; } - - export type RetryContext = { - state: RetryState; - opts: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }; - } - - export type OnRetryCallback = (result?: Error | null) => void - - export type RetryCallback = ( - err: Error, - context: { - state: RetryState; - opts: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }; - }, - callback: OnRetryCallback - ) => void - - export interface RetryOptions { - /** - * If true, the retry handler will throw an error if the request fails, - * this will prevent the folling handlers from being called, and will destroy the socket. - * - * @type {boolean} - * @memberof RetryOptions - * @default true - */ - throwOnError?: boolean; - /** - * Callback to be invoked on every retry iteration. - * It receives the error, current state of the retry object and the options object - * passed when instantiating the retry handler. - * - * @type {RetryCallback} - * @memberof RetryOptions - */ - retry?: RetryCallback; - /** - * Maximum number of retries to allow. - * - * @type {number} - * @memberof RetryOptions - * @default 5 - */ - maxRetries?: number; - /** - * Max number of milliseconds allow between retries - * - * @type {number} - * @memberof RetryOptions - * @default 30000 - */ - maxTimeout?: number; - /** - * Initial number of milliseconds to wait before retrying for the first time. - * - * @type {number} - * @memberof RetryOptions - * @default 500 - */ - minTimeout?: number; - /** - * Factior to multiply the timeout factor between retries. - * - * @type {number} - * @memberof RetryOptions - * @default 2 - */ - timeoutFactor?: number; - /** - * It enables to automatically infer timeout between retries based on the `Retry-After` header. - * - * @type {boolean} - * @memberof RetryOptions - * @default true - */ - retryAfter?: boolean; - /** - * HTTP methods to retry. - * - * @type {Dispatcher.HttpMethod[]} - * @memberof RetryOptions - * @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'], - */ - methods?: Dispatcher.HttpMethod[]; - /** - * Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc. - * - * @type {string[]} - * @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE'] - */ - errorCodes?: string[]; - /** - * HTTP status codes to be retried. - * - * @type {number[]} - * @memberof RetryOptions - * @default [500, 502, 503, 504, 429], - */ - statusCodes?: number[]; - } - - export interface RetryHandlers { - dispatch: Dispatcher['dispatch']; - handler: Dispatcher.DispatchHandler; - } -} diff --git a/node_modules/undici-types/snapshot-agent.d.ts b/node_modules/undici-types/snapshot-agent.d.ts deleted file mode 100644 index f1d1ccd..0000000 --- a/node_modules/undici-types/snapshot-agent.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import MockAgent from './mock-agent' - -declare class SnapshotRecorder { - constructor (options?: SnapshotRecorder.Options) - - record (requestOpts: any, response: any): Promise - findSnapshot (requestOpts: any): SnapshotRecorder.Snapshot | undefined - loadSnapshots (filePath?: string): Promise - saveSnapshots (filePath?: string): Promise - clear (): void - getSnapshots (): SnapshotRecorder.Snapshot[] - size (): number - resetCallCounts (): void - deleteSnapshot (requestOpts: any): boolean - getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null - replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void - destroy (): void -} - -declare namespace SnapshotRecorder { - type SnapshotRecorderMode = 'record' | 'playback' | 'update' - - export interface Options { - snapshotPath?: string - mode?: SnapshotRecorderMode - maxSnapshots?: number - autoFlush?: boolean - flushInterval?: number - matchHeaders?: string[] - ignoreHeaders?: string[] - excludeHeaders?: string[] - matchBody?: boolean - matchQuery?: boolean - caseSensitive?: boolean - shouldRecord?: (requestOpts: any) => boolean - shouldPlayback?: (requestOpts: any) => boolean - excludeUrls?: (string | RegExp)[] - } - - export interface Snapshot { - request: { - method: string - url: string - headers: Record - body?: string - } - responses: { - statusCode: number - headers: Record - body: string - trailers: Record - }[] - callCount: number - timestamp: string - } - - export interface SnapshotInfo { - hash: string - request: { - method: string - url: string - headers: Record - body?: string - } - responseCount: number - callCount: number - timestamp: string - } - - export interface SnapshotData { - hash: string - snapshot: Snapshot - } -} - -declare class SnapshotAgent extends MockAgent { - constructor (options?: SnapshotAgent.Options) - - saveSnapshots (filePath?: string): Promise - loadSnapshots (filePath?: string): Promise - getRecorder (): SnapshotRecorder - getMode (): SnapshotRecorder.SnapshotRecorderMode - clearSnapshots (): void - resetCallCounts (): void - deleteSnapshot (requestOpts: any): boolean - getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null - replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void -} - -declare namespace SnapshotAgent { - export interface Options extends MockAgent.Options { - mode?: SnapshotRecorder.SnapshotRecorderMode - snapshotPath?: string - maxSnapshots?: number - autoFlush?: boolean - flushInterval?: number - matchHeaders?: string[] - ignoreHeaders?: string[] - excludeHeaders?: string[] - matchBody?: boolean - matchQuery?: boolean - caseSensitive?: boolean - shouldRecord?: (requestOpts: any) => boolean - shouldPlayback?: (requestOpts: any) => boolean - excludeUrls?: (string | RegExp)[] - } -} - -export { SnapshotAgent, SnapshotRecorder } diff --git a/node_modules/undici-types/util.d.ts b/node_modules/undici-types/util.d.ts deleted file mode 100644 index 8fc50cc..0000000 --- a/node_modules/undici-types/util.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export namespace util { - /** - * Retrieves a header name and returns its lowercase value. - * @param value Header name - */ - export function headerNameToString (value: string | Buffer): string - - /** - * Receives a header object and returns the parsed value. - * @param headers Header object - * @param obj Object to specify a proxy object. Used to assign parsed values. - * @returns If `obj` is specified, it is equivalent to `obj`. - */ - export function parseHeaders ( - headers: (Buffer | string | (Buffer | string)[])[], - obj?: Record - ): Record -} diff --git a/node_modules/undici-types/utility.d.ts b/node_modules/undici-types/utility.d.ts deleted file mode 100644 index bfb3ca7..0000000 --- a/node_modules/undici-types/utility.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -type AutocompletePrimitiveBaseType = - T extends string ? string : - T extends number ? number : - T extends boolean ? boolean : - never - -export type Autocomplete = T | (AutocompletePrimitiveBaseType & Record) diff --git a/node_modules/undici-types/webidl.d.ts b/node_modules/undici-types/webidl.d.ts deleted file mode 100644 index d2a8eb9..0000000 --- a/node_modules/undici-types/webidl.d.ts +++ /dev/null @@ -1,341 +0,0 @@ -// These types are not exported, and are only used internally -import * as undici from './index' - -/** - * Take in an unknown value and return one that is of type T - */ -type Converter = (object: unknown) => T - -type SequenceConverter = (object: unknown, iterable?: IterableIterator) => T[] - -type RecordConverter = (object: unknown) => Record - -interface WebidlErrors { - /** - * @description Instantiate an error - */ - exception (opts: { header: string, message: string }): TypeError - /** - * @description Instantiate an error when conversion from one type to another has failed - */ - conversionFailed (opts: { - prefix: string - argument: string - types: string[] - }): TypeError - /** - * @description Throw an error when an invalid argument is provided - */ - invalidArgument (opts: { - prefix: string - value: string - type: string - }): TypeError -} - -interface WebIDLTypes { - UNDEFINED: 1, - BOOLEAN: 2, - STRING: 3, - SYMBOL: 4, - NUMBER: 5, - BIGINT: 6, - NULL: 7 - OBJECT: 8 -} - -interface WebidlUtil { - /** - * @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values - */ - Type (object: unknown): WebIDLTypes[keyof WebIDLTypes] - - TypeValueToString (o: unknown): - | 'Undefined' - | 'Boolean' - | 'String' - | 'Symbol' - | 'Number' - | 'BigInt' - | 'Null' - | 'Object' - - Types: WebIDLTypes - - /** - * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint - */ - ConvertToInt ( - V: unknown, - bitLength: number, - signedness: 'signed' | 'unsigned', - flags?: number - ): number - - /** - * @see https://webidl.spec.whatwg.org/#abstract-opdef-integerpart - */ - IntegerPart (N: number): number - - /** - * Stringifies {@param V} - */ - Stringify (V: any): string - - MakeTypeAssertion (I: I): (arg: any) => arg is I - - /** - * Mark a value as uncloneable for Node.js. - * This is only effective in some newer Node.js versions. - */ - markAsUncloneable (V: any): void - - IsResizableArrayBuffer (V: ArrayBufferLike): boolean - - HasFlag (flag: number, attributes: number): boolean -} - -interface WebidlConverters { - /** - * @see https://webidl.spec.whatwg.org/#es-DOMString - */ - DOMString (V: unknown, prefix: string, argument: string, flags?: number): string - - /** - * @see https://webidl.spec.whatwg.org/#es-ByteString - */ - ByteString (V: unknown, prefix: string, argument: string): string - - /** - * @see https://webidl.spec.whatwg.org/#es-USVString - */ - USVString (V: unknown): string - - /** - * @see https://webidl.spec.whatwg.org/#es-boolean - */ - boolean (V: unknown): boolean - - /** - * @see https://webidl.spec.whatwg.org/#es-any - */ - any (V: Value): Value - - /** - * @see https://webidl.spec.whatwg.org/#es-long-long - */ - ['long long'] (V: unknown): number - - /** - * @see https://webidl.spec.whatwg.org/#es-unsigned-long-long - */ - ['unsigned long long'] (V: unknown): number - - /** - * @see https://webidl.spec.whatwg.org/#es-unsigned-long - */ - ['unsigned long'] (V: unknown): number - - /** - * @see https://webidl.spec.whatwg.org/#es-unsigned-short - */ - ['unsigned short'] (V: unknown, flags?: number): number - - /** - * @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer - */ - ArrayBuffer ( - V: unknown, - prefix: string, - argument: string, - options?: { allowResizable: boolean } - ): ArrayBuffer - - /** - * @see https://webidl.spec.whatwg.org/#idl-SharedArrayBuffer - */ - SharedArrayBuffer ( - V: unknown, - prefix: string, - argument: string, - options?: { allowResizable: boolean } - ): SharedArrayBuffer - - /** - * @see https://webidl.spec.whatwg.org/#es-buffer-source-types - */ - TypedArray ( - V: unknown, - T: new () => NodeJS.TypedArray, - prefix: string, - argument: string, - flags?: number - ): NodeJS.TypedArray - - /** - * @see https://webidl.spec.whatwg.org/#es-buffer-source-types - */ - DataView ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): DataView - - /** - * @see https://webidl.spec.whatwg.org/#es-buffer-source-types - */ - ArrayBufferView ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): NodeJS.ArrayBufferView - - /** - * @see https://webidl.spec.whatwg.org/#BufferSource - */ - BufferSource ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): ArrayBuffer | NodeJS.ArrayBufferView - - /** - * @see https://webidl.spec.whatwg.org/#AllowSharedBufferSource - */ - AllowSharedBufferSource ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): ArrayBuffer | SharedArrayBuffer | NodeJS.ArrayBufferView - - ['sequence']: SequenceConverter - - ['sequence>']: SequenceConverter - - ['record']: RecordConverter - - /** - * @see https://fetch.spec.whatwg.org/#requestinfo - */ - RequestInfo (V: unknown): undici.Request | string - - /** - * @see https://fetch.spec.whatwg.org/#requestinit - */ - RequestInit (V: unknown): undici.RequestInit - - /** - * @see https://html.spec.whatwg.org/multipage/webappapis.html#eventhandlernonnull - */ - EventHandlerNonNull (V: unknown): Function | null - - WebSocketStreamWrite (V: unknown): ArrayBuffer | NodeJS.TypedArray | string - - [Key: string]: (...args: any[]) => unknown -} - -type WebidlIsFunction = (arg: any) => arg is T - -interface WebidlIs { - Request: WebidlIsFunction - Response: WebidlIsFunction - ReadableStream: WebidlIsFunction - Blob: WebidlIsFunction - URLSearchParams: WebidlIsFunction - File: WebidlIsFunction - FormData: WebidlIsFunction - URL: WebidlIsFunction - WebSocketError: WebidlIsFunction - AbortSignal: WebidlIsFunction - MessagePort: WebidlIsFunction - USVString: WebidlIsFunction - /** - * @see https://webidl.spec.whatwg.org/#BufferSource - */ - BufferSource: WebidlIsFunction -} - -export interface Webidl { - errors: WebidlErrors - util: WebidlUtil - converters: WebidlConverters - is: WebidlIs - attributes: WebIDLExtendedAttributes - - /** - * @description Performs a brand-check on {@param V} to ensure it is a - * {@param cls} object. - */ - brandCheck unknown>(V: unknown, cls: Interface): asserts V is Interface - - brandCheckMultiple unknown)[]> (list: Interfaces): (V: any) => asserts V is Interfaces[number] - - /** - * @see https://webidl.spec.whatwg.org/#es-sequence - * @description Convert a value, V, to a WebIDL sequence type. - */ - sequenceConverter (C: Converter): SequenceConverter - - illegalConstructor (): never - - /** - * @see https://webidl.spec.whatwg.org/#es-to-record - * @description Convert a value, V, to a WebIDL record type. - */ - recordConverter ( - keyConverter: Converter, - valueConverter: Converter - ): RecordConverter - - /** - * Similar to {@link Webidl.brandCheck} but allows skipping the check if third party - * interfaces are allowed. - */ - interfaceConverter (typeCheck: WebidlIsFunction, name: string): ( - V: unknown, - prefix: string, - argument: string - ) => asserts V is Interface - - // TODO(@KhafraDev): a type could likely be implemented that can infer the return type - // from the converters given? - /** - * Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are - * allowed, values allowed, optional and required keys. Auto converts the value to - * a type given a converter. - */ - dictionaryConverter (converters: { - key: string, - defaultValue?: () => unknown, - required?: boolean, - converter: (...args: unknown[]) => unknown, - allowedValues?: unknown[] - }[]): (V: unknown) => Record - - /** - * @see https://webidl.spec.whatwg.org/#idl-nullable-type - * @description allows a type, V, to be null - */ - nullableConverter ( - converter: Converter - ): (V: unknown) => ReturnType | null - - argumentLengthCheck (args: { length: number }, min: number, context: string): void -} - -interface WebIDLExtendedAttributes { - /** https://webidl.spec.whatwg.org/#Clamp */ - Clamp: number - /** https://webidl.spec.whatwg.org/#EnforceRange */ - EnforceRange: number - /** https://webidl.spec.whatwg.org/#AllowShared */ - AllowShared: number - /** https://webidl.spec.whatwg.org/#AllowResizable */ - AllowResizable: number - /** https://webidl.spec.whatwg.org/#LegacyNullToEmptyString */ - LegacyNullToEmptyString: number -} diff --git a/node_modules/undici-types/websocket.d.ts b/node_modules/undici-types/websocket.d.ts deleted file mode 100644 index a8477c1..0000000 --- a/node_modules/undici-types/websocket.d.ts +++ /dev/null @@ -1,186 +0,0 @@ -/// - -import type { Blob } from 'buffer' -import type { ReadableStream, WritableStream } from 'stream/web' -import type { MessagePort } from 'worker_threads' -import { - EventInit, - EventListenerOptions, - AddEventListenerOptions, - EventListenerOrEventListenerObject -} from './patch' -import Dispatcher from './dispatcher' -import { HeadersInit } from './fetch' - -export type BinaryType = 'blob' | 'arraybuffer' - -interface WebSocketEventMap { - close: CloseEvent - error: ErrorEvent - message: MessageEvent - open: Event -} - -interface WebSocket extends EventTarget { - binaryType: BinaryType - - readonly bufferedAmount: number - readonly extensions: string - - onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null - onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null - onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null - onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null - - readonly protocol: string - readonly readyState: number - readonly url: string - - close(code?: number, reason?: string): void - send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void - - readonly CLOSED: number - readonly CLOSING: number - readonly CONNECTING: number - readonly OPEN: number - - addEventListener( - type: K, - listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, - options?: boolean | AddEventListenerOptions - ): void - addEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | AddEventListenerOptions - ): void - removeEventListener( - type: K, - listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, - options?: boolean | EventListenerOptions - ): void - removeEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | EventListenerOptions - ): void -} - -export declare const WebSocket: { - prototype: WebSocket - new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket - readonly CLOSED: number - readonly CLOSING: number - readonly CONNECTING: number - readonly OPEN: number -} - -interface CloseEventInit extends EventInit { - code?: number - reason?: string - wasClean?: boolean -} - -interface CloseEvent extends Event { - readonly code: number - readonly reason: string - readonly wasClean: boolean -} - -export declare const CloseEvent: { - prototype: CloseEvent - new (type: string, eventInitDict?: CloseEventInit): CloseEvent -} - -interface MessageEventInit extends EventInit { - data?: T - lastEventId?: string - origin?: string - ports?: (typeof MessagePort)[] - source?: typeof MessagePort | null -} - -interface MessageEvent extends Event { - readonly data: T - readonly lastEventId: string - readonly origin: string - readonly ports: ReadonlyArray - readonly source: typeof MessagePort | null - initMessageEvent( - type: string, - bubbles?: boolean, - cancelable?: boolean, - data?: any, - origin?: string, - lastEventId?: string, - source?: typeof MessagePort | null, - ports?: (typeof MessagePort)[] - ): void; -} - -export declare const MessageEvent: { - prototype: MessageEvent - new(type: string, eventInitDict?: MessageEventInit): MessageEvent -} - -interface ErrorEventInit extends EventInit { - message?: string - filename?: string - lineno?: number - colno?: number - error?: any -} - -interface ErrorEvent extends Event { - readonly message: string - readonly filename: string - readonly lineno: number - readonly colno: number - readonly error: Error -} - -export declare const ErrorEvent: { - prototype: ErrorEvent - new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent -} - -interface WebSocketInit { - protocols?: string | string[], - dispatcher?: Dispatcher, - headers?: HeadersInit -} - -interface WebSocketStreamOptions { - protocols?: string | string[] - signal?: AbortSignal -} - -interface WebSocketCloseInfo { - closeCode: number - reason: string -} - -interface WebSocketStream { - closed: Promise - opened: Promise<{ - extensions: string - protocol: string - readable: ReadableStream - writable: WritableStream - }> - url: string -} - -export declare const WebSocketStream: { - prototype: WebSocketStream - new (url: string | URL, options?: WebSocketStreamOptions): WebSocketStream -} - -interface WebSocketError extends Event, WebSocketCloseInfo {} - -export declare const WebSocketError: { - prototype: WebSocketError - new (type: string, init?: WebSocketCloseInfo): WebSocketError -} - -export declare const ping: (ws: WebSocket, body?: Buffer) => void diff --git a/node_modules/uri-js/LICENSE b/node_modules/uri-js/LICENSE deleted file mode 100755 index 9338bde..0000000 --- a/node_modules/uri-js/LICENSE +++ /dev/null @@ -1,11 +0,0 @@ -Copyright 2011 Gary Court. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY GARY COURT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Gary Court. diff --git a/node_modules/uri-js/README.md b/node_modules/uri-js/README.md deleted file mode 100755 index 43e648b..0000000 --- a/node_modules/uri-js/README.md +++ /dev/null @@ -1,203 +0,0 @@ -# URI.js - -URI.js is an [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt) compliant, scheme extendable URI parsing/validating/resolving library for all JavaScript environments (browsers, Node.js, etc). -It is also compliant with the IRI ([RFC 3987](http://www.ietf.org/rfc/rfc3987.txt)), IDNA ([RFC 5890](http://www.ietf.org/rfc/rfc5890.txt)), IPv6 Address ([RFC 5952](http://www.ietf.org/rfc/rfc5952.txt)), IPv6 Zone Identifier ([RFC 6874](http://www.ietf.org/rfc/rfc6874.txt)) specifications. - -URI.js has an extensive test suite, and works in all (Node.js, web) environments. It weighs in at 6.4kb (gzipped, 17kb deflated). - -## API - -### Parsing - - URI.parse("uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body"); - //returns: - //{ - // scheme : "uri", - // userinfo : "user:pass", - // host : "example.com", - // port : 123, - // path : "/one/two.three", - // query : "q1=a1&q2=a2", - // fragment : "body" - //} - -### Serializing - - URI.serialize({scheme : "http", host : "example.com", fragment : "footer"}) === "http://example.com/#footer" - -### Resolving - - URI.resolve("uri://a/b/c/d?q", "../../g") === "uri://a/g" - -### Normalizing - - URI.normalize("HTTP://ABC.com:80/%7Esmith/home.html") === "http://abc.com/~smith/home.html" - -### Comparison - - URI.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d") === true - -### IP Support - - //IPv4 normalization - URI.normalize("//192.068.001.000") === "//192.68.1.0" - - //IPv6 normalization - URI.normalize("//[2001:0:0DB8::0:0001]") === "//[2001:0:db8::1]" - - //IPv6 zone identifier support - URI.parse("//[2001:db8::7%25en1]"); - //returns: - //{ - // host : "2001:db8::7%en1" - //} - -### IRI Support - - //convert IRI to URI - URI.serialize(URI.parse("http://examplé.org/rosé")) === "http://xn--exampl-gva.org/ros%C3%A9" - //convert URI to IRI - URI.serialize(URI.parse("http://xn--exampl-gva.org/ros%C3%A9"), {iri:true}) === "http://examplé.org/rosé" - -### Options - -All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties: - -* `scheme` (string) - - Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior. - -* `reference` (string) - - If set to `"suffix"`, it indicates that the URI is in the suffix format, and the validator will use the option's `scheme` property to determine the URI's scheme. - -* `tolerant` (boolean, false) - - If set to `true`, the parser will relax URI resolving rules. - -* `absolutePath` (boolean, false) - - If set to `true`, the serializer will not resolve a relative `path` component. - -* `iri` (boolean, false) - - If set to `true`, the serializer will unescape non-ASCII characters as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `unicodeSupport` (boolean, false) - - If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `domainHost` (boolean, false) - - If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt). - -## Scheme Extendable - -URI.js supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme) dependent processing rules. Currently, URI.js has built in support for the following schemes: - -* http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\] -* https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\] -* ws \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\] -* wss \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\] -* mailto \[[RFC 6068](http://www.ietf.org/rfc/rfc6068.txt)\] -* urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\] -* urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\] - -### HTTP/HTTPS Support - - URI.equal("HTTP://ABC.COM:80", "http://abc.com/") === true - URI.equal("https://abc.com", "HTTPS://ABC.COM:443/") === true - -### WS/WSS Support - - URI.parse("wss://example.com/foo?bar=baz"); - //returns: - //{ - // scheme : "wss", - // host: "example.com", - // resourceName: "/foo?bar=baz", - // secure: true, - //} - - URI.equal("WS://ABC.COM:80/chat#one", "ws://abc.com/chat") === true - -### Mailto Support - - URI.parse("mailto:alpha@example.com,bravo@example.com?subject=SUBSCRIBE&body=Sign%20me%20up!"); - //returns: - //{ - // scheme : "mailto", - // to : ["alpha@example.com", "bravo@example.com"], - // subject : "SUBSCRIBE", - // body : "Sign me up!" - //} - - URI.serialize({ - scheme : "mailto", - to : ["alpha@example.com"], - subject : "REMOVE", - body : "Please remove me", - headers : { - cc : "charlie@example.com" - } - }) === "mailto:alpha@example.com?cc=charlie@example.com&subject=REMOVE&body=Please%20remove%20me" - -### URN Support - - URI.parse("urn:example:foo"); - //returns: - //{ - // scheme : "urn", - // nid : "example", - // nss : "foo", - //} - -#### URN UUID Support - - URI.parse("urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"); - //returns: - //{ - // scheme : "urn", - // nid : "uuid", - // uuid : "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", - //} - -## Usage - -To load in a browser, use the following tag: - - - -To load in a CommonJS/Module environment, first install with npm/yarn by running on the command line: - - npm install uri-js - # OR - yarn add uri-js - -Then, in your code, load it using: - - const URI = require("uri-js"); - -If you are writing your code in ES6+ (ESNEXT) or TypeScript, you would load it using: - - import * as URI from "uri-js"; - -Or you can load just what you need using named exports: - - import { parse, serialize, resolve, resolveComponents, normalize, equal, removeDotSegments, pctEncChar, pctDecChars, escapeComponent, unescapeComponent } from "uri-js"; - -## Breaking changes - -### Breaking changes from 3.x - -URN parsing has been completely changed to better align with the specification. Scheme is now always `urn`, but has two new properties: `nid` which contains the Namspace Identifier, and `nss` which contains the Namespace Specific String. The `nss` property will be removed by higher order scheme handlers, such as the UUID URN scheme handler. - -The UUID of a URN can now be found in the `uuid` property. - -### Breaking changes from 2.x - -URI validation has been removed as it was slow, exposed a vulnerabilty, and was generally not useful. - -### Breaking changes from 1.x - -The `errors` array on parsed components is now an `error` string. diff --git a/node_modules/uri-js/dist/es5/uri.all.d.ts b/node_modules/uri-js/dist/es5/uri.all.d.ts deleted file mode 100755 index da51e23..0000000 --- a/node_modules/uri-js/dist/es5/uri.all.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -export interface URIComponents { - scheme?: string; - userinfo?: string; - host?: string; - port?: number | string; - path?: string; - query?: string; - fragment?: string; - reference?: string; - error?: string; -} -export interface URIOptions { - scheme?: string; - reference?: string; - tolerant?: boolean; - absolutePath?: boolean; - iri?: boolean; - unicodeSupport?: boolean; - domainHost?: boolean; -} -export interface URISchemeHandler { - scheme: string; - parse(components: ParentComponents, options: Options): Components; - serialize(components: Components, options: Options): ParentComponents; - unicodeSupport?: boolean; - domainHost?: boolean; - absolutePath?: boolean; -} -export interface URIRegExps { - NOT_SCHEME: RegExp; - NOT_USERINFO: RegExp; - NOT_HOST: RegExp; - NOT_PATH: RegExp; - NOT_PATH_NOSCHEME: RegExp; - NOT_QUERY: RegExp; - NOT_FRAGMENT: RegExp; - ESCAPE: RegExp; - UNRESERVED: RegExp; - OTHER_CHARS: RegExp; - PCT_ENCODED: RegExp; - IPV4ADDRESS: RegExp; - IPV6ADDRESS: RegExp; -} -export declare const SCHEMES: { - [scheme: string]: URISchemeHandler; -}; -export declare function pctEncChar(chr: string): string; -export declare function pctDecChars(str: string): string; -export declare function parse(uriString: string, options?: URIOptions): URIComponents; -export declare function removeDotSegments(input: string): string; -export declare function serialize(components: URIComponents, options?: URIOptions): string; -export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents; -export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string; -export declare function normalize(uri: string, options?: URIOptions): string; -export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents; -export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean; -export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean; -export declare function escapeComponent(str: string, options?: URIOptions): string; -export declare function unescapeComponent(str: string, options?: URIOptions): string; diff --git a/node_modules/uri-js/dist/es5/uri.all.js b/node_modules/uri-js/dist/es5/uri.all.js deleted file mode 100755 index 0706116..0000000 --- a/node_modules/uri-js/dist/es5/uri.all.js +++ /dev/null @@ -1,1443 +0,0 @@ -/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (factory((global.URI = global.URI || {}))); -}(this, (function (exports) { 'use strict'; - -function merge() { - for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) { - sets[_key] = arguments[_key]; - } - - if (sets.length > 1) { - sets[0] = sets[0].slice(0, -1); - var xl = sets.length - 1; - for (var x = 1; x < xl; ++x) { - sets[x] = sets[x].slice(1, -1); - } - sets[xl] = sets[xl].slice(1); - return sets.join(''); - } else { - return sets[0]; - } -} -function subexp(str) { - return "(?:" + str + ")"; -} -function typeOf(o) { - return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase(); -} -function toUpperCase(str) { - return str.toUpperCase(); -} -function toArray(obj) { - return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : []; -} -function assign(target, source) { - var obj = target; - if (source) { - for (var key in source) { - obj[key] = source[key]; - } - } - return obj; -} - -function buildExps(isIRI) { - var ALPHA$$ = "[A-Za-z]", - CR$ = "[\\x0D]", - DIGIT$$ = "[0-9]", - DQUOTE$$ = "[\\x22]", - HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), - //case-insensitive - LF$$ = "[\\x0A]", - SP$$ = "[\\x20]", - PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), - //expanded - GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", - SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", - RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), - UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", - //subset, excludes bidi control characters - IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", - //subset - UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), - SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), - USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), - DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), - DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), - //relaxed parsing rules - IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), - H16$ = subexp(HEXDIG$$ + "{1,4}"), - LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), - IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), - // 6( h16 ":" ) ls32 - IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), - // "::" 5( h16 ":" ) ls32 - IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), - //[ h16 ] "::" 4( h16 ":" ) ls32 - IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), - //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 - IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), - //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 - IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), - //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 - IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), - //[ *4( h16 ":" ) h16 ] "::" ls32 - IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), - //[ *5( h16 ":" ) h16 ] "::" h16 - IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), - //[ *6( h16 ":" ) h16 ] "::" - IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), - ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), - //RFC 6874 - IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), - //RFC 6874 - IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), - //RFC 6874, with relaxed parsing rules - IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), - IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), - //RFC 6874 - REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), - HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), - PORT$ = subexp(DIGIT$$ + "*"), - AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), - PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), - SEGMENT$ = subexp(PCHAR$ + "*"), - SEGMENT_NZ$ = subexp(PCHAR$ + "+"), - SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), - PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), - PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), - //simplified - PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), - //simplified - PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), - //simplified - PATH_EMPTY$ = "(?!" + PCHAR$ + ")", - PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), - QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), - FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), - HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), - URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), - RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), - RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), - URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), - ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), - GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", - RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", - ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", - SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", - AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$"; - return { - NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"), - NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"), - NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"), - ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"), - UNRESERVED: new RegExp(UNRESERVED$$, "g"), - OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"), - PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"), - IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"), - IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules - }; -} -var URI_PROTOCOL = buildExps(false); - -var IRI_PROTOCOL = buildExps(true); - -var slicedToArray = function () { - function sliceIterator(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"]) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; - } - - return function (arr, i) { - if (Array.isArray(arr)) { - return arr; - } else if (Symbol.iterator in Object(arr)) { - return sliceIterator(arr, i); - } else { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); - } - }; -}(); - - - - - - - - - - - - - -var toConsumableArray = function (arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; - - return arr2; - } else { - return Array.from(arr); - } -}; - -/** Highest positive signed 32-bit float value */ - -var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 - -/** Bootstring parameters */ -var base = 36; -var tMin = 1; -var tMax = 26; -var skew = 38; -var damp = 700; -var initialBias = 72; -var initialN = 128; // 0x80 -var delimiter = '-'; // '\x2D' - -/** Regular expressions */ -var regexPunycode = /^xn--/; -var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars -var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators - -/** Error messages */ -var errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' -}; - -/** Convenience shortcuts */ -var baseMinusTMin = base - tMin; -var floor = Math.floor; -var stringFromCharCode = String.fromCharCode; - -/*--------------------------------------------------------------------------*/ - -/** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ -function error$1(type) { - throw new RangeError(errors[type]); -} - -/** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ -function map(array, fn) { - var result = []; - var length = array.length; - while (length--) { - result[length] = fn(array[length]); - } - return result; -} - -/** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ -function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; -} - -/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ -function ucs2decode(string) { - var output = []; - var counter = 0; - var length = string.length; - while (counter < length) { - var value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // It's a high surrogate, and there is a next character. - var extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { - // Low surrogate. - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // It's an unmatched surrogate; only append this code unit, in case the - // next code unit is the high surrogate of a surrogate pair. - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; -} - -/** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ -var ucs2encode = function ucs2encode(array) { - return String.fromCodePoint.apply(String, toConsumableArray(array)); -}; - -/** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ -var basicToDigit = function basicToDigit(codePoint) { - if (codePoint - 0x30 < 0x0A) { - return codePoint - 0x16; - } - if (codePoint - 0x41 < 0x1A) { - return codePoint - 0x41; - } - if (codePoint - 0x61 < 0x1A) { - return codePoint - 0x61; - } - return base; -}; - -/** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ -var digitToBasic = function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); -}; - -/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ -var adapt = function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); -}; - -/** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ -var decode = function decode(input) { - // Don't use UCS-2. - var output = []; - var inputLength = input.length; - var i = 0; - var n = initialN; - var bias = initialBias; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - var basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (var j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error$1('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{ - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - var oldi = i; - for (var w = 1, k = base;; /* no condition */k += base) { - - if (index >= inputLength) { - error$1('invalid-input'); - } - - var digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error$1('overflow'); - } - - i += digit * w; - var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; - - if (digit < t) { - break; - } - - var baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error$1('overflow'); - } - - w *= baseMinusT; - } - - var out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error$1('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output. - output.splice(i++, 0, n); - } - - return String.fromCodePoint.apply(String, output); -}; - -/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ -var encode = function encode(input) { - var output = []; - - // Convert the input in UCS-2 to an array of Unicode code points. - input = ucs2decode(input); - - // Cache the length. - var inputLength = input.length; - - // Initialize the state. - var n = initialN; - var delta = 0; - var bias = initialBias; - - // Handle the basic code points. - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var _currentValue2 = _step.value; - - if (_currentValue2 < 0x80) { - output.push(stringFromCharCode(_currentValue2)); - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - var basicLength = output.length; - var handledCPCount = basicLength; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string with a delimiter unless it's empty. - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - var m = maxInt; - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - - try { - for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var currentValue = _step2.value; - - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow. - } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; - } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } - } - - var handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error$1('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - var _iteratorNormalCompletion3 = true; - var _didIteratorError3 = false; - var _iteratorError3 = undefined; - - try { - for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { - var _currentValue = _step3.value; - - if (_currentValue < n && ++delta > maxInt) { - error$1('overflow'); - } - if (_currentValue == n) { - // Represent delta as a generalized variable-length integer. - var q = delta; - for (var k = base;; /* no condition */k += base) { - var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; - if (q < t) { - break; - } - var qMinusT = q - t; - var baseMinusT = base - t; - output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - } catch (err) { - _didIteratorError3 = true; - _iteratorError3 = err; - } finally { - try { - if (!_iteratorNormalCompletion3 && _iterator3.return) { - _iterator3.return(); - } - } finally { - if (_didIteratorError3) { - throw _iteratorError3; - } - } - } - - ++delta; - ++n; - } - return output.join(''); -}; - -/** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ -var toUnicode = function toUnicode(input) { - return mapDomain(input, function (string) { - return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; - }); -}; - -/** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ -var toASCII = function toASCII(input) { - return mapDomain(input, function (string) { - return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; - }); -}; - -/*--------------------------------------------------------------------------*/ - -/** Define the public API */ -var punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '2.1.0', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode -}; - -/** - * URI.js - * - * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript. - * @author Gary Court - * @see http://github.com/garycourt/uri-js - */ -/** - * Copyright 2011 Gary Court. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are - * permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * The views and conclusions contained in the software and documentation are those of the - * authors and should not be interpreted as representing official policies, either expressed - * or implied, of Gary Court. - */ -var SCHEMES = {}; -function pctEncChar(chr) { - var c = chr.charCodeAt(0); - var e = void 0; - if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase(); - return e; -} -function pctDecChars(str) { - var newStr = ""; - var i = 0; - var il = str.length; - while (i < il) { - var c = parseInt(str.substr(i + 1, 2), 16); - if (c < 128) { - newStr += String.fromCharCode(c); - i += 3; - } else if (c >= 194 && c < 224) { - if (il - i >= 6) { - var c2 = parseInt(str.substr(i + 4, 2), 16); - newStr += String.fromCharCode((c & 31) << 6 | c2 & 63); - } else { - newStr += str.substr(i, 6); - } - i += 6; - } else if (c >= 224) { - if (il - i >= 9) { - var _c = parseInt(str.substr(i + 4, 2), 16); - var c3 = parseInt(str.substr(i + 7, 2), 16); - newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63); - } else { - newStr += str.substr(i, 9); - } - i += 9; - } else { - newStr += str.substr(i, 3); - i += 3; - } - } - return newStr; -} -function _normalizeComponentEncoding(components, protocol) { - function decodeUnreserved(str) { - var decStr = pctDecChars(str); - return !decStr.match(protocol.UNRESERVED) ? str : decStr; - } - if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, ""); - if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - return components; -} - -function _stripLeadingZeros(str) { - return str.replace(/^0*(.*)/, "$1") || "0"; -} -function _normalizeIPv4(host, protocol) { - var matches = host.match(protocol.IPV4ADDRESS) || []; - - var _matches = slicedToArray(matches, 2), - address = _matches[1]; - - if (address) { - return address.split(".").map(_stripLeadingZeros).join("."); - } else { - return host; - } -} -function _normalizeIPv6(host, protocol) { - var matches = host.match(protocol.IPV6ADDRESS) || []; - - var _matches2 = slicedToArray(matches, 3), - address = _matches2[1], - zone = _matches2[2]; - - if (address) { - var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(), - _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), - last = _address$toLowerCase$2[0], - first = _address$toLowerCase$2[1]; - - var firstFields = first ? first.split(":").map(_stripLeadingZeros) : []; - var lastFields = last.split(":").map(_stripLeadingZeros); - var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]); - var fieldCount = isLastFieldIPv4Address ? 7 : 8; - var lastFieldsStart = lastFields.length - fieldCount; - var fields = Array(fieldCount); - for (var x = 0; x < fieldCount; ++x) { - fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || ''; - } - if (isLastFieldIPv4Address) { - fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol); - } - var allZeroFields = fields.reduce(function (acc, field, index) { - if (!field || field === "0") { - var lastLongest = acc[acc.length - 1]; - if (lastLongest && lastLongest.index + lastLongest.length === index) { - lastLongest.length++; - } else { - acc.push({ index: index, length: 1 }); - } - } - return acc; - }, []); - var longestZeroFields = allZeroFields.sort(function (a, b) { - return b.length - a.length; - })[0]; - var newHost = void 0; - if (longestZeroFields && longestZeroFields.length > 1) { - var newFirst = fields.slice(0, longestZeroFields.index); - var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length); - newHost = newFirst.join(":") + "::" + newLast.join(":"); - } else { - newHost = fields.join(":"); - } - if (zone) { - newHost += "%" + zone; - } - return newHost; - } else { - return host; - } -} -var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i; -var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined; -function parse(uriString) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var components = {}; - var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; - if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString; - var matches = uriString.match(URI_PARSE); - if (matches) { - if (NO_MATCH_IS_UNDEFINED) { - //store each component - components.scheme = matches[1]; - components.userinfo = matches[3]; - components.host = matches[4]; - components.port = parseInt(matches[5], 10); - components.path = matches[6] || ""; - components.query = matches[7]; - components.fragment = matches[8]; - //fix port number - if (isNaN(components.port)) { - components.port = matches[5]; - } - } else { - //IE FIX for improper RegExp matching - //store each component - components.scheme = matches[1] || undefined; - components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined; - components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined; - components.port = parseInt(matches[5], 10); - components.path = matches[6] || ""; - components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined; - components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined; - //fix port number - if (isNaN(components.port)) { - components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined; - } - } - if (components.host) { - //normalize IP hosts - components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol); - } - //determine reference type - if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) { - components.reference = "same-document"; - } else if (components.scheme === undefined) { - components.reference = "relative"; - } else if (components.fragment === undefined) { - components.reference = "absolute"; - } else { - components.reference = "uri"; - } - //check for reference errors - if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) { - components.error = components.error || "URI is not a " + options.reference + " reference."; - } - //find scheme handler - var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - //check if scheme can't handle IRIs - if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { - //if host component is a domain name - if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) { - //convert Unicode IDN -> ASCII IDN - try { - components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()); - } catch (e) { - components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e; - } - } - //convert IRI -> URI - _normalizeComponentEncoding(components, URI_PROTOCOL); - } else { - //normalize encodings - _normalizeComponentEncoding(components, protocol); - } - //perform scheme specific parsing - if (schemeHandler && schemeHandler.parse) { - schemeHandler.parse(components, options); - } - } else { - components.error = components.error || "URI can not be parsed."; - } - return components; -} - -function _recomposeAuthority(components, options) { - var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; - var uriTokens = []; - if (components.userinfo !== undefined) { - uriTokens.push(components.userinfo); - uriTokens.push("@"); - } - if (components.host !== undefined) { - //normalize IP hosts, add brackets and escape zone separator for IPv6 - uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) { - return "[" + $1 + ($2 ? "%25" + $2 : "") + "]"; - })); - } - if (typeof components.port === "number" || typeof components.port === "string") { - uriTokens.push(":"); - uriTokens.push(String(components.port)); - } - return uriTokens.length ? uriTokens.join("") : undefined; -} - -var RDS1 = /^\.\.?\//; -var RDS2 = /^\/\.(\/|$)/; -var RDS3 = /^\/\.\.(\/|$)/; -var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/; -function removeDotSegments(input) { - var output = []; - while (input.length) { - if (input.match(RDS1)) { - input = input.replace(RDS1, ""); - } else if (input.match(RDS2)) { - input = input.replace(RDS2, "/"); - } else if (input.match(RDS3)) { - input = input.replace(RDS3, "/"); - output.pop(); - } else if (input === "." || input === "..") { - input = ""; - } else { - var im = input.match(RDS5); - if (im) { - var s = im[0]; - input = input.slice(s.length); - output.push(s); - } else { - throw new Error("Unexpected dot segment condition"); - } - } - } - return output.join(""); -} - -function serialize(components) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL; - var uriTokens = []; - //find scheme handler - var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - //perform scheme specific serialization - if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options); - if (components.host) { - //if host component is an IPv6 address - if (protocol.IPV6ADDRESS.test(components.host)) {} - //TODO: normalize IPv6 address as per RFC 5952 - - //if host component is a domain name - else if (options.domainHost || schemeHandler && schemeHandler.domainHost) { - //convert IDN via punycode - try { - components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host); - } catch (e) { - components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; - } - } - } - //normalize encoding - _normalizeComponentEncoding(components, protocol); - if (options.reference !== "suffix" && components.scheme) { - uriTokens.push(components.scheme); - uriTokens.push(":"); - } - var authority = _recomposeAuthority(components, options); - if (authority !== undefined) { - if (options.reference !== "suffix") { - uriTokens.push("//"); - } - uriTokens.push(authority); - if (components.path && components.path.charAt(0) !== "/") { - uriTokens.push("/"); - } - } - if (components.path !== undefined) { - var s = components.path; - if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { - s = removeDotSegments(s); - } - if (authority === undefined) { - s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//" - } - uriTokens.push(s); - } - if (components.query !== undefined) { - uriTokens.push("?"); - uriTokens.push(components.query); - } - if (components.fragment !== undefined) { - uriTokens.push("#"); - uriTokens.push(components.fragment); - } - return uriTokens.join(""); //merge tokens into a string -} - -function resolveComponents(base, relative) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var skipNormalization = arguments[3]; - - var target = {}; - if (!skipNormalization) { - base = parse(serialize(base, options), options); //normalize base components - relative = parse(serialize(relative, options), options); //normalize relative components - } - options = options || {}; - if (!options.tolerant && relative.scheme) { - target.scheme = relative.scheme; - //target.authority = relative.authority; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { - //target.authority = relative.authority; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } else { - if (!relative.path) { - target.path = base.path; - if (relative.query !== undefined) { - target.query = relative.query; - } else { - target.query = base.query; - } - } else { - if (relative.path.charAt(0) === "/") { - target.path = removeDotSegments(relative.path); - } else { - if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { - target.path = "/" + relative.path; - } else if (!base.path) { - target.path = relative.path; - } else { - target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; - } - target.path = removeDotSegments(target.path); - } - target.query = relative.query; - } - //target.authority = base.authority; - target.userinfo = base.userinfo; - target.host = base.host; - target.port = base.port; - } - target.scheme = base.scheme; - } - target.fragment = relative.fragment; - return target; -} - -function resolve(baseURI, relativeURI, options) { - var schemelessOptions = assign({ scheme: 'null' }, options); - return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions); -} - -function normalize(uri, options) { - if (typeof uri === "string") { - uri = serialize(parse(uri, options), options); - } else if (typeOf(uri) === "object") { - uri = parse(serialize(uri, options), options); - } - return uri; -} - -function equal(uriA, uriB, options) { - if (typeof uriA === "string") { - uriA = serialize(parse(uriA, options), options); - } else if (typeOf(uriA) === "object") { - uriA = serialize(uriA, options); - } - if (typeof uriB === "string") { - uriB = serialize(parse(uriB, options), options); - } else if (typeOf(uriB) === "object") { - uriB = serialize(uriB, options); - } - return uriA === uriB; -} - -function escapeComponent(str, options) { - return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar); -} - -function unescapeComponent(str, options) { - return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars); -} - -var handler = { - scheme: "http", - domainHost: true, - parse: function parse(components, options) { - //report missing host - if (!components.host) { - components.error = components.error || "HTTP URIs must have a host."; - } - return components; - }, - serialize: function serialize(components, options) { - var secure = String(components.scheme).toLowerCase() === "https"; - //normalize the default port - if (components.port === (secure ? 443 : 80) || components.port === "") { - components.port = undefined; - } - //normalize the empty path - if (!components.path) { - components.path = "/"; - } - //NOTE: We do not parse query strings for HTTP URIs - //as WWW Form Url Encoded query strings are part of the HTML4+ spec, - //and not the HTTP spec. - return components; - } -}; - -var handler$1 = { - scheme: "https", - domainHost: handler.domainHost, - parse: handler.parse, - serialize: handler.serialize -}; - -function isSecure(wsComponents) { - return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss"; -} -//RFC 6455 -var handler$2 = { - scheme: "ws", - domainHost: true, - parse: function parse(components, options) { - var wsComponents = components; - //indicate if the secure flag is set - wsComponents.secure = isSecure(wsComponents); - //construct resouce name - wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : ''); - wsComponents.path = undefined; - wsComponents.query = undefined; - return wsComponents; - }, - serialize: function serialize(wsComponents, options) { - //normalize the default port - if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") { - wsComponents.port = undefined; - } - //ensure scheme matches secure flag - if (typeof wsComponents.secure === 'boolean') { - wsComponents.scheme = wsComponents.secure ? 'wss' : 'ws'; - wsComponents.secure = undefined; - } - //reconstruct path from resource name - if (wsComponents.resourceName) { - var _wsComponents$resourc = wsComponents.resourceName.split('?'), - _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), - path = _wsComponents$resourc2[0], - query = _wsComponents$resourc2[1]; - - wsComponents.path = path && path !== '/' ? path : undefined; - wsComponents.query = query; - wsComponents.resourceName = undefined; - } - //forbid fragment component - wsComponents.fragment = undefined; - return wsComponents; - } -}; - -var handler$3 = { - scheme: "wss", - domainHost: handler$2.domainHost, - parse: handler$2.parse, - serialize: handler$2.serialize -}; - -var O = {}; -var isIRI = true; -//RFC 3986 -var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]"; -var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive -var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded -//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; = -//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]"; -//const WSP$$ = "[\\x20\\x09]"; -//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127) -//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext -//const VCHAR$$ = "[\\x21-\\x7E]"; -//const WSP$$ = "[\\x20\\x09]"; -//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext -//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+"); -//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$); -//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"'); -var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]"; -var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]"; -var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]"); -var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"; -var UNRESERVED = new RegExp(UNRESERVED$$, "g"); -var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g"); -var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g"); -var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g"); -var NOT_HFVALUE = NOT_HFNAME; -function decodeUnreserved(str) { - var decStr = pctDecChars(str); - return !decStr.match(UNRESERVED) ? str : decStr; -} -var handler$4 = { - scheme: "mailto", - parse: function parse$$1(components, options) { - var mailtoComponents = components; - var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : []; - mailtoComponents.path = undefined; - if (mailtoComponents.query) { - var unknownHeaders = false; - var headers = {}; - var hfields = mailtoComponents.query.split("&"); - for (var x = 0, xl = hfields.length; x < xl; ++x) { - var hfield = hfields[x].split("="); - switch (hfield[0]) { - case "to": - var toAddrs = hfield[1].split(","); - for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) { - to.push(toAddrs[_x]); - } - break; - case "subject": - mailtoComponents.subject = unescapeComponent(hfield[1], options); - break; - case "body": - mailtoComponents.body = unescapeComponent(hfield[1], options); - break; - default: - unknownHeaders = true; - headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options); - break; - } - } - if (unknownHeaders) mailtoComponents.headers = headers; - } - mailtoComponents.query = undefined; - for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) { - var addr = to[_x2].split("@"); - addr[0] = unescapeComponent(addr[0]); - if (!options.unicodeSupport) { - //convert Unicode IDN -> ASCII IDN - try { - addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase()); - } catch (e) { - mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e; - } - } else { - addr[1] = unescapeComponent(addr[1], options).toLowerCase(); - } - to[_x2] = addr.join("@"); - } - return mailtoComponents; - }, - serialize: function serialize$$1(mailtoComponents, options) { - var components = mailtoComponents; - var to = toArray(mailtoComponents.to); - if (to) { - for (var x = 0, xl = to.length; x < xl; ++x) { - var toAddr = String(to[x]); - var atIdx = toAddr.lastIndexOf("@"); - var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar); - var domain = toAddr.slice(atIdx + 1); - //convert IDN via punycode - try { - domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain); - } catch (e) { - components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; - } - to[x] = localPart + "@" + domain; - } - components.path = to.join(","); - } - var headers = mailtoComponents.headers = mailtoComponents.headers || {}; - if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject; - if (mailtoComponents.body) headers["body"] = mailtoComponents.body; - var fields = []; - for (var name in headers) { - if (headers[name] !== O[name]) { - fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)); - } - } - if (fields.length) { - components.query = fields.join("&"); - } - return components; - } -}; - -var URN_PARSE = /^([^\:]+)\:(.*)/; -//RFC 2141 -var handler$5 = { - scheme: "urn", - parse: function parse$$1(components, options) { - var matches = components.path && components.path.match(URN_PARSE); - var urnComponents = components; - if (matches) { - var scheme = options.scheme || urnComponents.scheme || "urn"; - var nid = matches[1].toLowerCase(); - var nss = matches[2]; - var urnScheme = scheme + ":" + (options.nid || nid); - var schemeHandler = SCHEMES[urnScheme]; - urnComponents.nid = nid; - urnComponents.nss = nss; - urnComponents.path = undefined; - if (schemeHandler) { - urnComponents = schemeHandler.parse(urnComponents, options); - } - } else { - urnComponents.error = urnComponents.error || "URN can not be parsed."; - } - return urnComponents; - }, - serialize: function serialize$$1(urnComponents, options) { - var scheme = options.scheme || urnComponents.scheme || "urn"; - var nid = urnComponents.nid; - var urnScheme = scheme + ":" + (options.nid || nid); - var schemeHandler = SCHEMES[urnScheme]; - if (schemeHandler) { - urnComponents = schemeHandler.serialize(urnComponents, options); - } - var uriComponents = urnComponents; - var nss = urnComponents.nss; - uriComponents.path = (nid || options.nid) + ":" + nss; - return uriComponents; - } -}; - -var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/; -//RFC 4122 -var handler$6 = { - scheme: "urn:uuid", - parse: function parse(urnComponents, options) { - var uuidComponents = urnComponents; - uuidComponents.uuid = uuidComponents.nss; - uuidComponents.nss = undefined; - if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) { - uuidComponents.error = uuidComponents.error || "UUID is not valid."; - } - return uuidComponents; - }, - serialize: function serialize(uuidComponents, options) { - var urnComponents = uuidComponents; - //normalize UUID - urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(); - return urnComponents; - } -}; - -SCHEMES[handler.scheme] = handler; -SCHEMES[handler$1.scheme] = handler$1; -SCHEMES[handler$2.scheme] = handler$2; -SCHEMES[handler$3.scheme] = handler$3; -SCHEMES[handler$4.scheme] = handler$4; -SCHEMES[handler$5.scheme] = handler$5; -SCHEMES[handler$6.scheme] = handler$6; - -exports.SCHEMES = SCHEMES; -exports.pctEncChar = pctEncChar; -exports.pctDecChars = pctDecChars; -exports.parse = parse; -exports.removeDotSegments = removeDotSegments; -exports.serialize = serialize; -exports.resolveComponents = resolveComponents; -exports.resolve = resolve; -exports.normalize = normalize; -exports.equal = equal; -exports.escapeComponent = escapeComponent; -exports.unescapeComponent = unescapeComponent; - -Object.defineProperty(exports, '__esModule', { value: true }); - -}))); -//# sourceMappingURL=uri.all.js.map diff --git a/node_modules/uri-js/dist/es5/uri.all.js.map b/node_modules/uri-js/dist/es5/uri.all.js.map deleted file mode 100755 index 5b30c4e..0000000 --- a/node_modules/uri-js/dist/es5/uri.all.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uri.all.js","sources":["../../src/index.ts","../../src/schemes/urn-uuid.ts","../../src/schemes/urn.ts","../../src/schemes/mailto.ts","../../src/schemes/wss.ts","../../src/schemes/ws.ts","../../src/schemes/https.ts","../../src/schemes/http.ts","../../src/uri.ts","../../node_modules/punycode/punycode.es6.js","../../src/regexps-iri.ts","../../src/regexps-uri.ts","../../src/util.ts"],"sourcesContent":["import { SCHEMES } from \"./uri\";\n\nimport http from \"./schemes/http\";\nSCHEMES[http.scheme] = http;\n\nimport https from \"./schemes/https\";\nSCHEMES[https.scheme] = https;\n\nimport ws from \"./schemes/ws\";\nSCHEMES[ws.scheme] = ws;\n\nimport wss from \"./schemes/wss\";\nSCHEMES[wss.scheme] = wss;\n\nimport mailto from \"./schemes/mailto\";\nSCHEMES[mailto.scheme] = mailto;\n\nimport urn from \"./schemes/urn\";\nSCHEMES[urn.scheme] = urn;\n\nimport uuid from \"./schemes/urn-uuid\";\nSCHEMES[uuid.scheme] = uuid;\n\nexport * from \"./uri\";\n","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { URNComponents } from \"./urn\";\nimport { SCHEMES } from \"../uri\";\n\nexport interface UUIDComponents extends URNComponents {\n\tuuid?: string;\n}\n\nconst UUID = /^[0-9A-Fa-f]{8}(?:\\-[0-9A-Fa-f]{4}){3}\\-[0-9A-Fa-f]{12}$/;\nconst UUID_PARSE = /^[0-9A-Fa-f\\-]{36}/;\n\n//RFC 4122\nconst handler:URISchemeHandler = {\n\tscheme : \"urn:uuid\",\n\n\tparse : function (urnComponents:URNComponents, options:URIOptions):UUIDComponents {\n\t\tconst uuidComponents = urnComponents as UUIDComponents;\n\t\tuuidComponents.uuid = uuidComponents.nss;\n\t\tuuidComponents.nss = undefined;\n\n\t\tif (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {\n\t\t\tuuidComponents.error = uuidComponents.error || \"UUID is not valid.\";\n\t\t}\n\n\t\treturn uuidComponents;\n\t},\n\n\tserialize : function (uuidComponents:UUIDComponents, options:URIOptions):URNComponents {\n\t\tconst urnComponents = uuidComponents as URNComponents;\n\t\t//normalize UUID\n\t\turnComponents.nss = (uuidComponents.uuid || \"\").toLowerCase();\n\t\treturn urnComponents;\n\t},\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, SCHEMES } from \"../uri\";\n\nexport interface URNComponents extends URIComponents {\n\tnid?:string;\n\tnss?:string;\n}\n\nexport interface URNOptions extends URIOptions {\n\tnid?:string;\n}\n\nconst NID$ = \"(?:[0-9A-Za-z][0-9A-Za-z\\\\-]{1,31})\";\nconst PCT_ENCODED$ = \"(?:\\\\%[0-9A-Fa-f]{2})\";\nconst TRANS$$ = \"[0-9A-Za-z\\\\(\\\\)\\\\+\\\\,\\\\-\\\\.\\\\:\\\\=\\\\@\\\\;\\\\$\\\\_\\\\!\\\\*\\\\'\\\\/\\\\?\\\\#]\";\nconst NSS$ = \"(?:(?:\" + PCT_ENCODED$ + \"|\" + TRANS$$ + \")+)\";\nconst URN_SCHEME = new RegExp(\"^urn\\\\:(\" + NID$ + \")$\");\nconst URN_PATH = new RegExp(\"^(\" + NID$ + \")\\\\:(\" + NSS$ + \")$\");\nconst URN_PARSE = /^([^\\:]+)\\:(.*)/;\nconst URN_EXCLUDED = /[\\x00-\\x20\\\\\\\"\\&\\<\\>\\[\\]\\^\\`\\{\\|\\}\\~\\x7F-\\xFF]/g;\n\n//RFC 2141\nconst handler:URISchemeHandler = {\n\tscheme : \"urn\",\n\n\tparse : function (components:URIComponents, options:URNOptions):URNComponents {\n\t\tconst matches = components.path && components.path.match(URN_PARSE);\n\t\tlet urnComponents = components as URNComponents;\n\n\t\tif (matches) {\n\t\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\t\tconst nid = matches[1].toLowerCase();\n\t\t\tconst nss = matches[2];\n\t\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\t\turnComponents.nid = nid;\n\t\t\turnComponents.nss = nss;\n\t\t\turnComponents.path = undefined;\n\n\t\t\tif (schemeHandler) {\n\t\t\t\turnComponents = schemeHandler.parse(urnComponents, options) as URNComponents;\n\t\t\t}\n\t\t} else {\n\t\t\turnComponents.error = urnComponents.error || \"URN can not be parsed.\";\n\t\t}\n\n\t\treturn urnComponents;\n\t},\n\n\tserialize : function (urnComponents:URNComponents, options:URNOptions):URIComponents {\n\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\tconst nid = urnComponents.nid;\n\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\tif (schemeHandler) {\n\t\t\turnComponents = schemeHandler.serialize(urnComponents, options) as URNComponents;\n\t\t}\n\n\t\tconst uriComponents = urnComponents as URIComponents;\n\t\tconst nss = urnComponents.nss;\n\t\turiComponents.path = `${nid || options.nid}:${nss}`;\n\n\t\treturn uriComponents;\n\t},\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, pctDecChars, unescapeComponent } from \"../uri\";\nimport punycode from \"punycode\";\nimport { merge, subexp, toUpperCase, toArray } from \"../util\";\n\nexport interface MailtoHeaders {\n\t[hfname:string]:string\n}\n\nexport interface MailtoComponents extends URIComponents {\n\tto:Array,\n\theaders?:MailtoHeaders,\n\tsubject?:string,\n\tbody?:string\n}\n\nconst O:MailtoHeaders = {};\nconst isIRI = true;\n\n//RFC 3986\nconst UNRESERVED$$ = \"[A-Za-z0-9\\\\-\\\\.\\\\_\\\\~\" + (isIRI ? \"\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF\" : \"\") + \"]\";\nconst HEXDIG$$ = \"[0-9A-Fa-f]\"; //case-insensitive\nconst PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)); //expanded\n\n//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =\n//const ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\/\\\\=\\\\?\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QTEXT$$ = \"[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F]\"; //(%d1-8 / %d11-12 / %d14-31 / %d127)\n//const QTEXT$$ = merge(\"[\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]\", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext\n//const VCHAR$$ = \"[\\\\x21-\\\\x7E]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QP$ = subexp(\"\\\\\\\\\" + merge(\"[\\\\x00\\\\x0D\\\\x0A]\", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext\n//const FWS$ = subexp(subexp(WSP$$ + \"*\" + \"\\\\x0D\\\\x0A\") + \"?\" + WSP$$ + \"+\");\n//const QUOTED_PAIR$ = subexp(subexp(\"\\\\\\\\\" + subexp(VCHAR$$ + \"|\" + WSP$$)) + \"|\" + OBS_QP$);\n//const QUOTED_STRING$ = subexp('\\\\\"' + subexp(FWS$ + \"?\" + QCONTENT$) + \"*\" + FWS$ + \"?\" + '\\\\\"');\nconst ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\$\\\\%\\\\'\\\\*\\\\+\\\\-\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\nconst QTEXT$$ = \"[\\\\!\\\\$\\\\%\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\-\\\\.0-9\\\\<\\\\>A-Z\\\\x5E-\\\\x7E]\";\nconst VCHAR$$ = merge(QTEXT$$, \"[\\\\\\\"\\\\\\\\]\");\nconst DOT_ATOM_TEXT$ = subexp(ATEXT$$ + \"+\" + subexp(\"\\\\.\" + ATEXT$$ + \"+\") + \"*\");\nconst QUOTED_PAIR$ = subexp(\"\\\\\\\\\" + VCHAR$$);\nconst QCONTENT$ = subexp(QTEXT$$ + \"|\" + QUOTED_PAIR$);\nconst QUOTED_STRING$ = subexp('\\\\\"' + QCONTENT$ + \"*\" + '\\\\\"');\n\n//RFC 6068\nconst DTEXT_NO_OBS$$ = \"[\\\\x21-\\\\x5A\\\\x5E-\\\\x7E]\"; //%d33-90 / %d94-126\nconst SOME_DELIMS$$ = \"[\\\\!\\\\$\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\:\\\\@]\";\nconst QCHAR$ = subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$ + \"|\" + SOME_DELIMS$$);\nconst DOMAIN$ = subexp(DOT_ATOM_TEXT$ + \"|\" + \"\\\\[\" + DTEXT_NO_OBS$$ + \"*\" + \"\\\\]\");\nconst LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + \"|\" + QUOTED_STRING$);\nconst ADDR_SPEC$ = subexp(LOCAL_PART$ + \"\\\\@\" + DOMAIN$);\nconst TO$ = subexp(ADDR_SPEC$ + subexp(\"\\\\,\" + ADDR_SPEC$) + \"*\");\nconst HFNAME$ = subexp(QCHAR$ + \"*\");\nconst HFVALUE$ = HFNAME$;\nconst HFIELD$ = subexp(HFNAME$ + \"\\\\=\" + HFVALUE$);\nconst HFIELDS2$ = subexp(HFIELD$ + subexp(\"\\\\&\" + HFIELD$) + \"*\");\nconst HFIELDS$ = subexp(\"\\\\?\" + HFIELDS2$);\nconst MAILTO_URI = new RegExp(\"^mailto\\\\:\" + TO$ + \"?\" + HFIELDS$ + \"?$\");\n\nconst UNRESERVED = new RegExp(UNRESERVED$$, \"g\");\nconst PCT_ENCODED = new RegExp(PCT_ENCODED$, \"g\");\nconst NOT_LOCAL_PART = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", '[\\\\\"]', VCHAR$$), \"g\");\nconst NOT_DOMAIN = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", \"[\\\\[]\", DTEXT_NO_OBS$$, \"[\\\\]]\"), \"g\");\nconst NOT_HFNAME = new RegExp(merge(\"[^]\", UNRESERVED$$, SOME_DELIMS$$), \"g\");\nconst NOT_HFVALUE = NOT_HFNAME;\nconst TO = new RegExp(\"^\" + TO$ + \"$\");\nconst HFIELDS = new RegExp(\"^\" + HFIELDS2$ + \"$\");\n\nfunction decodeUnreserved(str:string):string {\n\tconst decStr = pctDecChars(str);\n\treturn (!decStr.match(UNRESERVED) ? str : decStr);\n}\n\nconst handler:URISchemeHandler = {\n\tscheme : \"mailto\",\n\n\tparse : function (components:URIComponents, options:URIOptions):MailtoComponents {\n\t\tconst mailtoComponents = components as MailtoComponents;\n\t\tconst to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(\",\") : []);\n\t\tmailtoComponents.path = undefined;\n\n\t\tif (mailtoComponents.query) {\n\t\t\tlet unknownHeaders = false\n\t\t\tconst headers:MailtoHeaders = {};\n\t\t\tconst hfields = mailtoComponents.query.split(\"&\");\n\n\t\t\tfor (let x = 0, xl = hfields.length; x < xl; ++x) {\n\t\t\t\tconst hfield = hfields[x].split(\"=\");\n\n\t\t\t\tswitch (hfield[0]) {\n\t\t\t\t\tcase \"to\":\n\t\t\t\t\t\tconst toAddrs = hfield[1].split(\",\");\n\t\t\t\t\t\tfor (let x = 0, xl = toAddrs.length; x < xl; ++x) {\n\t\t\t\t\t\t\tto.push(toAddrs[x]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"subject\":\n\t\t\t\t\t\tmailtoComponents.subject = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"body\":\n\t\t\t\t\t\tmailtoComponents.body = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunknownHeaders = true;\n\t\t\t\t\t\theaders[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (unknownHeaders) mailtoComponents.headers = headers;\n\t\t}\n\n\t\tmailtoComponents.query = undefined;\n\n\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\tconst addr = to[x].split(\"@\");\n\n\t\t\taddr[0] = unescapeComponent(addr[0]);\n\n\t\t\tif (!options.unicodeSupport) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\taddr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tmailtoComponents.error = mailtoComponents.error || \"Email address's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\taddr[1] = unescapeComponent(addr[1], options).toLowerCase();\n\t\t\t}\n\n\t\t\tto[x] = addr.join(\"@\");\n\t\t}\n\n\t\treturn mailtoComponents;\n\t},\n\n\tserialize : function (mailtoComponents:MailtoComponents, options:URIOptions):URIComponents {\n\t\tconst components = mailtoComponents as URIComponents;\n\t\tconst to = toArray(mailtoComponents.to);\n\t\tif (to) {\n\t\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\t\tconst toAddr = String(to[x]);\n\t\t\t\tconst atIdx = toAddr.lastIndexOf(\"@\");\n\t\t\t\tconst localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);\n\t\t\t\tlet domain = toAddr.slice(atIdx + 1);\n\n\t\t\t\t//convert IDN via punycode\n\t\t\t\ttry {\n\t\t\t\t\tdomain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain));\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Email address's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t\t}\n\n\t\t\t\tto[x] = localPart + \"@\" + domain;\n\t\t\t}\n\n\t\t\tcomponents.path = to.join(\",\");\n\t\t}\n\n\t\tconst headers = mailtoComponents.headers = mailtoComponents.headers || {};\n\n\t\tif (mailtoComponents.subject) headers[\"subject\"] = mailtoComponents.subject;\n\t\tif (mailtoComponents.body) headers[\"body\"] = mailtoComponents.body;\n\n\t\tconst fields = [];\n\t\tfor (const name in headers) {\n\t\t\tif (headers[name] !== O[name]) {\n\t\t\t\tfields.push(\n\t\t\t\t\tname.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) +\n\t\t\t\t\t\"=\" +\n\t\t\t\t\theaders[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tif (fields.length) {\n\t\t\tcomponents.query = fields.join(\"&\");\n\t\t}\n\n\t\treturn components;\n\t}\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport ws from \"./ws\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"wss\",\n\tdomainHost : ws.domainHost,\n\tparse : ws.parse,\n\tserialize : ws.serialize\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\n\nexport interface WSComponents extends URIComponents {\n\tresourceName?: string;\n\tsecure?: boolean;\n}\n\nfunction isSecure(wsComponents:WSComponents):boolean {\n\treturn typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === \"wss\";\n}\n\n//RFC 6455\nconst handler:URISchemeHandler = {\n\tscheme : \"ws\",\n\n\tdomainHost : true,\n\n\tparse : function (components:URIComponents, options:URIOptions):WSComponents {\n\t\tconst wsComponents = components as WSComponents;\n\n\t\t//indicate if the secure flag is set\n\t\twsComponents.secure = isSecure(wsComponents);\n\n\t\t//construct resouce name\n\t\twsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');\n\t\twsComponents.path = undefined;\n\t\twsComponents.query = undefined;\n\n\t\treturn wsComponents;\n\t},\n\n\tserialize : function (wsComponents:WSComponents, options:URIOptions):URIComponents {\n\t\t//normalize the default port\n\t\tif (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === \"\") {\n\t\t\twsComponents.port = undefined;\n\t\t}\n\n\t\t//ensure scheme matches secure flag\n\t\tif (typeof wsComponents.secure === 'boolean') {\n\t\t\twsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws');\n\t\t\twsComponents.secure = undefined;\n\t\t}\n\n\t\t//reconstruct path from resource name\n\t\tif (wsComponents.resourceName) {\n\t\t\tconst [path, query] = wsComponents.resourceName.split('?');\n\t\t\twsComponents.path = (path && path !== '/' ? path : undefined);\n\t\t\twsComponents.query = query;\n\t\t\twsComponents.resourceName = undefined;\n\t\t}\n\n\t\t//forbid fragment component\n\t\twsComponents.fragment = undefined;\n\n\t\treturn wsComponents;\n\t}\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport http from \"./http\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"https\",\n\tdomainHost : http.domainHost,\n\tparse : http.parse,\n\tserialize : http.serialize\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"http\",\n\n\tdomainHost : true,\n\n\tparse : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\t//report missing host\n\t\tif (!components.host) {\n\t\t\tcomponents.error = components.error || \"HTTP URIs must have a host.\";\n\t\t}\n\n\t\treturn components;\n\t},\n\n\tserialize : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\tconst secure = String(components.scheme).toLowerCase() === \"https\";\n\n\t\t//normalize the default port\n\t\tif (components.port === (secure ? 443 : 80) || components.port === \"\") {\n\t\t\tcomponents.port = undefined;\n\t\t}\n\t\t\n\t\t//normalize the empty path\n\t\tif (!components.path) {\n\t\t\tcomponents.path = \"/\";\n\t\t}\n\n\t\t//NOTE: We do not parse query strings for HTTP URIs\n\t\t//as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n\t\t//and not the HTTP spec.\n\n\t\treturn components;\n\t}\n};\n\nexport default handler;","/**\n * URI.js\n *\n * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.\n * @author Gary Court\n * @see http://github.com/garycourt/uri-js\n */\n\n/**\n * Copyright 2011 Gary Court. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of Gary Court.\n */\n\nimport URI_PROTOCOL from \"./regexps-uri\";\nimport IRI_PROTOCOL from \"./regexps-iri\";\nimport punycode from \"punycode\";\nimport { toUpperCase, typeOf, assign } from \"./util\";\n\nexport interface URIComponents {\n\tscheme?:string;\n\tuserinfo?:string;\n\thost?:string;\n\tport?:number|string;\n\tpath?:string;\n\tquery?:string;\n\tfragment?:string;\n\treference?:string;\n\terror?:string;\n}\n\nexport interface URIOptions {\n\tscheme?:string;\n\treference?:string;\n\ttolerant?:boolean;\n\tabsolutePath?:boolean;\n\tiri?:boolean;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n}\n\nexport interface URISchemeHandler {\n\tscheme:string;\n\tparse(components:ParentComponents, options:Options):Components;\n\tserialize(components:Components, options:Options):ParentComponents;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n\tabsolutePath?:boolean;\n}\n\nexport interface URIRegExps {\n\tNOT_SCHEME : RegExp,\n\tNOT_USERINFO : RegExp,\n\tNOT_HOST : RegExp,\n\tNOT_PATH : RegExp,\n\tNOT_PATH_NOSCHEME : RegExp,\n\tNOT_QUERY : RegExp,\n\tNOT_FRAGMENT : RegExp,\n\tESCAPE : RegExp,\n\tUNRESERVED : RegExp,\n\tOTHER_CHARS : RegExp,\n\tPCT_ENCODED : RegExp,\n\tIPV4ADDRESS : RegExp,\n\tIPV6ADDRESS : RegExp,\n}\n\nexport const SCHEMES:{[scheme:string]:URISchemeHandler} = {};\n\nexport function pctEncChar(chr:string):string {\n\tconst c = chr.charCodeAt(0);\n\tlet e:string;\n\n\tif (c < 16) e = \"%0\" + c.toString(16).toUpperCase();\n\telse if (c < 128) e = \"%\" + c.toString(16).toUpperCase();\n\telse if (c < 2048) e = \"%\" + ((c >> 6) | 192).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\telse e = \"%\" + ((c >> 12) | 224).toString(16).toUpperCase() + \"%\" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\n\treturn e;\n}\n\nexport function pctDecChars(str:string):string {\n\tlet newStr = \"\";\n\tlet i = 0;\n\tconst il = str.length;\n\n\twhile (i < il) {\n\t\tconst c = parseInt(str.substr(i + 1, 2), 16);\n\n\t\tif (c < 128) {\n\t\t\tnewStr += String.fromCharCode(c);\n\t\t\ti += 3;\n\t\t}\n\t\telse if (c >= 194 && c < 224) {\n\t\t\tif ((il - i) >= 6) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 6);\n\t\t\t}\n\t\t\ti += 6;\n\t\t}\n\t\telse if (c >= 224) {\n\t\t\tif ((il - i) >= 9) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tconst c3 = parseInt(str.substr(i + 7, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 9);\n\t\t\t}\n\t\t\ti += 9;\n\t\t}\n\t\telse {\n\t\t\tnewStr += str.substr(i, 3);\n\t\t\ti += 3;\n\t\t}\n\t}\n\n\treturn newStr;\n}\n\nfunction _normalizeComponentEncoding(components:URIComponents, protocol:URIRegExps) {\n\tfunction decodeUnreserved(str:string):string {\n\t\tconst decStr = pctDecChars(str);\n\t\treturn (!decStr.match(protocol.UNRESERVED) ? str : decStr);\n\t}\n\n\tif (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, \"\");\n\tif (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\n\treturn components;\n};\n\nfunction _stripLeadingZeros(str:string):string {\n\treturn str.replace(/^0*(.*)/, \"$1\") || \"0\";\n}\n\nfunction _normalizeIPv4(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV4ADDRESS) || [];\n\tconst [, address] = matches;\n\t\n\tif (address) {\n\t\treturn address.split(\".\").map(_stripLeadingZeros).join(\".\");\n\t} else {\n\t\treturn host;\n\t}\n}\n\nfunction _normalizeIPv6(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV6ADDRESS) || [];\n\tconst [, address, zone] = matches;\n\n\tif (address) {\n\t\tconst [last, first] = address.toLowerCase().split('::').reverse();\n\t\tconst firstFields = first ? first.split(\":\").map(_stripLeadingZeros) : [];\n\t\tconst lastFields = last.split(\":\").map(_stripLeadingZeros);\n\t\tconst isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);\n\t\tconst fieldCount = isLastFieldIPv4Address ? 7 : 8;\n\t\tconst lastFieldsStart = lastFields.length - fieldCount;\n\t\tconst fields = Array(fieldCount);\n\n\t\tfor (let x = 0; x < fieldCount; ++x) {\n\t\t\tfields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';\n\t\t}\n\n\t\tif (isLastFieldIPv4Address) {\n\t\t\tfields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);\n\t\t}\n\n\t\tconst allZeroFields = fields.reduce>((acc, field, index) => {\n\t\t\tif (!field || field === \"0\") {\n\t\t\t\tconst lastLongest = acc[acc.length - 1];\n\t\t\t\tif (lastLongest && lastLongest.index + lastLongest.length === index) {\n\t\t\t\t\tlastLongest.length++;\n\t\t\t\t} else {\n\t\t\t\t\tacc.push({ index, length : 1 });\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn acc;\n\t\t}, []);\n\n\t\tconst longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0];\n\n\t\tlet newHost:string;\n\t\tif (longestZeroFields && longestZeroFields.length > 1) {\n\t\t\tconst newFirst = fields.slice(0, longestZeroFields.index) ;\n\t\t\tconst newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);\n\t\t\tnewHost = newFirst.join(\":\") + \"::\" + newLast.join(\":\");\n\t\t} else {\n\t\t\tnewHost = fields.join(\":\");\n\t\t}\n\n\t\tif (zone) {\n\t\t\tnewHost += \"%\" + zone;\n\t\t}\n\n\t\treturn newHost;\n\t} else {\n\t\treturn host;\n\t}\n}\n\nconst URI_PARSE = /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:([^\\/?#@]*)@)?(\\[[^\\/?#\\]]+\\]|[^\\/?#:]*)(?:\\:(\\d*))?))?([^?#]*)(?:\\?([^#]*))?(?:#((?:.|\\n|\\r)*))?/i;\nconst NO_MATCH_IS_UNDEFINED = ((\"\").match(/(){0}/))[1] === undefined;\n\nexport function parse(uriString:string, options:URIOptions = {}):URIComponents {\n\tconst components:URIComponents = {};\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\n\tif (options.reference === \"suffix\") uriString = (options.scheme ? options.scheme + \":\" : \"\") + \"//\" + uriString;\n\n\tconst matches = uriString.match(URI_PARSE);\n\n\tif (matches) {\n\t\tif (NO_MATCH_IS_UNDEFINED) {\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1];\n\t\t\tcomponents.userinfo = matches[3];\n\t\t\tcomponents.host = matches[4];\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = matches[7];\n\t\t\tcomponents.fragment = matches[8];\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = matches[5];\n\t\t\t}\n\t\t} else { //IE FIX for improper RegExp matching\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1] || undefined;\n\t\t\tcomponents.userinfo = (uriString.indexOf(\"@\") !== -1 ? matches[3] : undefined);\n\t\t\tcomponents.host = (uriString.indexOf(\"//\") !== -1 ? matches[4] : undefined);\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = (uriString.indexOf(\"?\") !== -1 ? matches[7] : undefined);\n\t\t\tcomponents.fragment = (uriString.indexOf(\"#\") !== -1 ? matches[8] : undefined);\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = (uriString.match(/\\/\\/(?:.|\\n)*\\:(?:\\/|\\?|\\#|$)/) ? matches[4] : undefined);\n\t\t\t}\n\t\t}\n\n\t\tif (components.host) {\n\t\t\t//normalize IP hosts\n\t\t\tcomponents.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);\n\t\t}\n\n\t\t//determine reference type\n\t\tif (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {\n\t\t\tcomponents.reference = \"same-document\";\n\t\t} else if (components.scheme === undefined) {\n\t\t\tcomponents.reference = \"relative\";\n\t\t} else if (components.fragment === undefined) {\n\t\t\tcomponents.reference = \"absolute\";\n\t\t} else {\n\t\t\tcomponents.reference = \"uri\";\n\t\t}\n\n\t\t//check for reference errors\n\t\tif (options.reference && options.reference !== \"suffix\" && options.reference !== components.reference) {\n\t\t\tcomponents.error = components.error || \"URI is not a \" + options.reference + \" reference.\";\n\t\t}\n\n\t\t//find scheme handler\n\t\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t\t//check if scheme can't handle IRIs\n\t\tif (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n\t\t\t//if host component is a domain name\n\t\t\tif (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\tcomponents.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert IRI -> URI\n\t\t\t_normalizeComponentEncoding(components, URI_PROTOCOL);\n\t\t} else {\n\t\t\t//normalize encodings\n\t\t\t_normalizeComponentEncoding(components, protocol);\n\t\t}\n\n\t\t//perform scheme specific parsing\n\t\tif (schemeHandler && schemeHandler.parse) {\n\t\t\tschemeHandler.parse(components, options);\n\t\t}\n\t} else {\n\t\tcomponents.error = components.error || \"URI can not be parsed.\";\n\t}\n\n\treturn components;\n};\n\nfunction _recomposeAuthority(components:URIComponents, options:URIOptions):string|undefined {\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array = [];\n\n\tif (components.userinfo !== undefined) {\n\t\turiTokens.push(components.userinfo);\n\t\turiTokens.push(\"@\");\n\t}\n\n\tif (components.host !== undefined) {\n\t\t//normalize IP hosts, add brackets and escape zone separator for IPv6\n\t\turiTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => \"[\" + $1 + ($2 ? \"%25\" + $2 : \"\") + \"]\"));\n\t}\n\n\tif (typeof components.port === \"number\" || typeof components.port === \"string\") {\n\t\turiTokens.push(\":\");\n\t\turiTokens.push(String(components.port));\n\t}\n\n\treturn uriTokens.length ? uriTokens.join(\"\") : undefined;\n};\n\nconst RDS1 = /^\\.\\.?\\//;\nconst RDS2 = /^\\/\\.(\\/|$)/;\nconst RDS3 = /^\\/\\.\\.(\\/|$)/;\nconst RDS4 = /^\\.\\.?$/;\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/;\n\nexport function removeDotSegments(input:string):string {\n\tconst output:Array = [];\n\n\twhile (input.length) {\n\t\tif (input.match(RDS1)) {\n\t\t\tinput = input.replace(RDS1, \"\");\n\t\t} else if (input.match(RDS2)) {\n\t\t\tinput = input.replace(RDS2, \"/\");\n\t\t} else if (input.match(RDS3)) {\n\t\t\tinput = input.replace(RDS3, \"/\");\n\t\t\toutput.pop();\n\t\t} else if (input === \".\" || input === \"..\") {\n\t\t\tinput = \"\";\n\t\t} else {\n\t\t\tconst im = input.match(RDS5);\n\t\t\tif (im) {\n\t\t\t\tconst s = im[0];\n\t\t\t\tinput = input.slice(s.length);\n\t\t\t\toutput.push(s);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unexpected dot segment condition\");\n\t\t\t}\n\t\t}\n\t}\n\n\treturn output.join(\"\");\n};\n\nexport function serialize(components:URIComponents, options:URIOptions = {}):string {\n\tconst protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array = [];\n\n\t//find scheme handler\n\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t//perform scheme specific serialization\n\tif (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);\n\n\tif (components.host) {\n\t\t//if host component is an IPv6 address\n\t\tif (protocol.IPV6ADDRESS.test(components.host)) {\n\t\t\t//TODO: normalize IPv6 address as per RFC 5952\n\t\t}\n\n\t\t//if host component is a domain name\n\t\telse if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) {\n\t\t\t//convert IDN via punycode\n\t\t\ttry {\n\t\t\t\tcomponents.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host));\n\t\t\t} catch (e) {\n\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t}\n\t\t}\n\t}\n\n\t//normalize encoding\n\t_normalizeComponentEncoding(components, protocol);\n\n\tif (options.reference !== \"suffix\" && components.scheme) {\n\t\turiTokens.push(components.scheme);\n\t\turiTokens.push(\":\");\n\t}\n\n\tconst authority = _recomposeAuthority(components, options);\n\tif (authority !== undefined) {\n\t\tif (options.reference !== \"suffix\") {\n\t\t\turiTokens.push(\"//\");\n\t\t}\n\n\t\turiTokens.push(authority);\n\n\t\tif (components.path && components.path.charAt(0) !== \"/\") {\n\t\t\turiTokens.push(\"/\");\n\t\t}\n\t}\n\n\tif (components.path !== undefined) {\n\t\tlet s = components.path;\n\n\t\tif (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n\t\t\ts = removeDotSegments(s);\n\t\t}\n\n\t\tif (authority === undefined) {\n\t\t\ts = s.replace(/^\\/\\//, \"/%2F\"); //don't allow the path to start with \"//\"\n\t\t}\n\n\t\turiTokens.push(s);\n\t}\n\n\tif (components.query !== undefined) {\n\t\turiTokens.push(\"?\");\n\t\turiTokens.push(components.query);\n\t}\n\n\tif (components.fragment !== undefined) {\n\t\turiTokens.push(\"#\");\n\t\turiTokens.push(components.fragment);\n\t}\n\n\treturn uriTokens.join(\"\"); //merge tokens into a string\n};\n\nexport function resolveComponents(base:URIComponents, relative:URIComponents, options:URIOptions = {}, skipNormalization?:boolean):URIComponents {\n\tconst target:URIComponents = {};\n\n\tif (!skipNormalization) {\n\t\tbase = parse(serialize(base, options), options); //normalize base components\n\t\trelative = parse(serialize(relative, options), options); //normalize relative components\n\t}\n\toptions = options || {};\n\n\tif (!options.tolerant && relative.scheme) {\n\t\ttarget.scheme = relative.scheme;\n\t\t//target.authority = relative.authority;\n\t\ttarget.userinfo = relative.userinfo;\n\t\ttarget.host = relative.host;\n\t\ttarget.port = relative.port;\n\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\ttarget.query = relative.query;\n\t} else {\n\t\tif (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n\t\t\t//target.authority = relative.authority;\n\t\t\ttarget.userinfo = relative.userinfo;\n\t\t\ttarget.host = relative.host;\n\t\t\ttarget.port = relative.port;\n\t\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\t\ttarget.query = relative.query;\n\t\t} else {\n\t\t\tif (!relative.path) {\n\t\t\t\ttarget.path = base.path;\n\t\t\t\tif (relative.query !== undefined) {\n\t\t\t\t\ttarget.query = relative.query;\n\t\t\t\t} else {\n\t\t\t\t\ttarget.query = base.query;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (relative.path.charAt(0) === \"/\") {\n\t\t\t\t\ttarget.path = removeDotSegments(relative.path);\n\t\t\t\t} else {\n\t\t\t\t\tif ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n\t\t\t\t\t\ttarget.path = \"/\" + relative.path;\n\t\t\t\t\t} else if (!base.path) {\n\t\t\t\t\t\ttarget.path = relative.path;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttarget.path = base.path.slice(0, base.path.lastIndexOf(\"/\") + 1) + relative.path;\n\t\t\t\t\t}\n\t\t\t\t\ttarget.path = removeDotSegments(target.path);\n\t\t\t\t}\n\t\t\t\ttarget.query = relative.query;\n\t\t\t}\n\t\t\t//target.authority = base.authority;\n\t\t\ttarget.userinfo = base.userinfo;\n\t\t\ttarget.host = base.host;\n\t\t\ttarget.port = base.port;\n\t\t}\n\t\ttarget.scheme = base.scheme;\n\t}\n\n\ttarget.fragment = relative.fragment;\n\n\treturn target;\n};\n\nexport function resolve(baseURI:string, relativeURI:string, options?:URIOptions):string {\n\tconst schemelessOptions = assign({ scheme : 'null' }, options);\n\treturn serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);\n};\n\nexport function normalize(uri:string, options?:URIOptions):string;\nexport function normalize(uri:URIComponents, options?:URIOptions):URIComponents;\nexport function normalize(uri:any, options?:URIOptions):any {\n\tif (typeof uri === \"string\") {\n\t\turi = serialize(parse(uri, options), options);\n\t} else if (typeOf(uri) === \"object\") {\n\t\turi = parse(serialize(uri, options), options);\n\t}\n\n\treturn uri;\n};\n\nexport function equal(uriA:string, uriB:string, options?: URIOptions):boolean;\nexport function equal(uriA:URIComponents, uriB:URIComponents, options?:URIOptions):boolean;\nexport function equal(uriA:any, uriB:any, options?:URIOptions):boolean {\n\tif (typeof uriA === \"string\") {\n\t\turiA = serialize(parse(uriA, options), options);\n\t} else if (typeOf(uriA) === \"object\") {\n\t\turiA = serialize(uriA, options);\n\t}\n\n\tif (typeof uriB === \"string\") {\n\t\turiB = serialize(parse(uriB, options), options);\n\t} else if (typeOf(uriB) === \"object\") {\n\t\turiB = serialize(uriB, options);\n\t}\n\n\treturn uriA === uriB;\n};\n\nexport function escapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar);\n};\n\nexport function unescapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars);\n};\n","'use strict';\n\n/** Highest positive signed 32-bit float value */\nconst maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nconst base = 36;\nconst tMin = 1;\nconst tMax = 26;\nconst skew = 38;\nconst damp = 700;\nconst initialBias = 72;\nconst initialN = 128; // 0x80\nconst delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nconst regexPunycode = /^xn--/;\nconst regexNonASCII = /[^\\0-\\x7E]/; // non-ASCII chars\nconst regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nconst errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nconst baseMinusTMin = base - tMin;\nconst floor = Math.floor;\nconst stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, fn) {\n\tconst result = [];\n\tlet length = array.length;\n\twhile (length--) {\n\t\tresult[length] = fn(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(string, fn) {\n\tconst parts = string.split('@');\n\tlet result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tstring = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tstring = string.replace(regexSeparators, '\\x2E');\n\tconst labels = string.split('.');\n\tconst encoded = map(labels, fn).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tconst output = [];\n\tlet counter = 0;\n\tconst length = string.length;\n\twhile (counter < length) {\n\t\tconst value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tconst extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nconst ucs2encode = array => String.fromCodePoint(...array);\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nconst basicToDigit = function(codePoint) {\n\tif (codePoint - 0x30 < 0x0A) {\n\t\treturn codePoint - 0x16;\n\t}\n\tif (codePoint - 0x41 < 0x1A) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint - 0x61 < 0x1A) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nconst digitToBasic = function(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nconst adapt = function(delta, numPoints, firstTime) {\n\tlet k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nconst decode = function(input) {\n\t// Don't use UCS-2.\n\tconst output = [];\n\tconst inputLength = input.length;\n\tlet i = 0;\n\tlet n = initialN;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tlet basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (let j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tlet oldi = i;\n\t\tfor (let w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\n\t\t\tconst digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\n\t\t}\n\n\t\tconst out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\n\t}\n\n\treturn String.fromCodePoint(...output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nconst encode = function(input) {\n\tconst output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tlet inputLength = input.length;\n\n\t// Initialize the state.\n\tlet n = initialN;\n\tlet delta = 0;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points.\n\tfor (const currentValue of input) {\n\t\tif (currentValue < 0x80) {\n\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t}\n\t}\n\n\tlet basicLength = output.length;\n\tlet handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tlet m = maxInt;\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\tm = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t// but guard against overflow.\n\t\tconst handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\t\t\tif (currentValue == n) {\n\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\tlet q = delta;\n\t\t\t\tfor (let k = base; /* no condition */; k += base) {\n\t\t\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconst qMinusT = q - t;\n\t\t\t\t\tconst baseMinusT = base - t;\n\t\t\t\t\toutput.push(\n\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t);\n\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t}\n\n\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\tdelta = 0;\n\t\t\t\t++handledCPCount;\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nconst toUnicode = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexPunycode.test(string)\n\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t: string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nconst toASCII = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexNonASCII.test(string)\n\t\t\t? 'xn--' + encode(string)\n\t\t\t: string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nconst punycode = {\n\t/**\n\t * A string representing the current Punycode.js version number.\n\t * @memberOf punycode\n\t * @type String\n\t */\n\t'version': '2.1.0',\n\t/**\n\t * An object of methods to convert from JavaScript's internal character\n\t * representation (UCS-2) to Unicode code points, and back.\n\t * @see \n\t * @memberOf punycode\n\t * @type Object\n\t */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\nexport default punycode;\n","import { URIRegExps } from \"./uri\";\nimport { buildExps } from \"./regexps-uri\";\n\nexport default buildExps(true);\n","import { URIRegExps } from \"./uri\";\nimport { merge, subexp } from \"./util\";\n\nexport function buildExps(isIRI:boolean):URIRegExps {\n\tconst\n\t\tALPHA$$ = \"[A-Za-z]\",\n\t\tCR$ = \"[\\\\x0D]\",\n\t\tDIGIT$$ = \"[0-9]\",\n\t\tDQUOTE$$ = \"[\\\\x22]\",\n\t\tHEXDIG$$ = merge(DIGIT$$, \"[A-Fa-f]\"), //case-insensitive\n\t\tLF$$ = \"[\\\\x0A]\",\n\t\tSP$$ = \"[\\\\x20]\",\n\t\tPCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)), //expanded\n\t\tGEN_DELIMS$$ = \"[\\\\:\\\\/\\\\?\\\\#\\\\[\\\\]\\\\@]\",\n\t\tSUB_DELIMS$$ = \"[\\\\!\\\\$\\\\&\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\=]\",\n\t\tRESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),\n\t\tUCSCHAR$$ = isIRI ? \"[\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]\" : \"[]\", //subset, excludes bidi control characters\n\t\tIPRIVATE$$ = isIRI ? \"[\\\\uE000-\\\\uF8FF]\" : \"[]\", //subset\n\t\tUNRESERVED$$ = merge(ALPHA$$, DIGIT$$, \"[\\\\-\\\\.\\\\_\\\\~]\", UCSCHAR$$),\n\t\tSCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\") + \"*\"),\n\t\tUSERINFO$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\")) + \"*\"),\n\t\tDEC_OCTET$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"[1-9]\" + DIGIT$$) + \"|\" + DIGIT$$),\n\t\tDEC_OCTET_RELAXED$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"0?[1-9]\" + DIGIT$$) + \"|0?0?\" + DIGIT$$), //relaxed parsing rules\n\t\tIPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$),\n\t\tH16$ = subexp(HEXDIG$$ + \"{1,4}\"),\n\t\tLS32$ = subexp(subexp(H16$ + \"\\\\:\" + H16$) + \"|\" + IPV4ADDRESS$),\n\t\tIPV6ADDRESS1$ = subexp( subexp(H16$ + \"\\\\:\") + \"{6}\" + LS32$), // 6( h16 \":\" ) ls32\n\t\tIPV6ADDRESS2$ = subexp( \"\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{5}\" + LS32$), // \"::\" 5( h16 \":\" ) ls32\n\t\tIPV6ADDRESS3$ = subexp(subexp( H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{4}\" + LS32$), //[ h16 ] \"::\" 4( h16 \":\" ) ls32\n\t\tIPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,1}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{3}\" + LS32$), //[ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n\t\tIPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,2}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{2}\" + LS32$), //[ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n\t\tIPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,3}\" + H16$) + \"?\\\\:\\\\:\" + H16$ + \"\\\\:\" + LS32$), //[ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n\t\tIPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,4}\" + H16$) + \"?\\\\:\\\\:\" + LS32$), //[ *4( h16 \":\" ) h16 ] \"::\" ls32\n\t\tIPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,5}\" + H16$) + \"?\\\\:\\\\:\" + H16$ ), //[ *5( h16 \":\" ) h16 ] \"::\" h16\n\t\tIPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,6}\" + H16$) + \"?\\\\:\\\\:\" ), //[ *6( h16 \":\" ) h16 ] \"::\"\n\t\tIPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join(\"|\")),\n\t\tZONEID$ = subexp(subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$) + \"+\"), //RFC 6874\n\t\tIPV6ADDRZ$ = subexp(IPV6ADDRESS$ + \"\\\\%25\" + ZONEID$), //RFC 6874\n\t\tIPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + ZONEID$), //RFC 6874, with relaxed parsing rules\n\t\tIPVFUTURE$ = subexp(\"[vV]\" + HEXDIG$$ + \"+\\\\.\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\") + \"+\"),\n\t\tIP_LITERAL$ = subexp(\"\\\\[\" + subexp(IPV6ADDRZ_RELAXED$ + \"|\" + IPV6ADDRESS$ + \"|\" + IPVFUTURE$) + \"\\\\]\"), //RFC 6874\n\t\tREG_NAME$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$)) + \"*\"),\n\t\tHOST$ = subexp(IP_LITERAL$ + \"|\" + IPV4ADDRESS$ + \"(?!\" + REG_NAME$ + \")\" + \"|\" + REG_NAME$),\n\t\tPORT$ = subexp(DIGIT$$ + \"*\"),\n\t\tAUTHORITY$ = subexp(subexp(USERINFO$ + \"@\") + \"?\" + HOST$ + subexp(\"\\\\:\" + PORT$) + \"?\"),\n\t\tPCHAR$ = subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@]\")),\n\t\tSEGMENT$ = subexp(PCHAR$ + \"*\"),\n\t\tSEGMENT_NZ$ = subexp(PCHAR$ + \"+\"),\n\t\tSEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\@]\")) + \"+\"),\n\t\tPATH_ABEMPTY$ = subexp(subexp(\"\\\\/\" + SEGMENT$) + \"*\"),\n\t\tPATH_ABSOLUTE$ = subexp(\"\\\\/\" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + \"?\"), //simplified\n\t\tPATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_EMPTY$ = \"(?!\" + PCHAR$ + \")\",\n\t\tPATH$ = subexp(PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tQUERY$ = subexp(subexp(PCHAR$ + \"|\" + merge(\"[\\\\/\\\\?]\", IPRIVATE$$)) + \"*\"),\n\t\tFRAGMENT$ = subexp(subexp(PCHAR$ + \"|[\\\\/\\\\?]\") + \"*\"),\n\t\tHIER_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tURI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tRELATIVE_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$),\n\t\tRELATIVE$ = subexp(RELATIVE_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tURI_REFERENCE$ = subexp(URI$ + \"|\" + RELATIVE$),\n\t\tABSOLUTE_URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\"),\n\n\t\tGENERIC_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tRELATIVE_REF$ = \"^(){0}\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tABSOLUTE_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?$\",\n\t\tSAMEDOC_REF$ = \"^\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tAUTHORITY_REF$ = \"^\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?$\"\n\t;\n\n\treturn {\n\t\tNOT_SCHEME : new RegExp(merge(\"[^]\", ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\"), \"g\"),\n\t\tNOT_USERINFO : new RegExp(merge(\"[^\\\\%\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_HOST : new RegExp(merge(\"[^\\\\%\\\\[\\\\]\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH : new RegExp(merge(\"[^\\\\%\\\\/\\\\:\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH_NOSCHEME : new RegExp(merge(\"[^\\\\%\\\\/\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_QUERY : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\", IPRIVATE$$), \"g\"),\n\t\tNOT_FRAGMENT : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\"), \"g\"),\n\t\tESCAPE : new RegExp(merge(\"[^]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tUNRESERVED : new RegExp(UNRESERVED$$, \"g\"),\n\t\tOTHER_CHARS : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, RESERVED$$), \"g\"),\n\t\tPCT_ENCODED : new RegExp(PCT_ENCODED$, \"g\"),\n\t\tIPV4ADDRESS : new RegExp(\"^(\" + IPV4ADDRESS$ + \")$\"),\n\t\tIPV6ADDRESS : new RegExp(\"^\\\\[?(\" + IPV6ADDRESS$ + \")\" + subexp(subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + \"(\" + ZONEID$ + \")\") + \"?\\\\]?$\") //RFC 6874, with relaxed parsing rules\n\t};\n}\n\nexport default buildExps(false);\n","export function merge(...sets:Array):string {\n\tif (sets.length > 1) {\n\t\tsets[0] = sets[0].slice(0, -1);\n\t\tconst xl = sets.length - 1;\n\t\tfor (let x = 1; x < xl; ++x) {\n\t\t\tsets[x] = sets[x].slice(1, -1);\n\t\t}\n\t\tsets[xl] = sets[xl].slice(1);\n\t\treturn sets.join('');\n\t} else {\n\t\treturn sets[0];\n\t}\n}\n\nexport function subexp(str:string):string {\n\treturn \"(?:\" + str + \")\";\n}\n\nexport function typeOf(o:any):string {\n\treturn o === undefined ? \"undefined\" : (o === null ? \"null\" : Object.prototype.toString.call(o).split(\" \").pop().split(\"]\").shift().toLowerCase());\n}\n\nexport function toUpperCase(str:string):string {\n\treturn str.toUpperCase();\n}\n\nexport function toArray(obj:any):Array {\n\treturn obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== \"number\" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];\n}\n\n\nexport function assign(target: object, source: any): any {\n\tconst obj = target as any;\n\tif (source) {\n\t\tfor (const key in source) {\n\t\t\tobj[key] = source[key];\n\t\t}\n\t}\n\treturn obj;\n}"],"names":["SCHEMES","uuid","scheme","urn","mailto","wss","ws","https","http","urnComponents","nss","uuidComponents","toLowerCase","options","error","tolerant","match","UUID","undefined","handler","uriComponents","path","nid","schemeHandler","serialize","urnScheme","parse","matches","components","URN_PARSE","query","fields","join","length","push","name","replace","PCT_ENCODED","decodeUnreserved","toUpperCase","NOT_HFNAME","pctEncChar","headers","NOT_HFVALUE","O","mailtoComponents","body","subject","to","x","localPart","domain","iri","e","punycode","toASCII","unescapeComponent","toUnicode","toAddr","slice","atIdx","NOT_LOCAL_PART","lastIndexOf","String","xl","toArray","addr","unicodeSupport","split","unknownHeaders","hfield","toAddrs","hfields","decStr","UNRESERVED","str","pctDecChars","RegExp","merge","UNRESERVED$$","SOME_DELIMS$$","ATEXT$$","VCHAR$$","PCT_ENCODED$","QTEXT$$","subexp","HEXDIG$$","isIRI","domainHost","wsComponents","fragment","resourceName","secure","port","isSecure","host","toString","URI_PROTOCOL","IRI_PROTOCOL","ESCAPE","escapeComponent","uriA","uriB","typeOf","equal","uri","normalize","resolveComponents","baseURI","schemelessOptions","relativeURI","assign","resolve","target","relative","base","userinfo","removeDotSegments","charAt","skipNormalization","uriTokens","s","authority","absolutePath","reference","_recomposeAuthority","protocol","IPV6ADDRESS","test","output","Error","input","im","RDS5","pop","RDS3","RDS2","RDS1","$1","$2","_normalizeIPv6","_normalizeIPv4","_","uriString","isNaN","indexOf","parseInt","NO_MATCH_IS_UNDEFINED","URI_PARSE","newHost","zone","newFirst","newLast","longestZeroFields","index","b","a","allZeroFields","sort","acc","lastLongest","field","reduce","fieldCount","isLastFieldIPv4Address","firstFields","lastFields","lastFieldsStart","Array","IPV4ADDRESS","last","map","_stripLeadingZeros","first","address","reverse","NOT_FRAGMENT","NOT_QUERY","NOT_PATH","NOT_PATH_NOSCHEME","NOT_HOST","NOT_USERINFO","NOT_SCHEME","_normalizeComponentEncoding","newStr","substr","i","fromCharCode","c","c2","c3","il","chr","charCodeAt","encode","decode","ucs2encode","ucs2decode","regexNonASCII","string","mapDomain","regexPunycode","n","delta","handledCPCount","adapt","handledCPCountPlusOne","basicLength","stringFromCharCode","digitToBasic","q","floor","qMinusT","baseMinusT","t","k","bias","tMin","tMax","currentValue","maxInt","m","inputLength","delimiter","initialBias","initialN","fromCodePoint","splice","out","oldi","w","digit","basicToDigit","basic","j","baseMinusTMin","skew","numPoints","firstTime","damp","flag","codePoint","array","value","extra","counter","result","encoded","labels","fn","regexSeparators","parts","RangeError","errors","type","Math","buildExps","IPV6ADDRESS$","ZONEID$","IPV4ADDRESS$","RESERVED$$","SUB_DELIMS$$","IPRIVATE$$","ALPHA$$","DIGIT$$","AUTHORITY_REF$","USERINFO$","HOST$","PORT$","SAMEDOC_REF$","FRAGMENT$","ABSOLUTE_REF$","SCHEME$","PATH_ABEMPTY$","PATH_ABSOLUTE$","PATH_ROOTLESS$","PATH_EMPTY$","QUERY$","RELATIVE_REF$","PATH_NOSCHEME$","GENERIC_REF$","ABSOLUTE_URI$","HIER_PART$","URI_REFERENCE$","URI$","RELATIVE$","RELATIVE_PART$","AUTHORITY$","PCHAR$","PATH$","SEGMENT_NZ$","SEGMENT_NZ_NC$","SEGMENT$","IP_LITERAL$","REG_NAME$","IPV6ADDRZ_RELAXED$","IPVFUTURE$","IPV6ADDRESS1$","IPV6ADDRESS2$","IPV6ADDRESS3$","IPV6ADDRESS4$","IPV6ADDRESS5$","IPV6ADDRESS6$","IPV6ADDRESS7$","IPV6ADDRESS8$","IPV6ADDRESS9$","H16$","LS32$","DEC_OCTET_RELAXED$","DEC_OCTET$","UCSCHAR$$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9C;eAEOU,aAAP;;CA1CF,CA8CA;;AD5DA,IAAMH,OAAO,0DAAb;AACA,AAEA;AACA,IAAME,YAAsE;YAClE,UADkE;WAGnE,eAAUV,aAAV,EAAuCI,OAAvC,EAAT;YACQF,iBAAiBF,aAAvB;uBACeR,IAAf,GAAsBU,eAAeD,GAArC;uBACeA,GAAf,GAAqBQ,SAArB;YAEI,CAACL,QAAQE,QAAT,KAAsB,CAACJ,eAAeV,IAAhB,IAAwB,CAACU,eAAeV,IAAf,CAAoBe,KAApB,CAA0BC,IAA1B,CAA/C,CAAJ,EAAqF;2BACrEH,KAAf,GAAuBH,eAAeG,KAAf,IAAwB,oBAA/C;;eAGMH,cAAP;KAZ0E;eAe/D,mBAAUA,cAAV,EAAyCE,OAAzC,EAAb;YACQJ,gBAAgBE,cAAtB;;sBAEcD,GAAd,GAAoB,CAACC,eAAeV,IAAf,IAAuB,EAAxB,EAA4BW,WAA5B,EAApB;eACOH,aAAP;;CAnBF,CAuBA;;ADhCAT,QAAQQ,QAAKN,MAAb,IAAuBM,OAAvB;AAEA,AACAR,QAAQO,UAAML,MAAd,IAAwBK,SAAxB;AAEA,AACAP,QAAQM,UAAGJ,MAAX,IAAqBI,SAArB;AAEA,AACAN,QAAQK,UAAIH,MAAZ,IAAsBG,SAAtB;AAEA,AACAL,QAAQI,UAAOF,MAAf,IAAyBE,SAAzB;AAEA,AACAJ,QAAQG,UAAID,MAAZ,IAAsBC,SAAtB;AAEA,AACAH,QAAQC,UAAKC,MAAb,IAAuBD,SAAvB,CAEA;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/es5/uri.all.min.d.ts b/node_modules/uri-js/dist/es5/uri.all.min.d.ts deleted file mode 100755 index da51e23..0000000 --- a/node_modules/uri-js/dist/es5/uri.all.min.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -export interface URIComponents { - scheme?: string; - userinfo?: string; - host?: string; - port?: number | string; - path?: string; - query?: string; - fragment?: string; - reference?: string; - error?: string; -} -export interface URIOptions { - scheme?: string; - reference?: string; - tolerant?: boolean; - absolutePath?: boolean; - iri?: boolean; - unicodeSupport?: boolean; - domainHost?: boolean; -} -export interface URISchemeHandler { - scheme: string; - parse(components: ParentComponents, options: Options): Components; - serialize(components: Components, options: Options): ParentComponents; - unicodeSupport?: boolean; - domainHost?: boolean; - absolutePath?: boolean; -} -export interface URIRegExps { - NOT_SCHEME: RegExp; - NOT_USERINFO: RegExp; - NOT_HOST: RegExp; - NOT_PATH: RegExp; - NOT_PATH_NOSCHEME: RegExp; - NOT_QUERY: RegExp; - NOT_FRAGMENT: RegExp; - ESCAPE: RegExp; - UNRESERVED: RegExp; - OTHER_CHARS: RegExp; - PCT_ENCODED: RegExp; - IPV4ADDRESS: RegExp; - IPV6ADDRESS: RegExp; -} -export declare const SCHEMES: { - [scheme: string]: URISchemeHandler; -}; -export declare function pctEncChar(chr: string): string; -export declare function pctDecChars(str: string): string; -export declare function parse(uriString: string, options?: URIOptions): URIComponents; -export declare function removeDotSegments(input: string): string; -export declare function serialize(components: URIComponents, options?: URIOptions): string; -export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents; -export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string; -export declare function normalize(uri: string, options?: URIOptions): string; -export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents; -export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean; -export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean; -export declare function escapeComponent(str: string, options?: URIOptions): string; -export declare function unescapeComponent(str: string, options?: URIOptions): string; diff --git a/node_modules/uri-js/dist/es5/uri.all.min.js b/node_modules/uri-js/dist/es5/uri.all.min.js deleted file mode 100755 index fcd8458..0000000 --- a/node_modules/uri-js/dist/es5/uri.all.min.js +++ /dev/null @@ -1,3 +0,0 @@ -/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ -!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})}(this,function(e){"use strict";function r(){for(var e=arguments.length,r=Array(e),n=0;n1){r[0]=r[0].slice(0,-1);for(var t=r.length-1,o=1;o1&&(t=n[0]+"@",e=n[1]),e=e.replace(j,"."),t+f(e.split("."),r).join(".")}function p(e){for(var r=[],n=0,t=e.length;n=55296&&o<=56319&&n>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function d(e){for(var r="",n=0,t=e.length;n=194&&o<224){if(t-n>=6){var a=parseInt(e.substr(n+4,2),16);r+=String.fromCharCode((31&o)<<6|63&a)}else r+=e.substr(n,6);n+=6}else if(o>=224){if(t-n>=9){var i=parseInt(e.substr(n+4,2),16),u=parseInt(e.substr(n+7,2),16);r+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&u)}else r+=e.substr(n,9);n+=9}else r+=e.substr(n,3),n+=3}return r}function l(e,r){function n(e){var n=d(e);return n.match(r.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(r.PCT_ENCODED,n).toLowerCase().replace(r.NOT_SCHEME,"")),e.userinfo!==undefined&&(e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,n).replace(r.NOT_USERINFO,h).replace(r.PCT_ENCODED,o)),e.host!==undefined&&(e.host=String(e.host).replace(r.PCT_ENCODED,n).toLowerCase().replace(r.NOT_HOST,h).replace(r.PCT_ENCODED,o)),e.path!==undefined&&(e.path=String(e.path).replace(r.PCT_ENCODED,n).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,h).replace(r.PCT_ENCODED,o)),e.query!==undefined&&(e.query=String(e.query).replace(r.PCT_ENCODED,n).replace(r.NOT_QUERY,h).replace(r.PCT_ENCODED,o)),e.fragment!==undefined&&(e.fragment=String(e.fragment).replace(r.PCT_ENCODED,n).replace(r.NOT_FRAGMENT,h).replace(r.PCT_ENCODED,o)),e}function m(e){return e.replace(/^0*(.*)/,"$1")||"0"}function g(e,r){var n=e.match(r.IPV4ADDRESS)||[],t=T(n,2),o=t[1];return o?o.split(".").map(m).join("."):e}function v(e,r){var n=e.match(r.IPV6ADDRESS)||[],t=T(n,3),o=t[1],a=t[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),u=T(i,2),s=u[0],f=u[1],c=f?f.split(":").map(m):[],p=s.split(":").map(m),h=r.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,l=p.length-d,v=Array(d),E=0;E1){var A=v.slice(0,y.index),D=v.slice(y.index+y.length);S=A.join(":")+"::"+D.join(":")}else S=v.join(":");return a&&(S+="%"+a),S}return e}function E(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n={},t=!1!==r.iri?R:F;"suffix"===r.reference&&(e=(r.scheme?r.scheme+":":"")+"//"+e);var o=e.match(K);if(o){W?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||undefined,n.userinfo=-1!==e.indexOf("@")?o[3]:undefined,n.host=-1!==e.indexOf("//")?o[4]:undefined,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:undefined,n.fragment=-1!==e.indexOf("#")?o[8]:undefined,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined)),n.host&&(n.host=v(g(n.host,t),t)),n.scheme!==undefined||n.userinfo!==undefined||n.host!==undefined||n.port!==undefined||n.path||n.query!==undefined?n.scheme===undefined?n.reference="relative":n.fragment===undefined?n.reference="absolute":n.reference="uri":n.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");var a=J[(r.scheme||n.scheme||"").toLowerCase()];if(r.unicodeSupport||a&&a.unicodeSupport)l(n,t);else{if(n.host&&(r.domainHost||a&&a.domainHost))try{n.host=B.toASCII(n.host.replace(t.PCT_ENCODED,d).toLowerCase())}catch(i){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+i}l(n,F)}a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}function C(e,r){var n=!1!==r.iri?R:F,t=[];return e.userinfo!==undefined&&(t.push(e.userinfo),t.push("@")),e.host!==undefined&&t.push(v(g(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,r,n){return"["+r+(n?"%25"+n:"")+"]"})),"number"!=typeof e.port&&"string"!=typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):undefined}function y(e){for(var r=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(ee))e=e.replace(ee,"/");else if(e.match(re))e=e.replace(re,"/"),r.pop();else if("."===e||".."===e)e="";else{var n=e.match(ne);if(!n)throw new Error("Unexpected dot segment condition");var t=n[0];e=e.slice(t.length),r.push(t)}return r.join("")}function S(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=r.iri?R:F,t=[],o=J[(r.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,r),e.host)if(n.IPV6ADDRESS.test(e.host));else if(r.domainHost||o&&o.domainHost)try{e.host=r.iri?B.toUnicode(e.host):B.toASCII(e.host.replace(n.PCT_ENCODED,d).toLowerCase())}catch(u){e.error=e.error||"Host's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+u}l(e,n),"suffix"!==r.reference&&e.scheme&&(t.push(e.scheme),t.push(":"));var a=C(e,r);if(a!==undefined&&("suffix"!==r.reference&&t.push("//"),t.push(a),e.path&&"/"!==e.path.charAt(0)&&t.push("/")),e.path!==undefined){var i=e.path;r.absolutePath||o&&o.absolutePath||(i=y(i)),a===undefined&&(i=i.replace(/^\/\//,"/%2F")),t.push(i)}return e.query!==undefined&&(t.push("?"),t.push(e.query)),e.fragment!==undefined&&(t.push("#"),t.push(e.fragment)),t.join("")}function A(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},t=arguments[3],o={};return t||(e=E(S(e,n),n),r=E(S(r,n),n)),n=n||{},!n.tolerant&&r.scheme?(o.scheme=r.scheme,o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=y(r.path||""),o.query=r.query):(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined?(o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=y(r.path||""),o.query=r.query):(r.path?("/"===r.path.charAt(0)?o.path=y(r.path):(e.userinfo===undefined&&e.host===undefined&&e.port===undefined||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:o.path=r.path:o.path="/"+r.path,o.path=y(o.path)),o.query=r.query):(o.path=e.path,r.query!==undefined?o.query=r.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=r.fragment,o}function D(e,r,n){var t=i({scheme:"null"},n);return S(A(E(e,t),E(r,t),t,!0),t)}function w(e,r){return"string"==typeof e?e=S(E(e,r),r):"object"===t(e)&&(e=E(S(e,r),r)),e}function b(e,r,n){return"string"==typeof e?e=S(E(e,n),n):"object"===t(e)&&(e=S(e,n)),"string"==typeof r?r=S(E(r,n),n):"object"===t(r)&&(r=S(r,n)),e===r}function x(e,r){return e&&e.toString().replace(r&&r.iri?R.ESCAPE:F.ESCAPE,h)}function O(e,r){return e&&e.toString().replace(r&&r.iri?R.PCT_ENCODED:F.PCT_ENCODED,d)}function N(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function I(e){var r=d(e);return r.match(he)?r:e}var F=u(!1),R=u(!0),T=function(){function e(e,r){var n=[],t=!0,o=!1,a=undefined;try{for(var i,u=e[Symbol.iterator]();!(t=(i=u.next()).done)&&(n.push(i.value),!r||n.length!==r);t=!0);}catch(s){o=!0,a=s}finally{try{!t&&u["return"]&&u["return"]()}finally{if(o)throw a}}return n}return function(r,n){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(e){if(Array.isArray(e)){for(var r=0,n=Array(e.length);r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=Math.floor,L=String.fromCharCode,$=function(e){return String.fromCodePoint.apply(String,_(e))},M=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36},V=function(e,r){return e+22+75*(e<26)-((0!=r)<<5)},k=function(e,r,n){var t=0;for(e=n?z(e/700):e>>1,e+=z(e/r);e>455;t+=36)e=z(e/35);return z(t+36*e/(e+38))},Z=function(e){var r=[],n=e.length,t=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(var u=0;u=128&&s("not-basic"),r.push(e.charCodeAt(u));for(var f=i>0?i+1:0;f=n&&s("invalid-input");var d=M(e.charCodeAt(f++));(d>=36||d>z((P-t)/p))&&s("overflow"),t+=d*p;var l=h<=a?1:h>=a+26?26:h-a;if(dz(P/m)&&s("overflow"),p*=m}var g=r.length+1;a=k(t-c,g,0==c),z(t/g)>P-o&&s("overflow"),o+=z(t/g),t%=g,r.splice(t++,0,o)}return String.fromCodePoint.apply(String,r)},G=function(e){var r=[];e=p(e);var n=e.length,t=128,o=0,a=72,i=!0,u=!1,f=undefined;try{for(var c,h=e[Symbol.iterator]();!(i=(c=h.next()).done);i=!0){var d=c.value;d<128&&r.push(L(d))}}catch(U){u=!0,f=U}finally{try{!i&&h["return"]&&h["return"]()}finally{if(u)throw f}}var l=r.length,m=l;for(l&&r.push("-");m=t&&Az((P-o)/D)&&s("overflow"),o+=(g-t)*D,t=g;var w=!0,b=!1,x=undefined;try{for(var O,N=e[Symbol.iterator]();!(w=(O=N.next()).done);w=!0){var I=O.value;if(IP&&s("overflow"),I==t){for(var F=o,R=36;;R+=36){var T=R<=a?1:R>=a+26?26:R-a;if(FA-Z\\x5E-\\x7E]",'[\\"\\\\]'),he=new RegExp(se,"g"),de=new RegExp(ce,"g"),le=new RegExp(r("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',pe),"g"),me=new RegExp(r("[^]",se,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ge=me,ve={scheme:"mailto",parse:function(e,r){var n=e,t=n.to=n.path?n.path.split(","):[];if(n.path=undefined,n.query){for(var o=!1,a={},i=n.query.split("&"),u=0,s=i.length;u):string {\n\tif (sets.length > 1) {\n\t\tsets[0] = sets[0].slice(0, -1);\n\t\tconst xl = sets.length - 1;\n\t\tfor (let x = 1; x < xl; ++x) {\n\t\t\tsets[x] = sets[x].slice(1, -1);\n\t\t}\n\t\tsets[xl] = sets[xl].slice(1);\n\t\treturn sets.join('');\n\t} else {\n\t\treturn sets[0];\n\t}\n}\n\nexport function subexp(str:string):string {\n\treturn \"(?:\" + str + \")\";\n}\n\nexport function typeOf(o:any):string {\n\treturn o === undefined ? \"undefined\" : (o === null ? \"null\" : Object.prototype.toString.call(o).split(\" \").pop().split(\"]\").shift().toLowerCase());\n}\n\nexport function toUpperCase(str:string):string {\n\treturn str.toUpperCase();\n}\n\nexport function toArray(obj:any):Array {\n\treturn obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== \"number\" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];\n}\n\n\nexport function assign(target: object, source: any): any {\n\tconst obj = target as any;\n\tif (source) {\n\t\tfor (const key in source) {\n\t\t\tobj[key] = source[key];\n\t\t}\n\t}\n\treturn obj;\n}","import { URIRegExps } from \"./uri\";\nimport { merge, subexp } from \"./util\";\n\nexport function buildExps(isIRI:boolean):URIRegExps {\n\tconst\n\t\tALPHA$$ = \"[A-Za-z]\",\n\t\tCR$ = \"[\\\\x0D]\",\n\t\tDIGIT$$ = \"[0-9]\",\n\t\tDQUOTE$$ = \"[\\\\x22]\",\n\t\tHEXDIG$$ = merge(DIGIT$$, \"[A-Fa-f]\"), //case-insensitive\n\t\tLF$$ = \"[\\\\x0A]\",\n\t\tSP$$ = \"[\\\\x20]\",\n\t\tPCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)), //expanded\n\t\tGEN_DELIMS$$ = \"[\\\\:\\\\/\\\\?\\\\#\\\\[\\\\]\\\\@]\",\n\t\tSUB_DELIMS$$ = \"[\\\\!\\\\$\\\\&\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\=]\",\n\t\tRESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),\n\t\tUCSCHAR$$ = isIRI ? \"[\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]\" : \"[]\", //subset, excludes bidi control characters\n\t\tIPRIVATE$$ = isIRI ? \"[\\\\uE000-\\\\uF8FF]\" : \"[]\", //subset\n\t\tUNRESERVED$$ = merge(ALPHA$$, DIGIT$$, \"[\\\\-\\\\.\\\\_\\\\~]\", UCSCHAR$$),\n\t\tSCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\") + \"*\"),\n\t\tUSERINFO$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\")) + \"*\"),\n\t\tDEC_OCTET$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"[1-9]\" + DIGIT$$) + \"|\" + DIGIT$$),\n\t\tDEC_OCTET_RELAXED$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"0?[1-9]\" + DIGIT$$) + \"|0?0?\" + DIGIT$$), //relaxed parsing rules\n\t\tIPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$),\n\t\tH16$ = subexp(HEXDIG$$ + \"{1,4}\"),\n\t\tLS32$ = subexp(subexp(H16$ + \"\\\\:\" + H16$) + \"|\" + IPV4ADDRESS$),\n\t\tIPV6ADDRESS1$ = subexp( subexp(H16$ + \"\\\\:\") + \"{6}\" + LS32$), // 6( h16 \":\" ) ls32\n\t\tIPV6ADDRESS2$ = subexp( \"\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{5}\" + LS32$), // \"::\" 5( h16 \":\" ) ls32\n\t\tIPV6ADDRESS3$ = subexp(subexp( H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{4}\" + LS32$), //[ h16 ] \"::\" 4( h16 \":\" ) ls32\n\t\tIPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,1}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{3}\" + LS32$), //[ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n\t\tIPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,2}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{2}\" + LS32$), //[ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n\t\tIPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,3}\" + H16$) + \"?\\\\:\\\\:\" + H16$ + \"\\\\:\" + LS32$), //[ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n\t\tIPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,4}\" + H16$) + \"?\\\\:\\\\:\" + LS32$), //[ *4( h16 \":\" ) h16 ] \"::\" ls32\n\t\tIPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,5}\" + H16$) + \"?\\\\:\\\\:\" + H16$ ), //[ *5( h16 \":\" ) h16 ] \"::\" h16\n\t\tIPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,6}\" + H16$) + \"?\\\\:\\\\:\" ), //[ *6( h16 \":\" ) h16 ] \"::\"\n\t\tIPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join(\"|\")),\n\t\tZONEID$ = subexp(subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$) + \"+\"), //RFC 6874\n\t\tIPV6ADDRZ$ = subexp(IPV6ADDRESS$ + \"\\\\%25\" + ZONEID$), //RFC 6874\n\t\tIPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + ZONEID$), //RFC 6874, with relaxed parsing rules\n\t\tIPVFUTURE$ = subexp(\"[vV]\" + HEXDIG$$ + \"+\\\\.\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\") + \"+\"),\n\t\tIP_LITERAL$ = subexp(\"\\\\[\" + subexp(IPV6ADDRZ_RELAXED$ + \"|\" + IPV6ADDRESS$ + \"|\" + IPVFUTURE$) + \"\\\\]\"), //RFC 6874\n\t\tREG_NAME$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$)) + \"*\"),\n\t\tHOST$ = subexp(IP_LITERAL$ + \"|\" + IPV4ADDRESS$ + \"(?!\" + REG_NAME$ + \")\" + \"|\" + REG_NAME$),\n\t\tPORT$ = subexp(DIGIT$$ + \"*\"),\n\t\tAUTHORITY$ = subexp(subexp(USERINFO$ + \"@\") + \"?\" + HOST$ + subexp(\"\\\\:\" + PORT$) + \"?\"),\n\t\tPCHAR$ = subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@]\")),\n\t\tSEGMENT$ = subexp(PCHAR$ + \"*\"),\n\t\tSEGMENT_NZ$ = subexp(PCHAR$ + \"+\"),\n\t\tSEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\@]\")) + \"+\"),\n\t\tPATH_ABEMPTY$ = subexp(subexp(\"\\\\/\" + SEGMENT$) + \"*\"),\n\t\tPATH_ABSOLUTE$ = subexp(\"\\\\/\" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + \"?\"), //simplified\n\t\tPATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_EMPTY$ = \"(?!\" + PCHAR$ + \")\",\n\t\tPATH$ = subexp(PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tQUERY$ = subexp(subexp(PCHAR$ + \"|\" + merge(\"[\\\\/\\\\?]\", IPRIVATE$$)) + \"*\"),\n\t\tFRAGMENT$ = subexp(subexp(PCHAR$ + \"|[\\\\/\\\\?]\") + \"*\"),\n\t\tHIER_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tURI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tRELATIVE_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$),\n\t\tRELATIVE$ = subexp(RELATIVE_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tURI_REFERENCE$ = subexp(URI$ + \"|\" + RELATIVE$),\n\t\tABSOLUTE_URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\"),\n\n\t\tGENERIC_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tRELATIVE_REF$ = \"^(){0}\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tABSOLUTE_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?$\",\n\t\tSAMEDOC_REF$ = \"^\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tAUTHORITY_REF$ = \"^\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?$\"\n\t;\n\n\treturn {\n\t\tNOT_SCHEME : new RegExp(merge(\"[^]\", ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\"), \"g\"),\n\t\tNOT_USERINFO : new RegExp(merge(\"[^\\\\%\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_HOST : new RegExp(merge(\"[^\\\\%\\\\[\\\\]\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH : new RegExp(merge(\"[^\\\\%\\\\/\\\\:\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH_NOSCHEME : new RegExp(merge(\"[^\\\\%\\\\/\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_QUERY : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\", IPRIVATE$$), \"g\"),\n\t\tNOT_FRAGMENT : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\"), \"g\"),\n\t\tESCAPE : new RegExp(merge(\"[^]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tUNRESERVED : new RegExp(UNRESERVED$$, \"g\"),\n\t\tOTHER_CHARS : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, RESERVED$$), \"g\"),\n\t\tPCT_ENCODED : new RegExp(PCT_ENCODED$, \"g\"),\n\t\tIPV4ADDRESS : new RegExp(\"^(\" + IPV4ADDRESS$ + \")$\"),\n\t\tIPV6ADDRESS : new RegExp(\"^\\\\[?(\" + IPV6ADDRESS$ + \")\" + subexp(subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + \"(\" + ZONEID$ + \")\") + \"?\\\\]?$\") //RFC 6874, with relaxed parsing rules\n\t};\n}\n\nexport default buildExps(false);\n","'use strict';\n\n/** Highest positive signed 32-bit float value */\nconst maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nconst base = 36;\nconst tMin = 1;\nconst tMax = 26;\nconst skew = 38;\nconst damp = 700;\nconst initialBias = 72;\nconst initialN = 128; // 0x80\nconst delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nconst regexPunycode = /^xn--/;\nconst regexNonASCII = /[^\\0-\\x7E]/; // non-ASCII chars\nconst regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nconst errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nconst baseMinusTMin = base - tMin;\nconst floor = Math.floor;\nconst stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, fn) {\n\tconst result = [];\n\tlet length = array.length;\n\twhile (length--) {\n\t\tresult[length] = fn(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(string, fn) {\n\tconst parts = string.split('@');\n\tlet result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tstring = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tstring = string.replace(regexSeparators, '\\x2E');\n\tconst labels = string.split('.');\n\tconst encoded = map(labels, fn).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tconst output = [];\n\tlet counter = 0;\n\tconst length = string.length;\n\twhile (counter < length) {\n\t\tconst value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tconst extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nconst ucs2encode = array => String.fromCodePoint(...array);\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nconst basicToDigit = function(codePoint) {\n\tif (codePoint - 0x30 < 0x0A) {\n\t\treturn codePoint - 0x16;\n\t}\n\tif (codePoint - 0x41 < 0x1A) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint - 0x61 < 0x1A) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nconst digitToBasic = function(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nconst adapt = function(delta, numPoints, firstTime) {\n\tlet k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nconst decode = function(input) {\n\t// Don't use UCS-2.\n\tconst output = [];\n\tconst inputLength = input.length;\n\tlet i = 0;\n\tlet n = initialN;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tlet basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (let j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tlet oldi = i;\n\t\tfor (let w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\n\t\t\tconst digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\n\t\t}\n\n\t\tconst out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\n\t}\n\n\treturn String.fromCodePoint(...output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nconst encode = function(input) {\n\tconst output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tlet inputLength = input.length;\n\n\t// Initialize the state.\n\tlet n = initialN;\n\tlet delta = 0;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points.\n\tfor (const currentValue of input) {\n\t\tif (currentValue < 0x80) {\n\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t}\n\t}\n\n\tlet basicLength = output.length;\n\tlet handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tlet m = maxInt;\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\tm = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t// but guard against overflow.\n\t\tconst handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\t\t\tif (currentValue == n) {\n\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\tlet q = delta;\n\t\t\t\tfor (let k = base; /* no condition */; k += base) {\n\t\t\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconst qMinusT = q - t;\n\t\t\t\t\tconst baseMinusT = base - t;\n\t\t\t\t\toutput.push(\n\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t);\n\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t}\n\n\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\tdelta = 0;\n\t\t\t\t++handledCPCount;\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nconst toUnicode = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexPunycode.test(string)\n\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t: string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nconst toASCII = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexNonASCII.test(string)\n\t\t\t? 'xn--' + encode(string)\n\t\t\t: string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nconst punycode = {\n\t/**\n\t * A string representing the current Punycode.js version number.\n\t * @memberOf punycode\n\t * @type String\n\t */\n\t'version': '2.1.0',\n\t/**\n\t * An object of methods to convert from JavaScript's internal character\n\t * representation (UCS-2) to Unicode code points, and back.\n\t * @see \n\t * @memberOf punycode\n\t * @type Object\n\t */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\nexport default punycode;\n","/**\n * URI.js\n *\n * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.\n * @author Gary Court\n * @see http://github.com/garycourt/uri-js\n */\n\n/**\n * Copyright 2011 Gary Court. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of Gary Court.\n */\n\nimport URI_PROTOCOL from \"./regexps-uri\";\nimport IRI_PROTOCOL from \"./regexps-iri\";\nimport punycode from \"punycode\";\nimport { toUpperCase, typeOf, assign } from \"./util\";\n\nexport interface URIComponents {\n\tscheme?:string;\n\tuserinfo?:string;\n\thost?:string;\n\tport?:number|string;\n\tpath?:string;\n\tquery?:string;\n\tfragment?:string;\n\treference?:string;\n\terror?:string;\n}\n\nexport interface URIOptions {\n\tscheme?:string;\n\treference?:string;\n\ttolerant?:boolean;\n\tabsolutePath?:boolean;\n\tiri?:boolean;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n}\n\nexport interface URISchemeHandler {\n\tscheme:string;\n\tparse(components:ParentComponents, options:Options):Components;\n\tserialize(components:Components, options:Options):ParentComponents;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n\tabsolutePath?:boolean;\n}\n\nexport interface URIRegExps {\n\tNOT_SCHEME : RegExp,\n\tNOT_USERINFO : RegExp,\n\tNOT_HOST : RegExp,\n\tNOT_PATH : RegExp,\n\tNOT_PATH_NOSCHEME : RegExp,\n\tNOT_QUERY : RegExp,\n\tNOT_FRAGMENT : RegExp,\n\tESCAPE : RegExp,\n\tUNRESERVED : RegExp,\n\tOTHER_CHARS : RegExp,\n\tPCT_ENCODED : RegExp,\n\tIPV4ADDRESS : RegExp,\n\tIPV6ADDRESS : RegExp,\n}\n\nexport const SCHEMES:{[scheme:string]:URISchemeHandler} = {};\n\nexport function pctEncChar(chr:string):string {\n\tconst c = chr.charCodeAt(0);\n\tlet e:string;\n\n\tif (c < 16) e = \"%0\" + c.toString(16).toUpperCase();\n\telse if (c < 128) e = \"%\" + c.toString(16).toUpperCase();\n\telse if (c < 2048) e = \"%\" + ((c >> 6) | 192).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\telse e = \"%\" + ((c >> 12) | 224).toString(16).toUpperCase() + \"%\" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\n\treturn e;\n}\n\nexport function pctDecChars(str:string):string {\n\tlet newStr = \"\";\n\tlet i = 0;\n\tconst il = str.length;\n\n\twhile (i < il) {\n\t\tconst c = parseInt(str.substr(i + 1, 2), 16);\n\n\t\tif (c < 128) {\n\t\t\tnewStr += String.fromCharCode(c);\n\t\t\ti += 3;\n\t\t}\n\t\telse if (c >= 194 && c < 224) {\n\t\t\tif ((il - i) >= 6) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 6);\n\t\t\t}\n\t\t\ti += 6;\n\t\t}\n\t\telse if (c >= 224) {\n\t\t\tif ((il - i) >= 9) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tconst c3 = parseInt(str.substr(i + 7, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 9);\n\t\t\t}\n\t\t\ti += 9;\n\t\t}\n\t\telse {\n\t\t\tnewStr += str.substr(i, 3);\n\t\t\ti += 3;\n\t\t}\n\t}\n\n\treturn newStr;\n}\n\nfunction _normalizeComponentEncoding(components:URIComponents, protocol:URIRegExps) {\n\tfunction decodeUnreserved(str:string):string {\n\t\tconst decStr = pctDecChars(str);\n\t\treturn (!decStr.match(protocol.UNRESERVED) ? str : decStr);\n\t}\n\n\tif (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, \"\");\n\tif (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\n\treturn components;\n};\n\nfunction _stripLeadingZeros(str:string):string {\n\treturn str.replace(/^0*(.*)/, \"$1\") || \"0\";\n}\n\nfunction _normalizeIPv4(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV4ADDRESS) || [];\n\tconst [, address] = matches;\n\t\n\tif (address) {\n\t\treturn address.split(\".\").map(_stripLeadingZeros).join(\".\");\n\t} else {\n\t\treturn host;\n\t}\n}\n\nfunction _normalizeIPv6(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV6ADDRESS) || [];\n\tconst [, address, zone] = matches;\n\n\tif (address) {\n\t\tconst [last, first] = address.toLowerCase().split('::').reverse();\n\t\tconst firstFields = first ? first.split(\":\").map(_stripLeadingZeros) : [];\n\t\tconst lastFields = last.split(\":\").map(_stripLeadingZeros);\n\t\tconst isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);\n\t\tconst fieldCount = isLastFieldIPv4Address ? 7 : 8;\n\t\tconst lastFieldsStart = lastFields.length - fieldCount;\n\t\tconst fields = Array(fieldCount);\n\n\t\tfor (let x = 0; x < fieldCount; ++x) {\n\t\t\tfields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';\n\t\t}\n\n\t\tif (isLastFieldIPv4Address) {\n\t\t\tfields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);\n\t\t}\n\n\t\tconst allZeroFields = fields.reduce>((acc, field, index) => {\n\t\t\tif (!field || field === \"0\") {\n\t\t\t\tconst lastLongest = acc[acc.length - 1];\n\t\t\t\tif (lastLongest && lastLongest.index + lastLongest.length === index) {\n\t\t\t\t\tlastLongest.length++;\n\t\t\t\t} else {\n\t\t\t\t\tacc.push({ index, length : 1 });\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn acc;\n\t\t}, []);\n\n\t\tconst longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0];\n\n\t\tlet newHost:string;\n\t\tif (longestZeroFields && longestZeroFields.length > 1) {\n\t\t\tconst newFirst = fields.slice(0, longestZeroFields.index) ;\n\t\t\tconst newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);\n\t\t\tnewHost = newFirst.join(\":\") + \"::\" + newLast.join(\":\");\n\t\t} else {\n\t\t\tnewHost = fields.join(\":\");\n\t\t}\n\n\t\tif (zone) {\n\t\t\tnewHost += \"%\" + zone;\n\t\t}\n\n\t\treturn newHost;\n\t} else {\n\t\treturn host;\n\t}\n}\n\nconst URI_PARSE = /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:([^\\/?#@]*)@)?(\\[[^\\/?#\\]]+\\]|[^\\/?#:]*)(?:\\:(\\d*))?))?([^?#]*)(?:\\?([^#]*))?(?:#((?:.|\\n|\\r)*))?/i;\nconst NO_MATCH_IS_UNDEFINED = ((\"\").match(/(){0}/))[1] === undefined;\n\nexport function parse(uriString:string, options:URIOptions = {}):URIComponents {\n\tconst components:URIComponents = {};\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\n\tif (options.reference === \"suffix\") uriString = (options.scheme ? options.scheme + \":\" : \"\") + \"//\" + uriString;\n\n\tconst matches = uriString.match(URI_PARSE);\n\n\tif (matches) {\n\t\tif (NO_MATCH_IS_UNDEFINED) {\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1];\n\t\t\tcomponents.userinfo = matches[3];\n\t\t\tcomponents.host = matches[4];\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = matches[7];\n\t\t\tcomponents.fragment = matches[8];\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = matches[5];\n\t\t\t}\n\t\t} else { //IE FIX for improper RegExp matching\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1] || undefined;\n\t\t\tcomponents.userinfo = (uriString.indexOf(\"@\") !== -1 ? matches[3] : undefined);\n\t\t\tcomponents.host = (uriString.indexOf(\"//\") !== -1 ? matches[4] : undefined);\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = (uriString.indexOf(\"?\") !== -1 ? matches[7] : undefined);\n\t\t\tcomponents.fragment = (uriString.indexOf(\"#\") !== -1 ? matches[8] : undefined);\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = (uriString.match(/\\/\\/(?:.|\\n)*\\:(?:\\/|\\?|\\#|$)/) ? matches[4] : undefined);\n\t\t\t}\n\t\t}\n\n\t\tif (components.host) {\n\t\t\t//normalize IP hosts\n\t\t\tcomponents.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);\n\t\t}\n\n\t\t//determine reference type\n\t\tif (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {\n\t\t\tcomponents.reference = \"same-document\";\n\t\t} else if (components.scheme === undefined) {\n\t\t\tcomponents.reference = \"relative\";\n\t\t} else if (components.fragment === undefined) {\n\t\t\tcomponents.reference = \"absolute\";\n\t\t} else {\n\t\t\tcomponents.reference = \"uri\";\n\t\t}\n\n\t\t//check for reference errors\n\t\tif (options.reference && options.reference !== \"suffix\" && options.reference !== components.reference) {\n\t\t\tcomponents.error = components.error || \"URI is not a \" + options.reference + \" reference.\";\n\t\t}\n\n\t\t//find scheme handler\n\t\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t\t//check if scheme can't handle IRIs\n\t\tif (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n\t\t\t//if host component is a domain name\n\t\t\tif (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\tcomponents.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert IRI -> URI\n\t\t\t_normalizeComponentEncoding(components, URI_PROTOCOL);\n\t\t} else {\n\t\t\t//normalize encodings\n\t\t\t_normalizeComponentEncoding(components, protocol);\n\t\t}\n\n\t\t//perform scheme specific parsing\n\t\tif (schemeHandler && schemeHandler.parse) {\n\t\t\tschemeHandler.parse(components, options);\n\t\t}\n\t} else {\n\t\tcomponents.error = components.error || \"URI can not be parsed.\";\n\t}\n\n\treturn components;\n};\n\nfunction _recomposeAuthority(components:URIComponents, options:URIOptions):string|undefined {\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array = [];\n\n\tif (components.userinfo !== undefined) {\n\t\turiTokens.push(components.userinfo);\n\t\turiTokens.push(\"@\");\n\t}\n\n\tif (components.host !== undefined) {\n\t\t//normalize IP hosts, add brackets and escape zone separator for IPv6\n\t\turiTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => \"[\" + $1 + ($2 ? \"%25\" + $2 : \"\") + \"]\"));\n\t}\n\n\tif (typeof components.port === \"number\" || typeof components.port === \"string\") {\n\t\turiTokens.push(\":\");\n\t\turiTokens.push(String(components.port));\n\t}\n\n\treturn uriTokens.length ? uriTokens.join(\"\") : undefined;\n};\n\nconst RDS1 = /^\\.\\.?\\//;\nconst RDS2 = /^\\/\\.(\\/|$)/;\nconst RDS3 = /^\\/\\.\\.(\\/|$)/;\nconst RDS4 = /^\\.\\.?$/;\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/;\n\nexport function removeDotSegments(input:string):string {\n\tconst output:Array = [];\n\n\twhile (input.length) {\n\t\tif (input.match(RDS1)) {\n\t\t\tinput = input.replace(RDS1, \"\");\n\t\t} else if (input.match(RDS2)) {\n\t\t\tinput = input.replace(RDS2, \"/\");\n\t\t} else if (input.match(RDS3)) {\n\t\t\tinput = input.replace(RDS3, \"/\");\n\t\t\toutput.pop();\n\t\t} else if (input === \".\" || input === \"..\") {\n\t\t\tinput = \"\";\n\t\t} else {\n\t\t\tconst im = input.match(RDS5);\n\t\t\tif (im) {\n\t\t\t\tconst s = im[0];\n\t\t\t\tinput = input.slice(s.length);\n\t\t\t\toutput.push(s);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unexpected dot segment condition\");\n\t\t\t}\n\t\t}\n\t}\n\n\treturn output.join(\"\");\n};\n\nexport function serialize(components:URIComponents, options:URIOptions = {}):string {\n\tconst protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array = [];\n\n\t//find scheme handler\n\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t//perform scheme specific serialization\n\tif (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);\n\n\tif (components.host) {\n\t\t//if host component is an IPv6 address\n\t\tif (protocol.IPV6ADDRESS.test(components.host)) {\n\t\t\t//TODO: normalize IPv6 address as per RFC 5952\n\t\t}\n\n\t\t//if host component is a domain name\n\t\telse if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) {\n\t\t\t//convert IDN via punycode\n\t\t\ttry {\n\t\t\t\tcomponents.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host));\n\t\t\t} catch (e) {\n\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t}\n\t\t}\n\t}\n\n\t//normalize encoding\n\t_normalizeComponentEncoding(components, protocol);\n\n\tif (options.reference !== \"suffix\" && components.scheme) {\n\t\turiTokens.push(components.scheme);\n\t\turiTokens.push(\":\");\n\t}\n\n\tconst authority = _recomposeAuthority(components, options);\n\tif (authority !== undefined) {\n\t\tif (options.reference !== \"suffix\") {\n\t\t\turiTokens.push(\"//\");\n\t\t}\n\n\t\turiTokens.push(authority);\n\n\t\tif (components.path && components.path.charAt(0) !== \"/\") {\n\t\t\turiTokens.push(\"/\");\n\t\t}\n\t}\n\n\tif (components.path !== undefined) {\n\t\tlet s = components.path;\n\n\t\tif (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n\t\t\ts = removeDotSegments(s);\n\t\t}\n\n\t\tif (authority === undefined) {\n\t\t\ts = s.replace(/^\\/\\//, \"/%2F\"); //don't allow the path to start with \"//\"\n\t\t}\n\n\t\turiTokens.push(s);\n\t}\n\n\tif (components.query !== undefined) {\n\t\turiTokens.push(\"?\");\n\t\turiTokens.push(components.query);\n\t}\n\n\tif (components.fragment !== undefined) {\n\t\turiTokens.push(\"#\");\n\t\turiTokens.push(components.fragment);\n\t}\n\n\treturn uriTokens.join(\"\"); //merge tokens into a string\n};\n\nexport function resolveComponents(base:URIComponents, relative:URIComponents, options:URIOptions = {}, skipNormalization?:boolean):URIComponents {\n\tconst target:URIComponents = {};\n\n\tif (!skipNormalization) {\n\t\tbase = parse(serialize(base, options), options); //normalize base components\n\t\trelative = parse(serialize(relative, options), options); //normalize relative components\n\t}\n\toptions = options || {};\n\n\tif (!options.tolerant && relative.scheme) {\n\t\ttarget.scheme = relative.scheme;\n\t\t//target.authority = relative.authority;\n\t\ttarget.userinfo = relative.userinfo;\n\t\ttarget.host = relative.host;\n\t\ttarget.port = relative.port;\n\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\ttarget.query = relative.query;\n\t} else {\n\t\tif (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n\t\t\t//target.authority = relative.authority;\n\t\t\ttarget.userinfo = relative.userinfo;\n\t\t\ttarget.host = relative.host;\n\t\t\ttarget.port = relative.port;\n\t\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\t\ttarget.query = relative.query;\n\t\t} else {\n\t\t\tif (!relative.path) {\n\t\t\t\ttarget.path = base.path;\n\t\t\t\tif (relative.query !== undefined) {\n\t\t\t\t\ttarget.query = relative.query;\n\t\t\t\t} else {\n\t\t\t\t\ttarget.query = base.query;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (relative.path.charAt(0) === \"/\") {\n\t\t\t\t\ttarget.path = removeDotSegments(relative.path);\n\t\t\t\t} else {\n\t\t\t\t\tif ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n\t\t\t\t\t\ttarget.path = \"/\" + relative.path;\n\t\t\t\t\t} else if (!base.path) {\n\t\t\t\t\t\ttarget.path = relative.path;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttarget.path = base.path.slice(0, base.path.lastIndexOf(\"/\") + 1) + relative.path;\n\t\t\t\t\t}\n\t\t\t\t\ttarget.path = removeDotSegments(target.path);\n\t\t\t\t}\n\t\t\t\ttarget.query = relative.query;\n\t\t\t}\n\t\t\t//target.authority = base.authority;\n\t\t\ttarget.userinfo = base.userinfo;\n\t\t\ttarget.host = base.host;\n\t\t\ttarget.port = base.port;\n\t\t}\n\t\ttarget.scheme = base.scheme;\n\t}\n\n\ttarget.fragment = relative.fragment;\n\n\treturn target;\n};\n\nexport function resolve(baseURI:string, relativeURI:string, options?:URIOptions):string {\n\tconst schemelessOptions = assign({ scheme : 'null' }, options);\n\treturn serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);\n};\n\nexport function normalize(uri:string, options?:URIOptions):string;\nexport function normalize(uri:URIComponents, options?:URIOptions):URIComponents;\nexport function normalize(uri:any, options?:URIOptions):any {\n\tif (typeof uri === \"string\") {\n\t\turi = serialize(parse(uri, options), options);\n\t} else if (typeOf(uri) === \"object\") {\n\t\turi = parse(serialize(uri, options), options);\n\t}\n\n\treturn uri;\n};\n\nexport function equal(uriA:string, uriB:string, options?: URIOptions):boolean;\nexport function equal(uriA:URIComponents, uriB:URIComponents, options?:URIOptions):boolean;\nexport function equal(uriA:any, uriB:any, options?:URIOptions):boolean {\n\tif (typeof uriA === \"string\") {\n\t\turiA = serialize(parse(uriA, options), options);\n\t} else if (typeOf(uriA) === \"object\") {\n\t\turiA = serialize(uriA, options);\n\t}\n\n\tif (typeof uriB === \"string\") {\n\t\turiB = serialize(parse(uriB, options), options);\n\t} else if (typeOf(uriB) === \"object\") {\n\t\turiB = serialize(uriB, options);\n\t}\n\n\treturn uriA === uriB;\n};\n\nexport function escapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar);\n};\n\nexport function unescapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars);\n};\n","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\n\nexport interface WSComponents extends URIComponents {\n\tresourceName?: string;\n\tsecure?: boolean;\n}\n\nfunction isSecure(wsComponents:WSComponents):boolean {\n\treturn typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === \"wss\";\n}\n\n//RFC 6455\nconst handler:URISchemeHandler = {\n\tscheme : \"ws\",\n\n\tdomainHost : true,\n\n\tparse : function (components:URIComponents, options:URIOptions):WSComponents {\n\t\tconst wsComponents = components as WSComponents;\n\n\t\t//indicate if the secure flag is set\n\t\twsComponents.secure = isSecure(wsComponents);\n\n\t\t//construct resouce name\n\t\twsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');\n\t\twsComponents.path = undefined;\n\t\twsComponents.query = undefined;\n\n\t\treturn wsComponents;\n\t},\n\n\tserialize : function (wsComponents:WSComponents, options:URIOptions):URIComponents {\n\t\t//normalize the default port\n\t\tif (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === \"\") {\n\t\t\twsComponents.port = undefined;\n\t\t}\n\n\t\t//ensure scheme matches secure flag\n\t\tif (typeof wsComponents.secure === 'boolean') {\n\t\t\twsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws');\n\t\t\twsComponents.secure = undefined;\n\t\t}\n\n\t\t//reconstruct path from resource name\n\t\tif (wsComponents.resourceName) {\n\t\t\tconst [path, query] = wsComponents.resourceName.split('?');\n\t\t\twsComponents.path = (path && path !== '/' ? path : undefined);\n\t\t\twsComponents.query = query;\n\t\t\twsComponents.resourceName = undefined;\n\t\t}\n\n\t\t//forbid fragment component\n\t\twsComponents.fragment = undefined;\n\n\t\treturn wsComponents;\n\t}\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, pctDecChars, unescapeComponent } from \"../uri\";\nimport punycode from \"punycode\";\nimport { merge, subexp, toUpperCase, toArray } from \"../util\";\n\nexport interface MailtoHeaders {\n\t[hfname:string]:string\n}\n\nexport interface MailtoComponents extends URIComponents {\n\tto:Array,\n\theaders?:MailtoHeaders,\n\tsubject?:string,\n\tbody?:string\n}\n\nconst O:MailtoHeaders = {};\nconst isIRI = true;\n\n//RFC 3986\nconst UNRESERVED$$ = \"[A-Za-z0-9\\\\-\\\\.\\\\_\\\\~\" + (isIRI ? \"\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF\" : \"\") + \"]\";\nconst HEXDIG$$ = \"[0-9A-Fa-f]\"; //case-insensitive\nconst PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)); //expanded\n\n//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =\n//const ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\/\\\\=\\\\?\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QTEXT$$ = \"[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F]\"; //(%d1-8 / %d11-12 / %d14-31 / %d127)\n//const QTEXT$$ = merge(\"[\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]\", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext\n//const VCHAR$$ = \"[\\\\x21-\\\\x7E]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QP$ = subexp(\"\\\\\\\\\" + merge(\"[\\\\x00\\\\x0D\\\\x0A]\", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext\n//const FWS$ = subexp(subexp(WSP$$ + \"*\" + \"\\\\x0D\\\\x0A\") + \"?\" + WSP$$ + \"+\");\n//const QUOTED_PAIR$ = subexp(subexp(\"\\\\\\\\\" + subexp(VCHAR$$ + \"|\" + WSP$$)) + \"|\" + OBS_QP$);\n//const QUOTED_STRING$ = subexp('\\\\\"' + subexp(FWS$ + \"?\" + QCONTENT$) + \"*\" + FWS$ + \"?\" + '\\\\\"');\nconst ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\$\\\\%\\\\'\\\\*\\\\+\\\\-\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\nconst QTEXT$$ = \"[\\\\!\\\\$\\\\%\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\-\\\\.0-9\\\\<\\\\>A-Z\\\\x5E-\\\\x7E]\";\nconst VCHAR$$ = merge(QTEXT$$, \"[\\\\\\\"\\\\\\\\]\");\nconst DOT_ATOM_TEXT$ = subexp(ATEXT$$ + \"+\" + subexp(\"\\\\.\" + ATEXT$$ + \"+\") + \"*\");\nconst QUOTED_PAIR$ = subexp(\"\\\\\\\\\" + VCHAR$$);\nconst QCONTENT$ = subexp(QTEXT$$ + \"|\" + QUOTED_PAIR$);\nconst QUOTED_STRING$ = subexp('\\\\\"' + QCONTENT$ + \"*\" + '\\\\\"');\n\n//RFC 6068\nconst DTEXT_NO_OBS$$ = \"[\\\\x21-\\\\x5A\\\\x5E-\\\\x7E]\"; //%d33-90 / %d94-126\nconst SOME_DELIMS$$ = \"[\\\\!\\\\$\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\:\\\\@]\";\nconst QCHAR$ = subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$ + \"|\" + SOME_DELIMS$$);\nconst DOMAIN$ = subexp(DOT_ATOM_TEXT$ + \"|\" + \"\\\\[\" + DTEXT_NO_OBS$$ + \"*\" + \"\\\\]\");\nconst LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + \"|\" + QUOTED_STRING$);\nconst ADDR_SPEC$ = subexp(LOCAL_PART$ + \"\\\\@\" + DOMAIN$);\nconst TO$ = subexp(ADDR_SPEC$ + subexp(\"\\\\,\" + ADDR_SPEC$) + \"*\");\nconst HFNAME$ = subexp(QCHAR$ + \"*\");\nconst HFVALUE$ = HFNAME$;\nconst HFIELD$ = subexp(HFNAME$ + \"\\\\=\" + HFVALUE$);\nconst HFIELDS2$ = subexp(HFIELD$ + subexp(\"\\\\&\" + HFIELD$) + \"*\");\nconst HFIELDS$ = subexp(\"\\\\?\" + HFIELDS2$);\nconst MAILTO_URI = new RegExp(\"^mailto\\\\:\" + TO$ + \"?\" + HFIELDS$ + \"?$\");\n\nconst UNRESERVED = new RegExp(UNRESERVED$$, \"g\");\nconst PCT_ENCODED = new RegExp(PCT_ENCODED$, \"g\");\nconst NOT_LOCAL_PART = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", '[\\\\\"]', VCHAR$$), \"g\");\nconst NOT_DOMAIN = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", \"[\\\\[]\", DTEXT_NO_OBS$$, \"[\\\\]]\"), \"g\");\nconst NOT_HFNAME = new RegExp(merge(\"[^]\", UNRESERVED$$, SOME_DELIMS$$), \"g\");\nconst NOT_HFVALUE = NOT_HFNAME;\nconst TO = new RegExp(\"^\" + TO$ + \"$\");\nconst HFIELDS = new RegExp(\"^\" + HFIELDS2$ + \"$\");\n\nfunction decodeUnreserved(str:string):string {\n\tconst decStr = pctDecChars(str);\n\treturn (!decStr.match(UNRESERVED) ? str : decStr);\n}\n\nconst handler:URISchemeHandler = {\n\tscheme : \"mailto\",\n\n\tparse : function (components:URIComponents, options:URIOptions):MailtoComponents {\n\t\tconst mailtoComponents = components as MailtoComponents;\n\t\tconst to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(\",\") : []);\n\t\tmailtoComponents.path = undefined;\n\n\t\tif (mailtoComponents.query) {\n\t\t\tlet unknownHeaders = false\n\t\t\tconst headers:MailtoHeaders = {};\n\t\t\tconst hfields = mailtoComponents.query.split(\"&\");\n\n\t\t\tfor (let x = 0, xl = hfields.length; x < xl; ++x) {\n\t\t\t\tconst hfield = hfields[x].split(\"=\");\n\n\t\t\t\tswitch (hfield[0]) {\n\t\t\t\t\tcase \"to\":\n\t\t\t\t\t\tconst toAddrs = hfield[1].split(\",\");\n\t\t\t\t\t\tfor (let x = 0, xl = toAddrs.length; x < xl; ++x) {\n\t\t\t\t\t\t\tto.push(toAddrs[x]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"subject\":\n\t\t\t\t\t\tmailtoComponents.subject = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"body\":\n\t\t\t\t\t\tmailtoComponents.body = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunknownHeaders = true;\n\t\t\t\t\t\theaders[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (unknownHeaders) mailtoComponents.headers = headers;\n\t\t}\n\n\t\tmailtoComponents.query = undefined;\n\n\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\tconst addr = to[x].split(\"@\");\n\n\t\t\taddr[0] = unescapeComponent(addr[0]);\n\n\t\t\tif (!options.unicodeSupport) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\taddr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tmailtoComponents.error = mailtoComponents.error || \"Email address's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\taddr[1] = unescapeComponent(addr[1], options).toLowerCase();\n\t\t\t}\n\n\t\t\tto[x] = addr.join(\"@\");\n\t\t}\n\n\t\treturn mailtoComponents;\n\t},\n\n\tserialize : function (mailtoComponents:MailtoComponents, options:URIOptions):URIComponents {\n\t\tconst components = mailtoComponents as URIComponents;\n\t\tconst to = toArray(mailtoComponents.to);\n\t\tif (to) {\n\t\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\t\tconst toAddr = String(to[x]);\n\t\t\t\tconst atIdx = toAddr.lastIndexOf(\"@\");\n\t\t\t\tconst localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);\n\t\t\t\tlet domain = toAddr.slice(atIdx + 1);\n\n\t\t\t\t//convert IDN via punycode\n\t\t\t\ttry {\n\t\t\t\t\tdomain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain));\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Email address's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t\t}\n\n\t\t\t\tto[x] = localPart + \"@\" + domain;\n\t\t\t}\n\n\t\t\tcomponents.path = to.join(\",\");\n\t\t}\n\n\t\tconst headers = mailtoComponents.headers = mailtoComponents.headers || {};\n\n\t\tif (mailtoComponents.subject) headers[\"subject\"] = mailtoComponents.subject;\n\t\tif (mailtoComponents.body) headers[\"body\"] = mailtoComponents.body;\n\n\t\tconst fields = [];\n\t\tfor (const name in headers) {\n\t\t\tif (headers[name] !== O[name]) {\n\t\t\t\tfields.push(\n\t\t\t\t\tname.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) +\n\t\t\t\t\t\"=\" +\n\t\t\t\t\theaders[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tif (fields.length) {\n\t\t\tcomponents.query = fields.join(\"&\");\n\t\t}\n\n\t\treturn components;\n\t}\n}\n\nexport default handler;","import { URIRegExps } from \"./uri\";\nimport { buildExps } from \"./regexps-uri\";\n\nexport default buildExps(true);\n","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"http\",\n\n\tdomainHost : true,\n\n\tparse : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\t//report missing host\n\t\tif (!components.host) {\n\t\t\tcomponents.error = components.error || \"HTTP URIs must have a host.\";\n\t\t}\n\n\t\treturn components;\n\t},\n\n\tserialize : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\tconst secure = String(components.scheme).toLowerCase() === \"https\";\n\n\t\t//normalize the default port\n\t\tif (components.port === (secure ? 443 : 80) || components.port === \"\") {\n\t\t\tcomponents.port = undefined;\n\t\t}\n\t\t\n\t\t//normalize the empty path\n\t\tif (!components.path) {\n\t\t\tcomponents.path = \"/\";\n\t\t}\n\n\t\t//NOTE: We do not parse query strings for HTTP URIs\n\t\t//as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n\t\t//and not the HTTP spec.\n\n\t\treturn components;\n\t}\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport http from \"./http\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"https\",\n\tdomainHost : http.domainHost,\n\tparse : http.parse,\n\tserialize : http.serialize\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport ws from \"./ws\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"wss\",\n\tdomainHost : ws.domainHost,\n\tparse : ws.parse,\n\tserialize : ws.serialize\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, SCHEMES } from \"../uri\";\n\nexport interface URNComponents extends URIComponents {\n\tnid?:string;\n\tnss?:string;\n}\n\nexport interface URNOptions extends URIOptions {\n\tnid?:string;\n}\n\nconst NID$ = \"(?:[0-9A-Za-z][0-9A-Za-z\\\\-]{1,31})\";\nconst PCT_ENCODED$ = \"(?:\\\\%[0-9A-Fa-f]{2})\";\nconst TRANS$$ = \"[0-9A-Za-z\\\\(\\\\)\\\\+\\\\,\\\\-\\\\.\\\\:\\\\=\\\\@\\\\;\\\\$\\\\_\\\\!\\\\*\\\\'\\\\/\\\\?\\\\#]\";\nconst NSS$ = \"(?:(?:\" + PCT_ENCODED$ + \"|\" + TRANS$$ + \")+)\";\nconst URN_SCHEME = new RegExp(\"^urn\\\\:(\" + NID$ + \")$\");\nconst URN_PATH = new RegExp(\"^(\" + NID$ + \")\\\\:(\" + NSS$ + \")$\");\nconst URN_PARSE = /^([^\\:]+)\\:(.*)/;\nconst URN_EXCLUDED = /[\\x00-\\x20\\\\\\\"\\&\\<\\>\\[\\]\\^\\`\\{\\|\\}\\~\\x7F-\\xFF]/g;\n\n//RFC 2141\nconst handler:URISchemeHandler = {\n\tscheme : \"urn\",\n\n\tparse : function (components:URIComponents, options:URNOptions):URNComponents {\n\t\tconst matches = components.path && components.path.match(URN_PARSE);\n\t\tlet urnComponents = components as URNComponents;\n\n\t\tif (matches) {\n\t\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\t\tconst nid = matches[1].toLowerCase();\n\t\t\tconst nss = matches[2];\n\t\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\t\turnComponents.nid = nid;\n\t\t\turnComponents.nss = nss;\n\t\t\turnComponents.path = undefined;\n\n\t\t\tif (schemeHandler) {\n\t\t\t\turnComponents = schemeHandler.parse(urnComponents, options) as URNComponents;\n\t\t\t}\n\t\t} else {\n\t\t\turnComponents.error = urnComponents.error || \"URN can not be parsed.\";\n\t\t}\n\n\t\treturn urnComponents;\n\t},\n\n\tserialize : function (urnComponents:URNComponents, options:URNOptions):URIComponents {\n\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\tconst nid = urnComponents.nid;\n\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\tif (schemeHandler) {\n\t\t\turnComponents = schemeHandler.serialize(urnComponents, options) as URNComponents;\n\t\t}\n\n\t\tconst uriComponents = urnComponents as URIComponents;\n\t\tconst nss = urnComponents.nss;\n\t\turiComponents.path = `${nid || options.nid}:${nss}`;\n\n\t\treturn uriComponents;\n\t},\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { URNComponents } from \"./urn\";\nimport { SCHEMES } from \"../uri\";\n\nexport interface UUIDComponents extends URNComponents {\n\tuuid?: string;\n}\n\nconst UUID = /^[0-9A-Fa-f]{8}(?:\\-[0-9A-Fa-f]{4}){3}\\-[0-9A-Fa-f]{12}$/;\nconst UUID_PARSE = /^[0-9A-Fa-f\\-]{36}/;\n\n//RFC 4122\nconst handler:URISchemeHandler = {\n\tscheme : \"urn:uuid\",\n\n\tparse : function (urnComponents:URNComponents, options:URIOptions):UUIDComponents {\n\t\tconst uuidComponents = urnComponents as UUIDComponents;\n\t\tuuidComponents.uuid = uuidComponents.nss;\n\t\tuuidComponents.nss = undefined;\n\n\t\tif (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {\n\t\t\tuuidComponents.error = uuidComponents.error || \"UUID is not valid.\";\n\t\t}\n\n\t\treturn uuidComponents;\n\t},\n\n\tserialize : function (uuidComponents:UUIDComponents, options:URIOptions):URNComponents {\n\t\tconst urnComponents = uuidComponents as URNComponents;\n\t\t//normalize UUID\n\t\turnComponents.nss = (uuidComponents.uuid || \"\").toLowerCase();\n\t\treturn urnComponents;\n\t},\n};\n\nexport default handler;","import { SCHEMES } from \"./uri\";\n\nimport http from \"./schemes/http\";\nSCHEMES[http.scheme] = http;\n\nimport https from \"./schemes/https\";\nSCHEMES[https.scheme] = https;\n\nimport ws from \"./schemes/ws\";\nSCHEMES[ws.scheme] = ws;\n\nimport wss from \"./schemes/wss\";\nSCHEMES[wss.scheme] = wss;\n\nimport mailto from \"./schemes/mailto\";\nSCHEMES[mailto.scheme] = mailto;\n\nimport urn from \"./schemes/urn\";\nSCHEMES[urn.scheme] = urn;\n\nimport uuid from \"./schemes/urn-uuid\";\nSCHEMES[uuid.scheme] = uuid;\n\nexport * from \"./uri\";\n"]} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/index.d.ts b/node_modules/uri-js/dist/esnext/index.d.ts deleted file mode 100755 index f6be760..0000000 --- a/node_modules/uri-js/dist/esnext/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./uri"; diff --git a/node_modules/uri-js/dist/esnext/index.js b/node_modules/uri-js/dist/esnext/index.js deleted file mode 100755 index e3531b5..0000000 --- a/node_modules/uri-js/dist/esnext/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import { SCHEMES } from "./uri"; -import http from "./schemes/http"; -SCHEMES[http.scheme] = http; -import https from "./schemes/https"; -SCHEMES[https.scheme] = https; -import ws from "./schemes/ws"; -SCHEMES[ws.scheme] = ws; -import wss from "./schemes/wss"; -SCHEMES[wss.scheme] = wss; -import mailto from "./schemes/mailto"; -SCHEMES[mailto.scheme] = mailto; -import urn from "./schemes/urn"; -SCHEMES[urn.scheme] = urn; -import uuid from "./schemes/urn-uuid"; -SCHEMES[uuid.scheme] = uuid; -export * from "./uri"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/index.js.map b/node_modules/uri-js/dist/esnext/index.js.map deleted file mode 100755 index 0971f6e..0000000 --- a/node_modules/uri-js/dist/esnext/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE5B,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;AAE9B,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9B,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;AAExB,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAE1B,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAEhC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAE1B,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE5B,cAAc,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.d.ts b/node_modules/uri-js/dist/esnext/regexps-iri.d.ts deleted file mode 100755 index c91cdac..0000000 --- a/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { URIRegExps } from "./uri"; -declare const _default: URIRegExps; -export default _default; diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.js b/node_modules/uri-js/dist/esnext/regexps-iri.js deleted file mode 100755 index 34e7de9..0000000 --- a/node_modules/uri-js/dist/esnext/regexps-iri.js +++ /dev/null @@ -1,3 +0,0 @@ -import { buildExps } from "./regexps-uri"; -export default buildExps(true); -//# sourceMappingURL=regexps-iri.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.js.map b/node_modules/uri-js/dist/esnext/regexps-iri.js.map deleted file mode 100755 index 2269c58..0000000 --- a/node_modules/uri-js/dist/esnext/regexps-iri.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"regexps-iri.js","sourceRoot":"","sources":["../../src/regexps-iri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAe,SAAS,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.d.ts b/node_modules/uri-js/dist/esnext/regexps-uri.d.ts deleted file mode 100755 index 6096bda..0000000 --- a/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { URIRegExps } from "./uri"; -export declare function buildExps(isIRI: boolean): URIRegExps; -declare const _default: URIRegExps; -export default _default; diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.js b/node_modules/uri-js/dist/esnext/regexps-uri.js deleted file mode 100755 index 1cc659f..0000000 --- a/node_modules/uri-js/dist/esnext/regexps-uri.js +++ /dev/null @@ -1,42 +0,0 @@ -import { merge, subexp } from "./util"; -export function buildExps(isIRI) { - const ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), //case-insensitive - LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), //expanded - GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", //subset, excludes bidi control characters - IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", //subset - UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), //relaxed parsing rules - IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$ + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), // 6( h16 ":" ) ls32 - IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), // "::" 5( h16 ":" ) ls32 - IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), //[ h16 ] "::" 4( h16 ":" ) ls32 - IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 - IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 - IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 - IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), //[ *4( h16 ":" ) h16 ] "::" ls32 - IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), //[ *5( h16 ":" ) h16 ] "::" h16 - IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), //[ *6( h16 ":" ) h16 ] "::" - IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), //RFC 6874 - IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), //RFC 6874 - IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), //RFC 6874, with relaxed parsing rules - IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), //RFC 6874 - REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), //simplified - PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified - PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified - PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$"; - return { - NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"), - NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), - NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"), - NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"), - ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"), - UNRESERVED: new RegExp(UNRESERVED$$, "g"), - OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"), - PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"), - IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"), - IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules - }; -} -export default buildExps(false); -//# sourceMappingURL=regexps-uri.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.js.map b/node_modules/uri-js/dist/esnext/regexps-uri.js.map deleted file mode 100755 index cb028b8..0000000 --- a/node_modules/uri-js/dist/esnext/regexps-uri.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"regexps-uri.js","sourceRoot":"","sources":["../../src/regexps-uri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,oBAAoB,KAAa;IACtC,MACC,OAAO,GAAG,UAAU,EACpB,GAAG,GAAG,SAAS,EACf,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,SAAS,EACpB,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,EAAG,kBAAkB;IAC1D,IAAI,GAAG,SAAS,EAChB,IAAI,GAAG,SAAS,EAChB,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,aAAa,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,QAAQ,GAAG,QAAQ,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AAG,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;QAC1C,WAAW,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC;QACxE,WAAW,EAAG,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;QAC3C,WAAW,EAAG,IAAI,MAAM,CAAC,IAAI,GAAG,YAAY,GAAG,IAAI,CAAC;QACpD,WAAW,EAAG,IAAI,MAAM,CAAC,QAAQ,GAAG,YAAY,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAE,sCAAsC;KACrL,CAAC;AACH,CAAC;AAED,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/http.d.ts b/node_modules/uri-js/dist/esnext/schemes/http.d.ts deleted file mode 100755 index fe5b2f3..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/http.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { URISchemeHandler } from "../uri"; -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/http.js b/node_modules/uri-js/dist/esnext/schemes/http.js deleted file mode 100755 index 6abf0fe..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/http.js +++ /dev/null @@ -1,28 +0,0 @@ -const handler = { - scheme: "http", - domainHost: true, - parse: function (components, options) { - //report missing host - if (!components.host) { - components.error = components.error || "HTTP URIs must have a host."; - } - return components; - }, - serialize: function (components, options) { - const secure = String(components.scheme).toLowerCase() === "https"; - //normalize the default port - if (components.port === (secure ? 443 : 80) || components.port === "") { - components.port = undefined; - } - //normalize the empty path - if (!components.path) { - components.path = "/"; - } - //NOTE: We do not parse query strings for HTTP URIs - //as WWW Form Url Encoded query strings are part of the HTML4+ spec, - //and not the HTTP spec. - return components; - } -}; -export default handler; -//# sourceMappingURL=http.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/http.js.map b/node_modules/uri-js/dist/esnext/schemes/http.js.map deleted file mode 100755 index 8211897..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/http.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/schemes/http.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAoB;IAChC,MAAM,EAAG,MAAM;IAEf,UAAU,EAAG,IAAI;IAEjB,KAAK,EAAG,UAAU,UAAwB,EAAE,OAAkB;QAC7D,qBAAqB;QACrB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACrB,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,6BAA6B,CAAC;SACrE;QAED,OAAO,UAAU,CAAC;IACnB,CAAC;IAED,SAAS,EAAG,UAAU,UAAwB,EAAE,OAAkB;QACjE,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC;QAEnE,4BAA4B;QAC5B,IAAI,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,KAAK,EAAE,EAAE;YACtE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;SAC5B;QAED,0BAA0B;QAC1B,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACrB,UAAU,CAAC,IAAI,GAAG,GAAG,CAAC;SACtB;QAED,mDAAmD;QACnD,oEAAoE;QACpE,wBAAwB;QAExB,OAAO,UAAU,CAAC;IACnB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/https.d.ts b/node_modules/uri-js/dist/esnext/schemes/https.d.ts deleted file mode 100755 index fe5b2f3..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/https.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { URISchemeHandler } from "../uri"; -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/https.js b/node_modules/uri-js/dist/esnext/schemes/https.js deleted file mode 100755 index ec4b6e7..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/https.js +++ /dev/null @@ -1,9 +0,0 @@ -import http from "./http"; -const handler = { - scheme: "https", - domainHost: http.domainHost, - parse: http.parse, - serialize: http.serialize -}; -export default handler; -//# sourceMappingURL=https.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/https.js.map b/node_modules/uri-js/dist/esnext/schemes/https.js.map deleted file mode 100755 index 385b8ef..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/https.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"https.js","sourceRoot":"","sources":["../../../src/schemes/https.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,OAAO,GAAoB;IAChC,MAAM,EAAG,OAAO;IAChB,UAAU,EAAG,IAAI,CAAC,UAAU;IAC5B,KAAK,EAAG,IAAI,CAAC,KAAK;IAClB,SAAS,EAAG,IAAI,CAAC,SAAS;CAC1B,CAAA;AAED,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts b/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts deleted file mode 100755 index e2aefc2..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { URISchemeHandler, URIComponents } from "../uri"; -export interface MailtoHeaders { - [hfname: string]: string; -} -export interface MailtoComponents extends URIComponents { - to: Array; - headers?: MailtoHeaders; - subject?: string; - body?: string; -} -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.js b/node_modules/uri-js/dist/esnext/schemes/mailto.js deleted file mode 100755 index 2553713..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/mailto.js +++ /dev/null @@ -1,148 +0,0 @@ -import { pctEncChar, pctDecChars, unescapeComponent } from "../uri"; -import punycode from "punycode"; -import { merge, subexp, toUpperCase, toArray } from "../util"; -const O = {}; -const isIRI = true; -//RFC 3986 -const UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]"; -const HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive -const PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded -//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; = -//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]"; -//const WSP$$ = "[\\x20\\x09]"; -//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127) -//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext -//const VCHAR$$ = "[\\x21-\\x7E]"; -//const WSP$$ = "[\\x20\\x09]"; -//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext -//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+"); -//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$); -//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"'); -const ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]"; -const QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]"; -const VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]"); -const DOT_ATOM_TEXT$ = subexp(ATEXT$$ + "+" + subexp("\\." + ATEXT$$ + "+") + "*"); -const QUOTED_PAIR$ = subexp("\\\\" + VCHAR$$); -const QCONTENT$ = subexp(QTEXT$$ + "|" + QUOTED_PAIR$); -const QUOTED_STRING$ = subexp('\\"' + QCONTENT$ + "*" + '\\"'); -//RFC 6068 -const DTEXT_NO_OBS$$ = "[\\x21-\\x5A\\x5E-\\x7E]"; //%d33-90 / %d94-126 -const SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"; -const QCHAR$ = subexp(UNRESERVED$$ + "|" + PCT_ENCODED$ + "|" + SOME_DELIMS$$); -const DOMAIN$ = subexp(DOT_ATOM_TEXT$ + "|" + "\\[" + DTEXT_NO_OBS$$ + "*" + "\\]"); -const LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + "|" + QUOTED_STRING$); -const ADDR_SPEC$ = subexp(LOCAL_PART$ + "\\@" + DOMAIN$); -const TO$ = subexp(ADDR_SPEC$ + subexp("\\," + ADDR_SPEC$) + "*"); -const HFNAME$ = subexp(QCHAR$ + "*"); -const HFVALUE$ = HFNAME$; -const HFIELD$ = subexp(HFNAME$ + "\\=" + HFVALUE$); -const HFIELDS2$ = subexp(HFIELD$ + subexp("\\&" + HFIELD$) + "*"); -const HFIELDS$ = subexp("\\?" + HFIELDS2$); -const MAILTO_URI = new RegExp("^mailto\\:" + TO$ + "?" + HFIELDS$ + "?$"); -const UNRESERVED = new RegExp(UNRESERVED$$, "g"); -const PCT_ENCODED = new RegExp(PCT_ENCODED$, "g"); -const NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g"); -const NOT_DOMAIN = new RegExp(merge("[^]", ATEXT$$, "[\\.]", "[\\[]", DTEXT_NO_OBS$$, "[\\]]"), "g"); -const NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g"); -const NOT_HFVALUE = NOT_HFNAME; -const TO = new RegExp("^" + TO$ + "$"); -const HFIELDS = new RegExp("^" + HFIELDS2$ + "$"); -function decodeUnreserved(str) { - const decStr = pctDecChars(str); - return (!decStr.match(UNRESERVED) ? str : decStr); -} -const handler = { - scheme: "mailto", - parse: function (components, options) { - const mailtoComponents = components; - const to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(",") : []); - mailtoComponents.path = undefined; - if (mailtoComponents.query) { - let unknownHeaders = false; - const headers = {}; - const hfields = mailtoComponents.query.split("&"); - for (let x = 0, xl = hfields.length; x < xl; ++x) { - const hfield = hfields[x].split("="); - switch (hfield[0]) { - case "to": - const toAddrs = hfield[1].split(","); - for (let x = 0, xl = toAddrs.length; x < xl; ++x) { - to.push(toAddrs[x]); - } - break; - case "subject": - mailtoComponents.subject = unescapeComponent(hfield[1], options); - break; - case "body": - mailtoComponents.body = unescapeComponent(hfield[1], options); - break; - default: - unknownHeaders = true; - headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options); - break; - } - } - if (unknownHeaders) - mailtoComponents.headers = headers; - } - mailtoComponents.query = undefined; - for (let x = 0, xl = to.length; x < xl; ++x) { - const addr = to[x].split("@"); - addr[0] = unescapeComponent(addr[0]); - if (!options.unicodeSupport) { - //convert Unicode IDN -> ASCII IDN - try { - addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase()); - } - catch (e) { - mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e; - } - } - else { - addr[1] = unescapeComponent(addr[1], options).toLowerCase(); - } - to[x] = addr.join("@"); - } - return mailtoComponents; - }, - serialize: function (mailtoComponents, options) { - const components = mailtoComponents; - const to = toArray(mailtoComponents.to); - if (to) { - for (let x = 0, xl = to.length; x < xl; ++x) { - const toAddr = String(to[x]); - const atIdx = toAddr.lastIndexOf("@"); - const localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar); - let domain = toAddr.slice(atIdx + 1); - //convert IDN via punycode - try { - domain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain)); - } - catch (e) { - components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; - } - to[x] = localPart + "@" + domain; - } - components.path = to.join(","); - } - const headers = mailtoComponents.headers = mailtoComponents.headers || {}; - if (mailtoComponents.subject) - headers["subject"] = mailtoComponents.subject; - if (mailtoComponents.body) - headers["body"] = mailtoComponents.body; - const fields = []; - for (const name in headers) { - if (headers[name] !== O[name]) { - fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + - "=" + - headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)); - } - } - if (fields.length) { - components.query = fields.join("&"); - } - return components; - } -}; -export default handler; -//# sourceMappingURL=mailto.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.js.map b/node_modules/uri-js/dist/esnext/schemes/mailto.js.map deleted file mode 100755 index 82dba9a..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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AC,GAAG,SAAS,GAAG,GAAG,GAAG,MAAM,CAAC;aACjC;YAED,UAAU,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC/B;QAED,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,IAAI,EAAE,CAAC;QAE1E,IAAI,gBAAgB,CAAC,OAAO;YAAE,OAAO,CAAC,SAAS,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC;QAC5E,IAAI,gBAAgB,CAAC,IAAI;YAAE,OAAO,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC;QAEnE,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE;YAC3B,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE;gBAC9B,MAAM,CAAC,IAAI,CACV,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;oBAC7G,GAAG;oBACH,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CACvH,CAAC;aACF;SACD;QACD,IAAI,MAAM,CAAC,MAAM,EAAE;YAClB,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACnB,CAAC;CACD,CAAA;AAED,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts deleted file mode 100755 index e75f2e7..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { URISchemeHandler, URIOptions } from "../uri"; -import { URNComponents } from "./urn"; -export interface UUIDComponents extends URNComponents { - uuid?: string; -} -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js deleted file mode 100755 index d1fce49..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +++ /dev/null @@ -1,23 +0,0 @@ -const UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/; -const UUID_PARSE = /^[0-9A-Fa-f\-]{36}/; -//RFC 4122 -const handler = { - scheme: "urn:uuid", - parse: function (urnComponents, options) { - const uuidComponents = urnComponents; - uuidComponents.uuid = uuidComponents.nss; - uuidComponents.nss = undefined; - if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) { - uuidComponents.error = uuidComponents.error || "UUID is not valid."; - } - return uuidComponents; - }, - serialize: function (uuidComponents, options) { - const urnComponents = uuidComponents; - //normalize UUID - urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(); - return urnComponents; - }, -}; -export default handler; -//# sourceMappingURL=urn-uuid.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map deleted file mode 100755 index 3b7a8b3..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"urn-uuid.js","sourceRoot":"","sources":["../../../src/schemes/urn-uuid.ts"],"names":[],"mappings":"AAQA,MAAM,IAAI,GAAG,0DAA0D,CAAC;AACxE,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAExC,UAAU;AACV,MAAM,OAAO,GAA+D;IAC3E,MAAM,EAAG,UAAU;IAEnB,KAAK,EAAG,UAAU,aAA2B,EAAE,OAAkB;QAChE,MAAM,cAAc,GAAG,aAA+B,CAAC;QACvD,cAAc,CAAC,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC;QACzC,cAAc,CAAC,GAAG,GAAG,SAAS,CAAC;QAE/B,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE;YACpF,cAAc,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,IAAI,oBAAoB,CAAC;SACpE;QAED,OAAO,cAAc,CAAC;IACvB,CAAC;IAED,SAAS,EAAG,UAAU,cAA6B,EAAE,OAAkB;QACtE,MAAM,aAAa,GAAG,cAA+B,CAAC;QACtD,gBAAgB;QAChB,aAAa,CAAC,GAAG,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAC9D,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.d.ts b/node_modules/uri-js/dist/esnext/schemes/urn.d.ts deleted file mode 100755 index 7e0c2fb..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { URISchemeHandler, URIComponents, URIOptions } from "../uri"; -export interface URNComponents extends URIComponents { - nid?: string; - nss?: string; -} -export interface URNOptions extends URIOptions { - nid?: string; -} -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.js b/node_modules/uri-js/dist/esnext/schemes/urn.js deleted file mode 100755 index 5d3f10a..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/urn.js +++ /dev/null @@ -1,49 +0,0 @@ -import { SCHEMES } from "../uri"; -const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})"; -const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})"; -const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]"; -const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)"; -const URN_SCHEME = new RegExp("^urn\\:(" + NID$ + ")$"); -const URN_PATH = new RegExp("^(" + NID$ + ")\\:(" + NSS$ + ")$"); -const URN_PARSE = /^([^\:]+)\:(.*)/; -const URN_EXCLUDED = /[\x00-\x20\\\"\&\<\>\[\]\^\`\{\|\}\~\x7F-\xFF]/g; -//RFC 2141 -const handler = { - scheme: "urn", - parse: function (components, options) { - const matches = components.path && components.path.match(URN_PARSE); - let urnComponents = components; - if (matches) { - const scheme = options.scheme || urnComponents.scheme || "urn"; - const nid = matches[1].toLowerCase(); - const nss = matches[2]; - const urnScheme = `${scheme}:${options.nid || nid}`; - const schemeHandler = SCHEMES[urnScheme]; - urnComponents.nid = nid; - urnComponents.nss = nss; - urnComponents.path = undefined; - if (schemeHandler) { - urnComponents = schemeHandler.parse(urnComponents, options); - } - } - else { - urnComponents.error = urnComponents.error || "URN can not be parsed."; - } - return urnComponents; - }, - serialize: function (urnComponents, options) { - const scheme = options.scheme || urnComponents.scheme || "urn"; - const nid = urnComponents.nid; - const urnScheme = `${scheme}:${options.nid || nid}`; - const schemeHandler = SCHEMES[urnScheme]; - if (schemeHandler) { - urnComponents = schemeHandler.serialize(urnComponents, options); - } - const uriComponents = urnComponents; - const nss = urnComponents.nss; - uriComponents.path = `${nid || options.nid}:${nss}`; - return uriComponents; - }, -}; -export default handler; -//# sourceMappingURL=urn.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.js.map b/node_modules/uri-js/dist/esnext/schemes/urn.js.map deleted file mode 100755 index ea43b0b..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/urn.js.map +++ /dev/null @@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zC,aAAa,CAAC,GAAG,GAAG,GAAG,CAAC;YACxB,aAAa,CAAC,GAAG,GAAG,GAAG,CAAC;YACxB,aAAa,CAAC,IAAI,GAAG,SAAS,CAAC;YAE/B,IAAI,aAAa,EAAE;gBAClB,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAkB,CAAC;aAC7E;SACD;aAAM;YACN,aAAa,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,IAAI,wBAAwB,CAAC;SACtE;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;IAED,SAAS,EAAG,UAAU,aAA2B,EAAE,OAAkB;QACpE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,IAAI,KAAK,CAAC;QAC/D,MAAM,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC;QAC9B,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,OAAO,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;QACpD,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;QAEzC,IAAI,aAAa,EAAE;YAClB,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAkB,CAAC;SACjF;QAED,MAAM,aAAa,GAAG,aAA8B,CAAC;QACrD,MAAM,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC;QAC9B,aAAa,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,OAAO,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;QAEpD,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/ws.d.ts b/node_modules/uri-js/dist/esnext/schemes/ws.d.ts deleted file mode 100755 index 47f4835..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { URISchemeHandler, URIComponents } from "../uri"; -export interface WSComponents extends URIComponents { - resourceName?: string; - secure?: boolean; -} -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/ws.js b/node_modules/uri-js/dist/esnext/schemes/ws.js deleted file mode 100755 index 9277f03..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/ws.js +++ /dev/null @@ -1,41 +0,0 @@ -function isSecure(wsComponents) { - return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss"; -} -//RFC 6455 -const handler = { - scheme: "ws", - domainHost: true, - parse: function (components, options) { - const wsComponents = components; - //indicate if the secure flag is set - wsComponents.secure = isSecure(wsComponents); - //construct resouce name - wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : ''); - wsComponents.path = undefined; - wsComponents.query = undefined; - return wsComponents; - }, - serialize: function (wsComponents, options) { - //normalize the default port - if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") { - wsComponents.port = undefined; - } - //ensure scheme matches secure flag - if (typeof wsComponents.secure === 'boolean') { - wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws'); - wsComponents.secure = undefined; - } - //reconstruct path from resource name - if (wsComponents.resourceName) { - const [path, query] = wsComponents.resourceName.split('?'); - wsComponents.path = (path && path !== '/' ? path : undefined); - wsComponents.query = query; - wsComponents.resourceName = undefined; - } - //forbid fragment component - wsComponents.fragment = undefined; - return wsComponents; - } -}; -export default handler; -//# sourceMappingURL=ws.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/ws.js.map b/node_modules/uri-js/dist/esnext/schemes/ws.js.map deleted file mode 100755 index 186818c..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/ws.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ws.js","sourceRoot":"","sources":["../../../src/schemes/ws.ts"],"names":[],"mappings":"AAOA,kBAAkB,YAAyB;IAC1C,OAAO,OAAO,YAAY,CAAC,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;QAED,qCAAqC;QACrC,IAAI,YAAY,CAAC,YAAY,EAAE;YAC9B,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,YAAY,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC9D,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;YAC3B,YAAY,CAAC,YAAY,GAAG,SAAS,CAAC;SACtC;QAED,2BAA2B;QAC3B,YAAY,CAAC,QAAQ,GAAG,SAAS,CAAC;QAElC,OAAO,YAAY,CAAC;IACrB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/wss.d.ts b/node_modules/uri-js/dist/esnext/schemes/wss.d.ts deleted file mode 100755 index fe5b2f3..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { URISchemeHandler } from "../uri"; -declare const handler: URISchemeHandler; -export default handler; diff --git a/node_modules/uri-js/dist/esnext/schemes/wss.js b/node_modules/uri-js/dist/esnext/schemes/wss.js deleted file mode 100755 index d1e22cc..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/wss.js +++ /dev/null @@ -1,9 +0,0 @@ -import ws from "./ws"; -const handler = { - scheme: "wss", - domainHost: ws.domainHost, - parse: ws.parse, - serialize: ws.serialize -}; -export default handler; -//# sourceMappingURL=wss.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/schemes/wss.js.map b/node_modules/uri-js/dist/esnext/schemes/wss.js.map deleted file mode 100755 index e19006d..0000000 --- a/node_modules/uri-js/dist/esnext/schemes/wss.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wss.js","sourceRoot":"","sources":["../../../src/schemes/wss.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,MAAM,OAAO,GAAoB;IAChC,MAAM,EAAG,KAAK;IACd,UAAU,EAAG,EAAE,CAAC,UAAU;IAC1B,KAAK,EAAG,EAAE,CAAC,KAAK;IAChB,SAAS,EAAG,EAAE,CAAC,SAAS;CACxB,CAAA;AAED,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/uri.d.ts b/node_modules/uri-js/dist/esnext/uri.d.ts deleted file mode 100755 index da51e23..0000000 --- a/node_modules/uri-js/dist/esnext/uri.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -export interface URIComponents { - scheme?: string; - userinfo?: string; - host?: string; - port?: number | string; - path?: string; - query?: string; - fragment?: string; - reference?: string; - error?: string; -} -export interface URIOptions { - scheme?: string; - reference?: string; - tolerant?: boolean; - absolutePath?: boolean; - iri?: boolean; - unicodeSupport?: boolean; - domainHost?: boolean; -} -export interface URISchemeHandler { - scheme: string; - parse(components: ParentComponents, options: Options): Components; - serialize(components: Components, options: Options): ParentComponents; - unicodeSupport?: boolean; - domainHost?: boolean; - absolutePath?: boolean; -} -export interface URIRegExps { - NOT_SCHEME: RegExp; - NOT_USERINFO: RegExp; - NOT_HOST: RegExp; - NOT_PATH: RegExp; - NOT_PATH_NOSCHEME: RegExp; - NOT_QUERY: RegExp; - NOT_FRAGMENT: RegExp; - ESCAPE: RegExp; - UNRESERVED: RegExp; - OTHER_CHARS: RegExp; - PCT_ENCODED: RegExp; - IPV4ADDRESS: RegExp; - IPV6ADDRESS: RegExp; -} -export declare const SCHEMES: { - [scheme: string]: URISchemeHandler; -}; -export declare function pctEncChar(chr: string): string; -export declare function pctDecChars(str: string): string; -export declare function parse(uriString: string, options?: URIOptions): URIComponents; -export declare function removeDotSegments(input: string): string; -export declare function serialize(components: URIComponents, options?: URIOptions): string; -export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents; -export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string; -export declare function normalize(uri: string, options?: URIOptions): string; -export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents; -export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean; -export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean; -export declare function escapeComponent(str: string, options?: URIOptions): string; -export declare function unescapeComponent(str: string, options?: URIOptions): string; diff --git a/node_modules/uri-js/dist/esnext/uri.js b/node_modules/uri-js/dist/esnext/uri.js deleted file mode 100755 index 659ce26..0000000 --- a/node_modules/uri-js/dist/esnext/uri.js +++ /dev/null @@ -1,480 +0,0 @@ -/** - * URI.js - * - * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript. - * @author Gary Court - * @see http://github.com/garycourt/uri-js - */ -/** - * Copyright 2011 Gary Court. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are - * permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * The views and conclusions contained in the software and documentation are those of the - * authors and should not be interpreted as representing official policies, either expressed - * or implied, of Gary Court. - */ -import URI_PROTOCOL from "./regexps-uri"; -import IRI_PROTOCOL from "./regexps-iri"; -import punycode from "punycode"; -import { toUpperCase, typeOf, assign } from "./util"; -export const SCHEMES = {}; -export function pctEncChar(chr) { - const c = chr.charCodeAt(0); - let e; - if (c < 16) - e = "%0" + c.toString(16).toUpperCase(); - else if (c < 128) - e = "%" + c.toString(16).toUpperCase(); - else if (c < 2048) - e = "%" + ((c >> 6) | 192).toString(16).toUpperCase() + "%" + ((c & 63) | 128).toString(16).toUpperCase(); - else - e = "%" + ((c >> 12) | 224).toString(16).toUpperCase() + "%" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + "%" + ((c & 63) | 128).toString(16).toUpperCase(); - return e; -} -export function pctDecChars(str) { - let newStr = ""; - let i = 0; - const il = str.length; - while (i < il) { - const c = parseInt(str.substr(i + 1, 2), 16); - if (c < 128) { - newStr += String.fromCharCode(c); - i += 3; - } - else if (c >= 194 && c < 224) { - if ((il - i) >= 6) { - const c2 = parseInt(str.substr(i + 4, 2), 16); - newStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); - } - else { - newStr += str.substr(i, 6); - } - i += 6; - } - else if (c >= 224) { - if ((il - i) >= 9) { - const c2 = parseInt(str.substr(i + 4, 2), 16); - const c3 = parseInt(str.substr(i + 7, 2), 16); - newStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); - } - else { - newStr += str.substr(i, 9); - } - i += 9; - } - else { - newStr += str.substr(i, 3); - i += 3; - } - } - return newStr; -} -function _normalizeComponentEncoding(components, protocol) { - function decodeUnreserved(str) { - const decStr = pctDecChars(str); - return (!decStr.match(protocol.UNRESERVED) ? str : decStr); - } - if (components.scheme) - components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, ""); - if (components.userinfo !== undefined) - components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.host !== undefined) - components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.path !== undefined) - components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.query !== undefined) - components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - if (components.fragment !== undefined) - components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); - return components; -} -; -function _stripLeadingZeros(str) { - return str.replace(/^0*(.*)/, "$1") || "0"; -} -function _normalizeIPv4(host, protocol) { - const matches = host.match(protocol.IPV4ADDRESS) || []; - const [, address] = matches; - if (address) { - return address.split(".").map(_stripLeadingZeros).join("."); - } - else { - return host; - } -} -function _normalizeIPv6(host, protocol) { - const matches = host.match(protocol.IPV6ADDRESS) || []; - const [, address, zone] = matches; - if (address) { - const [last, first] = address.toLowerCase().split('::').reverse(); - const firstFields = first ? first.split(":").map(_stripLeadingZeros) : []; - const lastFields = last.split(":").map(_stripLeadingZeros); - const isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]); - const fieldCount = isLastFieldIPv4Address ? 7 : 8; - const lastFieldsStart = lastFields.length - fieldCount; - const fields = Array(fieldCount); - for (let x = 0; x < fieldCount; ++x) { - fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || ''; - } - if (isLastFieldIPv4Address) { - fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol); - } - const allZeroFields = fields.reduce((acc, field, index) => { - if (!field || field === "0") { - const lastLongest = acc[acc.length - 1]; - if (lastLongest && lastLongest.index + lastLongest.length === index) { - lastLongest.length++; - } - else { - acc.push({ index, length: 1 }); - } - } - return acc; - }, []); - const longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0]; - let newHost; - if (longestZeroFields && longestZeroFields.length > 1) { - const newFirst = fields.slice(0, longestZeroFields.index); - const newLast = fields.slice(longestZeroFields.index + longestZeroFields.length); - newHost = newFirst.join(":") + "::" + newLast.join(":"); - } - else { - newHost = fields.join(":"); - } - if (zone) { - newHost += "%" + zone; - } - return newHost; - } - else { - return host; - } -} -const URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i; -const NO_MATCH_IS_UNDEFINED = ("").match(/(){0}/)[1] === undefined; -export function parse(uriString, options = {}) { - const components = {}; - const protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL); - if (options.reference === "suffix") - uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString; - const matches = uriString.match(URI_PARSE); - if (matches) { - if (NO_MATCH_IS_UNDEFINED) { - //store each component - components.scheme = matches[1]; - components.userinfo = matches[3]; - components.host = matches[4]; - components.port = parseInt(matches[5], 10); - components.path = matches[6] || ""; - components.query = matches[7]; - components.fragment = matches[8]; - //fix port number - if (isNaN(components.port)) { - components.port = matches[5]; - } - } - else { //IE FIX for improper RegExp matching - //store each component - components.scheme = matches[1] || undefined; - components.userinfo = (uriString.indexOf("@") !== -1 ? matches[3] : undefined); - components.host = (uriString.indexOf("//") !== -1 ? matches[4] : undefined); - components.port = parseInt(matches[5], 10); - components.path = matches[6] || ""; - components.query = (uriString.indexOf("?") !== -1 ? matches[7] : undefined); - components.fragment = (uriString.indexOf("#") !== -1 ? matches[8] : undefined); - //fix port number - if (isNaN(components.port)) { - components.port = (uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined); - } - } - if (components.host) { - //normalize IP hosts - components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol); - } - //determine reference type - if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) { - components.reference = "same-document"; - } - else if (components.scheme === undefined) { - components.reference = "relative"; - } - else if (components.fragment === undefined) { - components.reference = "absolute"; - } - else { - components.reference = "uri"; - } - //check for reference errors - if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) { - components.error = components.error || "URI is not a " + options.reference + " reference."; - } - //find scheme handler - const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - //check if scheme can't handle IRIs - if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { - //if host component is a domain name - if (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) { - //convert Unicode IDN -> ASCII IDN - try { - components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()); - } - catch (e) { - components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e; - } - } - //convert IRI -> URI - _normalizeComponentEncoding(components, URI_PROTOCOL); - } - else { - //normalize encodings - _normalizeComponentEncoding(components, protocol); - } - //perform scheme specific parsing - if (schemeHandler && schemeHandler.parse) { - schemeHandler.parse(components, options); - } - } - else { - components.error = components.error || "URI can not be parsed."; - } - return components; -} -; -function _recomposeAuthority(components, options) { - const protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL); - const uriTokens = []; - if (components.userinfo !== undefined) { - uriTokens.push(components.userinfo); - uriTokens.push("@"); - } - if (components.host !== undefined) { - //normalize IP hosts, add brackets and escape zone separator for IPv6 - uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => "[" + $1 + ($2 ? "%25" + $2 : "") + "]")); - } - if (typeof components.port === "number" || typeof components.port === "string") { - uriTokens.push(":"); - uriTokens.push(String(components.port)); - } - return uriTokens.length ? uriTokens.join("") : undefined; -} -; -const RDS1 = /^\.\.?\//; -const RDS2 = /^\/\.(\/|$)/; -const RDS3 = /^\/\.\.(\/|$)/; -const RDS4 = /^\.\.?$/; -const RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/; -export function removeDotSegments(input) { - const output = []; - while (input.length) { - if (input.match(RDS1)) { - input = input.replace(RDS1, ""); - } - else if (input.match(RDS2)) { - input = input.replace(RDS2, "/"); - } - else if (input.match(RDS3)) { - input = input.replace(RDS3, "/"); - output.pop(); - } - else if (input === "." || input === "..") { - input = ""; - } - else { - const im = input.match(RDS5); - if (im) { - const s = im[0]; - input = input.slice(s.length); - output.push(s); - } - else { - throw new Error("Unexpected dot segment condition"); - } - } - } - return output.join(""); -} -; -export function serialize(components, options = {}) { - const protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL); - const uriTokens = []; - //find scheme handler - const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; - //perform scheme specific serialization - if (schemeHandler && schemeHandler.serialize) - schemeHandler.serialize(components, options); - if (components.host) { - //if host component is an IPv6 address - if (protocol.IPV6ADDRESS.test(components.host)) { - //TODO: normalize IPv6 address as per RFC 5952 - } - //if host component is a domain name - else if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) { - //convert IDN via punycode - try { - components.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host)); - } - catch (e) { - components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; - } - } - } - //normalize encoding - _normalizeComponentEncoding(components, protocol); - if (options.reference !== "suffix" && components.scheme) { - uriTokens.push(components.scheme); - uriTokens.push(":"); - } - const authority = _recomposeAuthority(components, options); - if (authority !== undefined) { - if (options.reference !== "suffix") { - uriTokens.push("//"); - } - uriTokens.push(authority); - if (components.path && components.path.charAt(0) !== "/") { - uriTokens.push("/"); - } - } - if (components.path !== undefined) { - let s = components.path; - if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { - s = removeDotSegments(s); - } - if (authority === undefined) { - s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//" - } - uriTokens.push(s); - } - if (components.query !== undefined) { - uriTokens.push("?"); - uriTokens.push(components.query); - } - if (components.fragment !== undefined) { - uriTokens.push("#"); - uriTokens.push(components.fragment); - } - return uriTokens.join(""); //merge tokens into a string -} -; -export function resolveComponents(base, relative, options = {}, skipNormalization) { - const target = {}; - if (!skipNormalization) { - base = parse(serialize(base, options), options); //normalize base components - relative = parse(serialize(relative, options), options); //normalize relative components - } - options = options || {}; - if (!options.tolerant && relative.scheme) { - target.scheme = relative.scheme; - //target.authority = relative.authority; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } - else { - if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { - //target.authority = relative.authority; - target.userinfo = relative.userinfo; - target.host = relative.host; - target.port = relative.port; - target.path = removeDotSegments(relative.path || ""); - target.query = relative.query; - } - else { - if (!relative.path) { - target.path = base.path; - if (relative.query !== undefined) { - target.query = relative.query; - } - else { - target.query = base.query; - } - } - else { - if (relative.path.charAt(0) === "/") { - target.path = removeDotSegments(relative.path); - } - else { - if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { - target.path = "/" + relative.path; - } - else if (!base.path) { - target.path = relative.path; - } - else { - target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; - } - target.path = removeDotSegments(target.path); - } - target.query = relative.query; - } - //target.authority = base.authority; - target.userinfo = base.userinfo; - target.host = base.host; - target.port = base.port; - } - target.scheme = base.scheme; - } - target.fragment = relative.fragment; - return target; -} -; -export function resolve(baseURI, relativeURI, options) { - const schemelessOptions = assign({ scheme: 'null' }, options); - return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions); -} -; -export function normalize(uri, options) { - if (typeof uri === "string") { - uri = serialize(parse(uri, options), options); - } - else if (typeOf(uri) === "object") { - uri = parse(serialize(uri, options), options); - } - return uri; -} -; -export function equal(uriA, uriB, options) { - if (typeof uriA === "string") { - uriA = serialize(parse(uriA, options), options); - } - else if (typeOf(uriA) === "object") { - uriA = serialize(uriA, options); - } - if (typeof uriB === "string") { - uriB = serialize(parse(uriB, options), options); - } - else if (typeOf(uriB) === "object") { - uriB = serialize(uriB, options); - } - return uriA === uriB; -} -; -export function escapeComponent(str, options) { - return str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar); -} -; -export function unescapeComponent(str, options) { - return str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars); -} -; -//# sourceMappingURL=uri.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/uri.js.map b/node_modules/uri-js/dist/esnext/uri.js.map deleted file mode 100755 index 2e72ab1..0000000 --- a/node_modules/uri-js/dist/esnext/uri.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../src/uri.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,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OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC;AAC1H,CAAC;AAAA,CAAC;AAEF,MAAM,4BAA4B,GAAU,EAAE,OAAmB;IAChE,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AACrI,CAAC;AAAA,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/util.d.ts b/node_modules/uri-js/dist/esnext/util.d.ts deleted file mode 100755 index 7c12857..0000000 --- a/node_modules/uri-js/dist/esnext/util.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare function merge(...sets: Array): string; -export declare function subexp(str: string): string; -export declare function typeOf(o: any): string; -export declare function toUpperCase(str: string): string; -export declare function toArray(obj: any): Array; -export declare function assign(target: object, source: any): any; diff --git a/node_modules/uri-js/dist/esnext/util.js b/node_modules/uri-js/dist/esnext/util.js deleted file mode 100755 index 072711e..0000000 --- a/node_modules/uri-js/dist/esnext/util.js +++ /dev/null @@ -1,36 +0,0 @@ -export function merge(...sets) { - if (sets.length > 1) { - sets[0] = sets[0].slice(0, -1); - const xl = sets.length - 1; - for (let x = 1; x < xl; ++x) { - sets[x] = sets[x].slice(1, -1); - } - sets[xl] = sets[xl].slice(1); - return sets.join(''); - } - else { - return sets[0]; - } -} -export function subexp(str) { - return "(?:" + str + ")"; -} -export function typeOf(o) { - return o === undefined ? "undefined" : (o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase()); -} -export function toUpperCase(str) { - return str.toUpperCase(); -} -export function toArray(obj) { - return obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : []; -} -export function assign(target, source) { - const obj = target; - if (source) { - for (const key in source) { - obj[key] = source[key]; - } - } - return obj; -} -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/node_modules/uri-js/dist/esnext/util.js.map b/node_modules/uri-js/dist/esnext/util.js.map deleted file mode 100755 index 05d9df0..0000000 --- a/node_modules/uri-js/dist/esnext/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,IAAkB;IAC1C,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;YAC5B,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SAC/B;QACD,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACrB;SAAM;QACN,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;KACf;AACF,CAAC;AAED,MAAM,iBAAiB,GAAU;IAChC,OAAO,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC;AAC1B,CAAC;AAED,MAAM,iBAAiB,CAAK;IAC3B,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;AACpJ,CAAC;AAED,MAAM,sBAAsB,GAAU;IACrC,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,kBAAkB,GAAO;IAC9B,OAAO,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ,IAAI,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvM,CAAC;AAGD,MAAM,iBAAiB,MAAc,EAAE,MAAW;IACjD,MAAM,GAAG,GAAG,MAAa,CAAC;IAC1B,IAAI,MAAM,EAAE;QACX,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACzB,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;SACvB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/node_modules/uri-js/package.json b/node_modules/uri-js/package.json deleted file mode 100755 index de95d91..0000000 --- a/node_modules/uri-js/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "uri-js", - "version": "4.4.1", - "description": "An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.", - "main": "dist/es5/uri.all.js", - "types": "dist/es5/uri.all.d.ts", - "directories": { - "test": "tests" - }, - "files": [ - "dist", - "package.json", - "yarn.lock", - "README.md", - "CHANGELOG", - "LICENSE" - ], - "scripts": { - "build:esnext": "tsc", - "build:es5": "rollup -c && cp dist/esnext/uri.d.ts dist/es5/uri.all.d.ts && npm run build:es5:fix-sourcemap", - "build:es5:fix-sourcemap": "sorcery -i dist/es5/uri.all.js", - "build:es5:min": "uglifyjs dist/es5/uri.all.js --support-ie8 --output dist/es5/uri.all.min.js --in-source-map dist/es5/uri.all.js.map --source-map uri.all.min.js.map --comments --compress --mangle --pure-funcs merge subexp && mv uri.all.min.js.map dist/es5/ && cp dist/es5/uri.all.d.ts dist/es5/uri.all.min.d.ts", - "build": "npm run build:esnext && npm run build:es5 && npm run build:es5:min", - "clean": "rm -rf dist", - "test": "mocha -u mocha-qunit-ui dist/es5/uri.all.js tests/tests.js" - }, - "repository": { - "type": "git", - "url": "http://github.com/garycourt/uri-js" - }, - "keywords": [ - "URI", - "IRI", - "IDN", - "URN", - "UUID", - "HTTP", - "HTTPS", - "WS", - "WSS", - "MAILTO", - "RFC3986", - "RFC3987", - "RFC5891", - "RFC2616", - "RFC2818", - "RFC2141", - "RFC4122", - "RFC4291", - "RFC5952", - "RFC6068", - "RFC6455", - "RFC6874" - ], - "author": "Gary Court ", - "license": "BSD-2-Clause", - "bugs": { - "url": "https://github.com/garycourt/uri-js/issues" - }, - "homepage": "https://github.com/garycourt/uri-js", - "devDependencies": { - "babel-cli": "^6.26.0", - "babel-plugin-external-helpers": "^6.22.0", - "babel-preset-latest": "^6.24.1", - "mocha": "^8.2.1", - "mocha-qunit-ui": "^0.1.3", - "rollup": "^0.41.6", - "rollup-plugin-babel": "^2.7.1", - "rollup-plugin-node-resolve": "^2.0.0", - "sorcery": "^0.10.0", - "typescript": "^2.8.1", - "uglify-js": "^2.8.14" - }, - "dependencies": { - "punycode": "^2.1.0" - } -} diff --git a/node_modules/uri-js/yarn.lock b/node_modules/uri-js/yarn.lock deleted file mode 100755 index 3c42ded..0000000 --- a/node_modules/uri-js/yarn.lock +++ /dev/null @@ -1,2558 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@ungap/promise-all-settled@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" - integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -ansi-colors@4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= - -ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= - -ansi-styles@^3.2.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -anymatch@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" - integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= - dependencies: - arr-flatten "^1.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= - -async-each@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" - integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - integrity sha1-UCq1SHTX24itALiHoGODzgPQAvE= - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@6: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-core@^6.26.0: - version "6.26.3" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" - integrity sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA== - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.1" - debug "^2.6.9" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.8" - slash "^1.0.0" - source-map "^0.5.7" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA== - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - integrity sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI= - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-external-helpers@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.24.1, babel-plugin-transform-es2015-classes@^6.9.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM= - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-es2015@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.24.1" - babel-plugin-transform-es2015-classes "^6.24.1" - babel-plugin-transform-es2015-computed-properties "^6.24.1" - babel-plugin-transform-es2015-destructuring "^6.22.0" - babel-plugin-transform-es2015-duplicate-keys "^6.24.1" - babel-plugin-transform-es2015-for-of "^6.22.0" - babel-plugin-transform-es2015-function-name "^6.24.1" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-plugin-transform-es2015-modules-systemjs "^6.24.1" - babel-plugin-transform-es2015-modules-umd "^6.24.1" - babel-plugin-transform-es2015-object-super "^6.24.1" - babel-plugin-transform-es2015-parameters "^6.24.1" - babel-plugin-transform-es2015-shorthand-properties "^6.24.1" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.24.1" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.22.0" - babel-plugin-transform-es2015-unicode-regex "^6.24.1" - babel-plugin-transform-regenerator "^6.24.1" - -babel-preset-es2016@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2016/-/babel-preset-es2016-6.24.1.tgz#f900bf93e2ebc0d276df9b8ab59724ebfd959f8b" - dependencies: - babel-plugin-transform-exponentiation-operator "^6.24.1" - -babel-preset-es2017@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2017/-/babel-preset-es2017-6.24.1.tgz#597beadfb9f7f208bcfd8a12e9b2b29b8b2f14d1" - dependencies: - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.24.1" - -babel-preset-latest@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-latest/-/babel-preset-latest-6.24.1.tgz#677de069154a7485c2d25c577c02f624b85b85e8" - dependencies: - babel-preset-es2015 "^6.24.1" - babel-preset-es2016 "^6.24.1" - babel-preset-es2017 "^6.24.1" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - integrity sha1-btAhFz4vy0htestFxgCahW9kcHE= - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - integrity sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI= - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -binary-extensions@^1.0.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" - integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== - -binary-extensions@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9" - integrity sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ== - -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-resolve@^1.11.0: - version "1.11.2" - resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" - dependencies: - resolve "1.1.7" - -browser-stdout@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== - -buffer-crc32@^0.2.5: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - -builtin-modules@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^5.0.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" - integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chokidar@3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b" - integrity sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ== - dependencies: - anymatch "~3.1.1" - braces "~3.0.2" - glob-parent "~5.1.0" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.5.0" - optionalDependencies: - fsevents "~2.1.2" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - integrity sha1-eY5ol3gVHIB2tLNg5e3SjNortGg= - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^2.11.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.5.0, convert-source-map@^1.5.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= - -core-js@^2.4.0, core-js@^2.5.0: - version "2.6.12" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - -debug@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.2.0.tgz#7f150f93920e94c58f5574c2fd01a3110effe7f1" - integrity sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg== - dependencies: - ms "2.1.2" - -debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -decamelize@^1.0.0, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg= - dependencies: - repeating "^2.0.0" - -diff@4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - -es6-promise@^3.1.2: - version "3.3.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" - -escape-string-regexp@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -esprima@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -estree-walker@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e" - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= - dependencies: - is-posix-bracket "^0.1.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= - dependencies: - fill-range "^2.1.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= - dependencies: - is-extglob "^1.0.0" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" - integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= - dependencies: - for-in "^1.0.1" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= - dependencies: - map-cache "^0.2.2" - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -fsevents@^1.0.0: - version "1.2.13" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" - -fsevents@~2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" - integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== - -get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= - dependencies: - is-glob "^2.0.0" - -glob-parent@~5.1.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" - integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ== - dependencies: - is-glob "^4.0.1" - -glob@7.1.6, glob@^7.1.2, glob@^7.1.3: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== - -graceful-fs@^4.1.11, graceful-fs@^4.1.4: - version "4.2.4" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" - integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== - -graceful-fs@^4.1.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" - -growl@1.10.5: - version "1.10.5" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" - integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= - dependencies: - ansi-regex "^2.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -he@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - integrity sha1-42w/LSyufXRqhX440Y1fMqeILbg= - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -invariant@^2.2.2: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= - dependencies: - binary-extensions "^1.0.0" - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= - -is-finite@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" - integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= - dependencies: - is-extglob "^1.0.0" - -is-glob@^4.0.1, is-glob@~4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" - integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== - dependencies: - is-extglob "^2.1.1" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= - -"js-tokens@^3.0.0 || ^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= - -js-yaml@3.14.0: - version "3.14.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.0.tgz#a7a34170f26a21bb162424d8adacb4113a69e482" - integrity sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s= - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash@^4.17.4: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== - -log-symbols@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.0.0.tgz#69b3cc46d20f448eccdb75ea1fa733d9e821c920" - integrity sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA== - dependencies: - chalk "^4.0.0" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -loose-envify@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= - dependencies: - object-visit "^1.0.0" - -math-random@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" - integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -minimatch@3.0.4, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.2.0, minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@^0.5.1: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - -mocha-qunit-ui@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/mocha-qunit-ui/-/mocha-qunit-ui-0.1.3.tgz#e3e1ff1dac33222b10cef681efd7f82664141ea9" - -mocha@^8.2.1: - version "8.2.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-8.2.1.tgz#f2fa68817ed0e53343d989df65ccd358bc3a4b39" - integrity sha512-cuLBVfyFfFqbNR0uUKbDGXKGk+UDFe6aR4os78XIrMQpZl/nv7JYHcvP5MFIAb374b2zFXsdgEGwmzMtP0Xg8w== - dependencies: - "@ungap/promise-all-settled" "1.1.2" - ansi-colors "4.1.1" - browser-stdout "1.3.1" - chokidar "3.4.3" - debug "4.2.0" - diff "4.0.2" - escape-string-regexp "4.0.0" - find-up "5.0.0" - glob "7.1.6" - growl "1.10.5" - he "1.2.0" - js-yaml "3.14.0" - log-symbols "4.0.0" - minimatch "3.0.4" - ms "2.1.2" - nanoid "3.1.12" - serialize-javascript "5.0.1" - strip-json-comments "3.1.1" - supports-color "7.2.0" - which "2.0.2" - wide-align "1.1.3" - workerpool "6.0.2" - yargs "13.3.2" - yargs-parser "13.1.2" - yargs-unparser "2.0.0" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -nan@^2.12.1: - version "2.14.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" - integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== - -nanoid@3.1.12: - version "3.1.12" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.12.tgz#6f7736c62e8d39421601e4a0c77623a97ea69654" - integrity sha512-1qstj9z5+x491jfiC4Nelk+f8XBad7LN20PmyWINJEMRSf3wcAjAWysw1qaA8z6NSKe2sjq1hRSDpBH5paCb6A== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= - dependencies: - isobject "^3.0.0" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= - dependencies: - isobject "^3.0.1" - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= - -os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - integrity sha1-0KM+7+YaIF+suQCS6CZZjVJFznY= - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -p-limit@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-parse@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" - -picomatch@^2.0.4, picomatch@^2.2.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" - integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= - -private@^0.1.6, private@^0.1.7, private@^0.1.8: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -punycode@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.0.tgz#5f863edc89b96db09074bad7947bf09056ca4e7d" - -randomatic@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" - integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -readable-stream@^2.0.2: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" - integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== - dependencies: - graceful-fs "^4.1.11" - micromatch "^3.1.10" - readable-stream "^2.0.2" - -readdirp@~3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" - integrity sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ== - dependencies: - picomatch "^2.2.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - integrity sha1-M2w+/BIgrc7dosn6tntaeVWjNlg= - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== - dependencies: - is-equal-shallow "^0.1.3" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= - -repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= - dependencies: - is-finite "^1.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= - -resolve@1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" - -resolve@^1.1.6: - version "1.6.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.6.0.tgz#0fbd21278b27b4004481c395349e7aba60a9ff5c" - dependencies: - path-parse "^1.0.5" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@^2.5.2: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - dependencies: - glob "^7.1.3" - -rollup-plugin-babel@^2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-2.7.1.tgz#16528197b0f938a1536f44683c7a93d573182f57" - dependencies: - babel-core "6" - babel-plugin-transform-es2015-classes "^6.9.0" - object-assign "^4.1.0" - rollup-pluginutils "^1.5.0" - -rollup-plugin-node-resolve@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-2.1.1.tgz#cbb783b0d15b02794d58915350b2f0d902b8ddc8" - dependencies: - browser-resolve "^1.11.0" - builtin-modules "^1.1.0" - resolve "^1.1.6" - -rollup-pluginutils@^1.5.0: - version "1.5.2" - resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408" - dependencies: - estree-walker "^0.2.1" - minimatch "^3.0.2" - -rollup@^0.41.6: - version "0.41.6" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.41.6.tgz#e0d05497877a398c104d816d2733a718a7a94e2a" - dependencies: - source-map-support "^0.4.0" - -safe-buffer@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= - dependencies: - ret "~0.1.10" - -sander@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/sander/-/sander-0.5.1.tgz#741e245e231f07cafb6fdf0f133adfa216a502ad" - dependencies: - es6-promise "^3.1.2" - graceful-fs "^4.1.3" - mkdirp "^0.5.1" - rimraf "^2.5.2" - -serialize-javascript@5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-5.0.1.tgz#7886ec848049a462467a97d3d918ebb2aaf934f4" - integrity sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA== - dependencies: - randombytes "^2.1.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -sorcery@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/sorcery/-/sorcery-0.10.0.tgz#8ae90ad7d7cb05fc59f1ab0c637845d5c15a52b7" - dependencies: - buffer-crc32 "^0.2.5" - minimist "^1.2.0" - sander "^0.5.0" - sourcemap-codec "^1.3.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.4.0, source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= - -source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - -sourcemap-codec@^1.3.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz#c8fd92d91889e902a07aee392bdd2c5863958ba2" - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -"string-width@^1.0.2 || 2": - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= - dependencies: - ansi-regex "^3.0.0" - -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-json-comments@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@7.2.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= - -typescript@^2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624" - -uglify-js@^2.8.14: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - integrity sha1-K1viOjK2Onyd640PKNSFcko98ZA= - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - integrity sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ= - dependencies: - user-home "^1.1.1" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= - -which@2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wide-align@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== - dependencies: - string-width "^1.0.2 || 2" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -workerpool@6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.0.2.tgz#e241b43d8d033f1beb52c7851069456039d1d438" - integrity sha512-DSNyvOpFKrNusaaUwk+ej6cBj1bmhLcBfj80elGk+ZIo5JSkq+unB1dLKEOcNfJDZgjGICfhQ0Q5TbP0PvF4+Q== - -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== - dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" - integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== - -yargs-parser@13.1.2, yargs-parser@^13.1.2: - version "13.1.2" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" - integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-unparser@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== - dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@13.3.2: - version "13.3.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" - integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== - dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.2" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/node_modules/util-deprecate/History.md b/node_modules/util-deprecate/History.md deleted file mode 100644 index acc8675..0000000 --- a/node_modules/util-deprecate/History.md +++ /dev/null @@ -1,16 +0,0 @@ - -1.0.2 / 2015-10-07 -================== - - * use try/catch when checking `localStorage` (#3, @kumavis) - -1.0.1 / 2014-11-25 -================== - - * browser: use `console.warn()` for deprecation calls - * browser: more jsdocs - -1.0.0 / 2014-04-30 -================== - - * initial commit diff --git a/node_modules/util-deprecate/LICENSE b/node_modules/util-deprecate/LICENSE deleted file mode 100644 index 6a60e8c..0000000 --- a/node_modules/util-deprecate/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Nathan Rajlich - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/util-deprecate/README.md b/node_modules/util-deprecate/README.md deleted file mode 100644 index 75622fa..0000000 --- a/node_modules/util-deprecate/README.md +++ /dev/null @@ -1,53 +0,0 @@ -util-deprecate -============== -### The Node.js `util.deprecate()` function with browser support - -In Node.js, this module simply re-exports the `util.deprecate()` function. - -In the web browser (i.e. via browserify), a browser-specific implementation -of the `util.deprecate()` function is used. - - -## API - -A `deprecate()` function is the only thing exposed by this module. - -``` javascript -// setup: -exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead'); - - -// users see: -foo(); -// foo() is deprecated, use bar() instead -foo(); -foo(); -``` - - -## License - -(The MIT License) - -Copyright (c) 2014 Nathan Rajlich - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/util-deprecate/browser.js b/node_modules/util-deprecate/browser.js deleted file mode 100644 index 549ae2f..0000000 --- a/node_modules/util-deprecate/browser.js +++ /dev/null @@ -1,67 +0,0 @@ - -/** - * Module exports. - */ - -module.exports = deprecate; - -/** - * Mark that a method should not be used. - * Returns a modified function which warns once by default. - * - * If `localStorage.noDeprecation = true` is set, then it is a no-op. - * - * If `localStorage.throwDeprecation = true` is set, then deprecated functions - * will throw an Error when invoked. - * - * If `localStorage.traceDeprecation = true` is set, then deprecated functions - * will invoke `console.trace()` instead of `console.error()`. - * - * @param {Function} fn - the function to deprecate - * @param {String} msg - the string to print to the console when `fn` is invoked - * @returns {Function} a new "deprecated" version of `fn` - * @api public - */ - -function deprecate (fn, msg) { - if (config('noDeprecation')) { - return fn; - } - - var warned = false; - function deprecated() { - if (!warned) { - if (config('throwDeprecation')) { - throw new Error(msg); - } else if (config('traceDeprecation')) { - console.trace(msg); - } else { - console.warn(msg); - } - warned = true; - } - return fn.apply(this, arguments); - } - - return deprecated; -} - -/** - * Checks `localStorage` for boolean values for the given `name`. - * - * @param {String} name - * @returns {Boolean} - * @api private - */ - -function config (name) { - // accessing global.localStorage can trigger a DOMException in sandboxed iframes - try { - if (!global.localStorage) return false; - } catch (_) { - return false; - } - var val = global.localStorage[name]; - if (null == val) return false; - return String(val).toLowerCase() === 'true'; -} diff --git a/node_modules/util-deprecate/node.js b/node_modules/util-deprecate/node.js deleted file mode 100644 index 5e6fcff..0000000 --- a/node_modules/util-deprecate/node.js +++ /dev/null @@ -1,6 +0,0 @@ - -/** - * For Node.js, simply re-export the core `util.deprecate` function. - */ - -module.exports = require('util').deprecate; diff --git a/node_modules/util-deprecate/package.json b/node_modules/util-deprecate/package.json deleted file mode 100644 index 2e79f89..0000000 --- a/node_modules/util-deprecate/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "util-deprecate", - "version": "1.0.2", - "description": "The Node.js `util.deprecate()` function with browser support", - "main": "node.js", - "browser": "browser.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git://github.com/TooTallNate/util-deprecate.git" - }, - "keywords": [ - "util", - "deprecate", - "browserify", - "browser", - "node" - ], - "author": "Nathan Rajlich (http://n8.io/)", - "license": "MIT", - "bugs": { - "url": "https://github.com/TooTallNate/util-deprecate/issues" - }, - "homepage": "https://github.com/TooTallNate/util-deprecate" -} diff --git a/node_modules/vite/LICENSE.md b/node_modules/vite/LICENSE.md deleted file mode 100644 index a1a072f..0000000 --- a/node_modules/vite/LICENSE.md +++ /dev/null @@ -1,2144 +0,0 @@ -# Vite core license -Vite is released under the MIT license: - -MIT License - -Copyright (c) 2019-present, VoidZero Inc. and Vite contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -# Licenses of bundled dependencies -The published Vite artifact additionally contains code with the following licenses: -BSD-2-Clause, CC0-1.0, ISC, MIT - -# Bundled dependencies: -## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping -License: MIT -By: Justin Ridgewell -Repositories: https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps - -> Copyright 2024 Justin Ridgewell -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## @jridgewell/resolve-uri -License: MIT -By: Justin Ridgewell -Repository: https://github.com/jridgewell/resolve-uri - -> Copyright 2019 Justin Ridgewell -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## @polka/compression -License: MIT -Repository: https://github.com/lukeed/polka - ---------------------------------------- - -## @polka/url -License: MIT -By: Luke Edwards -Repository: https://github.com/lukeed/polka - ---------------------------------------- - -## @rolldown/pluginutils -License: MIT -Repository: https://github.com/rolldown/rolldown - -> MIT License -> -> Copyright (c) 2024-present VoidZero Inc. & Contributors -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. -> -> end of terms and conditions -> -> The licenses of externally maintained libraries from which parts of the Software is derived are listed [here](https://github.com/rolldown/rolldown/blob/main/THIRD-PARTY-LICENSE). - ---------------------------------------- - -## @rollup/plugin-alias, @rollup/plugin-commonjs, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils -License: MIT -By: Johannes Stein -Repository: https://github.com/rollup/plugins - -License: MIT -By: Rich Harris -Repository: https://github.com/rollup/plugins - -License: MIT -By: LarsDenBakker -Repository: https://github.com/rollup/plugins - -License: MIT -By: Rich Harris -Repository: https://github.com/rollup/plugins - -> The MIT License (MIT) -> -> Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## anymatch -License: ISC -By: Elan Shanker -Repository: https://github.com/micromatch/anymatch - -> The ISC License -> -> Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## artichokie -License: MIT -By: sapphi-red, Evan You -Repository: https://github.com/sapphi-red/artichokie - -> MIT License -> -> Copyright (c) 2020-present, Yuxi (Evan) You -> Copyright (c) 2023-present, sapphi-red -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## binary-extensions -License: MIT -By: Sindre Sorhus -Repository: https://github.com/sindresorhus/binary-extensions - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> Copyright (c) Paul Miller (https://paulmillr.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## braces, fill-range, is-number -License: MIT -By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm -Repository: https://github.com/micromatch/braces - -License: MIT -By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling -Repository: https://github.com/jonschlinkert/fill-range - -License: MIT -By: Jon Schlinkert, Olsten Larck, Rouven Weßling -Repository: https://github.com/jonschlinkert/is-number - -> The MIT License (MIT) -> -> Copyright (c) 2014-present, Jon Schlinkert. -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript, wsl-utils -License: MIT -By: Sindre Sorhus -Repositories: https://github.com/sindresorhus/bundle-name, https://github.com/sindresorhus/default-browser, https://github.com/sindresorhus/default-browser-id, https://github.com/sindresorhus/define-lazy-prop, https://github.com/sindresorhus/is-docker, https://github.com/sindresorhus/is-inside-container, https://github.com/sindresorhus/is-wsl, https://github.com/sindresorhus/open, https://github.com/sindresorhus/run-applescript, https://github.com/sindresorhus/wsl-utils - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## cac -License: MIT -By: egoist -Repository: https://github.com/egoist/cac - -> The MIT License (MIT) -> -> Copyright (c) EGOIST <0x142857@gmail.com> (https://github.com/egoist) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## chokidar -License: MIT -By: Paul Miller, Elan Shanker -Repository: https://github.com/paulmillr/chokidar - -> The MIT License (MIT) -> -> Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the “Software”), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## commondir, shell-quote -License: MIT -By: James Halliday -Repositories: http://github.com/substack/node-commondir, http://github.com/ljharb/shell-quote - -> The MIT License -> -> Copyright (c) 2013 James Halliday (mail@substack.net) -> -> Permission is hereby granted, free of charge, -> to any person obtaining a copy of this software and -> associated documentation files (the "Software"), to -> deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, -> merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom -> the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice -> shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -> ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## connect -License: MIT -By: TJ Holowaychuk, Douglas Christopher Wilson, Jonathan Ong, Tim Caswell -Repository: https://github.com/senchalabs/connect - -> (The MIT License) -> -> Copyright (c) 2010 Sencha Inc. -> Copyright (c) 2011 LearnBoost -> Copyright (c) 2011-2014 TJ Holowaychuk -> Copyright (c) 2015 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## convert-source-map -License: MIT -By: Thorsten Lorenz -Repository: https://github.com/thlorenz/convert-source-map - -> Copyright 2013 Thorsten Lorenz. -> All rights reserved. -> -> Permission is hereby granted, free of charge, to any person -> obtaining a copy of this software and associated documentation -> files (the "Software"), to deal in the Software without -> restriction, including without limitation the rights to use, -> copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the -> Software is furnished to do so, subject to the following -> conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -> OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## cors -License: MIT -By: Troy Goode -Repository: https://github.com/expressjs/cors - -> (The MIT License) -> -> Copyright (c) 2013 Troy Goode -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## cross-spawn -License: MIT -By: André Cruz -Repository: https://github.com/moxystudio/node-cross-spawn - -> The MIT License (MIT) -> -> Copyright (c) 2018 Made With MOXY Lda -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## cssesc -License: MIT -By: Mathias Bynens -Repository: https://github.com/mathiasbynens/cssesc - -> Copyright Mathias Bynens -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## debug -License: MIT -By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne -Repository: https://github.com/debug-js/debug - -> (The MIT License) -> -> Copyright (c) 2014-2017 TJ Holowaychuk -> Copyright (c) 2018-2021 Josh Junon -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software -> and associated documentation files (the 'Software'), to deal in the Software without restriction, -> including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, -> and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial -> portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -> LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## dotenv -License: BSD-2-Clause -Repository: https://github.com/motdotla/dotenv - -> Copyright (c) 2015, Scott Motte -> All rights reserved. -> -> Redistribution and use in source and binary forms, with or without -> modification, are permitted provided that the following conditions are met: -> -> * Redistributions of source code must retain the above copyright notice, this -> list of conditions and the following disclaimer. -> -> * Redistributions in binary form must reproduce the above copyright notice, -> this list of conditions and the following disclaimer in the documentation -> and/or other materials provided with the distribution. -> -> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -> FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -> DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ---------------------------------------- - -## dotenv-expand -License: BSD-2-Clause -By: motdotla -Repository: https://github.com/motdotla/dotenv-expand - -> Copyright (c) 2016, Scott Motte -> All rights reserved. -> -> Redistribution and use in source and binary forms, with or without -> modification, are permitted provided that the following conditions are met: -> -> * Redistributions of source code must retain the above copyright notice, this -> list of conditions and the following disclaimer. -> -> * Redistributions in binary form must reproduce the above copyright notice, -> this list of conditions and the following disclaimer in the documentation -> and/or other materials provided with the distribution. -> -> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -> FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -> DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ---------------------------------------- - -## ee-first -License: MIT -By: Jonathan Ong, Douglas Christopher Wilson -Repository: https://github.com/jonathanong/ee-first - -> The MIT License (MIT) -> -> Copyright (c) 2014 Jonathan Ong me@jongleberry.com -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## encodeurl -License: MIT -By: Douglas Christopher Wilson -Repository: https://github.com/pillarjs/encodeurl - -> (The MIT License) -> -> Copyright (c) 2016 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## entities -License: BSD-2-Clause -By: Felix Boehm -Repository: https://github.com/fb55/entities - -> Copyright (c) Felix Böhm -> All rights reserved. -> -> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -> -> Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -> -> Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. -> -> THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, -> EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ---------------------------------------- - -## es-module-lexer -License: MIT -By: Guy Bedford -Repository: https://github.com/guybedford/es-module-lexer - -> MIT License -> ----------- -> -> Copyright (C) 2018-2022 Guy Bedford -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## escape-html -License: MIT -Repository: https://github.com/component/escape-html - -> (The MIT License) -> -> Copyright (c) 2012-2013 TJ Holowaychuk -> Copyright (c) 2015 Andreas Lubbe -> Copyright (c) 2015 Tiancheng "Timothy" Gu -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## estree-walker -License: MIT -By: Rich Harris -Repository: https://github.com/Rich-Harris/estree-walker - -> Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## etag -License: MIT -By: Douglas Christopher Wilson, David Björklund -Repository: https://github.com/jshttp/etag - -> (The MIT License) -> -> Copyright (c) 2014-2016 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## finalhandler -License: MIT -By: Douglas Christopher Wilson -Repository: https://github.com/pillarjs/finalhandler - -> (The MIT License) -> -> Copyright (c) 2014-2017 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## follow-redirects -License: MIT -By: Ruben Verborgh, Olivier Lalonde, James Talmage -Repository: https://github.com/follow-redirects/follow-redirects - -> Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -> of the Software, and to permit persons to whom the Software is furnished to do -> so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -> IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## generic-names -License: MIT -By: Alexey Litvinov -Repository: https://github.com/css-modules/generic-names - -> The MIT License (MIT) -> -> Copyright (c) 2015 Alexey Litvinov -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## glob-parent -License: ISC -By: Gulp Team, Elan Shanker, Blaine Bublitz -Repository: https://github.com/gulpjs/glob-parent - -> The ISC License -> -> Copyright (c) 2015, 2019 Elan Shanker -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## host-validation-middleware -License: MIT -By: sapphi-red -Repository: https://github.com/sapphi-red/host-validation-middleware - -> MIT License -> -> Copyright (c) 2025 sapphi-red -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## http-proxy-3 -License: MIT -By: William Stein, Charlie Robbins, Jimb Esser, jcrugzz -Repository: https://github.com/sagemathinc/http-proxy-3 - -> node-http-3 -> -> Copyright (c) 2010-2025 William Stein, Charlie Robbins, Jarrett Cruger & the Contributors. -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## icss-utils -License: ISC -By: Glen Maddern -Repository: https://github.com/css-modules/icss-utils - -> ISC License (ISC) -> Copyright 2018 Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## is-binary-path -License: MIT -By: Sindre Sorhus -Repository: https://github.com/sindresorhus/is-binary-path - -> MIT License -> -> Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## is-extglob -License: MIT -By: Jon Schlinkert -Repository: https://github.com/jonschlinkert/is-extglob - -> The MIT License (MIT) -> -> Copyright (c) 2014-2016, Jon Schlinkert -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## is-glob -License: MIT -By: Jon Schlinkert, Brian Woodward, Daniel Perez -Repository: https://github.com/micromatch/is-glob - -> The MIT License (MIT) -> -> Copyright (c) 2014-2017, Jon Schlinkert. -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## is-reference -License: MIT -By: Rich Harris -Repository: https://github.com/Rich-Harris/is-reference - ---------------------------------------- - -## isexe, which -License: ISC -By: Isaac Z. Schlueter -Repositories: https://github.com/isaacs/isexe, https://github.com/isaacs/node-which - -> The ISC License -> -> Copyright (c) Isaac Z. Schlueter and Contributors -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## js-tokens -License: MIT -By: Simon Lydell -Repository: https://github.com/lydell/js-tokens - -> The MIT License (MIT) -> -> Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Simon Lydell -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## launch-editor, launch-editor-middleware -License: MIT -By: Evan You -Repositories: https://github.com/yyx990803/launch-editor, https://github.com/yyx990803/launch-editor - -> The MIT License (MIT) -> -> Copyright (c) 2017-present, Yuxi (Evan) You -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## lilconfig -License: MIT -By: antonk52 -Repository: https://github.com/antonk52/lilconfig - -> MIT License -> -> Copyright (c) 2022 Anton Kastritskiy -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## loader-utils -License: MIT -By: Tobias Koppers @sokra -Repository: https://github.com/webpack/loader-utils - -> Copyright JS Foundation and other contributors -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## lodash.camelcase -License: MIT -By: John-David Dalton, Blaine Bublitz, Mathias Bynens -Repository: https://github.com/lodash/lodash - -> Copyright jQuery Foundation and other contributors -> -> Based on Underscore.js, copyright Jeremy Ashkenas, -> DocumentCloud and Investigative Reporters & Editors -> -> This software consists of voluntary contributions made by many -> individuals. For exact contribution history, see the revision history -> available at https://github.com/lodash/lodash -> -> The following license applies to all parts of this software except as -> documented below: -> -> ==== -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -> -> ==== -> -> Copyright and related rights for sample code are waived via CC0. Sample -> code is defined as all source code displayed within the prose of the -> documentation. -> -> CC0: http://creativecommons.org/publicdomain/zero/1.0/ -> -> ==== -> -> Files located in the node_modules and vendor directories are externally -> maintained libraries used by this software which have their own -> licenses; we recommend you read them, as their terms may differ from the -> terms above. - ---------------------------------------- - -## magic-string -License: MIT -By: Rich Harris -Repository: https://github.com/Rich-Harris/magic-string - -> Copyright 2018 Rich Harris -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## mlly, ufo -License: MIT -Repositories: https://github.com/unjs/mlly, https://github.com/unjs/ufo - -> MIT License -> -> Copyright (c) Pooya Parsa -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## mrmime -License: MIT -By: Luke Edwards -Repository: https://github.com/lukeed/mrmime - -> The MIT License (MIT) -> -> Copyright (c) Luke Edwards (https://lukeed.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## ms -License: MIT -Repository: https://github.com/vercel/ms - -> The MIT License (MIT) -> -> Copyright (c) 2020 Vercel, Inc. -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## normalize-path -License: MIT -By: Jon Schlinkert, Blaine Bublitz -Repository: https://github.com/jonschlinkert/normalize-path - -> The MIT License (MIT) -> -> Copyright (c) 2014-2018, Jon Schlinkert. -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## object-assign -License: MIT -By: Sindre Sorhus -Repository: https://github.com/sindresorhus/object-assign - -> The MIT License (MIT) -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## on-finished -License: MIT -By: Douglas Christopher Wilson, Jonathan Ong -Repository: https://github.com/jshttp/on-finished - -> (The MIT License) -> -> Copyright (c) 2013 Jonathan Ong -> Copyright (c) 2014 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## parse5 -License: MIT -By: Ivan Nikulin, https://github.com/inikulin/parse5/graphs/contributors -Repository: https://github.com/inikulin/parse5 - -> Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## parseurl -License: MIT -By: Douglas Christopher Wilson, Jonathan Ong -Repository: https://github.com/pillarjs/parseurl - -> (The MIT License) -> -> Copyright (c) 2014 Jonathan Ong -> Copyright (c) 2014-2017 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## path-key, shebang-regex -License: MIT -By: Sindre Sorhus -Repositories: https://github.com/sindresorhus/path-key, https://github.com/sindresorhus/shebang-regex - -> MIT License -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## periscopic -License: MIT -Repository: https://github.com/Rich-Harris/periscopic - -> Copyright (c) 2019 Rich Harris -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## picocolors -License: ISC -By: Alexey Raspopov -Repository: https://github.com/alexeyraspopov/picocolors - -> ISC License -> -> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-import -License: MIT -By: Maxime Thirouin -Repository: https://github.com/postcss/postcss-import - -> The MIT License (MIT) -> -> Copyright (c) 2014 Maxime Thirouin, Jason Campbell & Kevin Mårtensson -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -> the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## postcss-load-config -License: MIT -By: Michael Ciniawky, Ryan Dunckel, Mateusz Derks, Dalton Santos, Patrick Gilday, François Wouts -Repository: https://github.com/postcss/postcss-load-config - -> The MIT License (MIT) -> -> Copyright Michael Ciniawsky -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -> the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## postcss-modules -License: MIT -By: Alexander Madyankin -Repository: https://github.com/css-modules/postcss-modules - -> The MIT License (MIT) -> -> Copyright 2015-present Alexander Madyankin -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -> the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## postcss-modules-extract-imports -License: ISC -By: Glen Maddern -Repository: https://github.com/css-modules/postcss-modules-extract-imports - -> Copyright 2015 Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-modules-local-by-default -License: MIT -By: Mark Dalgleish -Repository: https://github.com/css-modules/postcss-modules-local-by-default - -> The MIT License (MIT) -> -> Copyright 2015 Mark Dalgleish -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -> the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## postcss-modules-scope -License: ISC -By: Glen Maddern -Repository: https://github.com/css-modules/postcss-modules-scope - -> ISC License (ISC) -> -> Copyright (c) 2015, Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-modules-values -License: ISC -By: Glen Maddern -Repository: https://github.com/css-modules/postcss-modules-values - -> ISC License (ISC) -> -> Copyright (c) 2015, Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-selector-parser -License: MIT -By: Ben Briggs, Chris Eppstein -Repository: https://github.com/postcss/postcss-selector-parser - -> Copyright (c) Ben Briggs (http://beneb.info) -> -> Permission is hereby granted, free of charge, to any person -> obtaining a copy of this software and associated documentation -> files (the "Software"), to deal in the Software without -> restriction, including without limitation the rights to use, -> copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the -> Software is furnished to do so, subject to the following -> conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -> OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## postcss-value-parser -License: MIT -By: Bogdan Chadkin -Repository: https://github.com/TrySound/postcss-value-parser - -> Copyright (c) Bogdan Chadkin -> -> Permission is hereby granted, free of charge, to any person -> obtaining a copy of this software and associated documentation -> files (the "Software"), to deal in the Software without -> restriction, including without limitation the rights to use, -> copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the -> Software is furnished to do so, subject to the following -> conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -> OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## readdirp -License: MIT -By: Thorsten Lorenz, Paul Miller -Repository: https://github.com/paulmillr/readdirp - -> MIT License -> -> Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## resolve.exports, totalist -License: MIT -By: Luke Edwards -Repositories: https://github.com/lukeed/resolve.exports, https://github.com/lukeed/totalist - -> The MIT License (MIT) -> -> Copyright (c) Luke Edwards (lukeed.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## shebang-command -License: MIT -By: Kevin Mårtensson -Repository: https://github.com/kevva/shebang-command - -> MIT License -> -> Copyright (c) Kevin Mårtensson (github.com/kevva) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## sirv -License: MIT -By: Luke Edwards -Repository: https://github.com/lukeed/sirv - ---------------------------------------- - -## statuses -License: MIT -By: Douglas Christopher Wilson, Jonathan Ong -Repository: https://github.com/jshttp/statuses - -> The MIT License (MIT) -> -> Copyright (c) 2014 Jonathan Ong -> Copyright (c) 2016 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## string-hash -License: CC0-1.0 -By: The Dark Sky Company -Repository: https://github.com/darkskyapp/string-hash - ---------------------------------------- - -## strip-literal -License: MIT -By: Anthony Fu -Repository: https://github.com/antfu/strip-literal - -> MIT License -> -> Copyright (c) 2022 Anthony Fu -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## to-regex-range -License: MIT -By: Jon Schlinkert, Rouven Weßling -Repository: https://github.com/micromatch/to-regex-range - -> The MIT License (MIT) -> -> Copyright (c) 2015-present, Jon Schlinkert. -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ---------------------------------------- - -## tsconfck -License: MIT -By: dominikg -Repository: https://github.com/dominikg/tsconfck - -> MIT License -> -> Copyright (c) 2021-present dominikg and [contributors](https://github.com/dominikg/tsconfck/graphs/contributors) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. -> -> -- Licenses for 3rd-party code included in tsconfck -- -> -> # strip-bom and strip-json-comments -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - -## unpipe -License: MIT -By: Douglas Christopher Wilson -Repository: https://github.com/stream-utils/unpipe - -> (The MIT License) -> -> Copyright (c) 2015 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## util-deprecate -License: MIT -By: Nathan Rajlich -Repository: https://github.com/TooTallNate/util-deprecate - -> (The MIT License) -> -> Copyright (c) 2014 Nathan Rajlich -> -> Permission is hereby granted, free of charge, to any person -> obtaining a copy of this software and associated documentation -> files (the "Software"), to deal in the Software without -> restriction, including without limitation the rights to use, -> copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the -> Software is furnished to do so, subject to the following -> conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -> OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## utils-merge -License: MIT -By: Jared Hanson -Repository: https://github.com/jaredhanson/utils-merge - -> The MIT License (MIT) -> -> Copyright (c) 2013-2017 Jared Hanson -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -> the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## vary -License: MIT -By: Douglas Christopher Wilson -Repository: https://github.com/jshttp/vary - -> (The MIT License) -> -> Copyright (c) 2014-2017 Douglas Christopher Wilson -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> 'Software'), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - -## ws -License: MIT -By: Einar Otto Stangvik -Repository: https://github.com/websockets/ws - -> Copyright (c) 2011 Einar Otto Stangvik -> Copyright (c) 2013 Arnout Kazemier and contributors -> Copyright (c) 2016 Luigi Pinca and contributors -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of -> this software and associated documentation files (the "Software"), to deal in -> the Software without restriction, including without limitation the rights to -> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -> the Software, and to permit persons to whom the Software is furnished to do so, -> subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/vite/README.md b/node_modules/vite/README.md deleted file mode 100644 index b0e348b..0000000 --- a/node_modules/vite/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# Vite ⚡ - -> Next Generation Frontend Tooling - -- 💡 Instant Server Start -- ⚡️ Lightning Fast HMR -- 🛠️ Rich Features -- 📦 Optimized Build -- 🔩 Universal Plugin Interface -- 🔑 Fully Typed APIs - -Vite (French word for "fast", pronounced `/vit/`) is a new breed of frontend build tool that significantly improves the frontend development experience. It consists of two major parts: - -- A dev server that serves your source files over [native ES modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), with [rich built-in features](https://vite.dev/guide/features.html) and astonishingly fast [Hot Module Replacement (HMR)](https://vite.dev/guide/features.html#hot-module-replacement). - -- A [build command](https://vite.dev/guide/build.html) that bundles your code with [Rollup](https://rollupjs.org), pre-configured to output highly optimized static assets for production. - -In addition, Vite is highly extensible via its [Plugin API](https://vite.dev/guide/api-plugin.html) and [JavaScript API](https://vite.dev/guide/api-javascript.html) with full typing support. - -[Read the Docs to Learn More](https://vite.dev). diff --git a/node_modules/vite/bin/openChrome.js b/node_modules/vite/bin/openChrome.js deleted file mode 100644 index 5a4aa95..0000000 --- a/node_modules/vite/bin/openChrome.js +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright (c) 2015-present, Facebook, Inc. - -This source code is licensed under the MIT license found in the -LICENSE file at -https://github.com/facebook/create-react-app/blob/main/LICENSE -*/ - -/* global Application */ - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function run(argv) { - const urlToOpen = argv[0] - // Allow requested program to be optional, default to Google Chrome - const programName = argv[1] ?? 'Google Chrome' - - const app = Application(programName) - - if (app.windows.length === 0) { - app.Window().make() - } - - // 1: Looking for tab running debugger then, - // Reload debugging tab if found, then return - const found = lookupTabWithUrl(urlToOpen, app) - if (found) { - found.targetWindow.activeTabIndex = found.targetTabIndex - found.targetTab.reload() - found.targetWindow.index = 1 - app.activate() - return - } - - // 2: Looking for Empty tab - // In case debugging tab was not found - // We try to find an empty tab instead - const emptyTabFound = lookupTabWithUrl('chrome://newtab/', app) - if (emptyTabFound) { - emptyTabFound.targetWindow.activeTabIndex = emptyTabFound.targetTabIndex - emptyTabFound.targetTab.url = urlToOpen - app.activate() - return - } - - // 3: Create new tab - // both debugging and empty tab were not found make a new tab with url - const firstWindow = app.windows[0] - firstWindow.tabs.push(app.Tab({ url: urlToOpen })) - app.activate() -} - -/** - * Lookup tab with given url - */ -function lookupTabWithUrl(lookupUrl, app) { - const windows = app.windows() - for (const window of windows) { - for (const [tabIndex, tab] of window.tabs().entries()) { - if (tab.url().includes(lookupUrl)) { - return { - targetTab: tab, - targetTabIndex: tabIndex + 1, - targetWindow: window, - } - } - } - } -} diff --git a/node_modules/vite/bin/vite.js b/node_modules/vite/bin/vite.js deleted file mode 100755 index 79c49ab..0000000 --- a/node_modules/vite/bin/vite.js +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env node -import { performance } from 'node:perf_hooks' -import module from 'node:module' - -if (!import.meta.url.includes('node_modules')) { - if (!process.env.DEBUG_DISABLE_SOURCE_MAP) { - // eslint-disable-next-line n/no-unsupported-features/node-builtins -- only used in dev - process.setSourceMapsEnabled(true) - } - - process.on('unhandledRejection', (err) => { - throw new Error('UNHANDLED PROMISE REJECTION', { cause: err }) - }) -} - -global.__vite_start_time = performance.now() - -// check debug mode first before requiring the CLI. -const debugIndex = process.argv.findIndex((arg) => /^(?:-d|--debug)$/.test(arg)) -const filterIndex = process.argv.findIndex((arg) => - /^(?:-f|--filter)$/.test(arg), -) -const profileIndex = process.argv.indexOf('--profile') - -if (debugIndex > 0) { - let value = process.argv[debugIndex + 1] - if (!value || value[0] === '-') { - value = 'vite:*' - } else { - // support debugging multiple flags with comma-separated list - value = value - .split(',') - .map((v) => `vite:${v}`) - .join(',') - } - process.env.DEBUG = `${ - process.env.DEBUG ? process.env.DEBUG + ',' : '' - }${value}` - - if (filterIndex > 0) { - const filter = process.argv[filterIndex + 1] - if (filter && filter[0] !== '-') { - process.env.VITE_DEBUG_FILTER = filter - } - } -} - -function start() { - try { - // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.8.0+ and only called if it exists - module.enableCompileCache?.() - // flush the cache after 10s because the cache is not flushed until process end - // for dev server, the cache is never flushed unless manually flushed because the process.exit is called - // also flushing the cache in SIGINT handler seems to cause the process to hang - setTimeout(() => { - try { - // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.12.0+ and only called if it exists - module.flushCompileCache?.() - } catch {} - }, 10 * 1000).unref() - } catch {} - return import('../dist/node/cli.js') -} - -if (profileIndex > 0) { - process.argv.splice(profileIndex, 1) - const next = process.argv[profileIndex] - if (next && next[0] !== '-') { - process.argv.splice(profileIndex, 1) - } - const inspector = await import('node:inspector').then((r) => r.default) - const session = (global.__vite_profile_session = new inspector.Session()) - session.connect() - session.post('Profiler.enable', () => { - session.post('Profiler.start', start) - }) -} else { - start() -} diff --git a/node_modules/vite/client.d.ts b/node_modules/vite/client.d.ts deleted file mode 100644 index 3a9dd88..0000000 --- a/node_modules/vite/client.d.ts +++ /dev/null @@ -1,279 +0,0 @@ -/// - -// CSS modules -type CSSModuleClasses = { readonly [key: string]: string } - -declare module '*.module.css' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.scss' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.sass' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.less' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.styl' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.stylus' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.pcss' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.sss' { - const classes: CSSModuleClasses - export default classes -} - -// CSS -declare module '*.css' {} -declare module '*.scss' {} -declare module '*.sass' {} -declare module '*.less' {} -declare module '*.styl' {} -declare module '*.stylus' {} -declare module '*.pcss' {} -declare module '*.sss' {} - -// Built-in asset types -// see `src/node/constants.ts` - -// images -declare module '*.apng' { - const src: string - export default src -} -declare module '*.bmp' { - const src: string - export default src -} -declare module '*.png' { - const src: string - export default src -} -declare module '*.jpg' { - const src: string - export default src -} -declare module '*.jpeg' { - const src: string - export default src -} -declare module '*.jfif' { - const src: string - export default src -} -declare module '*.pjpeg' { - const src: string - export default src -} -declare module '*.pjp' { - const src: string - export default src -} -declare module '*.gif' { - const src: string - export default src -} -declare module '*.svg' { - const src: string - export default src -} -declare module '*.ico' { - const src: string - export default src -} -declare module '*.webp' { - const src: string - export default src -} -declare module '*.avif' { - const src: string - export default src -} -declare module '*.cur' { - const src: string - export default src -} -declare module '*.jxl' { - const src: string - export default src -} - -// media -declare module '*.mp4' { - const src: string - export default src -} -declare module '*.webm' { - const src: string - export default src -} -declare module '*.ogg' { - const src: string - export default src -} -declare module '*.mp3' { - const src: string - export default src -} -declare module '*.wav' { - const src: string - export default src -} -declare module '*.flac' { - const src: string - export default src -} -declare module '*.aac' { - const src: string - export default src -} -declare module '*.opus' { - const src: string - export default src -} -declare module '*.mov' { - const src: string - export default src -} -declare module '*.m4a' { - const src: string - export default src -} -declare module '*.vtt' { - const src: string - export default src -} - -// fonts -declare module '*.woff' { - const src: string - export default src -} -declare module '*.woff2' { - const src: string - export default src -} -declare module '*.eot' { - const src: string - export default src -} -declare module '*.ttf' { - const src: string - export default src -} -declare module '*.otf' { - const src: string - export default src -} - -// other -declare module '*.webmanifest' { - const src: string - export default src -} -declare module '*.pdf' { - const src: string - export default src -} -declare module '*.txt' { - const src: string - export default src -} - -// wasm?init -declare module '*.wasm?init' { - const initWasm: ( - options?: WebAssembly.Imports, - ) => Promise - export default initWasm -} - -// web worker -declare module '*?worker' { - const workerConstructor: { - new (options?: { name?: string }): Worker - } - export default workerConstructor -} - -declare module '*?worker&inline' { - const workerConstructor: { - new (options?: { name?: string }): Worker - } - export default workerConstructor -} - -declare module '*?worker&url' { - const src: string - export default src -} - -declare module '*?sharedworker' { - const sharedWorkerConstructor: { - new (options?: { name?: string }): SharedWorker - } - export default sharedWorkerConstructor -} - -declare module '*?sharedworker&inline' { - const sharedWorkerConstructor: { - new (options?: { name?: string }): SharedWorker - } - export default sharedWorkerConstructor -} - -declare module '*?sharedworker&url' { - const src: string - export default src -} - -declare module '*?raw' { - const src: string - export default src -} - -declare module '*?url' { - const src: string - export default src -} - -declare module '*?inline' { - const src: string - export default src -} - -declare module '*?no-inline' { - const src: string - export default src -} - -declare module '*?url&inline' { - const src: string - export default src -} - -declare module '*?url&no-inline' { - const src: string - export default src -} - -declare interface VitePreloadErrorEvent extends Event { - payload: Error -} - -declare interface WindowEventMap { - 'vite:preloadError': VitePreloadErrorEvent -} diff --git a/node_modules/vite/dist/client/client.mjs b/node_modules/vite/dist/client/client.mjs deleted file mode 100644 index 83521b7..0000000 --- a/node_modules/vite/dist/client/client.mjs +++ /dev/null @@ -1,1106 +0,0 @@ -import "@vite/env"; - -//#region \0@oxc-project+runtime@0.97.0/helpers/typeof.js -function _typeof(o) { - "@babel/helpers - typeof"; - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) { - return typeof o$1; - } : function(o$1) { - return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1; - }, _typeof(o); -} - -//#endregion -//#region \0@oxc-project+runtime@0.97.0/helpers/toPrimitive.js -function toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} - -//#endregion -//#region \0@oxc-project+runtime@0.97.0/helpers/toPropertyKey.js -function toPropertyKey(t) { - var i = toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : i + ""; -} - -//#endregion -//#region \0@oxc-project+runtime@0.97.0/helpers/defineProperty.js -function _defineProperty(e, r, t) { - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { - value: t, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[r] = t, e; -} - -//#endregion -//#region src/shared/hmr.ts -var HMRContext = class { - constructor(hmrClient$1, ownerPath) { - this.hmrClient = hmrClient$1; - this.ownerPath = ownerPath; - _defineProperty(this, "newListeners", void 0); - if (!hmrClient$1.dataMap.has(ownerPath)) hmrClient$1.dataMap.set(ownerPath, {}); - const mod = hmrClient$1.hotModulesMap.get(ownerPath); - if (mod) mod.callbacks = []; - const staleListeners = hmrClient$1.ctxToListenersMap.get(ownerPath); - if (staleListeners) for (const [event, staleFns] of staleListeners) { - const listeners = hmrClient$1.customListenersMap.get(event); - if (listeners) hmrClient$1.customListenersMap.set(event, listeners.filter((l) => !staleFns.includes(l))); - } - this.newListeners = /* @__PURE__ */ new Map(); - hmrClient$1.ctxToListenersMap.set(ownerPath, this.newListeners); - } - get data() { - return this.hmrClient.dataMap.get(this.ownerPath); - } - accept(deps, callback) { - if (typeof deps === "function" || !deps) this.acceptDeps([this.ownerPath], ([mod]) => deps?.(mod)); - else if (typeof deps === "string") this.acceptDeps([deps], ([mod]) => callback?.(mod)); - else if (Array.isArray(deps)) this.acceptDeps(deps, callback); - else throw new Error(`invalid hot.accept() usage.`); - } - acceptExports(_, callback) { - this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod)); - } - dispose(cb) { - this.hmrClient.disposeMap.set(this.ownerPath, cb); - } - prune(cb) { - this.hmrClient.pruneMap.set(this.ownerPath, cb); - } - decline() {} - invalidate(message) { - const firstInvalidatedBy = this.hmrClient.currentFirstInvalidatedBy ?? this.ownerPath; - this.hmrClient.notifyListeners("vite:invalidate", { - path: this.ownerPath, - message, - firstInvalidatedBy - }); - this.send("vite:invalidate", { - path: this.ownerPath, - message, - firstInvalidatedBy - }); - this.hmrClient.logger.debug(`invalidate ${this.ownerPath}${message ? `: ${message}` : ""}`); - } - on(event, cb) { - const addToMap = (map) => { - const existing = map.get(event) || []; - existing.push(cb); - map.set(event, existing); - }; - addToMap(this.hmrClient.customListenersMap); - addToMap(this.newListeners); - } - off(event, cb) { - const removeFromMap = (map) => { - const existing = map.get(event); - if (existing === void 0) return; - const pruned = existing.filter((l) => l !== cb); - if (pruned.length === 0) { - map.delete(event); - return; - } - map.set(event, pruned); - }; - removeFromMap(this.hmrClient.customListenersMap); - removeFromMap(this.newListeners); - } - send(event, data) { - this.hmrClient.send({ - type: "custom", - event, - data - }); - } - acceptDeps(deps, callback = () => {}) { - const mod = this.hmrClient.hotModulesMap.get(this.ownerPath) || { - id: this.ownerPath, - callbacks: [] - }; - mod.callbacks.push({ - deps, - fn: callback - }); - this.hmrClient.hotModulesMap.set(this.ownerPath, mod); - } -}; -var HMRClient = class { - constructor(logger, transport$1, importUpdatedModule) { - this.logger = logger; - this.transport = transport$1; - this.importUpdatedModule = importUpdatedModule; - _defineProperty(this, "hotModulesMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "disposeMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "pruneMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "dataMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "customListenersMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "ctxToListenersMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "currentFirstInvalidatedBy", void 0); - _defineProperty(this, "updateQueue", []); - _defineProperty(this, "pendingUpdateQueue", false); - } - async notifyListeners(event, data) { - const cbs = this.customListenersMap.get(event); - if (cbs) await Promise.allSettled(cbs.map((cb) => cb(data))); - } - send(payload) { - this.transport.send(payload).catch((err) => { - this.logger.error(err); - }); - } - clear() { - this.hotModulesMap.clear(); - this.disposeMap.clear(); - this.pruneMap.clear(); - this.dataMap.clear(); - this.customListenersMap.clear(); - this.ctxToListenersMap.clear(); - } - async prunePaths(paths) { - await Promise.all(paths.map((path) => { - const disposer = this.disposeMap.get(path); - if (disposer) return disposer(this.dataMap.get(path)); - })); - await Promise.all(paths.map((path) => { - const fn = this.pruneMap.get(path); - if (fn) return fn(this.dataMap.get(path)); - })); - } - warnFailedUpdate(err, path) { - if (!(err instanceof Error) || !err.message.includes("fetch")) this.logger.error(err); - this.logger.error(`Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)`); - } - /** - * buffer multiple hot updates triggered by the same src change - * so that they are invoked in the same order they were sent. - * (otherwise the order may be inconsistent because of the http request round trip) - */ - async queueUpdate(payload) { - this.updateQueue.push(this.fetchUpdate(payload)); - if (!this.pendingUpdateQueue) { - this.pendingUpdateQueue = true; - await Promise.resolve(); - this.pendingUpdateQueue = false; - const loading = [...this.updateQueue]; - this.updateQueue = []; - (await Promise.all(loading)).forEach((fn) => fn && fn()); - } - } - async fetchUpdate(update) { - const { path, acceptedPath, firstInvalidatedBy } = update; - const mod = this.hotModulesMap.get(path); - if (!mod) return; - let fetchedModule; - const isSelfUpdate = path === acceptedPath; - const qualifiedCallbacks = mod.callbacks.filter(({ deps }) => deps.includes(acceptedPath)); - if (isSelfUpdate || qualifiedCallbacks.length > 0) { - const disposer = this.disposeMap.get(acceptedPath); - if (disposer) await disposer(this.dataMap.get(acceptedPath)); - try { - fetchedModule = await this.importUpdatedModule(update); - } catch (e) { - this.warnFailedUpdate(e, acceptedPath); - } - } - return () => { - try { - this.currentFirstInvalidatedBy = firstInvalidatedBy; - for (const { deps, fn } of qualifiedCallbacks) fn(deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0)); - const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`; - this.logger.debug(`hot updated: ${loggedPath}`); - } finally { - this.currentFirstInvalidatedBy = void 0; - } - }; - } -}; - -//#endregion -//#region ../../node_modules/.pnpm/nanoid@5.1.6/node_modules/nanoid/non-secure/index.js -let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; -let nanoid = (size = 21) => { - let id = ""; - let i = size | 0; - while (i--) id += urlAlphabet[Math.random() * 64 | 0]; - return id; -}; - -//#endregion -//#region src/shared/constants.ts -let SOURCEMAPPING_URL = "sourceMa"; -SOURCEMAPPING_URL += "ppingURL"; - -//#endregion -//#region src/shared/utils.ts -const isWindows = typeof process !== "undefined" && process.platform === "win32"; -const AsyncFunction = async function() {}.constructor; -function promiseWithResolvers() { - let resolve; - let reject; - return { - promise: new Promise((_resolve, _reject) => { - resolve = _resolve; - reject = _reject; - }), - resolve, - reject - }; -} - -//#endregion -//#region src/shared/moduleRunnerTransport.ts -function reviveInvokeError(e) { - const error = new Error(e.message || "Unknown invoke error"); - Object.assign(error, e, { runnerError: /* @__PURE__ */ new Error("RunnerError") }); - return error; -} -const createInvokeableTransport = (transport$1) => { - if (transport$1.invoke) return { - ...transport$1, - async invoke(name, data) { - const result = await transport$1.invoke({ - type: "custom", - event: "vite:invoke", - data: { - id: "send", - name, - data - } - }); - if ("error" in result) throw reviveInvokeError(result.error); - return result.result; - } - }; - if (!transport$1.send || !transport$1.connect) throw new Error("transport must implement send and connect when invoke is not implemented"); - const rpcPromises = /* @__PURE__ */ new Map(); - return { - ...transport$1, - connect({ onMessage, onDisconnection }) { - return transport$1.connect({ - onMessage(payload) { - if (payload.type === "custom" && payload.event === "vite:invoke") { - const data = payload.data; - if (data.id.startsWith("response:")) { - const invokeId = data.id.slice(9); - const promise = rpcPromises.get(invokeId); - if (!promise) return; - if (promise.timeoutId) clearTimeout(promise.timeoutId); - rpcPromises.delete(invokeId); - const { error, result } = data.data; - if (error) promise.reject(error); - else promise.resolve(result); - return; - } - } - onMessage(payload); - }, - onDisconnection - }); - }, - disconnect() { - rpcPromises.forEach((promise) => { - promise.reject(/* @__PURE__ */ new Error(`transport was disconnected, cannot call ${JSON.stringify(promise.name)}`)); - }); - rpcPromises.clear(); - return transport$1.disconnect?.(); - }, - send(data) { - return transport$1.send(data); - }, - async invoke(name, data) { - const promiseId = nanoid(); - const wrappedData = { - type: "custom", - event: "vite:invoke", - data: { - name, - id: `send:${promiseId}`, - data - } - }; - const sendPromise = transport$1.send(wrappedData); - const { promise, resolve, reject } = promiseWithResolvers(); - const timeout = transport$1.timeout ?? 6e4; - let timeoutId; - if (timeout > 0) { - timeoutId = setTimeout(() => { - rpcPromises.delete(promiseId); - reject(/* @__PURE__ */ new Error(`transport invoke timed out after ${timeout}ms (data: ${JSON.stringify(wrappedData)})`)); - }, timeout); - timeoutId?.unref?.(); - } - rpcPromises.set(promiseId, { - resolve, - reject, - name, - timeoutId - }); - if (sendPromise) sendPromise.catch((err) => { - clearTimeout(timeoutId); - rpcPromises.delete(promiseId); - reject(err); - }); - try { - return await promise; - } catch (err) { - throw reviveInvokeError(err); - } - } - }; -}; -const normalizeModuleRunnerTransport = (transport$1) => { - const invokeableTransport = createInvokeableTransport(transport$1); - let isConnected = !invokeableTransport.connect; - let connectingPromise; - return { - ...transport$1, - ...invokeableTransport.connect ? { async connect(onMessage) { - if (isConnected) return; - if (connectingPromise) { - await connectingPromise; - return; - } - const maybePromise = invokeableTransport.connect({ - onMessage: onMessage ?? (() => {}), - onDisconnection() { - isConnected = false; - } - }); - if (maybePromise) { - connectingPromise = maybePromise; - await connectingPromise; - connectingPromise = void 0; - } - isConnected = true; - } } : {}, - ...invokeableTransport.disconnect ? { async disconnect() { - if (!isConnected) return; - if (connectingPromise) await connectingPromise; - isConnected = false; - await invokeableTransport.disconnect(); - } } : {}, - async send(data) { - if (!invokeableTransport.send) return; - if (!isConnected) if (connectingPromise) await connectingPromise; - else throw new Error("send was called before connect"); - await invokeableTransport.send(data); - }, - async invoke(name, data) { - if (!isConnected) if (connectingPromise) await connectingPromise; - else throw new Error("invoke was called before connect"); - return invokeableTransport.invoke(name, data); - } - }; -}; -const createWebSocketModuleRunnerTransport = (options) => { - const pingInterval = options.pingInterval ?? 3e4; - let ws; - let pingIntervalId; - return { - async connect({ onMessage, onDisconnection }) { - const socket = options.createConnection(); - socket.addEventListener("message", async ({ data }) => { - onMessage(JSON.parse(data)); - }); - let isOpened = socket.readyState === socket.OPEN; - if (!isOpened) await new Promise((resolve, reject) => { - socket.addEventListener("open", () => { - isOpened = true; - resolve(); - }, { once: true }); - socket.addEventListener("close", async () => { - if (!isOpened) { - reject(/* @__PURE__ */ new Error("WebSocket closed without opened.")); - return; - } - onMessage({ - type: "custom", - event: "vite:ws:disconnect", - data: { webSocket: socket } - }); - onDisconnection(); - }); - }); - onMessage({ - type: "custom", - event: "vite:ws:connect", - data: { webSocket: socket } - }); - ws = socket; - pingIntervalId = setInterval(() => { - if (socket.readyState === socket.OPEN) socket.send(JSON.stringify({ type: "ping" })); - }, pingInterval); - }, - disconnect() { - clearInterval(pingIntervalId); - ws?.close(); - }, - send(data) { - ws.send(JSON.stringify(data)); - } - }; -}; - -//#endregion -//#region src/shared/hmrHandler.ts -function createHMRHandler(handler) { - const queue = new Queue(); - return (payload) => queue.enqueue(() => handler(payload)); -} -var Queue = class { - constructor() { - _defineProperty(this, "queue", []); - _defineProperty(this, "pending", false); - } - enqueue(promise) { - return new Promise((resolve, reject) => { - this.queue.push({ - promise, - resolve, - reject - }); - this.dequeue(); - }); - } - dequeue() { - if (this.pending) return false; - const item = this.queue.shift(); - if (!item) return false; - this.pending = true; - item.promise().then(item.resolve).catch(item.reject).finally(() => { - this.pending = false; - this.dequeue(); - }); - return true; - } -}; - -//#endregion -//#region src/client/overlay.ts -const hmrConfigName = __HMR_CONFIG_NAME__; -const base$1 = __BASE__ || "/"; -const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : void 0; -function h(e, attrs = {}, ...children) { - const elem = document.createElement(e); - for (const [k, v] of Object.entries(attrs)) if (v !== void 0) elem.setAttribute(k, v); - elem.append(...children); - return elem; -} -const templateStyle = ` -:host { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 99999; - --monospace: 'SFMono-Regular', Consolas, - 'Liberation Mono', Menlo, Courier, monospace; - --red: #ff5555; - --yellow: #e2aa53; - --purple: #cfa4ff; - --cyan: #2dd9da; - --dim: #c9c9c9; - - --window-background: #181818; - --window-color: #d8d8d8; -} - -.backdrop { - position: fixed; - z-index: 99999; - top: 0; - left: 0; - width: 100%; - height: 100%; - overflow-y: scroll; - margin: 0; - background: rgba(0, 0, 0, 0.66); -} - -.window { - font-family: var(--monospace); - line-height: 1.5; - max-width: 80vw; - color: var(--window-color); - box-sizing: border-box; - margin: 30px auto; - padding: 2.5vh 4vw; - position: relative; - background: var(--window-background); - border-radius: 6px 6px 8px 8px; - box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); - overflow: hidden; - border-top: 8px solid var(--red); - direction: ltr; - text-align: left; -} - -pre { - font-family: var(--monospace); - font-size: 16px; - margin-top: 0; - margin-bottom: 1em; - overflow-x: scroll; - scrollbar-width: none; -} - -pre::-webkit-scrollbar { - display: none; -} - -pre.frame::-webkit-scrollbar { - display: block; - height: 5px; -} - -pre.frame::-webkit-scrollbar-thumb { - background: #999; - border-radius: 5px; -} - -pre.frame { - scrollbar-width: thin; -} - -.message { - line-height: 1.3; - font-weight: 600; - white-space: pre-wrap; -} - -.message-body { - color: var(--red); -} - -.plugin { - color: var(--purple); -} - -.file { - color: var(--cyan); - margin-bottom: 0; - white-space: pre-wrap; - word-break: break-all; -} - -.frame { - color: var(--yellow); -} - -.stack { - font-size: 13px; - color: var(--dim); -} - -.tip { - font-size: 13px; - color: #999; - border-top: 1px dotted #999; - padding-top: 13px; - line-height: 1.8; -} - -code { - font-size: 13px; - font-family: var(--monospace); - color: var(--yellow); -} - -.file-link { - text-decoration: underline; - cursor: pointer; -} - -kbd { - line-height: 1.5; - font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - font-size: 0.75rem; - font-weight: 700; - background-color: rgb(38, 40, 44); - color: rgb(166, 167, 171); - padding: 0.15rem 0.3rem; - border-radius: 0.25rem; - border-width: 0.0625rem 0.0625rem 0.1875rem; - border-style: solid; - border-color: rgb(54, 57, 64); - border-image: initial; -} -`; -const createTemplate = () => h("div", { - class: "backdrop", - part: "backdrop" -}, h("div", { - class: "window", - part: "window" -}, h("pre", { - class: "message", - part: "message" -}, h("span", { - class: "plugin", - part: "plugin" -}), h("span", { - class: "message-body", - part: "message-body" -})), h("pre", { - class: "file", - part: "file" -}), h("pre", { - class: "frame", - part: "frame" -}), h("pre", { - class: "stack", - part: "stack" -}), h("div", { - class: "tip", - part: "tip" -}, "Click outside, press ", h("kbd", {}, "Esc"), " key, or fix the code to dismiss.", h("br"), "You can also disable this overlay by setting ", h("code", { part: "config-option-name" }, "server.hmr.overlay"), " to ", h("code", { part: "config-option-value" }, "false"), " in ", h("code", { part: "config-file-name" }, hmrConfigName), ".")), h("style", { nonce: cspNonce }, templateStyle)); -const fileRE = /(?:file:\/\/)?(?:[a-zA-Z]:\\|\/).*?:\d+:\d+/g; -const codeframeRE = /^(?:>?\s*\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm; -const { HTMLElement = class {} } = globalThis; -var ErrorOverlay = class extends HTMLElement { - constructor(err, links = true) { - super(); - _defineProperty(this, "root", void 0); - _defineProperty(this, "closeOnEsc", void 0); - this.root = this.attachShadow({ mode: "open" }); - this.root.appendChild(createTemplate()); - codeframeRE.lastIndex = 0; - const hasFrame = err.frame && codeframeRE.test(err.frame); - const message = hasFrame ? err.message.replace(codeframeRE, "") : err.message; - if (err.plugin) this.text(".plugin", `[plugin:${err.plugin}] `); - this.text(".message-body", message.trim()); - const [file] = (err.loc?.file || err.id || "unknown file").split(`?`); - if (err.loc) this.text(".file", `${file}:${err.loc.line}:${err.loc.column}`, links); - else if (err.id) this.text(".file", file); - if (hasFrame) this.text(".frame", err.frame.trim()); - this.text(".stack", err.stack, links); - this.root.querySelector(".window").addEventListener("click", (e) => { - e.stopPropagation(); - }); - this.addEventListener("click", () => { - this.close(); - }); - this.closeOnEsc = (e) => { - if (e.key === "Escape" || e.code === "Escape") this.close(); - }; - document.addEventListener("keydown", this.closeOnEsc); - } - text(selector, text, linkFiles = false) { - const el = this.root.querySelector(selector); - if (!linkFiles) el.textContent = text; - else { - let curIndex = 0; - let match; - fileRE.lastIndex = 0; - while (match = fileRE.exec(text)) { - const { 0: file, index } = match; - const frag = text.slice(curIndex, index); - el.appendChild(document.createTextNode(frag)); - const link = document.createElement("a"); - link.textContent = file; - link.className = "file-link"; - link.onclick = () => { - fetch(new URL(`${base$1}__open-in-editor?file=${encodeURIComponent(file)}`, import.meta.url)); - }; - el.appendChild(link); - curIndex += frag.length + file.length; - } - if (curIndex < text.length) el.appendChild(document.createTextNode(text.slice(curIndex))); - } - } - close() { - this.parentNode?.removeChild(this); - document.removeEventListener("keydown", this.closeOnEsc); - } -}; -const overlayId = "vite-error-overlay"; -const { customElements } = globalThis; -if (customElements && !customElements.get(overlayId)) customElements.define(overlayId, ErrorOverlay); - -//#endregion -//#region src/client/client.ts -console.debug("[vite] connecting..."); -const importMetaUrl = new URL(import.meta.url); -const serverHost = __SERVER_HOST__; -const socketProtocol = __HMR_PROTOCOL__ || (importMetaUrl.protocol === "https:" ? "wss" : "ws"); -const hmrPort = __HMR_PORT__; -const socketHost = `${__HMR_HOSTNAME__ || importMetaUrl.hostname}:${hmrPort || importMetaUrl.port}${__HMR_BASE__}`; -const directSocketHost = __HMR_DIRECT_TARGET__; -const base = __BASE__ || "/"; -const hmrTimeout = __HMR_TIMEOUT__; -const wsToken = __WS_TOKEN__; -const transport = normalizeModuleRunnerTransport((() => { - let wsTransport = createWebSocketModuleRunnerTransport({ - createConnection: () => new WebSocket(`${socketProtocol}://${socketHost}?token=${wsToken}`, "vite-hmr"), - pingInterval: hmrTimeout - }); - return { - async connect(handlers) { - try { - await wsTransport.connect(handlers); - } catch (e) { - if (!hmrPort) { - wsTransport = createWebSocketModuleRunnerTransport({ - createConnection: () => new WebSocket(`${socketProtocol}://${directSocketHost}?token=${wsToken}`, "vite-hmr"), - pingInterval: hmrTimeout - }); - try { - await wsTransport.connect(handlers); - console.info("[vite] Direct websocket connection fallback. Check out https://vite.dev/config/server-options.html#server-hmr to remove the previous connection error."); - } catch (e$1) { - if (e$1 instanceof Error && e$1.message.includes("WebSocket closed without opened.")) { - const currentScriptHostURL = new URL(import.meta.url); - const currentScriptHost = currentScriptHostURL.host + currentScriptHostURL.pathname.replace(/@vite\/client$/, ""); - console.error(`[vite] failed to connect to websocket. -your current setup: - (browser) ${currentScriptHost} <--[HTTP]--> ${serverHost} (server)\n (browser) ${socketHost} <--[WebSocket (failing)]--> ${directSocketHost} (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .`); - } - } - return; - } - console.error(`[vite] failed to connect to websocket (${e}). `); - throw e; - } - }, - async disconnect() { - await wsTransport.disconnect(); - }, - send(data) { - wsTransport.send(data); - } - }; -})()); -let willUnload = false; -if (typeof window !== "undefined") window.addEventListener?.("beforeunload", () => { - willUnload = true; -}); -function cleanUrl(pathname) { - const url = new URL(pathname, "http://vite.dev"); - url.searchParams.delete("direct"); - return url.pathname + url.search; -} -let isFirstUpdate = true; -const outdatedLinkTags = /* @__PURE__ */ new WeakSet(); -const debounceReload = (time) => { - let timer; - return () => { - if (timer) { - clearTimeout(timer); - timer = null; - } - timer = setTimeout(() => { - location.reload(); - }, time); - }; -}; -const pageReload = debounceReload(20); -const hmrClient = new HMRClient({ - error: (err) => console.error("[vite]", err), - debug: (...msg) => console.debug("[vite]", ...msg) -}, transport, async function importUpdatedModule({ acceptedPath, timestamp, explicitImportRequired, isWithinCircularImport }) { - const [acceptedPathWithoutQuery, query] = acceptedPath.split(`?`); - const importPromise = import( - /* @vite-ignore */ - base + acceptedPathWithoutQuery.slice(1) + `?${explicitImportRequired ? "import&" : ""}t=${timestamp}${query ? `&${query}` : ""}` -); - if (isWithinCircularImport) importPromise.catch(() => { - console.info(`[hmr] ${acceptedPath} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order. To debug and break the circular import, you can run \`vite --debug hmr\` to log the circular dependency path if a file change triggered it.`); - pageReload(); - }); - return await importPromise; -}); -transport.connect(createHMRHandler(handleMessage)); -async function handleMessage(payload) { - switch (payload.type) { - case "connected": - console.debug(`[vite] connected.`); - break; - case "update": - await hmrClient.notifyListeners("vite:beforeUpdate", payload); - if (hasDocument) if (isFirstUpdate && hasErrorOverlay()) { - location.reload(); - return; - } else { - if (enableOverlay) clearErrorOverlay(); - isFirstUpdate = false; - } - await Promise.all(payload.updates.map(async (update) => { - if (update.type === "js-update") return hmrClient.queueUpdate(update); - const { path, timestamp } = update; - const searchUrl = cleanUrl(path); - const el = Array.from(document.querySelectorAll("link")).find((e) => !outdatedLinkTags.has(e) && cleanUrl(e.href).includes(searchUrl)); - if (!el) return; - const newPath = `${base}${searchUrl.slice(1)}${searchUrl.includes("?") ? "&" : "?"}t=${timestamp}`; - return new Promise((resolve) => { - const newLinkTag = el.cloneNode(); - newLinkTag.href = new URL(newPath, el.href).href; - const removeOldEl = () => { - el.remove(); - console.debug(`[vite] css hot updated: ${searchUrl}`); - resolve(); - }; - newLinkTag.addEventListener("load", removeOldEl); - newLinkTag.addEventListener("error", removeOldEl); - outdatedLinkTags.add(el); - el.after(newLinkTag); - }); - })); - await hmrClient.notifyListeners("vite:afterUpdate", payload); - break; - case "custom": - await hmrClient.notifyListeners(payload.event, payload.data); - if (payload.event === "vite:ws:disconnect") { - if (hasDocument && !willUnload) { - console.log(`[vite] server connection lost. Polling for restart...`); - const socket = payload.data.webSocket; - const url = new URL(socket.url); - url.search = ""; - await waitForSuccessfulPing(url.href); - location.reload(); - } - } - break; - case "full-reload": - await hmrClient.notifyListeners("vite:beforeFullReload", payload); - if (hasDocument) if (payload.path && payload.path.endsWith(".html")) { - const pagePath = decodeURI(location.pathname); - const payloadPath = base + payload.path.slice(1); - if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload(); - return; - } else pageReload(); - break; - case "prune": - await hmrClient.notifyListeners("vite:beforePrune", payload); - await hmrClient.prunePaths(payload.paths); - break; - case "error": - await hmrClient.notifyListeners("vite:error", payload); - if (hasDocument) { - const err = payload.err; - if (enableOverlay) createErrorOverlay(err); - else console.error(`[vite] Internal Server Error\n${err.message}\n${err.stack}`); - } - break; - case "ping": break; - default: return payload; - } -} -const enableOverlay = __HMR_ENABLE_OVERLAY__; -const hasDocument = "document" in globalThis; -function createErrorOverlay(err) { - clearErrorOverlay(); - const { customElements: customElements$1 } = globalThis; - if (customElements$1) { - const ErrorOverlayConstructor = customElements$1.get(overlayId); - document.body.appendChild(new ErrorOverlayConstructor(err)); - } -} -function clearErrorOverlay() { - document.querySelectorAll(overlayId).forEach((n) => n.close()); -} -function hasErrorOverlay() { - return document.querySelectorAll(overlayId).length; -} -function waitForSuccessfulPing(socketUrl) { - if (typeof SharedWorker === "undefined") { - const visibilityManager = { - currentState: document.visibilityState, - listeners: /* @__PURE__ */ new Set() - }; - const onVisibilityChange = () => { - visibilityManager.currentState = document.visibilityState; - for (const listener of visibilityManager.listeners) listener(visibilityManager.currentState); - }; - document.addEventListener("visibilitychange", onVisibilityChange); - return waitForSuccessfulPingInternal(socketUrl, visibilityManager); - } - const blob = new Blob([ - "\"use strict\";", - `const waitForSuccessfulPingInternal = ${waitForSuccessfulPingInternal.toString()};`, - `const fn = ${pingWorkerContentMain.toString()};`, - `fn(${JSON.stringify(socketUrl)})` - ], { type: "application/javascript" }); - const objURL = URL.createObjectURL(blob); - const sharedWorker = new SharedWorker(objURL); - return new Promise((resolve, reject) => { - const onVisibilityChange = () => { - sharedWorker.port.postMessage({ visibility: document.visibilityState }); - }; - document.addEventListener("visibilitychange", onVisibilityChange); - sharedWorker.port.addEventListener("message", (event) => { - document.removeEventListener("visibilitychange", onVisibilityChange); - sharedWorker.port.close(); - const data = event.data; - if (data.type === "error") { - reject(data.error); - return; - } - resolve(); - }); - onVisibilityChange(); - sharedWorker.port.start(); - }); -} -function pingWorkerContentMain(socketUrl) { - self.addEventListener("connect", (_event) => { - const port = _event.ports[0]; - if (!socketUrl) { - port.postMessage({ - type: "error", - error: /* @__PURE__ */ new Error("socketUrl not found") - }); - return; - } - const visibilityManager = { - currentState: "visible", - listeners: /* @__PURE__ */ new Set() - }; - port.addEventListener("message", (event) => { - const { visibility } = event.data; - visibilityManager.currentState = visibility; - console.debug("[vite] new window visibility", visibility); - for (const listener of visibilityManager.listeners) listener(visibility); - }); - port.start(); - console.debug("[vite] connected from window"); - waitForSuccessfulPingInternal(socketUrl, visibilityManager).then(() => { - console.debug("[vite] ping successful"); - try { - port.postMessage({ type: "success" }); - } catch (error) { - port.postMessage({ - type: "error", - error - }); - } - }, (error) => { - console.debug("[vite] error happened", error); - try { - port.postMessage({ - type: "error", - error - }); - } catch (error$1) { - port.postMessage({ - type: "error", - error: error$1 - }); - } - }); - }); -} -async function waitForSuccessfulPingInternal(socketUrl, visibilityManager, ms = 1e3) { - function wait(ms$1) { - return new Promise((resolve) => setTimeout(resolve, ms$1)); - } - async function ping() { - try { - const socket = new WebSocket(socketUrl, "vite-ping"); - return new Promise((resolve) => { - function onOpen() { - resolve(true); - close(); - } - function onError() { - resolve(false); - close(); - } - function close() { - socket.removeEventListener("open", onOpen); - socket.removeEventListener("error", onError); - socket.close(); - } - socket.addEventListener("open", onOpen); - socket.addEventListener("error", onError); - }); - } catch { - return false; - } - } - function waitForWindowShow(visibilityManager$1) { - return new Promise((resolve) => { - const onChange = (newVisibility) => { - if (newVisibility === "visible") { - resolve(); - visibilityManager$1.listeners.delete(onChange); - } - }; - visibilityManager$1.listeners.add(onChange); - }); - } - if (await ping()) return; - await wait(ms); - while (true) if (visibilityManager.currentState === "visible") { - if (await ping()) break; - await wait(ms); - } else await waitForWindowShow(visibilityManager); -} -const sheetsMap = /* @__PURE__ */ new Map(); -const linkSheetsMap = /* @__PURE__ */ new Map(); -if ("document" in globalThis) { - document.querySelectorAll("style[data-vite-dev-id]").forEach((el) => { - sheetsMap.set(el.getAttribute("data-vite-dev-id"), el); - }); - document.querySelectorAll("link[rel=\"stylesheet\"][data-vite-dev-id]").forEach((el) => { - linkSheetsMap.set(el.getAttribute("data-vite-dev-id"), el); - }); -} -let lastInsertedStyle; -function updateStyle(id, content) { - if (linkSheetsMap.has(id)) return; - let style = sheetsMap.get(id); - if (!style) { - style = document.createElement("style"); - style.setAttribute("type", "text/css"); - style.setAttribute("data-vite-dev-id", id); - style.textContent = content; - if (cspNonce) style.setAttribute("nonce", cspNonce); - if (!lastInsertedStyle) { - document.head.appendChild(style); - setTimeout(() => { - lastInsertedStyle = void 0; - }, 0); - } else lastInsertedStyle.insertAdjacentElement("afterend", style); - lastInsertedStyle = style; - } else style.textContent = content; - sheetsMap.set(id, style); -} -function removeStyle(id) { - if (linkSheetsMap.has(id)) { - document.querySelectorAll(`link[rel="stylesheet"][data-vite-dev-id]`).forEach((el) => { - if (el.getAttribute("data-vite-dev-id") === id) el.remove(); - }); - linkSheetsMap.delete(id); - } - const style = sheetsMap.get(id); - if (style) { - document.head.removeChild(style); - sheetsMap.delete(id); - } -} -function createHotContext(ownerPath) { - return new HMRContext(hmrClient, ownerPath); -} -/** -* urls here are dynamic import() urls that couldn't be statically analyzed -*/ -function injectQuery(url, queryToInject) { - if (url[0] !== "." && url[0] !== "/") return url; - const pathname = url.replace(/[?#].*$/, ""); - const { search, hash } = new URL(url, "http://vite.dev"); - return `${pathname}?${queryToInject}${search ? `&` + search.slice(1) : ""}${hash || ""}`; -} - -//#endregion -export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle }; \ No newline at end of file diff --git a/node_modules/vite/dist/client/env.mjs b/node_modules/vite/dist/client/env.mjs deleted file mode 100644 index c28abfd..0000000 --- a/node_modules/vite/dist/client/env.mjs +++ /dev/null @@ -1,19 +0,0 @@ -//#region src/client/env.ts -const context = (() => { - if (typeof globalThis !== "undefined") return globalThis; - else if (typeof self !== "undefined") return self; - else if (typeof window !== "undefined") return window; - else return Function("return this")(); -})(); -const defines = __DEFINES__; -Object.keys(defines).forEach((key) => { - const segments = key.split("."); - let target = context; - for (let i = 0; i < segments.length; i++) { - const segment = segments[i]; - if (i === segments.length - 1) target[segment] = defines[key]; - else target = target[segment] || (target[segment] = {}); - } -}); - -//#endregion \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/build.js b/node_modules/vite/dist/node/chunks/build.js deleted file mode 100644 index cd247f6..0000000 --- a/node_modules/vite/dist/node/chunks/build.js +++ /dev/null @@ -1,4 +0,0 @@ -import "./logger.js"; -import { A as toOutputFilePathInCss, C as onRollupLog, D as resolveBuilderOptions, E as resolveBuildPlugins, M as toOutputFilePathInJS, N as toOutputFilePathWithoutRuntime, O as resolveLibFilename, S as injectEnvironmentToHooks, T as resolveBuildOutputs, _ as build, b as createBuilder, g as BuildEnvironment, j as toOutputFilePathInHtml, k as resolveUserExternal, v as buildEnvironmentOptionsDefaults, w as resolveBuildEnvironmentOptions, x as createToImportMetaURLBasedRelativeRuntime, y as builderOptionsDefaults } from "./config.js"; - -export { createBuilder, resolveBuildPlugins }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/build2.js b/node_modules/vite/dist/node/chunks/build2.js deleted file mode 100644 index 225b126..0000000 --- a/node_modules/vite/dist/node/chunks/build2.js +++ /dev/null @@ -1,5538 +0,0 @@ -import { n as __require, t as __commonJS } from "./chunk.js"; -import { t as require_lib } from "./lib.js"; - -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js -var require_fs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getFileSystem = getFileSystem; - exports.setFileSystem = setFileSystem; - let fileSystem = { - readFile: () => { - throw Error("readFile not implemented"); - }, - writeFile: () => { - throw Error("writeFile not implemented"); - } - }; - function setFileSystem(fs) { - fileSystem.readFile = fs.readFile; - fileSystem.writeFile = fs.writeFile; - } - function getFileSystem() { - return fileSystem; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js -var require_unquote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = unquote; - const reg = /['"]/; - function unquote(str$1) { - if (!str$1) return ""; - if (reg.test(str$1.charAt(0))) str$1 = str$1.substr(1); - if (reg.test(str$1.charAt(str$1.length - 1))) str$1 = str$1.substr(0, str$1.length - 1); - return str$1; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js -var require_replaceValueSymbols = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js": ((exports, module) => { - const matchValueName = /[$]?[\w-]+/g; - const replaceValueSymbols$2 = (value, replacements) => { - let matches; - while (matches = matchValueName.exec(value)) { - const replacement = replacements[matches[0]]; - if (replacement) { - value = value.slice(0, matches.index) + replacement + value.slice(matchValueName.lastIndex); - matchValueName.lastIndex -= matches[0].length - replacement.length; - } - } - return value; - }; - module.exports = replaceValueSymbols$2; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js -var require_replaceSymbols = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js": ((exports, module) => { - const replaceValueSymbols$1 = require_replaceValueSymbols(); - const replaceSymbols$1 = (css, replacements) => { - css.walk((node) => { - if (node.type === "decl" && node.value) node.value = replaceValueSymbols$1(node.value.toString(), replacements); - else if (node.type === "rule" && node.selector) node.selector = replaceValueSymbols$1(node.selector.toString(), replacements); - else if (node.type === "atrule" && node.params) node.params = replaceValueSymbols$1(node.params.toString(), replacements); - }); - }; - module.exports = replaceSymbols$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js -var require_extractICSS = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js": ((exports, module) => { - const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/; - const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/; - const getDeclsObject = (rule) => { - const object = {}; - rule.walkDecls((decl) => { - const before = decl.raws.before ? decl.raws.before.trim() : ""; - object[before + decl.prop] = decl.value; - }); - return object; - }; - /** - * - * @param {string} css - * @param {boolean} removeRules - * @param {'auto' | 'rule' | 'at-rule'} mode - */ - const extractICSS$2 = (css, removeRules = true, mode = "auto") => { - const icssImports = {}; - const icssExports = {}; - function addImports(node, path$2) { - const unquoted = path$2.replace(/'|"/g, ""); - icssImports[unquoted] = Object.assign(icssImports[unquoted] || {}, getDeclsObject(node)); - if (removeRules) node.remove(); - } - function addExports(node) { - Object.assign(icssExports, getDeclsObject(node)); - if (removeRules) node.remove(); - } - css.each((node) => { - if (node.type === "rule" && mode !== "at-rule") { - if (node.selector.slice(0, 7) === ":import") { - const matches = importPattern.exec(node.selector); - if (matches) addImports(node, matches[1]); - } - if (node.selector === ":export") addExports(node); - } - if (node.type === "atrule" && mode !== "rule") { - if (node.name === "icss-import") { - const matches = balancedQuotes.exec(node.params); - if (matches) addImports(node, matches[1]); - } - if (node.name === "icss-export") addExports(node); - } - }); - return { - icssImports, - icssExports - }; - }; - module.exports = extractICSS$2; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js -var require_createICSSRules = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js": ((exports, module) => { - const createImports = (imports, postcss, mode = "rule") => { - return Object.keys(imports).map((path$2) => { - const aliases = imports[path$2]; - const declarations = Object.keys(aliases).map((key) => postcss.decl({ - prop: key, - value: aliases[key], - raws: { before: "\n " } - })); - const hasDeclarations = declarations.length > 0; - const rule = mode === "rule" ? postcss.rule({ - selector: `:import('${path$2}')`, - raws: { after: hasDeclarations ? "\n" : "" } - }) : postcss.atRule({ - name: "icss-import", - params: `'${path$2}'`, - raws: { after: hasDeclarations ? "\n" : "" } - }); - if (hasDeclarations) rule.append(declarations); - return rule; - }); - }; - const createExports = (exports$1, postcss, mode = "rule") => { - const declarations = Object.keys(exports$1).map((key) => postcss.decl({ - prop: key, - value: exports$1[key], - raws: { before: "\n " } - })); - if (declarations.length === 0) return []; - const rule = mode === "rule" ? postcss.rule({ - selector: `:export`, - raws: { after: "\n" } - }) : postcss.atRule({ - name: "icss-export", - raws: { after: "\n" } - }); - rule.append(declarations); - return [rule]; - }; - const createICSSRules$1 = (imports, exports$1, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$1, postcss, mode)]; - module.exports = createICSSRules$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js -var require_src$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js": ((exports, module) => { - const replaceValueSymbols = require_replaceValueSymbols(); - const replaceSymbols = require_replaceSymbols(); - const extractICSS$1 = require_extractICSS(); - const createICSSRules = require_createICSSRules(); - module.exports = { - replaceValueSymbols, - replaceSymbols, - extractICSS: extractICSS$1, - createICSSRules - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js -var require_Parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - var _icssUtils = require_src$4(); - const importRegexp = /^:import\((.+)\)$/; - var Parser$1 = class { - constructor(pathFetcher, trace) { - this.pathFetcher = pathFetcher; - this.plugin = this.plugin.bind(this); - this.exportTokens = {}; - this.translations = {}; - this.trace = trace; - } - plugin() { - const parser$1 = this; - return { - postcssPlugin: "css-modules-parser", - async OnceExit(css) { - await Promise.all(parser$1.fetchAllImports(css)); - parser$1.linkImportedSymbols(css); - return parser$1.extractExports(css); - } - }; - } - fetchAllImports(css) { - let imports = []; - css.each((node) => { - if (node.type == "rule" && node.selector.match(importRegexp)) imports.push(this.fetchImport(node, css.source.input.from, imports.length)); - }); - return imports; - } - linkImportedSymbols(css) { - (0, _icssUtils.replaceSymbols)(css, this.translations); - } - extractExports(css) { - css.each((node) => { - if (node.type == "rule" && node.selector == ":export") this.handleExport(node); - }); - } - handleExport(exportNode) { - exportNode.each((decl) => { - if (decl.type == "decl") { - Object.keys(this.translations).forEach((translation) => { - decl.value = decl.value.replace(translation, this.translations[translation]); - }); - this.exportTokens[decl.prop] = decl.value; - } - }); - exportNode.remove(); - } - async fetchImport(importNode, relativeTo, depNr) { - const file = importNode.selector.match(importRegexp)[1]; - const depTrace = this.trace + String.fromCharCode(depNr); - const exports$1 = await this.pathFetcher(file, relativeTo, depTrace); - try { - importNode.each((decl) => { - if (decl.type == "decl") this.translations[decl.prop] = exports$1[decl.value]; - }); - importNode.remove(); - } catch (err) { - console.log(err); - } - } - }; - exports.default = Parser$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js -var require_saveJSON = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = saveJSON; - var _fs$2 = require_fs(); - function saveJSON(cssFile, json) { - return new Promise((resolve, reject) => { - const { writeFile } = (0, _fs$2.getFileSystem)(); - writeFile(`${cssFile}.json`, JSON.stringify(json), (e) => e ? reject(e) : resolve(json)); - }); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js -var require_lodash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js": ((exports, module) => { - /** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - /** Used as references for various `Number` constants. */ - var INFINITY = Infinity; - /** `Object#toString` result references. */ - var symbolTag = "[object Symbol]"; - /** Used to match words composed of alphanumeric characters. */ - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - /** Used to match Latin Unicode letters (excluding mathematical operators). */ - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - /** Used to compose unicode character classes. */ - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23", rsComboSymbolsRange = "\\u20d0-\\u20f0", rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - /** Used to compose unicode capture groups. */ - var rsApos = "['’]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - /** Used to compose unicode regexes. */ - var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")", rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [ - rsNonAstral, - rsRegional, - rsSurrPair - ].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [ - rsDingbat, - rsRegional, - rsSurrPair - ].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [ - rsNonAstral + rsCombo + "?", - rsCombo, - rsRegional, - rsSurrPair, - rsAstral - ].join("|") + ")"; - /** Used to match apostrophes. */ - var reApos = RegExp(rsApos, "g"); - /** - * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and - * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). - */ - var reComboMark = RegExp(rsCombo, "g"); - /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - /** Used to match complex or compound words. */ - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptLowerContr + "(?=" + [ - rsBreak, - rsUpper, - "$" - ].join("|") + ")", - rsUpperMisc + "+" + rsOptUpperContr + "(?=" + [ - rsBreak, - rsUpper + rsLowerMisc, - "$" - ].join("|") + ")", - rsUpper + "?" + rsLowerMisc + "+" + rsOptLowerContr, - rsUpper + "+" + rsOptUpperContr, - rsDigits, - rsEmoji - ].join("|"), "g"); - /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + "]"); - /** Used to detect strings that need a more robust regexp to match words. */ - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - /** Used to map Latin Unicode letters to basic Latin letters. */ - var deburredLetters = { - "À": "A", - "Á": "A", - "Â": "A", - "Ã": "A", - "Ä": "A", - "Å": "A", - "à": "a", - "á": "a", - "â": "a", - "ã": "a", - "ä": "a", - "å": "a", - "Ç": "C", - "ç": "c", - "Ð": "D", - "ð": "d", - "È": "E", - "É": "E", - "Ê": "E", - "Ë": "E", - "è": "e", - "é": "e", - "ê": "e", - "ë": "e", - "Ì": "I", - "Í": "I", - "Î": "I", - "Ï": "I", - "ì": "i", - "í": "i", - "î": "i", - "ï": "i", - "Ñ": "N", - "ñ": "n", - "Ò": "O", - "Ó": "O", - "Ô": "O", - "Õ": "O", - "Ö": "O", - "Ø": "O", - "ò": "o", - "ó": "o", - "ô": "o", - "õ": "o", - "ö": "o", - "ø": "o", - "Ù": "U", - "Ú": "U", - "Û": "U", - "Ü": "U", - "ù": "u", - "ú": "u", - "û": "u", - "ü": "u", - "Ý": "Y", - "ý": "y", - "ÿ": "y", - "Æ": "Ae", - "æ": "ae", - "Þ": "Th", - "þ": "th", - "ß": "ss", - "Ā": "A", - "Ă": "A", - "Ą": "A", - "ā": "a", - "ă": "a", - "ą": "a", - "Ć": "C", - "Ĉ": "C", - "Ċ": "C", - "Č": "C", - "ć": "c", - "ĉ": "c", - "ċ": "c", - "č": "c", - "Ď": "D", - "Đ": "D", - "ď": "d", - "đ": "d", - "Ē": "E", - "Ĕ": "E", - "Ė": "E", - "Ę": "E", - "Ě": "E", - "ē": "e", - "ĕ": "e", - "ė": "e", - "ę": "e", - "ě": "e", - "Ĝ": "G", - "Ğ": "G", - "Ġ": "G", - "Ģ": "G", - "ĝ": "g", - "ğ": "g", - "ġ": "g", - "ģ": "g", - "Ĥ": "H", - "Ħ": "H", - "ĥ": "h", - "ħ": "h", - "Ĩ": "I", - "Ī": "I", - "Ĭ": "I", - "Į": "I", - "İ": "I", - "ĩ": "i", - "ī": "i", - "ĭ": "i", - "į": "i", - "ı": "i", - "Ĵ": "J", - "ĵ": "j", - "Ķ": "K", - "ķ": "k", - "ĸ": "k", - "Ĺ": "L", - "Ļ": "L", - "Ľ": "L", - "Ŀ": "L", - "Ł": "L", - "ĺ": "l", - "ļ": "l", - "ľ": "l", - "ŀ": "l", - "ł": "l", - "Ń": "N", - "Ņ": "N", - "Ň": "N", - "Ŋ": "N", - "ń": "n", - "ņ": "n", - "ň": "n", - "ŋ": "n", - "Ō": "O", - "Ŏ": "O", - "Ő": "O", - "ō": "o", - "ŏ": "o", - "ő": "o", - "Ŕ": "R", - "Ŗ": "R", - "Ř": "R", - "ŕ": "r", - "ŗ": "r", - "ř": "r", - "Ś": "S", - "Ŝ": "S", - "Ş": "S", - "Š": "S", - "ś": "s", - "ŝ": "s", - "ş": "s", - "š": "s", - "Ţ": "T", - "Ť": "T", - "Ŧ": "T", - "ţ": "t", - "ť": "t", - "ŧ": "t", - "Ũ": "U", - "Ū": "U", - "Ŭ": "U", - "Ů": "U", - "Ű": "U", - "Ų": "U", - "ũ": "u", - "ū": "u", - "ŭ": "u", - "ů": "u", - "ű": "u", - "ų": "u", - "Ŵ": "W", - "ŵ": "w", - "Ŷ": "Y", - "ŷ": "y", - "Ÿ": "Y", - "Ź": "Z", - "Ż": "Z", - "Ž": "Z", - "ź": "z", - "ż": "z", - "ž": "z", - "IJ": "IJ", - "ij": "ij", - "Œ": "Oe", - "œ": "oe", - "ʼn": "'n", - "ſ": "ss" - }; - /** Detect free variable `global` from Node.js. */ - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - /** Detect free variable `self`. */ - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - /** Used as a reference to the global object. */ - var root$1 = freeGlobal || freeSelf || Function("return this")(); - /** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, length = array ? array.length : 0; - if (initAccum && length) accumulator = array[++index]; - while (++index < length) accumulator = iteratee(accumulator, array[index], index, array); - return accumulator; - } - /** - * Converts an ASCII `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function asciiToArray(string$1) { - return string$1.split(""); - } - /** - * Splits an ASCII `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ - function asciiWords(string$1) { - return string$1.match(reAsciiWord) || []; - } - /** - * The base implementation of `_.propertyOf` without support for deep paths. - * - * @private - * @param {Object} object The object to query. - * @returns {Function} Returns the new accessor function. - */ - function basePropertyOf(object) { - return function(key) { - return object == null ? void 0 : object[key]; - }; - } - /** - * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A - * letters to basic Latin letters. - * - * @private - * @param {string} letter The matched letter to deburr. - * @returns {string} Returns the deburred letter. - */ - var deburrLetter = basePropertyOf(deburredLetters); - /** - * Checks if `string` contains Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a symbol is found, else `false`. - */ - function hasUnicode(string$1) { - return reHasUnicode.test(string$1); - } - /** - * Checks if `string` contains a word composed of Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a word is found, else `false`. - */ - function hasUnicodeWord(string$1) { - return reHasUnicodeWord.test(string$1); - } - /** - * Converts `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function stringToArray(string$1) { - return hasUnicode(string$1) ? unicodeToArray(string$1) : asciiToArray(string$1); - } - /** - * Converts a Unicode `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function unicodeToArray(string$1) { - return string$1.match(reUnicode) || []; - } - /** - * Splits a Unicode `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ - function unicodeWords(string$1) { - return string$1.match(reUnicodeWord) || []; - } - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString = Object.prototype.toString; - /** Built-in value references. */ - var Symbol$1 = root$1.Symbol; - /** Used to convert symbols to primitives and strings. */ - var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0; - /** - * The base implementation of `_.slice` without an iteratee call guard. - * - * @private - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ - function baseSlice(array, start, end) { - var index = -1, length = array.length; - if (start < 0) start = -start > length ? 0 : length + start; - end = end > length ? length : end; - if (end < 0) end += length; - length = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result = Array(length); - while (++index < length) result[index] = array[index + start]; - return result; - } - /** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ - function baseToString(value) { - if (typeof value == "string") return value; - if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; - var result = value + ""; - return result == "0" && 1 / value == -INFINITY ? "-0" : result; - } - /** - * Casts `array` to a slice if it's needed. - * - * @private - * @param {Array} array The array to inspect. - * @param {number} start The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the cast slice. - */ - function castSlice(array, start, end) { - var length = array.length; - end = end === void 0 ? length : end; - return !start && end >= length ? array : baseSlice(array, start, end); - } - /** - * Creates a function like `_.lowerFirst`. - * - * @private - * @param {string} methodName The name of the `String` case method to use. - * @returns {Function} Returns the new case function. - */ - function createCaseFirst(methodName) { - return function(string$1) { - string$1 = toString(string$1); - var strSymbols = hasUnicode(string$1) ? stringToArray(string$1) : void 0; - var chr = strSymbols ? strSymbols[0] : string$1.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string$1.slice(1); - return chr[methodName]() + trailing; - }; - } - /** - * Creates a function like `_.camelCase`. - * - * @private - * @param {Function} callback The function to combine each word. - * @returns {Function} Returns the new compounder function. - */ - function createCompounder(callback) { - return function(string$1) { - return arrayReduce(words(deburr(string$1).replace(reApos, "")), callback, ""); - }; - } - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return !!value && typeof value == "object"; - } - /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; - } - /** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ - function toString(value) { - return value == null ? "" : baseToString(value); - } - /** - * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the camel cased string. - * @example - * - * _.camelCase('Foo Bar'); - * // => 'fooBar' - * - * _.camelCase('--foo-bar--'); - * // => 'fooBar' - * - * _.camelCase('__FOO_BAR__'); - * // => 'fooBar' - */ - var camelCase = createCompounder(function(result, word$1, index) { - word$1 = word$1.toLowerCase(); - return result + (index ? capitalize(word$1) : word$1); - }); - /** - * Converts the first character of `string` to upper case and the remaining - * to lower case. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to capitalize. - * @returns {string} Returns the capitalized string. - * @example - * - * _.capitalize('FRED'); - * // => 'Fred' - */ - function capitalize(string$1) { - return upperFirst(toString(string$1).toLowerCase()); - } - /** - * Deburrs `string` by converting - * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) - * letters to basic Latin letters and removing - * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to deburr. - * @returns {string} Returns the deburred string. - * @example - * - * _.deburr('déjà vu'); - * // => 'deja vu' - */ - function deburr(string$1) { - string$1 = toString(string$1); - return string$1 && string$1.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - /** - * Converts the first character of `string` to upper case. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.upperFirst('fred'); - * // => 'Fred' - * - * _.upperFirst('FRED'); - * // => 'FRED' - */ - var upperFirst = createCaseFirst("toUpperCase"); - /** - * Splits `string` into an array of its words. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to inspect. - * @param {RegExp|string} [pattern] The pattern to match words. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the words of `string`. - * @example - * - * _.words('fred, barney, & pebbles'); - * // => ['fred', 'barney', 'pebbles'] - * - * _.words('fred, barney, & pebbles', /[^, ]+/g); - * // => ['fred', 'barney', '&', 'pebbles'] - */ - function words(string$1, pattern, guard) { - string$1 = toString(string$1); - pattern = guard ? void 0 : pattern; - if (pattern === void 0) return hasUnicodeWord(string$1) ? unicodeWords(string$1) : asciiWords(string$1); - return string$1.match(pattern) || []; - } - module.exports = camelCase; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js -var require_localsConvention = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.makeLocalsConventionReducer = makeLocalsConventionReducer; - var _lodash = _interopRequireDefault$22(require_lodash()); - function _interopRequireDefault$22(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function dashesCamelCase(string$1) { - return string$1.replace(/-+(\w)/g, (_, firstLetter) => firstLetter.toUpperCase()); - } - function makeLocalsConventionReducer(localsConvention, inputFile) { - const isFunc = typeof localsConvention === "function"; - return (tokens$1, [className$1, value]) => { - if (isFunc) { - const convention = localsConvention(className$1, value, inputFile); - tokens$1[convention] = value; - return tokens$1; - } - switch (localsConvention) { - case "camelCase": - tokens$1[className$1] = value; - tokens$1[(0, _lodash.default)(className$1)] = value; - break; - case "camelCaseOnly": - tokens$1[(0, _lodash.default)(className$1)] = value; - break; - case "dashes": - tokens$1[className$1] = value; - tokens$1[dashesCamelCase(className$1)] = value; - break; - case "dashesOnly": - tokens$1[dashesCamelCase(className$1)] = value; - break; - } - return tokens$1; - }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js -var require_FileSystemLoader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - var _postcss$1 = _interopRequireDefault$21(__require("postcss")); - var _path = _interopRequireDefault$21(__require("path")); - var _Parser$1 = _interopRequireDefault$21(require_Parser()); - var _fs$1 = require_fs(); - function _interopRequireDefault$21(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Core = class Core { - constructor(plugins) { - this.plugins = plugins || Core.defaultPlugins; - } - async load(sourceString, sourcePath, trace, pathFetcher) { - const parser$1 = new _Parser$1.default(pathFetcher, trace); - const plugins = this.plugins.concat([parser$1.plugin()]); - return { - injectableSource: (await (0, _postcss$1.default)(plugins).process(sourceString, { from: sourcePath })).css, - exportTokens: parser$1.exportTokens - }; - } - }; - const traceKeySorter = (a, b) => { - if (a.length < b.length) return a < b.substring(0, a.length) ? -1 : 1; - if (a.length > b.length) return a.substring(0, b.length) <= b ? -1 : 1; - return a < b ? -1 : 1; - }; - var FileSystemLoader = class { - constructor(root$2, plugins, fileResolve) { - if (root$2 === "/" && process.platform === "win32") { - const cwdDrive = process.cwd().slice(0, 3); - if (!/^[A-Za-z]:\\$/.test(cwdDrive)) throw new Error(`Failed to obtain root from "${process.cwd()}".`); - root$2 = cwdDrive; - } - this.root = root$2; - this.fileResolve = fileResolve; - this.sources = {}; - this.traces = {}; - this.importNr = 0; - this.core = new Core(plugins); - this.tokensByFile = {}; - this.fs = (0, _fs$1.getFileSystem)(); - } - async fetch(_newPath, relativeTo, _trace) { - const newPath = _newPath.replace(/^["']|["']$/g, ""); - const trace = _trace || String.fromCharCode(this.importNr++); - const useFileResolve = typeof this.fileResolve === "function"; - const fileResolvedPath = useFileResolve ? await this.fileResolve(newPath, relativeTo) : await Promise.resolve(); - if (fileResolvedPath && !_path.default.isAbsolute(fileResolvedPath)) throw new Error("The returned path from the \"fileResolve\" option must be absolute."); - const relativeDir = _path.default.dirname(relativeTo); - const rootRelativePath = fileResolvedPath || _path.default.resolve(relativeDir, newPath); - let fileRelativePath = fileResolvedPath || _path.default.resolve(_path.default.resolve(this.root, relativeDir), newPath); - if (!useFileResolve && newPath[0] !== "." && !_path.default.isAbsolute(newPath)) try { - fileRelativePath = __require.resolve(newPath); - } catch (e) {} - const tokens$1 = this.tokensByFile[fileRelativePath]; - if (tokens$1) return tokens$1; - return new Promise((resolve, reject) => { - this.fs.readFile(fileRelativePath, "utf-8", async (err, source) => { - if (err) reject(err); - const { injectableSource, exportTokens } = await this.core.load(source, rootRelativePath, trace, this.fetch.bind(this)); - this.sources[fileRelativePath] = injectableSource; - this.traces[trace] = fileRelativePath; - this.tokensByFile[fileRelativePath] = exportTokens; - resolve(exportTokens); - }); - }); - } - get finalSource() { - const traces = this.traces; - const sources = this.sources; - let written = /* @__PURE__ */ new Set(); - return Object.keys(traces).sort(traceKeySorter).map((key) => { - const filename = traces[key]; - if (written.has(filename)) return null; - written.add(filename); - return sources[filename]; - }).join(""); - } - }; - exports.default = FileSystemLoader; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js -var require_topologicalSort = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js": ((exports, module) => { - const PERMANENT_MARKER = 2; - const TEMPORARY_MARKER = 1; - function createError(node, graph) { - const er = /* @__PURE__ */ new Error("Nondeterministic import's order"); - er.nodes = [node, graph[node].find((relatedNode) => graph[relatedNode].indexOf(node) > -1)]; - return er; - } - function walkGraph(node, graph, state, result, strict) { - if (state[node] === PERMANENT_MARKER) return; - if (state[node] === TEMPORARY_MARKER) { - if (strict) return createError(node, graph); - return; - } - state[node] = TEMPORARY_MARKER; - const children = graph[node]; - const length = children.length; - for (let i$1 = 0; i$1 < length; ++i$1) { - const error = walkGraph(children[i$1], graph, state, result, strict); - if (error instanceof Error) return error; - } - state[node] = PERMANENT_MARKER; - result.push(node); - } - function topologicalSort$1(graph, strict) { - const result = []; - const state = {}; - const nodes = Object.keys(graph); - const length = nodes.length; - for (let i$1 = 0; i$1 < length; ++i$1) { - const er = walkGraph(nodes[i$1], graph, state, result, strict); - if (er instanceof Error) return er; - } - return result; - } - module.exports = topologicalSort$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js -var require_src$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js": ((exports, module) => { - const topologicalSort = require_topologicalSort(); - const matchImports$1 = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/; - const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/; - const VISITED_MARKER = 1; - /** - * :import('G') {} - * - * Rule - * composes: ... from 'A' - * composes: ... from 'B' - - * Rule - * composes: ... from 'A' - * composes: ... from 'A' - * composes: ... from 'C' - * - * Results in: - * - * graph: { - * G: [], - * A: [], - * B: ['A'], - * C: ['A'], - * } - */ - function addImportToGraph(importId, parentId, graph, visited) { - const siblingsId = parentId + "_siblings"; - const visitedId = parentId + "_" + importId; - if (visited[visitedId] !== VISITED_MARKER) { - if (!Array.isArray(visited[siblingsId])) visited[siblingsId] = []; - const siblings = visited[siblingsId]; - if (Array.isArray(graph[importId])) graph[importId] = graph[importId].concat(siblings); - else graph[importId] = siblings.slice(); - visited[visitedId] = VISITED_MARKER; - siblings.push(importId); - } - } - module.exports = (options = {}) => { - let importIndex = 0; - const createImportedName = typeof options.createImportedName !== "function" ? (importName) => `i__imported_${importName.replace(/\W/g, "_")}_${importIndex++}` : options.createImportedName; - const failOnWrongOrder = options.failOnWrongOrder; - return { - postcssPlugin: "postcss-modules-extract-imports", - prepare() { - const graph = {}; - const visited = {}; - const existingImports = {}; - const importDecls = {}; - const imports = {}; - return { Once(root$2, postcss) { - root$2.walkRules((rule) => { - const matches = icssImport.exec(rule.selector); - if (matches) { - const [, doubleQuotePath, singleQuotePath] = matches; - const importPath = doubleQuotePath || singleQuotePath; - addImportToGraph(importPath, "root", graph, visited); - existingImports[importPath] = rule; - } - }); - root$2.walkDecls(/^composes$/, (declaration) => { - const multiple = declaration.value.split(","); - const values = []; - multiple.forEach((value) => { - const matches = value.trim().match(matchImports$1); - if (!matches) { - values.push(value); - return; - } - let tmpSymbols; - let [, symbols, doubleQuotePath, singleQuotePath, global$1] = matches; - if (global$1) tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`); - else { - const importPath = doubleQuotePath || singleQuotePath; - let parent = declaration.parent; - let parentIndexes = ""; - while (parent.type !== "root") { - parentIndexes = parent.parent.index(parent) + "_" + parentIndexes; - parent = parent.parent; - } - const { selector: selector$1 } = declaration.parent; - addImportToGraph(importPath, `_${parentIndexes}${selector$1}`, graph, visited); - importDecls[importPath] = declaration; - imports[importPath] = imports[importPath] || {}; - tmpSymbols = symbols.split(/\s+/).map((s) => { - if (!imports[importPath][s]) imports[importPath][s] = createImportedName(s, importPath); - return imports[importPath][s]; - }); - } - values.push(tmpSymbols.join(" ")); - }); - declaration.value = values.join(", "); - }); - const importsOrder = topologicalSort(graph, failOnWrongOrder); - if (importsOrder instanceof Error) throw importDecls[importsOrder.nodes.find((importPath) => importDecls.hasOwnProperty(importPath))].error("Failed to resolve order of composed modules " + importsOrder.nodes.map((importPath) => "`" + importPath + "`").join(", ") + ".", { - plugin: "postcss-modules-extract-imports", - word: "composes" - }); - let lastImportRule; - importsOrder.forEach((path$2) => { - const importedSymbols = imports[path$2]; - let rule = existingImports[path$2]; - if (!rule && importedSymbols) { - rule = postcss.rule({ - selector: `:import("${path$2}")`, - raws: { after: "\n" } - }); - if (lastImportRule) root$2.insertAfter(lastImportRule, rule); - else root$2.prepend(rule); - } - lastImportRule = rule; - if (!importedSymbols) return; - Object.keys(importedSymbols).forEach((importedSymbol) => { - rule.append(postcss.decl({ - value: importedSymbol, - prop: importedSymbols[importedSymbol], - raws: { before: "\n " } - })); - }); - }); - } }; - } - }; - }; - module.exports.postcss = true; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js -var require_wasm_hash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js": ((exports, module) => { - const MAX_SHORT_STRING$1 = Math.floor(65472 / 4) & -4; - var WasmHash = class { - /** - * @param {WebAssembly.Instance} instance wasm instance - * @param {WebAssembly.Instance[]} instancesPool pool of instances - * @param {number} chunkSize size of data chunks passed to wasm - * @param {number} digestSize size of digest returned by wasm - */ - constructor(instance, instancesPool, chunkSize, digestSize) { - const exports$1 = instance.exports; - exports$1.init(); - this.exports = exports$1; - this.mem = Buffer.from(exports$1.memory.buffer, 0, 65536); - this.buffered = 0; - this.instancesPool = instancesPool; - this.chunkSize = chunkSize; - this.digestSize = digestSize; - } - reset() { - this.buffered = 0; - this.exports.init(); - } - /** - * @param {Buffer | string} data data - * @param {BufferEncoding=} encoding encoding - * @returns {this} itself - */ - update(data, encoding) { - if (typeof data === "string") { - while (data.length > MAX_SHORT_STRING$1) { - this._updateWithShortString(data.slice(0, MAX_SHORT_STRING$1), encoding); - data = data.slice(MAX_SHORT_STRING$1); - } - this._updateWithShortString(data, encoding); - return this; - } - this._updateWithBuffer(data); - return this; - } - /** - * @param {string} data data - * @param {BufferEncoding=} encoding encoding - * @returns {void} - */ - _updateWithShortString(data, encoding) { - const { exports: exports$1, buffered, mem, chunkSize } = this; - let endPos; - if (data.length < 70) if (!encoding || encoding === "utf-8" || encoding === "utf8") { - endPos = buffered; - for (let i$1 = 0; i$1 < data.length; i$1++) { - const cc = data.charCodeAt(i$1); - if (cc < 128) mem[endPos++] = cc; - else if (cc < 2048) { - mem[endPos] = cc >> 6 | 192; - mem[endPos + 1] = cc & 63 | 128; - endPos += 2; - } else { - endPos += mem.write(data.slice(i$1), endPos, encoding); - break; - } - } - } else if (encoding === "latin1") { - endPos = buffered; - for (let i$1 = 0; i$1 < data.length; i$1++) { - const cc = data.charCodeAt(i$1); - mem[endPos++] = cc; - } - } else endPos = buffered + mem.write(data, buffered, encoding); - else endPos = buffered + mem.write(data, buffered, encoding); - if (endPos < chunkSize) this.buffered = endPos; - else { - const l = endPos & ~(this.chunkSize - 1); - exports$1.update(l); - const newBuffered = endPos - l; - this.buffered = newBuffered; - if (newBuffered > 0) mem.copyWithin(0, l, endPos); - } - } - /** - * @param {Buffer} data data - * @returns {void} - */ - _updateWithBuffer(data) { - const { exports: exports$1, buffered, mem } = this; - const length = data.length; - if (buffered + length < this.chunkSize) { - data.copy(mem, buffered, 0, length); - this.buffered += length; - } else { - const l = buffered + length & ~(this.chunkSize - 1); - if (l > 65536) { - let i$1 = 65536 - buffered; - data.copy(mem, buffered, 0, i$1); - exports$1.update(65536); - const stop = l - buffered - 65536; - while (i$1 < stop) { - data.copy(mem, 0, i$1, i$1 + 65536); - exports$1.update(65536); - i$1 += 65536; - } - data.copy(mem, 0, i$1, l - buffered); - exports$1.update(l - buffered - i$1); - } else { - data.copy(mem, buffered, 0, l - buffered); - exports$1.update(l); - } - const newBuffered = length + buffered - l; - this.buffered = newBuffered; - if (newBuffered > 0) data.copy(mem, 0, length - newBuffered, length); - } - } - digest(type) { - const { exports: exports$1, buffered, mem, digestSize } = this; - exports$1.final(buffered); - this.instancesPool.push(this); - const hex$1 = mem.toString("latin1", 0, digestSize); - if (type === "hex") return hex$1; - if (type === "binary" || !type) return Buffer.from(hex$1, "hex"); - return Buffer.from(hex$1, "hex").toString(type); - } - }; - const create$2 = (wasmModule, instancesPool, chunkSize, digestSize) => { - if (instancesPool.length > 0) { - const old = instancesPool.pop(); - old.reset(); - return old; - } else return new WasmHash(new WebAssembly.Instance(wasmModule), instancesPool, chunkSize, digestSize); - }; - module.exports = create$2; - module.exports.MAX_SHORT_STRING = MAX_SHORT_STRING$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js -var require_xxhash64 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js": ((exports, module) => { - const create$1 = require_wasm_hash(); - const xxhash64 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64")); - module.exports = create$1.bind(null, xxhash64, [], 32, 16); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js -var require_BatchedHash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js": ((exports, module) => { - const MAX_SHORT_STRING = require_wasm_hash().MAX_SHORT_STRING; - var BatchedHash$1 = class { - constructor(hash$1) { - this.string = void 0; - this.encoding = void 0; - this.hash = hash$1; - } - /** - * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} - * @param {string|Buffer} data data - * @param {string=} inputEncoding data encoding - * @returns {this} updated hash - */ - update(data, inputEncoding) { - if (this.string !== void 0) { - if (typeof data === "string" && inputEncoding === this.encoding && this.string.length + data.length < MAX_SHORT_STRING) { - this.string += data; - return this; - } - this.hash.update(this.string, this.encoding); - this.string = void 0; - } - if (typeof data === "string") if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) { - this.string = data; - this.encoding = inputEncoding; - } else this.hash.update(data, inputEncoding); - else this.hash.update(data); - return this; - } - /** - * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} - * @param {string=} encoding encoding of the return value - * @returns {string|Buffer} digest - */ - digest(encoding) { - if (this.string !== void 0) this.hash.update(this.string, this.encoding); - return this.hash.digest(encoding); - } - }; - module.exports = BatchedHash$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js -var require_md4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js": ((exports, module) => { - const create = require_wasm_hash(); - const md4 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyampBmfOJ1AVqQQl3IgMgECAEIAIgFyABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmogDWpBmfOJ1AVqQQN3IgIgASADcnEgASADcXJqakGZ84nUBWpBBXciBCABIAJycSABIAJxcmpqQZnzidQFakEJdyIDIBEgBCAOIAIgFiABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmpqQZnzidQFakEDdyICIAEgA3JxIAEgA3FyampBmfOJ1AVqQQV3IgQgASACcnEgASACcXJqakGZ84nUBWpBCXciAyAMIAIgAyAJIAEgAyACIARycSACIARxcmpqQZnzidQFakENdyIBcyAEc2pqQaHX5/YGakEDdyICIAQgASACcyADc2ogEmpBodfn9gZqQQl3IgRzIAFzampBodfn9gZqQQt3IgMgAiADIBggASADIARzIAJzampBodfn9gZqQQ93IgFzIARzaiANakGh1+f2BmpBA3ciAiAUIAQgASACcyADc2pqQaHX5/YGakEJdyIEcyABc2pqQaHX5/YGakELdyIDIAsgAiADIBYg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DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=", "base64")); - module.exports = create.bind(null, md4, [], 64, 32); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BulkUpdateDecorator.js -var require_BulkUpdateDecorator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BulkUpdateDecorator.js": ((exports, module) => { - const BULK_SIZE = 2e3; - const digestCaches = {}; - var BulkUpdateDecorator$1 = class { - /** - * @param {Hash | function(): Hash} hashOrFactory function to create a hash - * @param {string=} hashKey key for caching - */ - constructor(hashOrFactory, hashKey) { - this.hashKey = hashKey; - if (typeof hashOrFactory === "function") { - this.hashFactory = hashOrFactory; - this.hash = void 0; - } else { - this.hashFactory = void 0; - this.hash = hashOrFactory; - } - this.buffer = ""; - } - /** - * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} - * @param {string|Buffer} data data - * @param {string=} inputEncoding data encoding - * @returns {this} updated hash - */ - update(data, inputEncoding) { - if (inputEncoding !== void 0 || typeof data !== "string" || data.length > BULK_SIZE) { - if (this.hash === void 0) this.hash = this.hashFactory(); - if (this.buffer.length > 0) { - this.hash.update(this.buffer); - this.buffer = ""; - } - this.hash.update(data, inputEncoding); - } else { - this.buffer += data; - if (this.buffer.length > BULK_SIZE) { - if (this.hash === void 0) this.hash = this.hashFactory(); - this.hash.update(this.buffer); - this.buffer = ""; - } - } - return this; - } - /** - * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} - * @param {string=} encoding encoding of the return value - * @returns {string|Buffer} digest - */ - digest(encoding) { - let digestCache; - const buffer = this.buffer; - if (this.hash === void 0) { - const cacheKey = `${this.hashKey}-${encoding}`; - digestCache = digestCaches[cacheKey]; - if (digestCache === void 0) digestCache = digestCaches[cacheKey] = /* @__PURE__ */ new Map(); - const cacheEntry = digestCache.get(buffer); - if (cacheEntry !== void 0) return cacheEntry; - this.hash = this.hashFactory(); - } - if (buffer.length > 0) this.hash.update(buffer); - const digestResult = this.hash.digest(encoding); - if (digestCache !== void 0) digestCache.set(buffer, digestResult); - return digestResult; - } - }; - module.exports = BulkUpdateDecorator$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/getHashDigest.js -var require_getHashDigest = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/getHashDigest.js": ((exports, module) => { - const baseEncodeTables = { - 26: "abcdefghijklmnopqrstuvwxyz", - 32: "123456789abcdefghjkmnpqrstuvwxyz", - 36: "0123456789abcdefghijklmnopqrstuvwxyz", - 49: "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ", - 52: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", - 58: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ", - 62: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", - 64: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_" - }; - /** - * @param {Uint32Array} uint32Array Treated as a long base-0x100000000 number, little endian - * @param {number} divisor The divisor - * @return {number} Modulo (remainder) of the division - */ - function divmod32(uint32Array, divisor) { - let carry = 0; - for (let i$1 = uint32Array.length - 1; i$1 >= 0; i$1--) { - const value = carry * 4294967296 + uint32Array[i$1]; - carry = value % divisor; - uint32Array[i$1] = Math.floor(value / divisor); - } - return carry; - } - function encodeBufferToBase(buffer, base, length) { - const encodeTable = baseEncodeTables[base]; - if (!encodeTable) throw new Error("Unknown encoding base" + base); - const limit = Math.ceil(buffer.length * 8 / Math.log2(base)); - length = Math.min(length, limit); - const uint32Array = new Uint32Array(Math.ceil(buffer.length / 4)); - buffer.copy(Buffer.from(uint32Array.buffer)); - let output = ""; - for (let i$1 = 0; i$1 < length; i$1++) output = encodeTable[divmod32(uint32Array, base)] + output; - return output; - } - let crypto = void 0; - let createXXHash64 = void 0; - let createMd4 = void 0; - let BatchedHash = void 0; - let BulkUpdateDecorator = void 0; - function getHashDigest$1(buffer, algorithm, digestType, maxLength) { - algorithm = algorithm || "xxhash64"; - maxLength = maxLength || 9999; - let hash$1; - if (algorithm === "xxhash64") { - if (createXXHash64 === void 0) { - createXXHash64 = require_xxhash64(); - if (BatchedHash === void 0) BatchedHash = require_BatchedHash(); - } - hash$1 = new BatchedHash(createXXHash64()); - } else if (algorithm === "md4") { - if (createMd4 === void 0) { - createMd4 = require_md4(); - if (BatchedHash === void 0) BatchedHash = require_BatchedHash(); - } - hash$1 = new BatchedHash(createMd4()); - } else if (algorithm === "native-md4") { - if (typeof crypto === "undefined") { - crypto = __require("crypto"); - if (BulkUpdateDecorator === void 0) BulkUpdateDecorator = require_BulkUpdateDecorator(); - } - hash$1 = new BulkUpdateDecorator(() => crypto.createHash("md4"), "md4"); - } else { - if (typeof crypto === "undefined") { - crypto = __require("crypto"); - if (BulkUpdateDecorator === void 0) BulkUpdateDecorator = require_BulkUpdateDecorator(); - } - hash$1 = new BulkUpdateDecorator(() => crypto.createHash(algorithm), algorithm); - } - hash$1.update(buffer); - if (digestType === "base26" || digestType === "base32" || digestType === "base36" || digestType === "base49" || digestType === "base52" || digestType === "base58" || digestType === "base62" || digestType === "base64safe") return encodeBufferToBase(hash$1.digest(), digestType === "base64safe" ? 64 : digestType.substr(4), maxLength); - return hash$1.digest(digestType || "hex").substr(0, maxLength); - } - module.exports = getHashDigest$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/interpolateName.js -var require_interpolateName = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/interpolateName.js": ((exports, module) => { - const path$1 = __require("path"); - const getHashDigest = require_getHashDigest(); - function interpolateName$1(loaderContext, name, options = {}) { - let filename; - const hasQuery = loaderContext.resourceQuery && loaderContext.resourceQuery.length > 1; - if (typeof name === "function") filename = name(loaderContext.resourcePath, hasQuery ? loaderContext.resourceQuery : void 0); - else filename = name || "[hash].[ext]"; - const context = options.context; - const content = options.content; - const regExp = options.regExp; - let ext = "bin"; - let basename = "file"; - let directory = ""; - let folder = ""; - let query = ""; - if (loaderContext.resourcePath) { - const parsed = path$1.parse(loaderContext.resourcePath); - let resourcePath = loaderContext.resourcePath; - if (parsed.ext) ext = parsed.ext.substr(1); - if (parsed.dir) { - basename = parsed.name; - resourcePath = parsed.dir + path$1.sep; - } - if (typeof context !== "undefined") { - directory = path$1.relative(context, resourcePath + "_").replace(/\\/g, "/").replace(/\.\.(\/)?/g, "_$1"); - directory = directory.substr(0, directory.length - 1); - } else directory = resourcePath.replace(/\\/g, "/").replace(/\.\.(\/)?/g, "_$1"); - if (directory.length <= 1) directory = ""; - else folder = path$1.basename(directory); - } - if (loaderContext.resourceQuery && loaderContext.resourceQuery.length > 1) { - query = loaderContext.resourceQuery; - const hashIdx = query.indexOf("#"); - if (hashIdx >= 0) query = query.substr(0, hashIdx); - } - let url = filename; - if (content) url = url.replace(/\[(?:([^[:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*(?:safe)?))?(?::(\d+))?\]/gi, (all, hashType, digestType, maxLength) => getHashDigest(content, hashType, digestType, parseInt(maxLength, 10))); - url = url.replace(/\[ext\]/gi, () => ext).replace(/\[name\]/gi, () => basename).replace(/\[path\]/gi, () => directory).replace(/\[folder\]/gi, () => folder).replace(/\[query\]/gi, () => query); - if (regExp && loaderContext.resourcePath) { - const match = loaderContext.resourcePath.match(new RegExp(regExp)); - match && match.forEach((matched, i$1) => { - url = url.replace(new RegExp("\\[" + i$1 + "\\]", "ig"), matched); - }); - } - if (typeof loaderContext.options === "object" && typeof loaderContext.options.customInterpolateName === "function") url = loaderContext.options.customInterpolateName.call(loaderContext, url, name, options); - return url; - } - module.exports = interpolateName$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/generic-names@4.0.0/node_modules/generic-names/index.js -var require_generic_names = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/generic-names@4.0.0/node_modules/generic-names/index.js": ((exports, module) => { - var interpolateName = require_interpolateName(); - var path = __require("path"); - /** - * @param {string} pattern - * @param {object} options - * @param {string} options.context - * @param {string} options.hashPrefix - * @return {function} - */ - module.exports = function createGenerator(pattern, options) { - options = options || {}; - var context = options && typeof options.context === "string" ? options.context : process.cwd(); - var hashPrefix = options && typeof options.hashPrefix === "string" ? options.hashPrefix : ""; - /** - * @param {string} localName Usually a class name - * @param {string} filepath Absolute path - * @return {string} - */ - return function generate(localName, filepath) { - var name = pattern.replace(/\[local\]/gi, localName); - return interpolateName({ resourcePath: filepath }, name, { - content: hashPrefix + path.relative(context, filepath).replace(/\\/g, "/") + "\0" + localName, - context - }).replace(new RegExp("[^a-zA-Z0-9\\-_\xA0-￿]", "g"), "-").replace(/^((-?[0-9])|--)/, "_$1"); - }; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/unesc.js -var require_unesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/unesc.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = unesc; - /** - * - * @param {string} str - * @returns {[string, number]|undefined} - */ - function gobbleHex(str$1) { - var lower = str$1.toLowerCase(); - var hex$1 = ""; - var spaceTerminated = false; - for (var i$1 = 0; i$1 < 6 && lower[i$1] !== void 0; i$1++) { - var code = lower.charCodeAt(i$1); - var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57; - spaceTerminated = code === 32; - if (!valid) break; - hex$1 += lower[i$1]; - } - if (hex$1.length === 0) return; - var codePoint = parseInt(hex$1, 16); - if (codePoint >= 55296 && codePoint <= 57343 || codePoint === 0 || codePoint > 1114111) return ["�", hex$1.length + (spaceTerminated ? 1 : 0)]; - return [String.fromCodePoint(codePoint), hex$1.length + (spaceTerminated ? 1 : 0)]; - } - var CONTAINS_ESCAPE = /\\/; - function unesc(str$1) { - if (!CONTAINS_ESCAPE.test(str$1)) return str$1; - var ret = ""; - for (var i$1 = 0; i$1 < str$1.length; i$1++) { - if (str$1[i$1] === "\\") { - var gobbled = gobbleHex(str$1.slice(i$1 + 1, i$1 + 7)); - if (gobbled !== void 0) { - ret += gobbled[0]; - i$1 += gobbled[1]; - continue; - } - if (str$1[i$1 + 1] === "\\") { - ret += "\\"; - i$1++; - continue; - } - if (str$1.length === i$1 + 1) ret += str$1[i$1]; - continue; - } - ret += str$1[i$1]; - } - return ret; - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/getProp.js -var require_getProp = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/getProp.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = getProp; - function getProp(obj) { - for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) props[_key - 1] = arguments[_key]; - while (props.length > 0) { - var prop = props.shift(); - if (!obj[prop]) return; - obj = obj[prop]; - } - return obj; - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/ensureObject.js -var require_ensureObject = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/ensureObject.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = ensureObject; - function ensureObject(obj) { - for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) props[_key - 1] = arguments[_key]; - while (props.length > 0) { - var prop = props.shift(); - if (!obj[prop]) obj[prop] = {}; - obj = obj[prop]; - } - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/stripComments.js -var require_stripComments = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/stripComments.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = stripComments; - function stripComments(str$1) { - var s = ""; - var commentStart = str$1.indexOf("/*"); - var lastEnd = 0; - while (commentStart >= 0) { - s = s + str$1.slice(lastEnd, commentStart); - var commentEnd = str$1.indexOf("*/", commentStart + 2); - if (commentEnd < 0) return s; - lastEnd = commentEnd + 2; - commentStart = str$1.indexOf("/*", lastEnd); - } - s = s + str$1.slice(lastEnd); - return s; - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js -var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js": ((exports) => { - exports.__esModule = true; - exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0; - var _unesc$1 = _interopRequireDefault$20(require_unesc()); - exports.unesc = _unesc$1["default"]; - var _getProp = _interopRequireDefault$20(require_getProp()); - exports.getProp = _getProp["default"]; - var _ensureObject = _interopRequireDefault$20(require_ensureObject()); - exports.ensureObject = _ensureObject["default"]; - var _stripComments = _interopRequireDefault$20(require_stripComments()); - exports.stripComments = _stripComments["default"]; - function _interopRequireDefault$20(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/node.js -var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/node.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _util$3 = require_util(); - function _defineProperties$6(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$6(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$6(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - var cloneNode = function cloneNode$1(obj, parent) { - if (typeof obj !== "object" || obj === null) return obj; - var cloned = new obj.constructor(); - for (var i$1 in obj) { - if (!obj.hasOwnProperty(i$1)) continue; - var value = obj[i$1]; - if (i$1 === "parent" && typeof value === "object") { - if (parent) cloned[i$1] = parent; - } else if (value instanceof Array) cloned[i$1] = value.map(function(j) { - return cloneNode$1(j, cloned); - }); - else cloned[i$1] = cloneNode$1(value, cloned); - } - return cloned; - }; - var Node = /* @__PURE__ */ function() { - function Node$1(opts) { - if (opts === void 0) opts = {}; - Object.assign(this, opts); - this.spaces = this.spaces || {}; - this.spaces.before = this.spaces.before || ""; - this.spaces.after = this.spaces.after || ""; - } - var _proto = Node$1.prototype; - _proto.remove = function remove() { - if (this.parent) this.parent.removeChild(this); - this.parent = void 0; - return this; - }; - _proto.replaceWith = function replaceWith() { - if (this.parent) { - for (var index in arguments) this.parent.insertBefore(this, arguments[index]); - this.remove(); - } - return this; - }; - _proto.next = function next() { - return this.parent.at(this.parent.index(this) + 1); - }; - _proto.prev = function prev() { - return this.parent.at(this.parent.index(this) - 1); - }; - _proto.clone = function clone(overrides) { - if (overrides === void 0) overrides = {}; - var cloned = cloneNode(this); - for (var name in overrides) cloned[name] = overrides[name]; - return cloned; - }; - _proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) { - if (!this.raws) this.raws = {}; - var originalValue = this[name]; - var originalEscaped = this.raws[name]; - this[name] = originalValue + value; - if (originalEscaped || valueEscaped !== value) this.raws[name] = (originalEscaped || originalValue) + valueEscaped; - else delete this.raws[name]; - }; - _proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) { - if (!this.raws) this.raws = {}; - this[name] = value; - this.raws[name] = valueEscaped; - }; - _proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) { - this[name] = value; - if (this.raws) delete this.raws[name]; - }; - _proto.isAtPosition = function isAtPosition(line, column) { - if (this.source && this.source.start && this.source.end) { - if (this.source.start.line > line) return false; - if (this.source.end.line < line) return false; - if (this.source.start.line === line && this.source.start.column > column) return false; - if (this.source.end.line === line && this.source.end.column < column) return false; - return true; - } - }; - _proto.stringifyProperty = function stringifyProperty(name) { - return this.raws && this.raws[name] || this[name]; - }; - _proto.valueToString = function valueToString() { - return String(this.stringifyProperty("value")); - }; - _proto.toString = function toString$1() { - return [ - this.rawSpaceBefore, - this.valueToString(), - this.rawSpaceAfter - ].join(""); - }; - _createClass$6(Node$1, [{ - key: "rawSpaceBefore", - get: function get() { - var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before; - if (rawSpace === void 0) rawSpace = this.spaces && this.spaces.before; - return rawSpace || ""; - }, - set: function set(raw) { - (0, _util$3.ensureObject)(this, "raws", "spaces"); - this.raws.spaces.before = raw; - } - }, { - key: "rawSpaceAfter", - get: function get() { - var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after; - if (rawSpace === void 0) rawSpace = this.spaces.after; - return rawSpace || ""; - }, - set: function set(raw) { - (0, _util$3.ensureObject)(this, "raws", "spaces"); - this.raws.spaces.after = raw; - } - }]); - return Node$1; - }(); - exports["default"] = Node; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js -var require_types = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js": ((exports) => { - exports.__esModule = true; - exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0; - var TAG = "tag"; - exports.TAG = TAG; - var STRING = "string"; - exports.STRING = STRING; - var SELECTOR = "selector"; - exports.SELECTOR = SELECTOR; - var ROOT = "root"; - exports.ROOT = ROOT; - var PSEUDO = "pseudo"; - exports.PSEUDO = PSEUDO; - var NESTING = "nesting"; - exports.NESTING = NESTING; - var ID$1 = "id"; - exports.ID = ID$1; - var COMMENT = "comment"; - exports.COMMENT = COMMENT; - var COMBINATOR = "combinator"; - exports.COMBINATOR = COMBINATOR; - var CLASS = "class"; - exports.CLASS = CLASS; - var ATTRIBUTE = "attribute"; - exports.ATTRIBUTE = ATTRIBUTE; - var UNIVERSAL = "universal"; - exports.UNIVERSAL = UNIVERSAL; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/container.js -var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/container.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$7 = _interopRequireDefault$19(require_node$1()); - var types$1 = _interopRequireWildcard$3(require_types()); - function _getRequireWildcardCache$3(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache$3 = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard$3(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache$3(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - function _interopRequireDefault$19(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (it) return (it = it.call(o)).next.bind(it); - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i$1 = 0; - return function() { - if (i$1 >= o.length) return { done: true }; - return { - done: false, - value: o[i$1++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i$1 = 0, arr2 = new Array(len); i$1 < len; i$1++) arr2[i$1] = arr[i$1]; - return arr2; - } - function _defineProperties$5(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$5(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$5(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$13(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$13(subClass, superClass); - } - function _setPrototypeOf$13(o, p) { - _setPrototypeOf$13 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$13(o, p); - } - var Container = /* @__PURE__ */ function(_Node) { - _inheritsLoose$13(Container$1, _Node); - function Container$1(opts) { - var _this = _Node.call(this, opts) || this; - if (!_this.nodes) _this.nodes = []; - return _this; - } - var _proto = Container$1.prototype; - _proto.append = function append(selector$1) { - selector$1.parent = this; - this.nodes.push(selector$1); - return this; - }; - _proto.prepend = function prepend(selector$1) { - selector$1.parent = this; - this.nodes.unshift(selector$1); - for (var id$1 in this.indexes) this.indexes[id$1]++; - return this; - }; - _proto.at = function at$1(index) { - return this.nodes[index]; - }; - _proto.index = function index(child) { - if (typeof child === "number") return child; - return this.nodes.indexOf(child); - }; - _proto.removeChild = function removeChild(child) { - child = this.index(child); - this.at(child).parent = void 0; - this.nodes.splice(child, 1); - var index; - for (var id$1 in this.indexes) { - index = this.indexes[id$1]; - if (index >= child) this.indexes[id$1] = index - 1; - } - return this; - }; - _proto.removeAll = function removeAll() { - for (var _iterator = _createForOfIteratorHelperLoose(this.nodes), _step; !(_step = _iterator()).done;) { - var node = _step.value; - node.parent = void 0; - } - this.nodes = []; - return this; - }; - _proto.empty = function empty() { - return this.removeAll(); - }; - _proto.insertAfter = function insertAfter(oldNode, newNode) { - var _this$nodes; - newNode.parent = this; - var oldIndex = this.index(oldNode); - var resetNode = []; - for (var i$1 = 2; i$1 < arguments.length; i$1++) resetNode.push(arguments[i$1]); - (_this$nodes = this.nodes).splice.apply(_this$nodes, [ - oldIndex + 1, - 0, - newNode - ].concat(resetNode)); - newNode.parent = this; - var index; - for (var id$1 in this.indexes) { - index = this.indexes[id$1]; - if (oldIndex < index) this.indexes[id$1] = index + arguments.length - 1; - } - return this; - }; - _proto.insertBefore = function insertBefore(oldNode, newNode) { - var _this$nodes2; - newNode.parent = this; - var oldIndex = this.index(oldNode); - var resetNode = []; - for (var i$1 = 2; i$1 < arguments.length; i$1++) resetNode.push(arguments[i$1]); - (_this$nodes2 = this.nodes).splice.apply(_this$nodes2, [ - oldIndex, - 0, - newNode - ].concat(resetNode)); - newNode.parent = this; - var index; - for (var id$1 in this.indexes) { - index = this.indexes[id$1]; - if (index >= oldIndex) this.indexes[id$1] = index + arguments.length - 1; - } - return this; - }; - _proto._findChildAtPosition = function _findChildAtPosition(line, col) { - var found = void 0; - this.each(function(node) { - if (node.atPosition) { - var foundChild = node.atPosition(line, col); - if (foundChild) { - found = foundChild; - return false; - } - } else if (node.isAtPosition(line, col)) { - found = node; - return false; - } - }); - return found; - }; - _proto.atPosition = function atPosition(line, col) { - if (this.isAtPosition(line, col)) return this._findChildAtPosition(line, col) || this; - else return; - }; - _proto._inferEndPosition = function _inferEndPosition() { - if (this.last && this.last.source && this.last.source.end) { - this.source = this.source || {}; - this.source.end = this.source.end || {}; - Object.assign(this.source.end, this.last.source.end); - } - }; - _proto.each = function each(callback) { - if (!this.lastEach) this.lastEach = 0; - if (!this.indexes) this.indexes = {}; - this.lastEach++; - var id$1 = this.lastEach; - this.indexes[id$1] = 0; - if (!this.length) return; - var index, result; - while (this.indexes[id$1] < this.length) { - index = this.indexes[id$1]; - result = callback(this.at(index), index); - if (result === false) break; - this.indexes[id$1] += 1; - } - delete this.indexes[id$1]; - if (result === false) return false; - }; - _proto.walk = function walk(callback) { - return this.each(function(node, i$1) { - var result = callback(node, i$1); - if (result !== false && node.length) result = node.walk(callback); - if (result === false) return false; - }); - }; - _proto.walkAttributes = function walkAttributes(callback) { - var _this2 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.ATTRIBUTE) return callback.call(_this2, selector$1); - }); - }; - _proto.walkClasses = function walkClasses(callback) { - var _this3 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.CLASS) return callback.call(_this3, selector$1); - }); - }; - _proto.walkCombinators = function walkCombinators(callback) { - var _this4 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.COMBINATOR) return callback.call(_this4, selector$1); - }); - }; - _proto.walkComments = function walkComments(callback) { - var _this5 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.COMMENT) return callback.call(_this5, selector$1); - }); - }; - _proto.walkIds = function walkIds(callback) { - var _this6 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.ID) return callback.call(_this6, selector$1); - }); - }; - _proto.walkNesting = function walkNesting(callback) { - var _this7 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.NESTING) return callback.call(_this7, selector$1); - }); - }; - _proto.walkPseudos = function walkPseudos(callback) { - var _this8 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.PSEUDO) return callback.call(_this8, selector$1); - }); - }; - _proto.walkTags = function walkTags(callback) { - var _this9 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.TAG) return callback.call(_this9, selector$1); - }); - }; - _proto.walkUniversals = function walkUniversals(callback) { - var _this10 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.UNIVERSAL) return callback.call(_this10, selector$1); - }); - }; - _proto.split = function split(callback) { - var _this11 = this; - var current = []; - return this.reduce(function(memo, node, index) { - var split$1 = callback.call(_this11, node); - current.push(node); - if (split$1) { - memo.push(current); - current = []; - } else if (index === _this11.length - 1) memo.push(current); - return memo; - }, []); - }; - _proto.map = function map(callback) { - return this.nodes.map(callback); - }; - _proto.reduce = function reduce(callback, memo) { - return this.nodes.reduce(callback, memo); - }; - _proto.every = function every(callback) { - return this.nodes.every(callback); - }; - _proto.some = function some(callback) { - return this.nodes.some(callback); - }; - _proto.filter = function filter(callback) { - return this.nodes.filter(callback); - }; - _proto.sort = function sort(callback) { - return this.nodes.sort(callback); - }; - _proto.toString = function toString$1() { - return this.map(String).join(""); - }; - _createClass$5(Container$1, [ - { - key: "first", - get: function get() { - return this.at(0); - } - }, - { - key: "last", - get: function get() { - return this.at(this.length - 1); - } - }, - { - key: "length", - get: function get() { - return this.nodes.length; - } - } - ]); - return Container$1; - }(_node$7["default"]); - exports["default"] = Container; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/root.js -var require_root = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/root.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _container$2 = _interopRequireDefault$18(require_container()); - var _types$13 = require_types(); - function _interopRequireDefault$18(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$4(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$4(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$4(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$12(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$12(subClass, superClass); - } - function _setPrototypeOf$12(o, p) { - _setPrototypeOf$12 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$12(o, p); - } - var Root = /* @__PURE__ */ function(_Container) { - _inheritsLoose$12(Root$1, _Container); - function Root$1(opts) { - var _this = _Container.call(this, opts) || this; - _this.type = _types$13.ROOT; - return _this; - } - var _proto = Root$1.prototype; - _proto.toString = function toString$1() { - var str$1 = this.reduce(function(memo, selector$1) { - memo.push(String(selector$1)); - return memo; - }, []).join(","); - return this.trailingComma ? str$1 + "," : str$1; - }; - _proto.error = function error(message, options) { - if (this._error) return this._error(message, options); - else return new Error(message); - }; - _createClass$4(Root$1, [{ - key: "errorGenerator", - set: function set(handler) { - this._error = handler; - } - }]); - return Root$1; - }(_container$2["default"]); - exports["default"] = Root; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/selector.js -var require_selector = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/selector.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _container$1 = _interopRequireDefault$17(require_container()); - var _types$12 = require_types(); - function _interopRequireDefault$17(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$11(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$11(subClass, superClass); - } - function _setPrototypeOf$11(o, p) { - _setPrototypeOf$11 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$11(o, p); - } - var Selector = /* @__PURE__ */ function(_Container) { - _inheritsLoose$11(Selector$1, _Container); - function Selector$1(opts) { - var _this = _Container.call(this, opts) || this; - _this.type = _types$12.SELECTOR; - return _this; - } - return Selector$1; - }(_container$1["default"]); - exports["default"] = Selector; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js -/*! https://mths.be/cssesc v3.0.0 by @mathias */ -var require_cssesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js": ((exports, module) => { - var hasOwnProperty$1 = {}.hasOwnProperty; - var merge = function merge$1(options, defaults) { - if (!options) return defaults; - var result = {}; - for (var key in defaults) result[key] = hasOwnProperty$1.call(options, key) ? options[key] : defaults[key]; - return result; - }; - var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/; - var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/; - var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g; - var cssesc = function cssesc$1(string$1, options) { - options = merge(options, cssesc$1.options); - if (options.quotes != "single" && options.quotes != "double") options.quotes = "single"; - var quote = options.quotes == "double" ? "\"" : "'"; - var isIdentifier$1 = options.isIdentifier; - var firstChar = string$1.charAt(0); - var output = ""; - var counter = 0; - var length = string$1.length; - while (counter < length) { - var character = string$1.charAt(counter++); - var codePoint = character.charCodeAt(); - var value = void 0; - if (codePoint < 32 || codePoint > 126) { - if (codePoint >= 55296 && codePoint <= 56319 && counter < length) { - var extra = string$1.charCodeAt(counter++); - if ((extra & 64512) == 56320) codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536; - else counter--; - } - value = "\\" + codePoint.toString(16).toUpperCase() + " "; - } else if (options.escapeEverything) if (regexAnySingleEscape.test(character)) value = "\\" + character; - else value = "\\" + codePoint.toString(16).toUpperCase() + " "; - else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " "; - else if (character == "\\" || !isIdentifier$1 && (character == "\"" && quote == character || character == "'" && quote == character) || isIdentifier$1 && regexSingleEscape.test(character)) value = "\\" + character; - else value = character; - output += value; - } - if (isIdentifier$1) { - if (/^-[-\d]/.test(output)) output = "\\-" + output.slice(1); - else if (/\d/.test(firstChar)) output = "\\3" + firstChar + " " + output.slice(1); - } - output = output.replace(regexExcessiveSpaces, function($0, $1, $2) { - if ($1 && $1.length % 2) return $0; - return ($1 || "") + $2; - }); - if (!isIdentifier$1 && options.wrap) return quote + output + quote; - return output; - }; - cssesc.options = { - "escapeEverything": false, - "isIdentifier": false, - "quotes": "single", - "wrap": false - }; - cssesc.version = "3.0.0"; - module.exports = cssesc; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/className.js -var require_className = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/className.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _cssesc$2 = _interopRequireDefault$16(require_cssesc()); - var _util$2 = require_util(); - var _node$6 = _interopRequireDefault$16(require_node$1()); - var _types$11 = require_types(); - function _interopRequireDefault$16(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$3(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$3(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$3(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$10(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$10(subClass, superClass); - } - function _setPrototypeOf$10(o, p) { - _setPrototypeOf$10 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$10(o, p); - } - var ClassName = /* @__PURE__ */ function(_Node) { - _inheritsLoose$10(ClassName$1, _Node); - function ClassName$1(opts) { - var _this = _Node.call(this, opts) || this; - _this.type = _types$11.CLASS; - _this._constructed = true; - return _this; - } - var _proto = ClassName$1.prototype; - _proto.valueToString = function valueToString() { - return "." + _Node.prototype.valueToString.call(this); - }; - _createClass$3(ClassName$1, [{ - key: "value", - get: function get() { - return this._value; - }, - set: function set(v) { - if (this._constructed) { - var escaped = (0, _cssesc$2["default"])(v, { isIdentifier: true }); - if (escaped !== v) { - (0, _util$2.ensureObject)(this, "raws"); - this.raws.value = escaped; - } else if (this.raws) delete this.raws.value; - } - this._value = v; - } - }]); - return ClassName$1; - }(_node$6["default"]); - exports["default"] = ClassName; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/comment.js -var require_comment = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/comment.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$5 = _interopRequireDefault$15(require_node$1()); - var _types$10 = require_types(); - function _interopRequireDefault$15(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$9(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$9(subClass, superClass); - } - function _setPrototypeOf$9(o, p) { - _setPrototypeOf$9 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$9(o, p); - } - var Comment = /* @__PURE__ */ function(_Node) { - _inheritsLoose$9(Comment$1, _Node); - function Comment$1(opts) { - var _this = _Node.call(this, opts) || this; - _this.type = _types$10.COMMENT; - return _this; - } - return Comment$1; - }(_node$5["default"]); - exports["default"] = Comment; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/id.js -var require_id = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/id.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$4 = _interopRequireDefault$14(require_node$1()); - var _types$9 = require_types(); - function _interopRequireDefault$14(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$8(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$8(subClass, superClass); - } - function _setPrototypeOf$8(o, p) { - _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$8(o, p); - } - var ID = /* @__PURE__ */ function(_Node) { - _inheritsLoose$8(ID$2, _Node); - function ID$2(opts) { - var _this = _Node.call(this, opts) || this; - _this.type = _types$9.ID; - return _this; - } - var _proto = ID$2.prototype; - _proto.valueToString = function valueToString() { - return "#" + _Node.prototype.valueToString.call(this); - }; - return ID$2; - }(_node$4["default"]); - exports["default"] = ID; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/namespace.js -var require_namespace = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/namespace.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _cssesc$1 = _interopRequireDefault$13(require_cssesc()); - var _util$1 = require_util(); - var _node$3 = _interopRequireDefault$13(require_node$1()); - function _interopRequireDefault$13(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$2(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$2(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$2(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$7(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$7(subClass, superClass); - } - function _setPrototypeOf$7(o, p) { - _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$7(o, p); - } - var Namespace = /* @__PURE__ */ function(_Node) { - _inheritsLoose$7(Namespace$1, _Node); - function Namespace$1() { - return _Node.apply(this, arguments) || this; - } - var _proto = Namespace$1.prototype; - _proto.qualifiedName = function qualifiedName(value) { - if (this.namespace) return this.namespaceString + "|" + value; - else return value; - }; - _proto.valueToString = function valueToString() { - return this.qualifiedName(_Node.prototype.valueToString.call(this)); - }; - _createClass$2(Namespace$1, [ - { - key: "namespace", - get: function get() { - return this._namespace; - }, - set: function set(namespace) { - if (namespace === true || namespace === "*" || namespace === "&") { - this._namespace = namespace; - if (this.raws) delete this.raws.namespace; - return; - } - var escaped = (0, _cssesc$1["default"])(namespace, { isIdentifier: true }); - this._namespace = namespace; - if (escaped !== namespace) { - (0, _util$1.ensureObject)(this, "raws"); - this.raws.namespace = escaped; - } else if (this.raws) delete this.raws.namespace; - } - }, - { - key: "ns", - get: function get() { - return this._namespace; - }, - set: function set(namespace) { - this.namespace = namespace; - } - }, - { - key: "namespaceString", - get: function get() { - if (this.namespace) { - var ns = this.stringifyProperty("namespace"); - if (ns === true) return ""; - else return ns; - } else return ""; - } - } - ]); - return Namespace$1; - }(_node$3["default"]); - exports["default"] = Namespace; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/tag.js -var require_tag = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/tag.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _namespace$2 = _interopRequireDefault$12(require_namespace()); - var _types$8 = require_types(); - function _interopRequireDefault$12(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$6(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$6(subClass, superClass); - } - function _setPrototypeOf$6(o, p) { - _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$6(o, p); - } - var Tag = /* @__PURE__ */ function(_Namespace) { - _inheritsLoose$6(Tag$1, _Namespace); - function Tag$1(opts) { - var _this = _Namespace.call(this, opts) || this; - _this.type = _types$8.TAG; - return _this; - } - return Tag$1; - }(_namespace$2["default"]); - exports["default"] = Tag; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/string.js -var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/string.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$2 = _interopRequireDefault$11(require_node$1()); - var _types$7 = require_types(); - function _interopRequireDefault$11(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$5(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$5(subClass, superClass); - } - function _setPrototypeOf$5(o, p) { - _setPrototypeOf$5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$5(o, p); - } - var String$1 = /* @__PURE__ */ function(_Node) { - _inheritsLoose$5(String$2, _Node); - function String$2(opts) { - var _this = _Node.call(this, opts) || this; - _this.type = _types$7.STRING; - return _this; - } - return String$2; - }(_node$2["default"]); - exports["default"] = String$1; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/pseudo.js -var require_pseudo = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/pseudo.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _container = _interopRequireDefault$10(require_container()); - var _types$6 = require_types(); - function _interopRequireDefault$10(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$4(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$4(subClass, superClass); - } - function _setPrototypeOf$4(o, p) { - _setPrototypeOf$4 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$4(o, p); - } - var Pseudo = /* @__PURE__ */ function(_Container) { - _inheritsLoose$4(Pseudo$1, _Container); - function Pseudo$1(opts) { - var _this = _Container.call(this, opts) || this; - _this.type = _types$6.PSEUDO; - return _this; - } - var _proto = Pseudo$1.prototype; - _proto.toString = function toString$1() { - var params = this.length ? "(" + this.map(String).join(",") + ")" : ""; - return [ - this.rawSpaceBefore, - this.stringifyProperty("value"), - params, - this.rawSpaceAfter - ].join(""); - }; - return Pseudo$1; - }(_container["default"]); - exports["default"] = Pseudo; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js -var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js": ((exports, module) => { - /** - * For Node.js, simply re-export the core `util.deprecate` function. - */ - module.exports = __require("util").deprecate; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js -var require_attribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js": ((exports) => { - exports.__esModule = true; - exports["default"] = void 0; - exports.unescapeValue = unescapeValue; - var _cssesc = _interopRequireDefault$9(require_cssesc()); - var _unesc = _interopRequireDefault$9(require_unesc()); - var _namespace$1 = _interopRequireDefault$9(require_namespace()); - var _types$5 = require_types(); - var _CSSESC_QUOTE_OPTIONS; - function _interopRequireDefault$9(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$1(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$1(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$1(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$3(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$3(subClass, superClass); - } - function _setPrototypeOf$3(o, p) { - _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$3(o, p); - } - var deprecate = require_node(); - var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/; - var warnOfDeprecatedValueAssignment = deprecate(function() {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."); - var warnOfDeprecatedQuotedAssignment = deprecate(function() {}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."); - var warnOfDeprecatedConstructor = deprecate(function() {}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now."); - function unescapeValue(value) { - var deprecatedUsage = false; - var quoteMark = null; - var unescaped = value; - var m = unescaped.match(WRAPPED_IN_QUOTES); - if (m) { - quoteMark = m[1]; - unescaped = m[2]; - } - unescaped = (0, _unesc["default"])(unescaped); - if (unescaped !== value) deprecatedUsage = true; - return { - deprecatedUsage, - unescaped, - quoteMark - }; - } - function handleDeprecatedContructorOpts(opts) { - if (opts.quoteMark !== void 0) return opts; - if (opts.value === void 0) return opts; - warnOfDeprecatedConstructor(); - var _unescapeValue = unescapeValue(opts.value), quoteMark = _unescapeValue.quoteMark, unescaped = _unescapeValue.unescaped; - if (!opts.raws) opts.raws = {}; - if (opts.raws.value === void 0) opts.raws.value = opts.value; - opts.value = unescaped; - opts.quoteMark = quoteMark; - return opts; - } - var Attribute = /* @__PURE__ */ function(_Namespace) { - _inheritsLoose$3(Attribute$1, _Namespace); - function Attribute$1(opts) { - var _this; - if (opts === void 0) opts = {}; - _this = _Namespace.call(this, handleDeprecatedContructorOpts(opts)) || this; - _this.type = _types$5.ATTRIBUTE; - _this.raws = _this.raws || {}; - Object.defineProperty(_this.raws, "unquoted", { - get: deprecate(function() { - return _this.value; - }, "attr.raws.unquoted is deprecated. Call attr.value instead."), - set: deprecate(function() { - return _this.value; - }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.") - }); - _this._constructed = true; - return _this; - } - /** - * Returns the Attribute's value quoted such that it would be legal to use - * in the value of a css file. The original value's quotation setting - * used for stringification is left unchanged. See `setValue(value, options)` - * if you want to control the quote settings of a new value for the attribute. - * - * You can also change the quotation used for the current value by setting quoteMark. - * - * Options: - * * quoteMark {'"' | "'" | null} - Use this value to quote the value. If this - * option is not set, the original value for quoteMark will be used. If - * indeterminate, a double quote is used. The legal values are: - * * `null` - the value will be unquoted and characters will be escaped as necessary. - * * `'` - the value will be quoted with a single quote and single quotes are escaped. - * * `"` - the value will be quoted with a double quote and double quotes are escaped. - * * preferCurrentQuoteMark {boolean} - if true, prefer the source quote mark - * over the quoteMark option value. - * * smart {boolean} - if true, will select a quote mark based on the value - * and the other options specified here. See the `smartQuoteMark()` - * method. - **/ - var _proto = Attribute$1.prototype; - _proto.getQuotedValue = function getQuotedValue(options) { - if (options === void 0) options = {}; - var cssescopts = CSSESC_QUOTE_OPTIONS[this._determineQuoteMark(options)]; - return (0, _cssesc["default"])(this._value, cssescopts); - }; - _proto._determineQuoteMark = function _determineQuoteMark(options) { - return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options); - }; - _proto.setValue = function setValue(value, options) { - if (options === void 0) options = {}; - this._value = value; - this._quoteMark = this._determineQuoteMark(options); - this._syncRawValue(); - }; - _proto.smartQuoteMark = function smartQuoteMark(options) { - var v = this.value; - var numSingleQuotes = v.replace(/[^']/g, "").length; - var numDoubleQuotes = v.replace(/[^"]/g, "").length; - if (numSingleQuotes + numDoubleQuotes === 0) { - var escaped = (0, _cssesc["default"])(v, { isIdentifier: true }); - if (escaped === v) return Attribute$1.NO_QUOTE; - else { - var pref = this.preferredQuoteMark(options); - if (pref === Attribute$1.NO_QUOTE) { - var quote = this.quoteMark || options.quoteMark || Attribute$1.DOUBLE_QUOTE; - var opts = CSSESC_QUOTE_OPTIONS[quote]; - if ((0, _cssesc["default"])(v, opts).length < escaped.length) return quote; - } - return pref; - } - } else if (numDoubleQuotes === numSingleQuotes) return this.preferredQuoteMark(options); - else if (numDoubleQuotes < numSingleQuotes) return Attribute$1.DOUBLE_QUOTE; - else return Attribute$1.SINGLE_QUOTE; - }; - _proto.preferredQuoteMark = function preferredQuoteMark(options) { - var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark; - if (quoteMark === void 0) quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark; - if (quoteMark === void 0) quoteMark = Attribute$1.DOUBLE_QUOTE; - return quoteMark; - }; - _proto._syncRawValue = function _syncRawValue() { - var rawValue = (0, _cssesc["default"])(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]); - if (rawValue === this._value) { - if (this.raws) delete this.raws.value; - } else this.raws.value = rawValue; - }; - _proto._handleEscapes = function _handleEscapes(prop, value) { - if (this._constructed) { - var escaped = (0, _cssesc["default"])(value, { isIdentifier: true }); - if (escaped !== value) this.raws[prop] = escaped; - else delete this.raws[prop]; - } - }; - _proto._spacesFor = function _spacesFor(name) { - var attrSpaces = { - before: "", - after: "" - }; - var spaces = this.spaces[name] || {}; - var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {}; - return Object.assign(attrSpaces, spaces, rawSpaces); - }; - _proto._stringFor = function _stringFor(name, spaceName, concat) { - if (spaceName === void 0) spaceName = name; - if (concat === void 0) concat = defaultAttrConcat; - var attrSpaces = this._spacesFor(spaceName); - return concat(this.stringifyProperty(name), attrSpaces); - }; - _proto.offsetOf = function offsetOf(name) { - var count = 1; - var attributeSpaces = this._spacesFor("attribute"); - count += attributeSpaces.before.length; - if (name === "namespace" || name === "ns") return this.namespace ? count : -1; - if (name === "attributeNS") return count; - count += this.namespaceString.length; - if (this.namespace) count += 1; - if (name === "attribute") return count; - count += this.stringifyProperty("attribute").length; - count += attributeSpaces.after.length; - var operatorSpaces = this._spacesFor("operator"); - count += operatorSpaces.before.length; - var operator = this.stringifyProperty("operator"); - if (name === "operator") return operator ? count : -1; - count += operator.length; - count += operatorSpaces.after.length; - var valueSpaces = this._spacesFor("value"); - count += valueSpaces.before.length; - var value = this.stringifyProperty("value"); - if (name === "value") return value ? count : -1; - count += value.length; - count += valueSpaces.after.length; - var insensitiveSpaces = this._spacesFor("insensitive"); - count += insensitiveSpaces.before.length; - if (name === "insensitive") return this.insensitive ? count : -1; - return -1; - }; - _proto.toString = function toString$1() { - var _this2 = this; - var selector$1 = [this.rawSpaceBefore, "["]; - selector$1.push(this._stringFor("qualifiedAttribute", "attribute")); - if (this.operator && (this.value || this.value === "")) { - selector$1.push(this._stringFor("operator")); - selector$1.push(this._stringFor("value")); - selector$1.push(this._stringFor("insensitiveFlag", "insensitive", function(attrValue, attrSpaces) { - if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) attrSpaces.before = " "; - return defaultAttrConcat(attrValue, attrSpaces); - })); - } - selector$1.push("]"); - selector$1.push(this.rawSpaceAfter); - return selector$1.join(""); - }; - _createClass$1(Attribute$1, [ - { - key: "quoted", - get: function get() { - var qm = this.quoteMark; - return qm === "'" || qm === "\""; - }, - set: function set(value) { - warnOfDeprecatedQuotedAssignment(); - } - }, - { - key: "quoteMark", - get: function get() { - return this._quoteMark; - }, - set: function set(quoteMark) { - if (!this._constructed) { - this._quoteMark = quoteMark; - return; - } - if (this._quoteMark !== quoteMark) { - this._quoteMark = quoteMark; - this._syncRawValue(); - } - } - }, - { - key: "qualifiedAttribute", - get: function get() { - return this.qualifiedName(this.raws.attribute || this.attribute); - } - }, - { - key: "insensitiveFlag", - get: function get() { - return this.insensitive ? "i" : ""; - } - }, - { - key: "value", - get: function get() { - return this._value; - }, - set: function set(v) { - if (this._constructed) { - var _unescapeValue2 = unescapeValue(v), deprecatedUsage = _unescapeValue2.deprecatedUsage, unescaped = _unescapeValue2.unescaped, quoteMark = _unescapeValue2.quoteMark; - if (deprecatedUsage) warnOfDeprecatedValueAssignment(); - if (unescaped === this._value && quoteMark === this._quoteMark) return; - this._value = unescaped; - this._quoteMark = quoteMark; - this._syncRawValue(); - } else this._value = v; - } - }, - { - key: "insensitive", - get: function get() { - return this._insensitive; - }, - set: function set(insensitive) { - if (!insensitive) { - this._insensitive = false; - if (this.raws && (this.raws.insensitiveFlag === "I" || this.raws.insensitiveFlag === "i")) this.raws.insensitiveFlag = void 0; - } - this._insensitive = insensitive; - } - }, - { - key: "attribute", - get: function get() { - return this._attribute; - }, - set: function set(name) { - this._handleEscapes("attribute", name); - this._attribute = name; - } - } - ]); - return Attribute$1; - }(_namespace$1["default"]); - exports["default"] = Attribute; - Attribute.NO_QUOTE = null; - Attribute.SINGLE_QUOTE = "'"; - Attribute.DOUBLE_QUOTE = "\""; - var CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = { - "'": { - quotes: "single", - wrap: true - }, - "\"": { - quotes: "double", - wrap: true - } - }, _CSSESC_QUOTE_OPTIONS[null] = { isIdentifier: true }, _CSSESC_QUOTE_OPTIONS); - function defaultAttrConcat(attrValue, attrSpaces) { - return "" + attrSpaces.before + attrValue + attrSpaces.after; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/universal.js -var require_universal = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/universal.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _namespace = _interopRequireDefault$8(require_namespace()); - var _types$4 = require_types(); - function _interopRequireDefault$8(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$2(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$2(subClass, superClass); - } - function _setPrototypeOf$2(o, p) { - _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$2(o, p); - } - var Universal = /* @__PURE__ */ function(_Namespace) { - _inheritsLoose$2(Universal$1, _Namespace); - function Universal$1(opts) { - var _this = _Namespace.call(this, opts) || this; - _this.type = _types$4.UNIVERSAL; - _this.value = "*"; - return _this; - } - return Universal$1; - }(_namespace["default"]); - exports["default"] = Universal; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/combinator.js -var require_combinator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/combinator.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$1 = _interopRequireDefault$7(require_node$1()); - var _types$3 = require_types(); - function _interopRequireDefault$7(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$1(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$1(subClass, superClass); - } - function _setPrototypeOf$1(o, p) { - _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$1(o, p); - } - var Combinator = /* @__PURE__ */ function(_Node) { - _inheritsLoose$1(Combinator$1, _Node); - function Combinator$1(opts) { - var _this = _Node.call(this, opts) || this; - _this.type = _types$3.COMBINATOR; - return _this; - } - return Combinator$1; - }(_node$1["default"]); - exports["default"] = Combinator; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/nesting.js -var require_nesting = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/nesting.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node = _interopRequireDefault$6(require_node$1()); - var _types$2 = require_types(); - function _interopRequireDefault$6(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf(subClass, superClass); - } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf(o, p); - } - var Nesting = /* @__PURE__ */ function(_Node) { - _inheritsLoose(Nesting$1, _Node); - function Nesting$1(opts) { - var _this = _Node.call(this, opts) || this; - _this.type = _types$2.NESTING; - _this.value = "&"; - return _this; - } - return Nesting$1; - }(_node["default"]); - exports["default"] = Nesting; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/sortAscending.js -var require_sortAscending = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/sortAscending.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = sortAscending; - function sortAscending(list) { - return list.sort(function(a, b) { - return a - b; - }); - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js -var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js": ((exports) => { - exports.__esModule = true; - exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0; - var ampersand = 38; - exports.ampersand = ampersand; - var asterisk = 42; - exports.asterisk = asterisk; - var at = 64; - exports.at = at; - var comma = 44; - exports.comma = comma; - var colon = 58; - exports.colon = colon; - var semicolon = 59; - exports.semicolon = semicolon; - var openParenthesis = 40; - exports.openParenthesis = openParenthesis; - var closeParenthesis = 41; - exports.closeParenthesis = closeParenthesis; - var openSquare = 91; - exports.openSquare = openSquare; - var closeSquare = 93; - exports.closeSquare = closeSquare; - var dollar = 36; - exports.dollar = dollar; - var tilde = 126; - exports.tilde = tilde; - var caret = 94; - exports.caret = caret; - var plus = 43; - exports.plus = plus; - var equals = 61; - exports.equals = equals; - var pipe = 124; - exports.pipe = pipe; - var greaterThan = 62; - exports.greaterThan = greaterThan; - var space = 32; - exports.space = space; - var singleQuote = 39; - exports.singleQuote = singleQuote; - var doubleQuote = 34; - exports.doubleQuote = doubleQuote; - var slash = 47; - exports.slash = slash; - var bang = 33; - exports.bang = bang; - var backslash = 92; - exports.backslash = backslash; - var cr = 13; - exports.cr = cr; - var feed = 12; - exports.feed = feed; - var newline = 10; - exports.newline = newline; - var tab = 9; - exports.tab = tab; - var str = singleQuote; - exports.str = str; - var comment$1 = -1; - exports.comment = comment$1; - var word = -2; - exports.word = word; - var combinator$1 = -3; - exports.combinator = combinator$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js -var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js": ((exports) => { - exports.__esModule = true; - exports.FIELDS = void 0; - exports["default"] = tokenize; - var t = _interopRequireWildcard$2(require_tokenTypes()); - var _unescapable, _wordDelimiters; - function _getRequireWildcardCache$2(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache$2 = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard$2(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache$2(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable); - var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters); - var hex = {}; - var hexChars = "0123456789abcdefABCDEF"; - for (var i = 0; i < hexChars.length; i++) hex[hexChars.charCodeAt(i)] = true; - /** - * Returns the last index of the bar css word - * @param {string} css The string in which the word begins - * @param {number} start The index into the string where word's first letter occurs - */ - function consumeWord(css, start) { - var next = start; - var code; - do { - code = css.charCodeAt(next); - if (wordDelimiters[code]) return next - 1; - else if (code === t.backslash) next = consumeEscape(css, next) + 1; - else next++; - } while (next < css.length); - return next - 1; - } - /** - * Returns the last index of the escape sequence - * @param {string} css The string in which the sequence begins - * @param {number} start The index into the string where escape character (`\`) occurs. - */ - function consumeEscape(css, start) { - var next = start; - var code = css.charCodeAt(next + 1); - if (unescapable[code]) {} else if (hex[code]) { - var hexDigits = 0; - do { - next++; - hexDigits++; - code = css.charCodeAt(next + 1); - } while (hex[code] && hexDigits < 6); - if (hexDigits < 6 && code === t.space) next++; - } else next++; - return next; - } - var FIELDS = { - TYPE: 0, - START_LINE: 1, - START_COL: 2, - END_LINE: 3, - END_COL: 4, - START_POS: 5, - END_POS: 6 - }; - exports.FIELDS = FIELDS; - function tokenize(input) { - var tokens$1 = []; - var css = input.css.valueOf(); - var length = css.length; - var offset = -1; - var line = 1; - var start = 0; - var end = 0; - var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType; - function unclosed(what, fix) { - if (input.safe) { - css += fix; - next = css.length - 1; - } else throw input.error("Unclosed " + what, line, start - offset, start); - } - while (start < length) { - code = css.charCodeAt(start); - if (code === t.newline) { - offset = start; - line += 1; - } - switch (code) { - case t.space: - case t.tab: - case t.newline: - case t.cr: - case t.feed: - next = start; - do { - next += 1; - code = css.charCodeAt(next); - if (code === t.newline) { - offset = next; - line += 1; - } - } while (code === t.space || code === t.newline || code === t.tab || code === t.cr || code === t.feed); - tokenType = t.space; - endLine = line; - endColumn = next - offset - 1; - end = next; - break; - case t.plus: - case t.greaterThan: - case t.tilde: - case t.pipe: - next = start; - do { - next += 1; - code = css.charCodeAt(next); - } while (code === t.plus || code === t.greaterThan || code === t.tilde || code === t.pipe); - tokenType = t.combinator; - endLine = line; - endColumn = start - offset; - end = next; - break; - case t.asterisk: - case t.ampersand: - case t.bang: - case t.comma: - case t.equals: - case t.dollar: - case t.caret: - case t.openSquare: - case t.closeSquare: - case t.colon: - case t.semicolon: - case t.openParenthesis: - case t.closeParenthesis: - next = start; - tokenType = code; - endLine = line; - endColumn = start - offset; - end = next + 1; - break; - case t.singleQuote: - case t.doubleQuote: - quote = code === t.singleQuote ? "'" : "\""; - next = start; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) unclosed("quote", quote); - escapePos = next; - while (css.charCodeAt(escapePos - 1) === t.backslash) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - tokenType = t.str; - endLine = line; - endColumn = start - offset; - end = next + 1; - break; - default: - if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) { - next = css.indexOf("*/", start + 2) + 1; - if (next === 0) unclosed("comment", "*/"); - content = css.slice(start, next + 1); - lines = content.split("\n"); - last = lines.length - 1; - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - tokenType = t.comment; - line = nextLine; - endLine = nextLine; - endColumn = next - nextOffset; - } else if (code === t.slash) { - next = start; - tokenType = code; - endLine = line; - endColumn = start - offset; - end = next + 1; - } else { - next = consumeWord(css, start); - tokenType = t.word; - endLine = line; - endColumn = next - offset; - } - end = next + 1; - break; - } - tokens$1.push([ - tokenType, - line, - start - offset, - endLine, - endColumn, - start, - end - ]); - if (nextOffset) { - offset = nextOffset; - nextOffset = null; - } - start = end; - } - return tokens$1; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/parser.js -var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/parser.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _root$1 = _interopRequireDefault$5(require_root()); - var _selector$1 = _interopRequireDefault$5(require_selector()); - var _className$1 = _interopRequireDefault$5(require_className()); - var _comment$1 = _interopRequireDefault$5(require_comment()); - var _id$1 = _interopRequireDefault$5(require_id()); - var _tag$1 = _interopRequireDefault$5(require_tag()); - var _string$1 = _interopRequireDefault$5(require_string()); - var _pseudo$1 = _interopRequireDefault$5(require_pseudo()); - var _attribute$1 = _interopRequireWildcard$1(require_attribute()); - var _universal$1 = _interopRequireDefault$5(require_universal()); - var _combinator$1 = _interopRequireDefault$5(require_combinator()); - var _nesting$1 = _interopRequireDefault$5(require_nesting()); - var _sortAscending = _interopRequireDefault$5(require_sortAscending()); - var _tokenize = _interopRequireWildcard$1(require_tokenize()); - var tokens = _interopRequireWildcard$1(require_tokenTypes()); - var types = _interopRequireWildcard$1(require_types()); - var _util = require_util(); - var _WHITESPACE_TOKENS, _Object$assign; - function _getRequireWildcardCache$1(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache$1 = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard$1(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache$1(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - function _interopRequireDefault$5(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS); - var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign)); - function tokenStart(token) { - return { - line: token[_tokenize.FIELDS.START_LINE], - column: token[_tokenize.FIELDS.START_COL] - }; - } - function tokenEnd(token) { - return { - line: token[_tokenize.FIELDS.END_LINE], - column: token[_tokenize.FIELDS.END_COL] - }; - } - function getSource(startLine, startColumn, endLine, endColumn) { - return { - start: { - line: startLine, - column: startColumn - }, - end: { - line: endLine, - column: endColumn - } - }; - } - function getTokenSource(token) { - return getSource(token[_tokenize.FIELDS.START_LINE], token[_tokenize.FIELDS.START_COL], token[_tokenize.FIELDS.END_LINE], token[_tokenize.FIELDS.END_COL]); - } - function getTokenSourceSpan(startToken, endToken) { - if (!startToken) return; - return getSource(startToken[_tokenize.FIELDS.START_LINE], startToken[_tokenize.FIELDS.START_COL], endToken[_tokenize.FIELDS.END_LINE], endToken[_tokenize.FIELDS.END_COL]); - } - function unescapeProp(node, prop) { - var value = node[prop]; - if (typeof value !== "string") return; - if (value.indexOf("\\") !== -1) { - (0, _util.ensureObject)(node, "raws"); - node[prop] = (0, _util.unesc)(value); - if (node.raws[prop] === void 0) node.raws[prop] = value; - } - return node; - } - function indexesOf(array, item) { - var i$1 = -1; - var indexes = []; - while ((i$1 = array.indexOf(item, i$1 + 1)) !== -1) indexes.push(i$1); - return indexes; - } - function uniqs() { - var list = Array.prototype.concat.apply([], arguments); - return list.filter(function(item, i$1) { - return i$1 === list.indexOf(item); - }); - } - var Parser = /* @__PURE__ */ function() { - function Parser$2(rule, options) { - if (options === void 0) options = {}; - this.rule = rule; - this.options = Object.assign({ - lossy: false, - safe: false - }, options); - this.position = 0; - this.css = typeof this.rule === "string" ? this.rule : this.rule.selector; - this.tokens = (0, _tokenize["default"])({ - css: this.css, - error: this._errorGenerator(), - safe: this.options.safe - }); - var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]); - this.root = new _root$1["default"]({ source: rootSource }); - this.root.errorGenerator = this._errorGenerator(); - var selector$1 = new _selector$1["default"]({ - source: { start: { - line: 1, - column: 1 - } }, - sourceIndex: 0 - }); - this.root.append(selector$1); - this.current = selector$1; - this.loop(); - } - var _proto = Parser$2.prototype; - _proto._errorGenerator = function _errorGenerator() { - var _this = this; - return function(message, errorOptions) { - if (typeof _this.rule === "string") return new Error(message); - return _this.rule.error(message, errorOptions); - }; - }; - _proto.attribute = function attribute$1() { - var attr = []; - var startingToken = this.currToken; - this.position++; - while (this.position < this.tokens.length && this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) { - attr.push(this.currToken); - this.position++; - } - if (this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) return this.expected("closing square bracket", this.currToken[_tokenize.FIELDS.START_POS]); - var len = attr.length; - var node = { - source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]), - sourceIndex: startingToken[_tokenize.FIELDS.START_POS] - }; - if (len === 1 && !~[tokens.word].indexOf(attr[0][_tokenize.FIELDS.TYPE])) return this.expected("attribute", attr[0][_tokenize.FIELDS.START_POS]); - var pos = 0; - var spaceBefore = ""; - var commentBefore = ""; - var lastAdded = null; - var spaceAfterMeaningfulToken = false; - while (pos < len) { - var token = attr[pos]; - var content = this.content(token); - var next = attr[pos + 1]; - switch (token[_tokenize.FIELDS.TYPE]) { - case tokens.space: - spaceAfterMeaningfulToken = true; - if (this.options.lossy) break; - if (lastAdded) { - (0, _util.ensureObject)(node, "spaces", lastAdded); - var prevContent = node.spaces[lastAdded].after || ""; - node.spaces[lastAdded].after = prevContent + content; - var existingComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || null; - if (existingComment) node.raws.spaces[lastAdded].after = existingComment + content; - } else { - spaceBefore = spaceBefore + content; - commentBefore = commentBefore + content; - } - break; - case tokens.asterisk: - if (next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) { - if (spaceBefore) { - (0, _util.ensureObject)(node, "spaces", "attribute"); - node.spaces.attribute.before = spaceBefore; - spaceBefore = ""; - } - if (commentBefore) { - (0, _util.ensureObject)(node, "raws", "spaces", "attribute"); - node.raws.spaces.attribute.before = spaceBefore; - commentBefore = ""; - } - node.namespace = (node.namespace || "") + content; - if ((0, _util.getProp)(node, "raws", "namespace") || null) node.raws.namespace += content; - lastAdded = "namespace"; - } - spaceAfterMeaningfulToken = false; - break; - case tokens.dollar: if (lastAdded === "value") { - var oldRawValue = (0, _util.getProp)(node, "raws", "value"); - node.value += "$"; - if (oldRawValue) node.raws.value = oldRawValue + "$"; - break; - } - case tokens.caret: - if (next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } - spaceAfterMeaningfulToken = false; - break; - case tokens.combinator: - if (content === "~" && next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } - if (content !== "|") { - spaceAfterMeaningfulToken = false; - break; - } - if (next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } else if (!node.namespace && !node.attribute) node.namespace = true; - spaceAfterMeaningfulToken = false; - break; - case tokens.word: - if (next && this.content(next) === "|" && attr[pos + 2] && attr[pos + 2][_tokenize.FIELDS.TYPE] !== tokens.equals && !node.operator && !node.namespace) { - node.namespace = content; - lastAdded = "namespace"; - } else if (!node.attribute || lastAdded === "attribute" && !spaceAfterMeaningfulToken) { - if (spaceBefore) { - (0, _util.ensureObject)(node, "spaces", "attribute"); - node.spaces.attribute.before = spaceBefore; - spaceBefore = ""; - } - if (commentBefore) { - (0, _util.ensureObject)(node, "raws", "spaces", "attribute"); - node.raws.spaces.attribute.before = commentBefore; - commentBefore = ""; - } - node.attribute = (node.attribute || "") + content; - if ((0, _util.getProp)(node, "raws", "attribute") || null) node.raws.attribute += content; - lastAdded = "attribute"; - } else if (!node.value && node.value !== "" || lastAdded === "value" && !(spaceAfterMeaningfulToken || node.quoteMark)) { - var _unescaped = (0, _util.unesc)(content); - var _oldRawValue = (0, _util.getProp)(node, "raws", "value") || ""; - var oldValue = node.value || ""; - node.value = oldValue + _unescaped; - node.quoteMark = null; - if (_unescaped !== content || _oldRawValue) { - (0, _util.ensureObject)(node, "raws"); - node.raws.value = (_oldRawValue || oldValue) + content; - } - lastAdded = "value"; - } else { - var insensitive = content === "i" || content === "I"; - if ((node.value || node.value === "") && (node.quoteMark || spaceAfterMeaningfulToken)) { - node.insensitive = insensitive; - if (!insensitive || content === "I") { - (0, _util.ensureObject)(node, "raws"); - node.raws.insensitiveFlag = content; - } - lastAdded = "insensitive"; - if (spaceBefore) { - (0, _util.ensureObject)(node, "spaces", "insensitive"); - node.spaces.insensitive.before = spaceBefore; - spaceBefore = ""; - } - if (commentBefore) { - (0, _util.ensureObject)(node, "raws", "spaces", "insensitive"); - node.raws.spaces.insensitive.before = commentBefore; - commentBefore = ""; - } - } else if (node.value || node.value === "") { - lastAdded = "value"; - node.value += content; - if (node.raws.value) node.raws.value += content; - } - } - spaceAfterMeaningfulToken = false; - break; - case tokens.str: - if (!node.attribute || !node.operator) return this.error("Expected an attribute followed by an operator preceding the string.", { index: token[_tokenize.FIELDS.START_POS] }); - var _unescapeValue = (0, _attribute$1.unescapeValue)(content), unescaped = _unescapeValue.unescaped, quoteMark = _unescapeValue.quoteMark; - node.value = unescaped; - node.quoteMark = quoteMark; - lastAdded = "value"; - (0, _util.ensureObject)(node, "raws"); - node.raws.value = content; - spaceAfterMeaningfulToken = false; - break; - case tokens.equals: - if (!node.attribute) return this.expected("attribute", token[_tokenize.FIELDS.START_POS], content); - if (node.value) return this.error("Unexpected \"=\" found; an operator was already defined.", { index: token[_tokenize.FIELDS.START_POS] }); - node.operator = node.operator ? node.operator + content : content; - lastAdded = "operator"; - spaceAfterMeaningfulToken = false; - break; - case tokens.comment: - if (lastAdded) if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") { - var lastComment = (0, _util.getProp)(node, "spaces", lastAdded, "after") || ""; - var rawLastComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment; - (0, _util.ensureObject)(node, "raws", "spaces", lastAdded); - node.raws.spaces[lastAdded].after = rawLastComment + content; - } else { - var lastValue = node[lastAdded] || ""; - var rawLastValue = (0, _util.getProp)(node, "raws", lastAdded) || lastValue; - (0, _util.ensureObject)(node, "raws"); - node.raws[lastAdded] = rawLastValue + content; - } - else commentBefore = commentBefore + content; - break; - default: return this.error("Unexpected \"" + content + "\" found.", { index: token[_tokenize.FIELDS.START_POS] }); - } - pos++; - } - unescapeProp(node, "attribute"); - unescapeProp(node, "namespace"); - this.newNode(new _attribute$1["default"](node)); - this.position++; - }; - _proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) { - if (stopPosition < 0) stopPosition = this.tokens.length; - var startPosition = this.position; - var nodes = []; - var space$1 = ""; - var lastComment = void 0; - do - if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) { - if (!this.options.lossy) space$1 += this.content(); - } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.comment) { - var spaces = {}; - if (space$1) { - spaces.before = space$1; - space$1 = ""; - } - lastComment = new _comment$1["default"]({ - value: this.content(), - source: getTokenSource(this.currToken), - sourceIndex: this.currToken[_tokenize.FIELDS.START_POS], - spaces - }); - nodes.push(lastComment); - } - while (++this.position < stopPosition); - if (space$1) { - if (lastComment) lastComment.spaces.after = space$1; - else if (!this.options.lossy) { - var firstToken = this.tokens[startPosition]; - var lastToken = this.tokens[this.position - 1]; - nodes.push(new _string$1["default"]({ - value: "", - source: getSource(firstToken[_tokenize.FIELDS.START_LINE], firstToken[_tokenize.FIELDS.START_COL], lastToken[_tokenize.FIELDS.END_LINE], lastToken[_tokenize.FIELDS.END_COL]), - sourceIndex: firstToken[_tokenize.FIELDS.START_POS], - spaces: { - before: space$1, - after: "" - } - })); - } - } - return nodes; - }; - _proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) { - var _this2 = this; - if (requiredSpace === void 0) requiredSpace = false; - var space$1 = ""; - var rawSpace = ""; - nodes.forEach(function(n) { - var spaceBefore = _this2.lossySpace(n.spaces.before, requiredSpace); - var rawSpaceBefore = _this2.lossySpace(n.rawSpaceBefore, requiredSpace); - space$1 += spaceBefore + _this2.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0); - rawSpace += spaceBefore + n.value + _this2.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0); - }); - if (rawSpace === space$1) rawSpace = void 0; - return { - space: space$1, - rawSpace - }; - }; - _proto.isNamedCombinator = function isNamedCombinator(position) { - if (position === void 0) position = this.position; - return this.tokens[position + 0] && this.tokens[position + 0][_tokenize.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][_tokenize.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][_tokenize.FIELDS.TYPE] === tokens.slash; - }; - _proto.namedCombinator = function namedCombinator() { - if (this.isNamedCombinator()) { - var nameRaw = this.content(this.tokens[this.position + 1]); - var name = (0, _util.unesc)(nameRaw).toLowerCase(); - var raws = {}; - if (name !== nameRaw) raws.value = "/" + nameRaw + "/"; - var node = new _combinator$1["default"]({ - value: "/" + name + "/", - source: getSource(this.currToken[_tokenize.FIELDS.START_LINE], this.currToken[_tokenize.FIELDS.START_COL], this.tokens[this.position + 2][_tokenize.FIELDS.END_LINE], this.tokens[this.position + 2][_tokenize.FIELDS.END_COL]), - sourceIndex: this.currToken[_tokenize.FIELDS.START_POS], - raws - }); - this.position = this.position + 3; - return node; - } else this.unexpected(); - }; - _proto.combinator = function combinator$2() { - var _this3 = this; - if (this.content() === "|") return this.namespace(); - var nextSigTokenPos = this.locateNextMeaningfulToken(this.position); - if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) { - var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos); - if (nodes.length > 0) { - var last = this.current.last; - if (last) { - var _this$convertWhitespa = this.convertWhitespaceNodesToSpace(nodes), space$1 = _this$convertWhitespa.space, rawSpace = _this$convertWhitespa.rawSpace; - if (rawSpace !== void 0) last.rawSpaceAfter += rawSpace; - last.spaces.after += space$1; - } else nodes.forEach(function(n) { - return _this3.newNode(n); - }); - } - return; - } - var firstToken = this.currToken; - var spaceOrDescendantSelectorNodes = void 0; - if (nextSigTokenPos > this.position) spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos); - var node; - if (this.isNamedCombinator()) node = this.namedCombinator(); - else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.combinator) { - node = new _combinator$1["default"]({ - value: this.content(), - source: getTokenSource(this.currToken), - sourceIndex: this.currToken[_tokenize.FIELDS.START_POS] - }); - this.position++; - } else if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {} else if (!spaceOrDescendantSelectorNodes) this.unexpected(); - if (node) { - if (spaceOrDescendantSelectorNodes) { - var _this$convertWhitespa2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes), _space = _this$convertWhitespa2.space, _rawSpace = _this$convertWhitespa2.rawSpace; - node.spaces.before = _space; - node.rawSpaceBefore = _rawSpace; - } - } else { - var _this$convertWhitespa3 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true), _space2 = _this$convertWhitespa3.space, _rawSpace2 = _this$convertWhitespa3.rawSpace; - if (!_rawSpace2) _rawSpace2 = _space2; - var spaces = {}; - var raws = { spaces: {} }; - if (_space2.endsWith(" ") && _rawSpace2.endsWith(" ")) { - spaces.before = _space2.slice(0, _space2.length - 1); - raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1); - } else if (_space2.startsWith(" ") && _rawSpace2.startsWith(" ")) { - spaces.after = _space2.slice(1); - raws.spaces.after = _rawSpace2.slice(1); - } else raws.value = _rawSpace2; - node = new _combinator$1["default"]({ - value: " ", - source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]), - sourceIndex: firstToken[_tokenize.FIELDS.START_POS], - spaces, - raws - }); - } - if (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.space) { - node.spaces.after = this.optionalSpace(this.content()); - this.position++; - } - return this.newNode(node); - }; - _proto.comma = function comma$1() { - if (this.position === this.tokens.length - 1) { - this.root.trailingComma = true; - this.position++; - return; - } - this.current._inferEndPosition(); - var selector$1 = new _selector$1["default"]({ - source: { start: tokenStart(this.tokens[this.position + 1]) }, - sourceIndex: this.tokens[this.position + 1][_tokenize.FIELDS.START_POS] - }); - this.current.parent.append(selector$1); - this.current = selector$1; - this.position++; - }; - _proto.comment = function comment$2() { - var current = this.currToken; - this.newNode(new _comment$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - })); - this.position++; - }; - _proto.error = function error(message, opts) { - throw this.root.error(message, opts); - }; - _proto.missingBackslash = function missingBackslash() { - return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[_tokenize.FIELDS.START_POS] }); - }; - _proto.missingParenthesis = function missingParenthesis() { - return this.expected("opening parenthesis", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.missingSquareBracket = function missingSquareBracket() { - return this.expected("opening square bracket", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.unexpected = function unexpected() { - return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.unexpectedPipe = function unexpectedPipe() { - return this.error("Unexpected '|'.", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.namespace = function namespace() { - var before = this.prevToken && this.content(this.prevToken) || true; - if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) { - this.position++; - return this.word(before); - } else if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.asterisk) { - this.position++; - return this.universal(before); - } - this.unexpectedPipe(); - }; - _proto.nesting = function nesting$1() { - if (this.nextToken) { - if (this.content(this.nextToken) === "|") { - this.position++; - return; - } - } - var current = this.currToken; - this.newNode(new _nesting$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - })); - this.position++; - }; - _proto.parentheses = function parentheses() { - var last = this.current.last; - var unbalanced = 1; - this.position++; - if (last && last.type === types.PSEUDO) { - var selector$1 = new _selector$1["default"]({ - source: { start: tokenStart(this.tokens[this.position]) }, - sourceIndex: this.tokens[this.position][_tokenize.FIELDS.START_POS] - }); - var cache = this.current; - last.append(selector$1); - this.current = selector$1; - while (this.position < this.tokens.length && unbalanced) { - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++; - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--; - if (unbalanced) this.parse(); - else { - this.current.source.end = tokenEnd(this.currToken); - this.current.parent.source.end = tokenEnd(this.currToken); - this.position++; - } - } - this.current = cache; - } else { - var parenStart = this.currToken; - var parenValue = "("; - var parenEnd; - while (this.position < this.tokens.length && unbalanced) { - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++; - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--; - parenEnd = this.currToken; - parenValue += this.parseParenthesisToken(this.currToken); - this.position++; - } - if (last) last.appendToPropertyAndEscape("value", parenValue, parenValue); - else this.newNode(new _string$1["default"]({ - value: parenValue, - source: getSource(parenStart[_tokenize.FIELDS.START_LINE], parenStart[_tokenize.FIELDS.START_COL], parenEnd[_tokenize.FIELDS.END_LINE], parenEnd[_tokenize.FIELDS.END_COL]), - sourceIndex: parenStart[_tokenize.FIELDS.START_POS] - })); - } - if (unbalanced) return this.expected("closing parenthesis", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.pseudo = function pseudo$1() { - var _this4 = this; - var pseudoStr = ""; - var startingToken = this.currToken; - while (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.colon) { - pseudoStr += this.content(); - this.position++; - } - if (!this.currToken) return this.expected(["pseudo-class", "pseudo-element"], this.position - 1); - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.word) this.splitWord(false, function(first, length) { - pseudoStr += first; - _this4.newNode(new _pseudo$1["default"]({ - value: pseudoStr, - source: getTokenSourceSpan(startingToken, _this4.currToken), - sourceIndex: startingToken[_tokenize.FIELDS.START_POS] - })); - if (length > 1 && _this4.nextToken && _this4.nextToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) _this4.error("Misplaced parenthesis.", { index: _this4.nextToken[_tokenize.FIELDS.START_POS] }); - }); - else return this.expected(["pseudo-class", "pseudo-element"], this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.space = function space$1() { - var content = this.content(); - if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function(node) { - return node.type === "comment"; - })) { - this.spaces = this.optionalSpace(content); - this.position++; - } else if (this.position === this.tokens.length - 1 || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) { - this.current.last.spaces.after = this.optionalSpace(content); - this.position++; - } else this.combinator(); - }; - _proto.string = function string$1() { - var current = this.currToken; - this.newNode(new _string$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - })); - this.position++; - }; - _proto.universal = function universal$1(namespace) { - var nextToken = this.nextToken; - if (nextToken && this.content(nextToken) === "|") { - this.position++; - return this.namespace(); - } - var current = this.currToken; - this.newNode(new _universal$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - }), namespace); - this.position++; - }; - _proto.splitWord = function splitWord(namespace, firstCallback) { - var _this5 = this; - var nextToken = this.nextToken; - var word$1 = this.content(); - while (nextToken && ~[ - tokens.dollar, - tokens.caret, - tokens.equals, - tokens.word - ].indexOf(nextToken[_tokenize.FIELDS.TYPE])) { - this.position++; - var current = this.content(); - word$1 += current; - if (current.lastIndexOf("\\") === current.length - 1) { - var next = this.nextToken; - if (next && next[_tokenize.FIELDS.TYPE] === tokens.space) { - word$1 += this.requiredSpace(this.content(next)); - this.position++; - } - } - nextToken = this.nextToken; - } - var hasClass = indexesOf(word$1, ".").filter(function(i$1) { - var escapedDot = word$1[i$1 - 1] === "\\"; - var isKeyframesPercent = /^\d+\.\d+%$/.test(word$1); - return !escapedDot && !isKeyframesPercent; - }); - var hasId = indexesOf(word$1, "#").filter(function(i$1) { - return word$1[i$1 - 1] !== "\\"; - }); - var interpolations = indexesOf(word$1, "#{"); - if (interpolations.length) hasId = hasId.filter(function(hashIndex) { - return !~interpolations.indexOf(hashIndex); - }); - var indices = (0, _sortAscending["default"])(uniqs([0].concat(hasClass, hasId))); - indices.forEach(function(ind, i$1) { - var index = indices[i$1 + 1] || word$1.length; - var value = word$1.slice(ind, index); - if (i$1 === 0 && firstCallback) return firstCallback.call(_this5, value, indices.length); - var node; - var current$1 = _this5.currToken; - var sourceIndex = current$1[_tokenize.FIELDS.START_POS] + indices[i$1]; - var source = getSource(current$1[1], current$1[2] + ind, current$1[3], current$1[2] + (index - 1)); - if (~hasClass.indexOf(ind)) { - var classNameOpts = { - value: value.slice(1), - source, - sourceIndex - }; - node = new _className$1["default"](unescapeProp(classNameOpts, "value")); - } else if (~hasId.indexOf(ind)) { - var idOpts = { - value: value.slice(1), - source, - sourceIndex - }; - node = new _id$1["default"](unescapeProp(idOpts, "value")); - } else { - var tagOpts = { - value, - source, - sourceIndex - }; - unescapeProp(tagOpts, "value"); - node = new _tag$1["default"](tagOpts); - } - _this5.newNode(node, namespace); - namespace = null; - }); - this.position++; - }; - _proto.word = function word$1(namespace) { - var nextToken = this.nextToken; - if (nextToken && this.content(nextToken) === "|") { - this.position++; - return this.namespace(); - } - return this.splitWord(namespace); - }; - _proto.loop = function loop() { - while (this.position < this.tokens.length) this.parse(true); - this.current._inferEndPosition(); - return this.root; - }; - _proto.parse = function parse(throwOnParenthesis) { - switch (this.currToken[_tokenize.FIELDS.TYPE]) { - case tokens.space: - this.space(); - break; - case tokens.comment: - this.comment(); - break; - case tokens.openParenthesis: - this.parentheses(); - break; - case tokens.closeParenthesis: - if (throwOnParenthesis) this.missingParenthesis(); - break; - case tokens.openSquare: - this.attribute(); - break; - case tokens.dollar: - case tokens.caret: - case tokens.equals: - case tokens.word: - this.word(); - break; - case tokens.colon: - this.pseudo(); - break; - case tokens.comma: - this.comma(); - break; - case tokens.asterisk: - this.universal(); - break; - case tokens.ampersand: - this.nesting(); - break; - case tokens.slash: - case tokens.combinator: - this.combinator(); - break; - case tokens.str: - this.string(); - break; - case tokens.closeSquare: this.missingSquareBracket(); - case tokens.semicolon: this.missingBackslash(); - default: this.unexpected(); - } - }; - _proto.expected = function expected(description, index, found) { - if (Array.isArray(description)) { - var last = description.pop(); - description = description.join(", ") + " or " + last; - } - var an = /^[aeiou]/.test(description[0]) ? "an" : "a"; - if (!found) return this.error("Expected " + an + " " + description + ".", { index }); - return this.error("Expected " + an + " " + description + ", found \"" + found + "\" instead.", { index }); - }; - _proto.requiredSpace = function requiredSpace(space$1) { - return this.options.lossy ? " " : space$1; - }; - _proto.optionalSpace = function optionalSpace(space$1) { - return this.options.lossy ? "" : space$1; - }; - _proto.lossySpace = function lossySpace(space$1, required) { - if (this.options.lossy) return required ? " " : ""; - else return space$1; - }; - _proto.parseParenthesisToken = function parseParenthesisToken(token) { - var content = this.content(token); - if (token[_tokenize.FIELDS.TYPE] === tokens.space) return this.requiredSpace(content); - else return content; - }; - _proto.newNode = function newNode(node, namespace) { - if (namespace) { - if (/^ +$/.test(namespace)) { - if (!this.options.lossy) this.spaces = (this.spaces || "") + namespace; - namespace = true; - } - node.namespace = namespace; - unescapeProp(node, "namespace"); - } - if (this.spaces) { - node.spaces.before = this.spaces; - this.spaces = ""; - } - return this.current.append(node); - }; - _proto.content = function content(token) { - if (token === void 0) token = this.currToken; - return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]); - }; - /** - * returns the index of the next non-whitespace, non-comment token. - * returns -1 if no meaningful token is found. - */ - _proto.locateNextMeaningfulToken = function locateNextMeaningfulToken(startPosition) { - if (startPosition === void 0) startPosition = this.position + 1; - var searchPosition = startPosition; - while (searchPosition < this.tokens.length) if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][_tokenize.FIELDS.TYPE]]) { - searchPosition++; - continue; - } else return searchPosition; - return -1; - }; - _createClass(Parser$2, [ - { - key: "currToken", - get: function get() { - return this.tokens[this.position]; - } - }, - { - key: "nextToken", - get: function get() { - return this.tokens[this.position + 1]; - } - }, - { - key: "prevToken", - get: function get() { - return this.tokens[this.position - 1]; - } - } - ]); - return Parser$2; - }(); - exports["default"] = Parser; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/processor.js -var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/processor.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _parser = _interopRequireDefault$4(require_parser()); - function _interopRequireDefault$4(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var Processor = /* @__PURE__ */ function() { - function Processor$1(func, options) { - this.func = func || function noop() {}; - this.funcRes = null; - this.options = options; - } - var _proto = Processor$1.prototype; - _proto._shouldUpdateSelector = function _shouldUpdateSelector(rule, options) { - if (options === void 0) options = {}; - if (Object.assign({}, this.options, options).updateSelector === false) return false; - else return typeof rule !== "string"; - }; - _proto._isLossy = function _isLossy(options) { - if (options === void 0) options = {}; - if (Object.assign({}, this.options, options).lossless === false) return true; - else return false; - }; - _proto._root = function _root$2(rule, options) { - if (options === void 0) options = {}; - return new _parser["default"](rule, this._parseOptions(options)).root; - }; - _proto._parseOptions = function _parseOptions(options) { - return { lossy: this._isLossy(options) }; - }; - _proto._run = function _run(rule, options) { - var _this = this; - if (options === void 0) options = {}; - return new Promise(function(resolve, reject) { - try { - var root$2 = _this._root(rule, options); - Promise.resolve(_this.func(root$2)).then(function(transform) { - var string$1 = void 0; - if (_this._shouldUpdateSelector(rule, options)) { - string$1 = root$2.toString(); - rule.selector = string$1; - } - return { - transform, - root: root$2, - string: string$1 - }; - }).then(resolve, reject); - } catch (e) { - reject(e); - return; - } - }); - }; - _proto._runSync = function _runSync(rule, options) { - if (options === void 0) options = {}; - var root$2 = this._root(rule, options); - var transform = this.func(root$2); - if (transform && typeof transform.then === "function") throw new Error("Selector processor returned a promise to a synchronous call."); - var string$1 = void 0; - if (options.updateSelector && typeof rule !== "string") { - string$1 = root$2.toString(); - rule.selector = string$1; - } - return { - transform, - root: root$2, - string: string$1 - }; - }; - _proto.ast = function ast(rule, options) { - return this._run(rule, options).then(function(result) { - return result.root; - }); - }; - _proto.astSync = function astSync(rule, options) { - return this._runSync(rule, options).root; - }; - _proto.transform = function transform(rule, options) { - return this._run(rule, options).then(function(result) { - return result.transform; - }); - }; - _proto.transformSync = function transformSync(rule, options) { - return this._runSync(rule, options).transform; - }; - _proto.process = function process$1(rule, options) { - return this._run(rule, options).then(function(result) { - return result.string || result.root.toString(); - }); - }; - _proto.processSync = function processSync(rule, options) { - var result = this._runSync(rule, options); - return result.string || result.root.toString(); - }; - return Processor$1; - }(); - exports["default"] = Processor; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js -var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js": ((exports) => { - exports.__esModule = true; - exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0; - var _attribute = _interopRequireDefault$3(require_attribute()); - var _className = _interopRequireDefault$3(require_className()); - var _combinator = _interopRequireDefault$3(require_combinator()); - var _comment = _interopRequireDefault$3(require_comment()); - var _id = _interopRequireDefault$3(require_id()); - var _nesting = _interopRequireDefault$3(require_nesting()); - var _pseudo = _interopRequireDefault$3(require_pseudo()); - var _root = _interopRequireDefault$3(require_root()); - var _selector = _interopRequireDefault$3(require_selector()); - var _string = _interopRequireDefault$3(require_string()); - var _tag = _interopRequireDefault$3(require_tag()); - var _universal = _interopRequireDefault$3(require_universal()); - function _interopRequireDefault$3(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var attribute = function attribute$1(opts) { - return new _attribute["default"](opts); - }; - exports.attribute = attribute; - var className = function className$1(opts) { - return new _className["default"](opts); - }; - exports.className = className; - var combinator = function combinator$2(opts) { - return new _combinator["default"](opts); - }; - exports.combinator = combinator; - var comment = function comment$2(opts) { - return new _comment["default"](opts); - }; - exports.comment = comment; - var id = function id$1(opts) { - return new _id["default"](opts); - }; - exports.id = id; - var nesting = function nesting$1(opts) { - return new _nesting["default"](opts); - }; - exports.nesting = nesting; - var pseudo = function pseudo$1(opts) { - return new _pseudo["default"](opts); - }; - exports.pseudo = pseudo; - var root = function root$2(opts) { - return new _root["default"](opts); - }; - exports.root = root; - var selector = function selector$1(opts) { - return new _selector["default"](opts); - }; - exports.selector = selector; - var string = function string$1(opts) { - return new _string["default"](opts); - }; - exports.string = string; - var tag = function tag$1(opts) { - return new _tag["default"](opts); - }; - exports.tag = tag; - var universal = function universal$1(opts) { - return new _universal["default"](opts); - }; - exports.universal = universal; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js -var require_guards = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js": ((exports) => { - exports.__esModule = true; - exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0; - exports.isContainer = isContainer; - exports.isIdentifier = void 0; - exports.isNamespace = isNamespace; - exports.isNesting = void 0; - exports.isNode = isNode; - exports.isPseudo = void 0; - exports.isPseudoClass = isPseudoClass; - exports.isPseudoElement = isPseudoElement; - exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0; - var _types$1 = require_types(); - var _IS_TYPE; - var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types$1.ATTRIBUTE] = true, _IS_TYPE[_types$1.CLASS] = true, _IS_TYPE[_types$1.COMBINATOR] = true, _IS_TYPE[_types$1.COMMENT] = true, _IS_TYPE[_types$1.ID] = true, _IS_TYPE[_types$1.NESTING] = true, _IS_TYPE[_types$1.PSEUDO] = true, _IS_TYPE[_types$1.ROOT] = true, _IS_TYPE[_types$1.SELECTOR] = true, _IS_TYPE[_types$1.STRING] = true, _IS_TYPE[_types$1.TAG] = true, _IS_TYPE[_types$1.UNIVERSAL] = true, _IS_TYPE); - function isNode(node) { - return typeof node === "object" && IS_TYPE[node.type]; - } - function isNodeType(type, node) { - return isNode(node) && node.type === type; - } - var isAttribute = isNodeType.bind(null, _types$1.ATTRIBUTE); - exports.isAttribute = isAttribute; - var isClassName = isNodeType.bind(null, _types$1.CLASS); - exports.isClassName = isClassName; - var isCombinator = isNodeType.bind(null, _types$1.COMBINATOR); - exports.isCombinator = isCombinator; - var isComment = isNodeType.bind(null, _types$1.COMMENT); - exports.isComment = isComment; - var isIdentifier = isNodeType.bind(null, _types$1.ID); - exports.isIdentifier = isIdentifier; - var isNesting = isNodeType.bind(null, _types$1.NESTING); - exports.isNesting = isNesting; - var isPseudo = isNodeType.bind(null, _types$1.PSEUDO); - exports.isPseudo = isPseudo; - var isRoot = isNodeType.bind(null, _types$1.ROOT); - exports.isRoot = isRoot; - var isSelector = isNodeType.bind(null, _types$1.SELECTOR); - exports.isSelector = isSelector; - var isString = isNodeType.bind(null, _types$1.STRING); - exports.isString = isString; - var isTag = isNodeType.bind(null, _types$1.TAG); - exports.isTag = isTag; - var isUniversal = isNodeType.bind(null, _types$1.UNIVERSAL); - exports.isUniversal = isUniversal; - function isPseudoElement(node) { - return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line"); - } - function isPseudoClass(node) { - return isPseudo(node) && !isPseudoElement(node); - } - function isContainer(node) { - return !!(isNode(node) && node.walk); - } - function isNamespace(node) { - return isAttribute(node) || isTag(node); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/index.js -var require_selectors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/index.js": ((exports) => { - exports.__esModule = true; - var _types = require_types(); - Object.keys(_types).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _types[key]) return; - exports[key] = _types[key]; - }); - var _constructors = require_constructors(); - Object.keys(_constructors).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _constructors[key]) return; - exports[key] = _constructors[key]; - }); - var _guards = require_guards(); - Object.keys(_guards).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _guards[key]) return; - exports[key] = _guards[key]; - }); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/index.js -var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/index.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _processor = _interopRequireDefault$2(require_processor()); - var selectors = _interopRequireWildcard(require_selectors()); - function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - function _interopRequireDefault$2(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var parser = function parser$1(processor) { - return new _processor["default"](processor); - }; - Object.assign(parser, selectors); - var _default = parser; - exports["default"] = _default; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js -var require_src$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js": ((exports, module) => { - const selectorParser$1 = require_dist(); - const valueParser = require_lib(); - const { extractICSS } = require_src$4(); - const IGNORE_FILE_MARKER = "cssmodules-pure-no-check"; - const IGNORE_NEXT_LINE_MARKER = "cssmodules-pure-ignore"; - const isSpacing = (node) => node.type === "combinator" && node.value === " "; - const isPureCheckDisabled = (root$2) => { - for (const node of root$2.nodes) { - if (node.type !== "comment") return false; - if (node.text.trim().startsWith(IGNORE_FILE_MARKER)) return true; - } - return false; - }; - function getIgnoreComment(node) { - if (!node.parent) return; - const indexInParent = node.parent.index(node); - for (let i$1 = indexInParent - 1; i$1 >= 0; i$1--) { - const prevNode = node.parent.nodes[i$1]; - if (prevNode.type === "comment") { - if (prevNode.text.trimStart().startsWith(IGNORE_NEXT_LINE_MARKER)) return prevNode; - } else break; - } - } - function normalizeNodeArray(nodes) { - const array = []; - nodes.forEach((x) => { - if (Array.isArray(x)) normalizeNodeArray(x).forEach((item) => { - array.push(item); - }); - else if (x) array.push(x); - }); - if (array.length > 0 && isSpacing(array[array.length - 1])) array.pop(); - return array; - } - const isPureSelectorSymbol = Symbol("is-pure-selector"); - function localizeNode(rule, mode, localAliasMap) { - const transform = (node, context) => { - if (context.ignoreNextSpacing && !isSpacing(node)) throw new Error("Missing whitespace after " + context.ignoreNextSpacing); - if (context.enforceNoSpacing && isSpacing(node)) throw new Error("Missing whitespace before " + context.enforceNoSpacing); - let newNodes; - switch (node.type) { - case "root": { - let resultingGlobal; - context.hasPureGlobals = false; - newNodes = node.nodes.map((n) => { - const nContext = { - global: context.global, - lastWasSpacing: true, - hasLocals: false, - explicit: false - }; - n = transform(n, nContext); - if (typeof resultingGlobal === "undefined") resultingGlobal = nContext.global; - else if (resultingGlobal !== nContext.global) throw new Error("Inconsistent rule global/local result in rule \"" + node + "\" (multiple selectors must result in the same mode for the rule)"); - if (!nContext.hasLocals) context.hasPureGlobals = true; - return n; - }); - context.global = resultingGlobal; - node.nodes = normalizeNodeArray(newNodes); - break; - } - case "selector": - newNodes = node.map((childNode) => transform(childNode, context)); - node = node.clone(); - node.nodes = normalizeNodeArray(newNodes); - break; - case "combinator": - if (isSpacing(node)) { - if (context.ignoreNextSpacing) { - context.ignoreNextSpacing = false; - context.lastWasSpacing = false; - context.enforceNoSpacing = false; - return null; - } - context.lastWasSpacing = true; - return node; - } - break; - case "pseudo": { - let childContext; - const isNested = !!node.length; - const isScoped = node.value === ":local" || node.value === ":global"; - if (node.value === ":import" || node.value === ":export") context.hasLocals = true; - else if (isNested) { - if (isScoped) { - if (node.nodes.length === 0) throw new Error(`${node.value}() can't be empty`); - if (context.inside) throw new Error(`A ${node.value} is not allowed inside of a ${context.inside}(...)`); - childContext = { - global: node.value === ":global", - inside: node.value, - hasLocals: false, - explicit: true - }; - newNodes = node.map((childNode) => transform(childNode, childContext)).reduce((acc, next) => acc.concat(next.nodes), []); - if (newNodes.length) { - const { before, after } = node.spaces; - const first = newNodes[0]; - const last = newNodes[newNodes.length - 1]; - first.spaces = { - before, - after: first.spaces.after - }; - last.spaces = { - before: last.spaces.before, - after - }; - } - node = newNodes; - break; - } else { - childContext = { - global: context.global, - inside: context.inside, - lastWasSpacing: true, - hasLocals: false, - explicit: context.explicit - }; - newNodes = node.map((childNode) => { - const newContext = { - ...childContext, - enforceNoSpacing: false - }; - const result = transform(childNode, newContext); - childContext.global = newContext.global; - childContext.hasLocals = newContext.hasLocals; - return result; - }); - node = node.clone(); - node.nodes = normalizeNodeArray(newNodes); - if (childContext.hasLocals) context.hasLocals = true; - } - break; - } else if (isScoped) { - if (context.inside) throw new Error(`A ${node.value} is not allowed inside of a ${context.inside}(...)`); - const addBackSpacing = !!node.spaces.before; - context.ignoreNextSpacing = context.lastWasSpacing ? node.value : false; - context.enforceNoSpacing = context.lastWasSpacing ? false : node.value; - context.global = node.value === ":global"; - context.explicit = true; - return addBackSpacing ? selectorParser$1.combinator({ value: " " }) : null; - } - break; - } - case "id": - case "class": { - if (!node.value) throw new Error("Invalid class or id selector syntax"); - if (context.global) break; - const isImportedValue = localAliasMap.has(node.value); - if (!isImportedValue || isImportedValue && context.explicit) { - const innerNode = node.clone(); - innerNode.spaces = { - before: "", - after: "" - }; - node = selectorParser$1.pseudo({ - value: ":local", - nodes: [innerNode], - spaces: node.spaces - }); - context.hasLocals = true; - } - break; - } - case "nesting": if (node.value === "&") context.hasLocals = rule.parent[isPureSelectorSymbol]; - } - context.lastWasSpacing = false; - context.ignoreNextSpacing = false; - context.enforceNoSpacing = false; - return node; - }; - const rootContext = { - global: mode === "global", - hasPureGlobals: false - }; - rootContext.selector = selectorParser$1((root$2) => { - transform(root$2, rootContext); - }).processSync(rule, { - updateSelector: false, - lossless: true - }); - return rootContext; - } - function localizeDeclNode(node, context) { - switch (node.type) { - case "word": - if (context.localizeNextItem) { - if (!context.localAliasMap.has(node.value)) { - node.value = ":local(" + node.value + ")"; - context.localizeNextItem = false; - } - } - break; - case "function": - if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => { - if (nestedNode.type !== "string" && nestedNode.type !== "word") return; - let newUrl = context.options.rewriteUrl(context.global, nestedNode.value); - switch (nestedNode.type) { - case "string": - if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'"); - if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\""); - break; - case "word": - newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1"); - break; - } - nestedNode.value = newUrl; - }); - break; - } - return node; - } - const specialKeywords = [ - "none", - "inherit", - "initial", - "revert", - "revert-layer", - "unset" - ]; - function localizeDeclarationValues(localize, declaration, context) { - const valueNodes = valueParser(declaration.value); - valueNodes.walk((node, index, nodes) => { - if (node.type === "function" && (node.value.toLowerCase() === "var" || node.value.toLowerCase() === "env")) return false; - if (node.type === "word" && specialKeywords.includes(node.value.toLowerCase())) return; - nodes[index] = localizeDeclNode(node, { - options: context.options, - global: context.global, - localizeNextItem: localize && !context.global, - localAliasMap: context.localAliasMap - }); - }); - declaration.value = valueNodes.toString(); - } - const validIdent = /^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-(?![0-9]))((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i; - const animationKeywords = { - $normal: 1, - $reverse: 1, - $alternate: 1, - "$alternate-reverse": 1, - $forwards: 1, - $backwards: 1, - $both: 1, - $infinite: 1, - $paused: 1, - $running: 1, - $ease: 1, - "$ease-in": 1, - "$ease-out": 1, - "$ease-in-out": 1, - $linear: 1, - "$step-end": 1, - "$step-start": 1, - $none: Infinity, - $initial: Infinity, - $inherit: Infinity, - $unset: Infinity, - $revert: Infinity, - "$revert-layer": Infinity - }; - function localizeDeclaration(declaration, context) { - if (/animation(-name)?$/i.test(declaration.prop)) { - let parsedAnimationKeywords = {}; - declaration.value = valueParser(declaration.value).walk((node) => { - if (node.type === "div") { - parsedAnimationKeywords = {}; - return; - } else if (node.type === "function" && node.value.toLowerCase() === "local" && node.nodes.length === 1) { - node.type = "word"; - node.value = node.nodes[0].value; - return localizeDeclNode(node, { - options: context.options, - global: context.global, - localizeNextItem: true, - localAliasMap: context.localAliasMap - }); - } else if (node.type === "function") { - if (node.value.toLowerCase() === "global" && node.nodes.length === 1) { - node.type = "word"; - node.value = node.nodes[0].value; - } - return false; - } else if (node.type !== "word") return; - const value = node.type === "word" ? node.value.toLowerCase() : null; - let shouldParseAnimationName = false; - if (value && validIdent.test(value)) if ("$" + value in animationKeywords) { - parsedAnimationKeywords["$" + value] = "$" + value in parsedAnimationKeywords ? parsedAnimationKeywords["$" + value] + 1 : 0; - shouldParseAnimationName = parsedAnimationKeywords["$" + value] >= animationKeywords["$" + value]; - } else shouldParseAnimationName = true; - return localizeDeclNode(node, { - options: context.options, - global: context.global, - localizeNextItem: shouldParseAnimationName && !context.global, - localAliasMap: context.localAliasMap - }); - }).toString(); - return; - } - if (/url\(/i.test(declaration.value)) return localizeDeclarationValues(false, declaration, context); - } - const isPureSelector = (context, rule) => { - if (!rule.parent || rule.type === "root") return !context.hasPureGlobals; - if (rule.type === "rule" && rule[isPureSelectorSymbol]) return rule[isPureSelectorSymbol] || isPureSelector(context, rule.parent); - return !context.hasPureGlobals || isPureSelector(context, rule.parent); - }; - const isNodeWithoutDeclarations = (rule) => { - if (rule.nodes.length > 0) return !rule.nodes.every((item) => item.type === "rule" || item.type === "atrule" && !isNodeWithoutDeclarations(item)); - return true; - }; - module.exports = (options = {}) => { - if (options && options.mode && options.mode !== "global" && options.mode !== "local" && options.mode !== "pure") throw new Error("options.mode must be either \"global\", \"local\" or \"pure\" (default \"local\")"); - const pureMode = options && options.mode === "pure"; - const globalMode = options && options.mode === "global"; - return { - postcssPlugin: "postcss-modules-local-by-default", - prepare() { - const localAliasMap = /* @__PURE__ */ new Map(); - return { Once(root$2) { - const { icssImports } = extractICSS(root$2, false); - const enforcePureMode = pureMode && !isPureCheckDisabled(root$2); - Object.keys(icssImports).forEach((key) => { - Object.keys(icssImports[key]).forEach((prop) => { - localAliasMap.set(prop, icssImports[key][prop]); - }); - }); - root$2.walkAtRules((atRule) => { - if (/keyframes$/i.test(atRule.name)) { - const globalMatch = /^\s*:global\s*\((.+)\)\s*$/.exec(atRule.params); - const localMatch = /^\s*:local\s*\((.+)\)\s*$/.exec(atRule.params); - let globalKeyframes = globalMode; - if (globalMatch) { - if (enforcePureMode) { - const ignoreComment = getIgnoreComment(atRule); - if (!ignoreComment) throw atRule.error("@keyframes :global(...) is not allowed in pure mode"); - else ignoreComment.remove(); - } - atRule.params = globalMatch[1]; - globalKeyframes = true; - } else if (localMatch) { - atRule.params = localMatch[0]; - globalKeyframes = false; - } else if (atRule.params && !globalMode && !localAliasMap.has(atRule.params)) atRule.params = ":local(" + atRule.params + ")"; - atRule.walkDecls((declaration) => { - localizeDeclaration(declaration, { - localAliasMap, - options, - global: globalKeyframes - }); - }); - } else if (/scope$/i.test(atRule.name)) { - if (atRule.params) { - const ignoreComment = pureMode ? getIgnoreComment(atRule) : void 0; - if (ignoreComment) ignoreComment.remove(); - atRule.params = atRule.params.split("to").map((item) => { - const selector$1 = item.trim().slice(1, -1).trim(); - const context = localizeNode(selector$1, options.mode, localAliasMap); - context.options = options; - context.localAliasMap = localAliasMap; - if (enforcePureMode && context.hasPureGlobals && !ignoreComment) throw atRule.error("Selector in at-rule\"" + selector$1 + "\" is not pure (pure selectors must contain at least one local class or id)"); - return `(${context.selector})`; - }).join(" to "); - } - atRule.nodes.forEach((declaration) => { - if (declaration.type === "decl") localizeDeclaration(declaration, { - localAliasMap, - options, - global: globalMode - }); - }); - } else if (atRule.nodes) atRule.nodes.forEach((declaration) => { - if (declaration.type === "decl") localizeDeclaration(declaration, { - localAliasMap, - options, - global: globalMode - }); - }); - }); - root$2.walkRules((rule) => { - if (rule.parent && rule.parent.type === "atrule" && /keyframes$/i.test(rule.parent.name)) return; - const context = localizeNode(rule, options.mode, localAliasMap); - context.options = options; - context.localAliasMap = localAliasMap; - const ignoreComment = enforcePureMode ? getIgnoreComment(rule) : void 0; - const isNotPure = enforcePureMode && !isPureSelector(context, rule); - if (isNotPure && isNodeWithoutDeclarations(rule) && !ignoreComment) throw rule.error("Selector \"" + rule.selector + "\" is not pure (pure selectors must contain at least one local class or id)"); - else if (ignoreComment) ignoreComment.remove(); - if (pureMode) rule[isPureSelectorSymbol] = !isNotPure; - rule.selector = context.selector; - if (rule.nodes) rule.nodes.forEach((declaration) => localizeDeclaration(declaration, context)); - }); - } }; - } - }; - }; - module.exports.postcss = true; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js -var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js": ((exports, module) => { - const selectorParser = require_dist(); - const hasOwnProperty = Object.prototype.hasOwnProperty; - function isNestedRule(rule) { - if (!rule.parent || rule.parent.type === "root") return false; - if (rule.parent.type === "rule") return true; - return isNestedRule(rule.parent); - } - function getSingleLocalNamesForComposes(root$2, rule) { - if (isNestedRule(rule)) throw new Error(`composition is not allowed in nested rule \n\n${rule}`); - return root$2.nodes.map((node) => { - if (node.type !== "selector" || node.nodes.length !== 1) throw new Error(`composition is only allowed when selector is single :local class name not in "${root$2}"`); - node = node.nodes[0]; - if (node.type !== "pseudo" || node.value !== ":local" || node.nodes.length !== 1) throw new Error("composition is only allowed when selector is single :local class name not in \"" + root$2 + "\", \"" + node + "\" is weird"); - node = node.first; - if (node.type !== "selector" || node.length !== 1) throw new Error("composition is only allowed when selector is single :local class name not in \"" + root$2 + "\", \"" + node + "\" is weird"); - node = node.first; - if (node.type !== "class") throw new Error("composition is only allowed when selector is single :local class name not in \"" + root$2 + "\", \"" + node + "\" is weird"); - return node.value; - }); - } - const unescapeRegExp = new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)", "ig"); - function unescape(str$1) { - return str$1.replace(unescapeRegExp, (_, escaped, escapedWhitespace) => { - const high = "0x" + escaped - 65536; - return high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320); - }); - } - const plugin = (options = {}) => { - const generateScopedName = options && options.generateScopedName || plugin.generateScopedName; - const generateExportEntry = options && options.generateExportEntry || plugin.generateExportEntry; - const exportGlobals = options && options.exportGlobals; - return { - postcssPlugin: "postcss-modules-scope", - Once(root$2, { rule }) { - const exports$1 = Object.create(null); - function exportScopedName(name, rawName, node) { - const scopedName = generateScopedName(rawName ? rawName : name, root$2.source.input.from, root$2.source.input.css, node); - const { key, value } = generateExportEntry(rawName ? rawName : name, scopedName, root$2.source.input.from, root$2.source.input.css, node); - exports$1[key] = exports$1[key] || []; - if (exports$1[key].indexOf(value) < 0) exports$1[key].push(value); - return scopedName; - } - function localizeNode$1(node) { - switch (node.type) { - case "selector": - node.nodes = node.map((item) => localizeNode$1(item)); - return node; - case "class": return selectorParser.className({ value: exportScopedName(node.value, node.raws && node.raws.value ? node.raws.value : null, node) }); - case "id": return selectorParser.id({ value: exportScopedName(node.value, node.raws && node.raws.value ? node.raws.value : null, node) }); - case "attribute": if (node.attribute === "class" && node.operator === "=") return selectorParser.attribute({ - attribute: node.attribute, - operator: node.operator, - quoteMark: "'", - value: exportScopedName(node.value, null, null) - }); - } - throw new Error(`${node.type} ("${node}") is not allowed in a :local block`); - } - function traverseNode(node) { - switch (node.type) { - case "pseudo": if (node.value === ":local") { - if (node.nodes.length !== 1) throw new Error("Unexpected comma (\",\") in :local block"); - const selector$1 = localizeNode$1(node.first); - selector$1.first.spaces = node.spaces; - const nextNode = node.next(); - if (nextNode && nextNode.type === "combinator" && nextNode.value === " " && /\\[A-F0-9]{1,6}$/.test(selector$1.last.value)) selector$1.last.spaces.after = " "; - node.replaceWith(selector$1); - return; - } - case "root": - case "selector": - node.each((item) => traverseNode(item)); - break; - case "id": - case "class": - if (exportGlobals) exports$1[node.value] = [node.value]; - break; - } - return node; - } - const importedNames = {}; - root$2.walkRules(/^:import\(.+\)$/, (rule$1) => { - rule$1.walkDecls((decl) => { - importedNames[decl.prop] = true; - }); - }); - root$2.walkRules((rule$1) => { - let parsedSelector = selectorParser().astSync(rule$1); - rule$1.selector = traverseNode(parsedSelector.clone()).toString(); - rule$1.walkDecls(/^(composes|compose-with)$/i, (decl) => { - const localNames = getSingleLocalNamesForComposes(parsedSelector, decl.parent); - decl.value.split(",").forEach((value) => { - value.trim().split(/\s+/).forEach((className$1) => { - const global$1 = /^global\(([^)]+)\)$/.exec(className$1); - if (global$1) localNames.forEach((exportedName) => { - exports$1[exportedName].push(global$1[1]); - }); - else if (hasOwnProperty.call(importedNames, className$1)) localNames.forEach((exportedName) => { - exports$1[exportedName].push(className$1); - }); - else if (hasOwnProperty.call(exports$1, className$1)) localNames.forEach((exportedName) => { - exports$1[className$1].forEach((item) => { - exports$1[exportedName].push(item); - }); - }); - else throw decl.error(`referenced class name "${className$1}" in ${decl.prop} not found`); - }); - }); - decl.remove(); - }); - rule$1.walkDecls((decl) => { - if (!/:local\s*\((.+?)\)/.test(decl.value)) return; - let tokens$1 = decl.value.split(/(,|'[^']*'|"[^"]*")/); - tokens$1 = tokens$1.map((token, idx) => { - if (idx === 0 || tokens$1[idx - 1] === ",") { - let result = token; - const localMatch = /:local\s*\((.+?)\)/.exec(token); - if (localMatch) { - const input = localMatch.input; - const matchPattern = localMatch[0]; - const matchVal = localMatch[1]; - const newVal = exportScopedName(matchVal); - result = input.replace(matchPattern, newVal); - } else return token; - return result; - } else return token; - }); - decl.value = tokens$1.join(""); - }); - }); - root$2.walkAtRules(/keyframes$/i, (atRule) => { - const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(atRule.params); - if (!localMatch) return; - atRule.params = exportScopedName(localMatch[1]); - }); - root$2.walkAtRules(/scope$/i, (atRule) => { - if (atRule.params) atRule.params = atRule.params.split("to").map((item) => { - const selector$1 = item.trim().slice(1, -1).trim(); - if (!/^\s*:local\s*\((.+?)\)\s*$/.exec(selector$1)) return `(${selector$1})`; - return `(${traverseNode(selectorParser().astSync(selector$1)).toString()})`; - }).join(" to "); - }); - const exportedNames = Object.keys(exports$1); - if (exportedNames.length > 0) { - const exportRule = rule({ selector: ":export" }); - exportedNames.forEach((exportedName) => exportRule.append({ - prop: exportedName, - value: exports$1[exportedName].join(" "), - raws: { before: "\n " } - })); - root$2.append(exportRule); - } - } - }; - }; - plugin.postcss = true; - plugin.generateScopedName = function(name, path$2) { - return `_${path$2.replace(/\.[^./\\]+$/, "").replace(/[\W_]+/g, "_").replace(/^_|_$/g, "")}__${name}`.trim(); - }; - plugin.generateExportEntry = function(name, scopedName) { - return { - key: unescape(name), - value: unescape(scopedName) - }; - }; - module.exports = plugin; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/string-hash@1.1.3/node_modules/string-hash/index.js -var require_string_hash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/string-hash@1.1.3/node_modules/string-hash/index.js": ((exports, module) => { - function hash(str$1) { - var hash$1 = 5381, i$1 = str$1.length; - while (i$1) hash$1 = hash$1 * 33 ^ str$1.charCodeAt(--i$1); - return hash$1 >>> 0; - } - module.exports = hash; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js -var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js": ((exports, module) => { - const ICSSUtils = require_src$4(); - const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/; - const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/; - const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/; - module.exports = (options) => { - let importIndex = 0; - const createImportedName = options && options.createImportedName || ((importName) => `i__const_${importName.replace(/\W/g, "_")}_${importIndex++}`); - return { - postcssPlugin: "postcss-modules-values", - prepare(result) { - const importAliases = []; - const definitions = {}; - return { Once(root$2, postcss) { - root$2.walkAtRules(/value/i, (atRule) => { - const matches = atRule.params.match(matchImports); - if (matches) { - let [, aliases, path$2] = matches; - if (definitions[path$2]) path$2 = definitions[path$2]; - const imports = aliases.replace(/^\(\s*([\s\S]+)\s*\)$/, "$1").split(/\s*,\s*/).map((alias) => { - const tokens$1 = matchImport.exec(alias); - if (tokens$1) { - const [, theirName, myName = theirName] = tokens$1; - const importedName = createImportedName(myName); - definitions[myName] = importedName; - return { - theirName, - importedName - }; - } else throw new Error(`@import statement "${alias}" is invalid!`); - }); - importAliases.push({ - path: path$2, - imports - }); - atRule.remove(); - return; - } - if (atRule.params.indexOf("@value") !== -1) result.warn("Invalid value definition: " + atRule.params); - let [, key, value] = `${atRule.params}${atRule.raws.between}`.match(matchValueDefinition); - const normalizedValue = value.replace(/\/\*((?!\*\/).*?)\*\//g, ""); - if (normalizedValue.length === 0) { - result.warn("Invalid value definition: " + atRule.params); - atRule.remove(); - return; - } - if (!/^\s+$/.test(normalizedValue)) value = value.trim(); - definitions[key] = ICSSUtils.replaceValueSymbols(value, definitions); - atRule.remove(); - }); - if (!Object.keys(definitions).length) return; - ICSSUtils.replaceSymbols(root$2, definitions); - const exportDeclarations = Object.keys(definitions).map((key) => postcss.decl({ - value: definitions[key], - prop: key, - raws: { before: "\n " } - })); - if (exportDeclarations.length > 0) { - const exportRule = postcss.rule({ - selector: ":export", - raws: { after: "\n" } - }); - exportRule.append(exportDeclarations); - root$2.prepend(exportRule); - } - importAliases.reverse().forEach(({ path: path$2, imports }) => { - const importRule = postcss.rule({ - selector: `:import(${path$2})`, - raws: { after: "\n" } - }); - imports.forEach(({ theirName, importedName }) => { - importRule.append({ - value: theirName, - prop: importedName, - raws: { before: "\n " } - }); - }); - root$2.prepend(importRule); - }); - } }; - } - }; - }; - module.exports.postcss = true; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js -var require_scoping = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.behaviours = void 0; - exports.getDefaultPlugins = getDefaultPlugins; - exports.getDefaultScopeBehaviour = getDefaultScopeBehaviour; - exports.getScopedNameGenerator = getScopedNameGenerator; - var _postcssModulesExtractImports = _interopRequireDefault$1(require_src$3()); - var _genericNames = _interopRequireDefault$1(require_generic_names()); - var _postcssModulesLocalByDefault = _interopRequireDefault$1(require_src$2()); - var _postcssModulesScope = _interopRequireDefault$1(require_src$1()); - var _stringHash = _interopRequireDefault$1(require_string_hash()); - var _postcssModulesValues = _interopRequireDefault$1(require_src()); - function _interopRequireDefault$1(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - const behaviours = { - LOCAL: "local", - GLOBAL: "global" - }; - exports.behaviours = behaviours; - function getDefaultPlugins({ behaviour, generateScopedName, exportGlobals }) { - const scope = (0, _postcssModulesScope.default)({ - generateScopedName, - exportGlobals - }); - return { - [behaviours.LOCAL]: [ - _postcssModulesValues.default, - (0, _postcssModulesLocalByDefault.default)({ mode: "local" }), - _postcssModulesExtractImports.default, - scope - ], - [behaviours.GLOBAL]: [ - _postcssModulesValues.default, - (0, _postcssModulesLocalByDefault.default)({ mode: "global" }), - _postcssModulesExtractImports.default, - scope - ] - }[behaviour]; - } - function isValidBehaviour(behaviour) { - return Object.keys(behaviours).map((key) => behaviours[key]).indexOf(behaviour) > -1; - } - function getDefaultScopeBehaviour(scopeBehaviour) { - return scopeBehaviour && isValidBehaviour(scopeBehaviour) ? scopeBehaviour : behaviours.LOCAL; - } - function generateScopedNameDefault(name, filename, css) { - const i$1 = css.indexOf(`.${name}`); - const lineNumber = css.substr(0, i$1).split(/[\r\n]/).length; - return `_${name}_${(0, _stringHash.default)(css).toString(36).substr(0, 5)}_${lineNumber}`; - } - function getScopedNameGenerator(generateScopedName, hashPrefix) { - const scopedNameGenerator = generateScopedName || generateScopedNameDefault; - if (typeof scopedNameGenerator === "function") return scopedNameGenerator; - return (0, _genericNames.default)(scopedNameGenerator, { - context: process.cwd(), - hashPrefix - }); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js -var require_pluginFactory = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.makePlugin = makePlugin; - var _postcss = _interopRequireDefault(__require("postcss")); - var _unquote = _interopRequireDefault(require_unquote()); - var _Parser = _interopRequireDefault(require_Parser()); - var _saveJSON = _interopRequireDefault(require_saveJSON()); - var _localsConvention = require_localsConvention(); - var _FileSystemLoader = _interopRequireDefault(require_FileSystemLoader()); - var _scoping = require_scoping(); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - const PLUGIN_NAME = "postcss-modules"; - function isGlobalModule(globalModules, inputFile) { - return globalModules.some((regex) => inputFile.match(regex)); - } - function getDefaultPluginsList(opts, inputFile) { - const globalModulesList = opts.globalModulePaths || null; - const exportGlobals = opts.exportGlobals || false; - const defaultBehaviour = (0, _scoping.getDefaultScopeBehaviour)(opts.scopeBehaviour); - const generateScopedName = (0, _scoping.getScopedNameGenerator)(opts.generateScopedName, opts.hashPrefix); - if (globalModulesList && isGlobalModule(globalModulesList, inputFile)) return (0, _scoping.getDefaultPlugins)({ - behaviour: _scoping.behaviours.GLOBAL, - generateScopedName, - exportGlobals - }); - return (0, _scoping.getDefaultPlugins)({ - behaviour: defaultBehaviour, - generateScopedName, - exportGlobals - }); - } - function getLoader(opts, plugins) { - const root$2 = typeof opts.root === "undefined" ? "/" : opts.root; - return typeof opts.Loader === "function" ? new opts.Loader(root$2, plugins, opts.resolve) : new _FileSystemLoader.default(root$2, plugins, opts.resolve); - } - function isOurPlugin(plugin$1) { - return plugin$1.postcssPlugin === PLUGIN_NAME; - } - function makePlugin(opts) { - return { - postcssPlugin: PLUGIN_NAME, - async OnceExit(css, { result }) { - const getJSON = opts.getJSON || _saveJSON.default; - const inputFile = css.source.input.file; - const pluginList = getDefaultPluginsList(opts, inputFile); - const resultPluginIndex = result.processor.plugins.findIndex((plugin$1) => isOurPlugin(plugin$1)); - if (resultPluginIndex === -1) throw new Error("Plugin missing from options."); - const loader = getLoader(opts, [...result.processor.plugins.slice(0, resultPluginIndex), ...pluginList]); - const fetcher = async (file, relativeTo, depTrace) => { - const unquoteFile = (0, _unquote.default)(file); - return loader.fetch.call(loader, unquoteFile, relativeTo, depTrace); - }; - const parser$1 = new _Parser.default(fetcher); - await (0, _postcss.default)([...pluginList, parser$1.plugin()]).process(css, { from: inputFile }); - const out = loader.finalSource; - if (out) css.prepend(out); - if (opts.localsConvention) { - const reducer = (0, _localsConvention.makeLocalsConventionReducer)(opts.localsConvention, inputFile); - parser$1.exportTokens = Object.entries(parser$1.exportTokens).reduce(reducer, {}); - } - result.messages.push({ - type: "export", - plugin: "postcss-modules", - exportTokens: parser$1.exportTokens - }); - return getJSON(css.source.input.file, parser$1.exportTokens, result.opts.to); - } - }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js -var require_build = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js": ((exports, module) => { - var _fs = __require("fs"); - var _fs2 = require_fs(); - var _pluginFactory = require_pluginFactory(); - (0, _fs2.setFileSystem)({ - readFile: _fs.readFile, - writeFile: _fs.writeFile - }); - module.exports = (opts = {}) => (0, _pluginFactory.makePlugin)(opts); - module.exports.postcss = true; -}) }); - -//#endregion -export default require_build(); - -export { }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/chunk.js b/node_modules/vite/dist/node/chunks/chunk.js deleted file mode 100644 index 9db0145..0000000 --- a/node_modules/vite/dist/node/chunks/chunk.js +++ /dev/null @@ -1,31 +0,0 @@ -import { createRequire } from "node:module"; - -//#region rolldown:runtime -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod) => function() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { - key = keys[i]; - if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { - get: ((k) => from[k]).bind(null, key), - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable - }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { - value: mod, - enumerable: true -}) : target, mod)); -var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode); -var __require = /* @__PURE__ */ createRequire(import.meta.url); - -//#endregion -export { __toESM as i, __require as n, __toDynamicImportESM as r, __commonJS as t }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/config.js b/node_modules/vite/dist/node/chunks/config.js deleted file mode 100644 index 81fb834..0000000 --- a/node_modules/vite/dist/node/chunks/config.js +++ /dev/null @@ -1,36619 +0,0 @@ -import { i as __toESM, n as __require, r as __toDynamicImportESM, t as __commonJS } from "./chunk.js"; -import { A as OPTIMIZABLE_ENTRY_RE, C as ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, D as JS_TYPES_RE, E as FS_PREFIX, F as defaultAllowedOrigins, I as loopbackHosts, L as wildcardHosts, M as SPECIAL_QUERY_RE, N as VERSION, O as KNOWN_ASSET_TYPES, P as VITE_PACKAGE_DIR, R as require_picocolors, S as ENV_PUBLIC_PATH, T as ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, _ as DEFAULT_SERVER_CONDITIONS, a as CLIENT_ENTRY, b as DEV_PROD_CONDITION, c as DEFAULT_ASSETS_INLINE_LIMIT, d as DEFAULT_CLIENT_MAIN_FIELDS, f as DEFAULT_CONFIG_FILES, g as DEFAULT_PREVIEW_PORT, h as DEFAULT_EXTERNAL_CONDITIONS, i as CLIENT_DIR, j as ROLLUP_HOOKS, k as METADATA_FILENAME, l as DEFAULT_ASSETS_RE, m as DEFAULT_EXTENSIONS, n as createLogger, o as CLIENT_PUBLIC_PATH, p as DEFAULT_DEV_PORT, r as printServerUrls, s as CSS_LANGS_RE, t as LogLevels, u as DEFAULT_CLIENT_CONDITIONS, v as DEFAULT_SERVER_MAIN_FIELDS, w as ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, x as ENV_ENTRY, y as DEP_VERSION_RE } from "./logger.js"; -import { builtinModules, createRequire } from "node:module"; -import { parseAst, parseAstAsync } from "rollup/parseAst"; -import * as fs$1 from "node:fs"; -import fs, { existsSync, promises, readFileSync } from "node:fs"; -import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve, sep } from "node:path"; -import fsp, { constants } from "node:fs/promises"; -import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url"; -import { format, inspect, promisify, stripVTControlCharacters } from "node:util"; -import { performance as performance$1 } from "node:perf_hooks"; -import crypto from "node:crypto"; -import picomatch from "picomatch"; -import esbuild, { build, formatMessages, transform } from "esbuild"; -import os from "node:os"; -import net from "node:net"; -import childProcess, { exec, execFile, execSync } from "node:child_process"; -import { promises as promises$1 } from "node:dns"; -import path$1, { basename as basename$1, dirname as dirname$1, extname as extname$1, isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 } from "path"; -import { existsSync as existsSync$1, readFileSync as readFileSync$1, readdirSync, statSync } from "fs"; -import { fdir } from "fdir"; -import { gzip } from "node:zlib"; -import readline from "node:readline"; -import { createRequire as createRequire$1 } from "module"; -import { MessageChannel, Worker } from "node:worker_threads"; -import isModuleSyncConditionEnabled from "#module-sync-enabled"; -import assert from "node:assert"; -import process$1 from "node:process"; -import v8 from "node:v8"; -import { escapePath, glob, globSync, isDynamicPattern } from "tinyglobby"; -import { Buffer as Buffer$1 } from "node:buffer"; -import { EventEmitter } from "node:events"; -import { STATUS_CODES, createServer, get } from "node:http"; -import { createServer as createServer$1, get as get$1 } from "node:https"; -import { ESModulesEvaluator, ModuleRunner, createNodeImportMeta } from "vite/module-runner"; -import zlib from "zlib"; -import * as qs from "node:querystring"; - -//#region src/shared/constants.ts -/** -* Prefix for resolved Ids that are not valid browser import specifiers -*/ -const VALID_ID_PREFIX = `/@id/`; -/** -* Plugins that use 'virtual modules' (e.g. for helper functions), prefix the -* module ID with `\0`, a convention from the rollup ecosystem. -* This prevents other plugins from trying to process the id (like node resolution), -* and core features like sourcemaps can use this info to differentiate between -* virtual modules and regular files. -* `\0` is not a permitted char in import URLs so we have to replace them during -* import analysis. The id will be decoded back before entering the plugins pipeline. -* These encoded virtual ids are also prefixed by the VALID_ID_PREFIX, so virtual -* modules in the browser end up encoded as `/@id/__x00__{id}` -*/ -const NULL_BYTE_PLACEHOLDER = `__x00__`; -let SOURCEMAPPING_URL = "sourceMa"; -SOURCEMAPPING_URL += "ppingURL"; -const MODULE_RUNNER_SOURCEMAPPING_SOURCE = "//# sourceMappingSource=vite-generated"; -const ERR_OUTDATED_OPTIMIZED_DEP = "ERR_OUTDATED_OPTIMIZED_DEP"; - -//#endregion -//#region src/shared/utils.ts -const isWindows = typeof process !== "undefined" && process.platform === "win32"; -/** -* Prepend `/@id/` and replace null byte so the id is URL-safe. -* This is prepended to resolved ids that are not valid browser -* import specifiers by the importAnalysis plugin. -*/ -function wrapId(id) { - return id.startsWith(VALID_ID_PREFIX) ? id : VALID_ID_PREFIX + id.replace("\0", NULL_BYTE_PLACEHOLDER); -} -/** -* Undo {@link wrapId}'s `/@id/` and null byte replacements. -*/ -function unwrapId(id) { - return id.startsWith(VALID_ID_PREFIX) ? id.slice(VALID_ID_PREFIX.length).replace(NULL_BYTE_PLACEHOLDER, "\0") : id; -} -const windowsSlashRE = /\\/g; -function slash(p) { - return p.replace(windowsSlashRE, "/"); -} -const postfixRE = /[?#].*$/; -function cleanUrl(url$3) { - return url$3.replace(postfixRE, ""); -} -function splitFileAndPostfix(path$13) { - const file = cleanUrl(path$13); - return { - file, - postfix: path$13.slice(file.length) - }; -} -function withTrailingSlash(path$13) { - if (path$13[path$13.length - 1] !== "/") return `${path$13}/`; - return path$13; -} -function promiseWithResolvers() { - let resolve$4; - let reject; - return { - promise: new Promise((_resolve, _reject) => { - resolve$4 = _resolve; - reject = _reject; - }), - resolve: resolve$4, - reject - }; -} - -//#endregion -//#region src/module-runner/importMetaResolver.ts -const customizationHookNamespace = "vite-module-runner:import-meta-resolve/v1/"; -const customizationHooksModule = ` - -export async function resolve(specifier, context, nextResolve) { - if (specifier.startsWith(${JSON.stringify(customizationHookNamespace)})) { - const data = specifier.slice(${JSON.stringify(customizationHookNamespace)}.length) - const [parsedSpecifier, parsedImporter] = JSON.parse(data) - specifier = parsedSpecifier - context.parentURL = parsedImporter - } - return nextResolve(specifier, context) -} - -`; -function customizationHookResolve(specifier, context, nextResolve) { - if (specifier.startsWith(customizationHookNamespace)) { - const data = specifier.slice(42); - const [parsedSpecifier, parsedImporter] = JSON.parse(data); - specifier = parsedSpecifier; - context.parentURL = parsedImporter; - } - return nextResolve(specifier, context); -} -async function createImportMetaResolver() { - let module$1; - try { - module$1 = (await import("node:module")).Module; - } catch { - return; - } - if (!module$1) return; - if (module$1.registerHooks) { - module$1.registerHooks({ resolve: customizationHookResolve }); - return importMetaResolveWithCustomHook; - } - if (!module$1.register) return; - try { - const hookModuleContent = `data:text/javascript,${encodeURI(customizationHooksModule)}`; - module$1.register(hookModuleContent); - } catch (e$1) { - if ("code" in e$1 && e$1.code === "ERR_NETWORK_IMPORT_DISALLOWED") return; - throw e$1; - } - return importMetaResolveWithCustomHook; -} -function importMetaResolveWithCustomHook(specifier, importer) { - return import.meta.resolve(`${customizationHookNamespace}${JSON.stringify([specifier, importer])}`); -} -const importMetaResolveWithCustomHookString = ` - - (() => { - const resolve = 'resolve' - return (specifier, importer) => - import.meta[resolve]( - \`${customizationHookNamespace}\${JSON.stringify([specifier, importer])}\`, - ) - })() - -`; - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs -var comma = ",".charCodeAt(0); -var semicolon = ";".charCodeAt(0); -var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var intToChar = new Uint8Array(64); -var charToInt = new Uint8Array(128); -for (let i$1 = 0; i$1 < chars$1.length; i$1++) { - const c = chars$1.charCodeAt(i$1); - intToChar[i$1] = c; - charToInt[c] = i$1; -} -function decodeInteger(reader, relative$3) { - let value$1 = 0; - let shift = 0; - let integer = 0; - do { - integer = charToInt[reader.next()]; - value$1 |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value$1 & 1; - value$1 >>>= 1; - if (shouldNegate) value$1 = -2147483648 | -value$1; - return relative$3 + value$1; -} -function encodeInteger(builder, num, relative$3) { - let delta = num - relative$3; - delta = delta < 0 ? -delta << 1 | 1 : delta << 1; - do { - let clamped = delta & 31; - delta >>>= 5; - if (delta > 0) clamped |= 32; - builder.write(intToChar[clamped]); - } while (delta > 0); - return num; -} -function hasMoreVlq(reader, max) { - if (reader.pos >= max) return false; - return reader.peek() !== comma; -} -var bufLength = 1024 * 16; -var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) { - return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString(); -} } : { decode(buf) { - let out = ""; - for (let i$1 = 0; i$1 < buf.length; i$1++) out += String.fromCharCode(buf[i$1]); - return out; -} }; -var StringWriter = class { - constructor() { - this.pos = 0; - this.out = ""; - this.buffer = new Uint8Array(bufLength); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -}; -var StringReader = class { - constructor(buffer) { - this.pos = 0; - this.buffer = buffer; - } - next() { - return this.buffer.charCodeAt(this.pos++); - } - peek() { - return this.buffer.charCodeAt(this.pos); - } - indexOf(char) { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -}; -function decode(mappings) { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - do { - const semi = reader.indexOf(";"); - const line = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - while (reader.pos < semi) { - let seg; - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) sorted = false; - lastCol = genColumn; - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [ - genColumn, - sourcesIndex, - sourceLine, - sourceColumn, - namesIndex - ]; - } else seg = [ - genColumn, - sourcesIndex, - sourceLine, - sourceColumn - ]; - } else seg = [genColumn]; - line.push(seg); - reader.pos++; - } - if (!sorted) sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - return decoded; -} -function sort(line) { - line.sort(sortComparator$1); -} -function sortComparator$1(a, b) { - return a[0] - b[0]; -} -function encode$1(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i$1 = 0; i$1 < decoded.length; i$1++) { - const line = decoded[i$1]; - if (i$1 > 0) writer.write(semicolon); - if (line.length === 0) continue; - let genColumn = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) writer.write(comma); - genColumn = encodeInteger(writer, segment[0], genColumn); - if (segment.length === 1) continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - if (segment.length === 4) continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - return writer.flush(); -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs -const schemeRegex = /^[\w+.-]+:\/\//; -/** -* Matches the parts of a URL: -* 1. Scheme, including ":", guaranteed. -* 2. User/password, including "@", optional. -* 3. Host, guaranteed. -* 4. Port, including ":", optional. -* 5. Path, including "/", optional. -* 6. Query, including "?", optional. -* 7. Hash, including "#", optional. -*/ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** -* File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start -* with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). -* -* 1. Host, optional. -* 2. Path, which may include "/", guaranteed. -* 3. Query, including "?", optional. -* 4. Hash, including "#", optional. -*/ -const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; -function isAbsoluteUrl(input) { - return schemeRegex.test(input); -} -function isSchemeRelativeUrl(input) { - return input.startsWith("//"); -} -function isAbsolutePath(input) { - return input.startsWith("/"); -} -function isFileUrl(input) { - return input.startsWith("file:"); -} -function isRelative(input) { - return /^[.?#]/.test(input); -} -function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || ""); -} -function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path$13 = match[2]; - return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path$13) ? path$13 : "/" + path$13, match[3] || "", match[4] || ""); -} -function makeUrl(scheme, user, host, port, path$13, query, hash$1) { - return { - scheme, - user, - host, - port, - path: path$13, - query, - hash: hash$1, - type: 7 - }; -} -function parseUrl$3(input) { - if (isSchemeRelativeUrl(input)) { - const url$4 = parseAbsoluteUrl("http:" + input); - url$4.scheme = ""; - url$4.type = 6; - return url$4; - } - if (isAbsolutePath(input)) { - const url$4 = parseAbsoluteUrl("http://foo.com" + input); - url$4.scheme = ""; - url$4.host = ""; - url$4.type = 5; - return url$4; - } - if (isFileUrl(input)) return parseFileUrl(input); - if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input); - const url$3 = parseAbsoluteUrl("http://foo.com/" + input); - url$3.scheme = ""; - url$3.host = ""; - url$3.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1; - return url$3; -} -function stripPathFilename(path$13) { - if (path$13.endsWith("/..")) return path$13; - const index = path$13.lastIndexOf("/"); - return path$13.slice(0, index + 1); -} -function mergePaths(url$3, base) { - normalizePath$4(base, base.type); - if (url$3.path === "/") url$3.path = base.path; - else url$3.path = stripPathFilename(base.path) + url$3.path; -} -/** -* The path can have empty directories "//", unneeded parents "foo/..", or current directory -* "foo/.". We need to normalize to a standard representation. -*/ -function normalizePath$4(url$3, type) { - const rel = type <= 4; - const pieces = url$3.path.split("/"); - let pointer = 1; - let positive = 0; - let addTrailingSlash = false; - for (let i$1 = 1; i$1 < pieces.length; i$1++) { - const piece = pieces[i$1]; - if (!piece) { - addTrailingSlash = true; - continue; - } - addTrailingSlash = false; - if (piece === ".") continue; - if (piece === "..") { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } else if (rel) pieces[pointer++] = piece; - continue; - } - pieces[pointer++] = piece; - positive++; - } - let path$13 = ""; - for (let i$1 = 1; i$1 < pointer; i$1++) path$13 += "/" + pieces[i$1]; - if (!path$13 || addTrailingSlash && !path$13.endsWith("/..")) path$13 += "/"; - url$3.path = path$13; -} -/** -* Attempts to resolve `input` URL/path relative to `base`. -*/ -function resolve$3(input, base) { - if (!input && !base) return ""; - const url$3 = parseUrl$3(input); - let inputType = url$3.type; - if (base && inputType !== 7) { - const baseUrl = parseUrl$3(base); - const baseType = baseUrl.type; - switch (inputType) { - case 1: url$3.hash = baseUrl.hash; - case 2: url$3.query = baseUrl.query; - case 3: - case 4: mergePaths(url$3, baseUrl); - case 5: - url$3.user = baseUrl.user; - url$3.host = baseUrl.host; - url$3.port = baseUrl.port; - case 6: url$3.scheme = baseUrl.scheme; - } - if (baseType > inputType) inputType = baseType; - } - normalizePath$4(url$3, inputType); - const queryHash = url$3.query + url$3.hash; - switch (inputType) { - case 2: - case 3: return queryHash; - case 4: { - const path$13 = url$3.path.slice(1); - if (!path$13) return queryHash || "."; - if (isRelative(base || input) && !isRelative(path$13)) return "./" + path$13 + queryHash; - return path$13 + queryHash; - } - case 5: return url$3.path + queryHash; - default: return url$3.scheme + "//" + url$3.user + url$3.host + url$3.port + url$3.path + queryHash; - } -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs -function stripFilename(path$13) { - if (!path$13) return ""; - const index = path$13.lastIndexOf("/"); - return path$13.slice(0, index + 1); -} -function resolver(mapUrl, sourceRoot) { - const from = stripFilename(mapUrl); - const prefix = sourceRoot ? sourceRoot + "/" : ""; - return (source) => resolve$3(prefix + (source || ""), from); -} -var COLUMN$1 = 0; -var SOURCES_INDEX$1 = 1; -var SOURCE_LINE$1 = 2; -var SOURCE_COLUMN$1 = 3; -var NAMES_INDEX$1 = 4; -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) return mappings; - if (!owned) mappings = mappings.slice(); - for (let i$1 = unsortedIndex; i$1 < mappings.length; i$1 = nextUnsortedSegmentLine(mappings, i$1 + 1)) mappings[i$1] = sortSegments(mappings[i$1], owned); - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i$1 = start; i$1 < mappings.length; i$1++) if (!isSorted(mappings[i$1])) return i$1; - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) if (line[j][COLUMN$1] < line[j - 1][COLUMN$1]) return false; - return true; -} -function sortSegments(line, owned) { - if (!owned) line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN$1] - b[COLUMN$1]; -} -var found = false; -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + (high - low >> 1); - const cmp = haystack[mid][COLUMN$1] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) low = mid + 1; - else high = mid - 1; - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i$1 = index + 1; i$1 < haystack.length; index = i$1++) if (haystack[i$1][COLUMN$1] !== needle) break; - return index; -} -function lowerBound(haystack, needle, index) { - for (let i$1 = index - 1; i$1 >= 0; index = i$1--) if (haystack[i$1][COLUMN$1] !== needle) break; - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1 - }; -} -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN$1] === needle; - return lastIndex; - } - if (needle >= lastNeedle) low = lastIndex === -1 ? 0 : lastIndex; - else high = lastIndex; - } - state.lastKey = key; - state.lastNeedle = needle; - return state.lastIndex = binarySearch(haystack, needle, low, high); -} -function parse$16(map$1) { - return typeof map$1 === "string" ? JSON.parse(map$1) : map$1; -} -var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)"; -var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)"; -var LEAST_UPPER_BOUND = -1; -var GREATEST_LOWER_BOUND = 1; -var TraceMap = class { - constructor(map$1, mapUrl) { - const isString$1 = typeof map$1 === "string"; - if (!isString$1 && map$1._decodedMemo) return map$1; - const parsed = parse$16(map$1); - const { version: version$2, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version$2; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0; - const resolve$4 = resolver(mapUrl, sourceRoot); - this.resolvedSources = sources.map(resolve$4); - const { mappings } = parsed; - if (typeof mappings === "string") { - this._encoded = mappings; - this._decoded = void 0; - } else if (Array.isArray(mappings)) { - this._encoded = void 0; - this._decoded = maybeSort(mappings, isString$1); - } else if (parsed.sections) throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`); - else throw new Error(`invalid source map: ${JSON.stringify(parsed)}`); - this._decodedMemo = memoizedState(); - this._bySources = void 0; - this._bySourceMemos = void 0; - } -}; -function cast$1(map$1) { - return map$1; -} -function encodedMappings(map$1) { - var _a, _b; - return (_b = (_a = cast$1(map$1))._encoded) != null ? _b : _a._encoded = encode$1(cast$1(map$1)._decoded); -} -function decodedMappings(map$1) { - var _a; - return (_a = cast$1(map$1))._decoded || (_a._decoded = decode(cast$1(map$1)._encoded)); -} -function traceSegment(map$1, line, column) { - const decoded = decodedMappings(map$1); - if (line >= decoded.length) return null; - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast$1(map$1)._decodedMemo, line, column, GREATEST_LOWER_BOUND); - return index === -1 ? null : segments[index]; -} -function originalPositionFor(map$1, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) throw new Error(LINE_GTR_ZERO); - if (column < 0) throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map$1); - if (line >= decoded.length) return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast$1(map$1)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) return OMapping(null, null, null, null); - const { names, resolvedSources } = map$1; - return OMapping(resolvedSources[segment[SOURCES_INDEX$1]], segment[SOURCE_LINE$1] + 1, segment[SOURCE_COLUMN$1], segment.length === 5 ? names[segment[NAMES_INDEX$1]] : null); -} -function decodedMap(map$1) { - return clone(map$1, decodedMappings(map$1)); -} -function encodedMap(map$1) { - return clone(map$1, encodedMappings(map$1)); -} -function clone(map$1, mappings) { - return { - version: map$1.version, - file: map$1.file, - names: map$1.names, - sourceRoot: map$1.sourceRoot, - sources: map$1.sources, - sourcesContent: map$1.sourcesContent, - mappings, - ignoreList: map$1.ignoreList || map$1.x_google_ignoreList - }; -} -function OMapping(source, line, column, name) { - return { - source, - line, - column, - name - }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - else if (bias === LEAST_UPPER_BOUND) index++; - if (index === -1 || index === segments.length) return -1; - return index; -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.12/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs -var SetArray = class { - constructor() { - this._indexes = { __proto__: null }; - this.array = []; - } -}; -function cast(set) { - return set; -} -function get$2(setarr, key) { - return cast(setarr)._indexes[key]; -} -function put(setarr, key) { - const index = get$2(setarr, key); - if (index !== void 0) return index; - const { array, _indexes: indexes } = cast(setarr); - return indexes[key] = array.push(key) - 1; -} -function remove(setarr, key) { - const index = get$2(setarr, key); - if (index === void 0) return; - const { array, _indexes: indexes } = cast(setarr); - for (let i$1 = index + 1; i$1 < array.length; i$1++) { - const k = array[i$1]; - array[i$1 - 1] = k; - indexes[k]--; - } - indexes[key] = void 0; - array.pop(); -} -var COLUMN = 0; -var SOURCES_INDEX = 1; -var SOURCE_LINE = 2; -var SOURCE_COLUMN = 3; -var NAMES_INDEX = 4; -var NO_NAME = -1; -var GenMapping = class { - constructor({ file, sourceRoot } = {}) { - this._names = new SetArray(); - this._sources = new SetArray(); - this._sourcesContent = []; - this._mappings = []; - this.file = file; - this.sourceRoot = sourceRoot; - this._ignoreList = new SetArray(); - } -}; -function cast2(map$1) { - return map$1; -} -var maybeAddSegment = (map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => { - return addSegmentInternal(true, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content); -}; -function setSourceContent(map$1, source, content) { - const { _sources: sources, _sourcesContent: sourcesContent } = cast2(map$1); - const index = put(sources, source); - sourcesContent[index] = content; -} -function setIgnore(map$1, source, ignore = true) { - const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast2(map$1); - const index = put(sources, source); - if (index === sourcesContent.length) sourcesContent[index] = null; - if (ignore) put(ignoreList, index); - else remove(ignoreList, index); -} -function toDecodedMap(map$1) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList } = cast2(map$1); - removeEmptyFinalLines(mappings); - return { - version: 3, - file: map$1.file || void 0, - names: names.array, - sourceRoot: map$1.sourceRoot || void 0, - sources: sources.array, - sourcesContent, - mappings, - ignoreList: ignoreList.array - }; -} -function toEncodedMap(map$1) { - const decoded = toDecodedMap(map$1); - return Object.assign({}, decoded, { mappings: encode$1(decoded.mappings) }); -} -function addSegmentInternal(skipable, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map$1); - const line = getIndex(mappings, genLine); - const index = getColumnIndex(line, genColumn); - if (!source) { - if (skipable && skipSourceless(line, index)) return; - return insert(line, index, [genColumn]); - } - assert$2(sourceLine); - assert$2(sourceColumn); - const sourcesIndex = put(sources, source); - const namesIndex = name ? put(names, name) : NO_NAME; - if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null; - if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) return; - return insert(line, index, name ? [ - genColumn, - sourcesIndex, - sourceLine, - sourceColumn, - namesIndex - ] : [ - genColumn, - sourcesIndex, - sourceLine, - sourceColumn - ]); -} -function assert$2(_val) {} -function getIndex(arr, index) { - for (let i$1 = arr.length; i$1 <= index; i$1++) arr[i$1] = []; - return arr[index]; -} -function getColumnIndex(line, genColumn) { - let index = line.length; - for (let i$1 = index - 1; i$1 >= 0; index = i$1--) if (genColumn >= line[i$1][COLUMN]) break; - return index; -} -function insert(array, index, value$1) { - for (let i$1 = array.length; i$1 > index; i$1--) array[i$1] = array[i$1 - 1]; - array[index] = value$1; -} -function removeEmptyFinalLines(mappings) { - const { length } = mappings; - let len = length; - for (let i$1 = len - 1; i$1 >= 0; len = i$1, i$1--) if (mappings[i$1].length > 0) break; - if (len < length) mappings.length = len; -} -function skipSourceless(line, index) { - if (index === 0) return true; - return line[index - 1].length === 1; -} -function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) { - if (index === 0) return false; - const prev = line[index - 1]; - if (prev.length === 1) return false; - return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME); -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs -var SOURCELESS_MAPPING = /* @__PURE__ */ SegmentObject("", -1, -1, "", null, false); -var EMPTY_SOURCES = []; -function SegmentObject(source, line, column, name, content, ignore) { - return { - source, - line, - column, - name, - content, - ignore - }; -} -function Source(map$1, sources, source, content, ignore) { - return { - map: map$1, - sources, - source, - content, - ignore - }; -} -function MapSource(map$1, sources) { - return Source(map$1, sources, "", null, false); -} -function OriginalSource(source, content, ignore) { - return Source(null, EMPTY_SOURCES, source, content, ignore); -} -function traceMappings(tree) { - const gen = new GenMapping({ file: tree.map.file }); - const { sources: rootSources, map: map$1 } = tree; - const rootNames = map$1.names; - const rootMappings = decodedMappings(map$1); - for (let i$1 = 0; i$1 < rootMappings.length; i$1++) { - const segments = rootMappings[i$1]; - for (let j = 0; j < segments.length; j++) { - const segment = segments[j]; - const genCol = segment[0]; - let traced = SOURCELESS_MAPPING; - if (segment.length !== 1) { - const source2 = rootSources[segment[1]]; - traced = originalPositionFor$1(source2, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : ""); - if (traced == null) continue; - } - const { column, line, name, content, source, ignore } = traced; - maybeAddSegment(gen, i$1, genCol, source, line, column, name); - if (source && content != null) setSourceContent(gen, source, content); - if (ignore) setIgnore(gen, source, true); - } - } - return gen; -} -function originalPositionFor$1(source, line, column, name) { - if (!source.map) return SegmentObject(source.source, line, column, name, source.content, source.ignore); - const segment = traceSegment(source.map, line, column); - if (segment == null) return null; - if (segment.length === 1) return SOURCELESS_MAPPING; - return originalPositionFor$1(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name); -} -function asArray(value$1) { - if (Array.isArray(value$1)) return value$1; - return [value$1]; -} -function buildSourceMapTree(input, loader$1) { - const maps = asArray(input).map((m$2) => new TraceMap(m$2, "")); - const map$1 = maps.pop(); - for (let i$1 = 0; i$1 < maps.length; i$1++) if (maps[i$1].sources.length > 1) throw new Error(`Transformation map ${i$1} must have exactly one source file. -Did you specify these with the most recent transformation maps first?`); - let tree = build$2(map$1, loader$1, "", 0); - for (let i$1 = maps.length - 1; i$1 >= 0; i$1--) tree = MapSource(maps[i$1], [tree]); - return tree; -} -function build$2(map$1, loader$1, importer, importerDepth) { - const { resolvedSources, sourcesContent, ignoreList } = map$1; - const depth = importerDepth + 1; - return MapSource(map$1, resolvedSources.map((sourceFile, i$1) => { - const ctx = { - importer, - depth, - source: sourceFile || "", - content: void 0, - ignore: void 0 - }; - const sourceMap = loader$1(ctx.source, ctx); - const { source, content, ignore } = ctx; - if (sourceMap) return build$2(new TraceMap(sourceMap, source), loader$1, source, depth); - return OriginalSource(source, content !== void 0 ? content : sourcesContent ? sourcesContent[i$1] : null, ignore !== void 0 ? ignore : ignoreList ? ignoreList.includes(i$1) : false); - })); -} -var SourceMap$1 = class { - constructor(map$1, options$1) { - const out = options$1.decodedMappings ? toDecodedMap(map$1) : toEncodedMap(map$1); - this.version = out.version; - this.file = out.file; - this.mappings = out.mappings; - this.names = out.names; - this.ignoreList = out.ignoreList; - this.sourceRoot = out.sourceRoot; - this.sources = out.sources; - if (!options$1.excludeContent) this.sourcesContent = out.sourcesContent; - } - toString() { - return JSON.stringify(this); - } -}; -function remapping(input, loader$1, options$1) { - const opts = typeof options$1 === "object" ? options$1 : { - excludeContent: !!options$1, - decodedMappings: false - }; - return new SourceMap$1(traceMappings(buildSourceMapTree(input, loader$1)), opts); -} - -//#endregion -//#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js -var require_ms$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": ((exports, module) => { - /** - * Helpers. - */ - var s$1 = 1e3; - var m$1 = s$1 * 60; - var h$1 = m$1 * 60; - var d$1 = h$1 * 24; - var w = d$1 * 7; - var y$1 = d$1 * 365.25; - /** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - module.exports = function(val, options$1) { - options$1 = options$1 || {}; - var type = typeof val; - if (type === "string" && val.length > 0) return parse$15(val); - else if (type === "number" && isFinite(val)) return options$1.long ? fmtLong$1(val) : fmtShort$1(val); - throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val)); - }; - /** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - function parse$15(str) { - str = String(str); - if (str.length > 100) return; - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); - if (!match) return; - var n$2 = parseFloat(match[1]); - switch ((match[2] || "ms").toLowerCase()) { - case "years": - case "year": - case "yrs": - case "yr": - case "y": return n$2 * y$1; - case "weeks": - case "week": - case "w": return n$2 * w; - case "days": - case "day": - case "d": return n$2 * d$1; - case "hours": - case "hour": - case "hrs": - case "hr": - case "h": return n$2 * h$1; - case "minutes": - case "minute": - case "mins": - case "min": - case "m": return n$2 * m$1; - case "seconds": - case "second": - case "secs": - case "sec": - case "s": return n$2 * s$1; - case "milliseconds": - case "millisecond": - case "msecs": - case "msec": - case "ms": return n$2; - default: return; - } - } - /** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - function fmtShort$1(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d$1) return Math.round(ms / d$1) + "d"; - if (msAbs >= h$1) return Math.round(ms / h$1) + "h"; - if (msAbs >= m$1) return Math.round(ms / m$1) + "m"; - if (msAbs >= s$1) return Math.round(ms / s$1) + "s"; - return ms + "ms"; - } - /** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - function fmtLong$1(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d$1) return plural$1(ms, msAbs, d$1, "day"); - if (msAbs >= h$1) return plural$1(ms, msAbs, h$1, "hour"); - if (msAbs >= m$1) return plural$1(ms, msAbs, m$1, "minute"); - if (msAbs >= s$1) return plural$1(ms, msAbs, s$1, "second"); - return ms + " ms"; - } - /** - * Pluralization helper. - */ - function plural$1(ms, msAbs, n$2, name) { - var isPlural = msAbs >= n$2 * 1.5; - return Math.round(ms / n$2) + " " + name + (isPlural ? "s" : ""); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js -var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js": ((exports, module) => { - /** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - function setup(env$1) { - createDebug$1.debug = createDebug$1; - createDebug$1.default = createDebug$1; - createDebug$1.coerce = coerce$1; - createDebug$1.disable = disable$1; - createDebug$1.enable = enable$1; - createDebug$1.enabled = enabled$1; - createDebug$1.humanize = require_ms$1(); - createDebug$1.destroy = destroy$1; - Object.keys(env$1).forEach((key) => { - createDebug$1[key] = env$1[key]; - }); - /** - * The currently active debug mode names, and names to skip. - */ - createDebug$1.names = []; - createDebug$1.skips = []; - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug$1.formatters = {}; - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor$1(namespace) { - let hash$1 = 0; - for (let i$1 = 0; i$1 < namespace.length; i$1++) { - hash$1 = (hash$1 << 5) - hash$1 + namespace.charCodeAt(i$1); - hash$1 |= 0; - } - return createDebug$1.colors[Math.abs(hash$1) % createDebug$1.colors.length]; - } - createDebug$1.selectColor = selectColor$1; - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug$1(namespace) { - let prevTime$1; - let enableOverride = null; - let namespacesCache; - let enabledCache; - function debug$19(...args) { - if (!debug$19.enabled) return; - const self$1 = debug$19; - const curr = Number(/* @__PURE__ */ new Date()); - self$1.diff = curr - (prevTime$1 || curr); - self$1.prev = prevTime$1; - self$1.curr = curr; - prevTime$1 = curr; - args[0] = createDebug$1.coerce(args[0]); - if (typeof args[0] !== "string") args.unshift("%O"); - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format$3) => { - if (match === "%%") return "%"; - index++; - const formatter = createDebug$1.formatters[format$3]; - if (typeof formatter === "function") { - const val = args[index]; - match = formatter.call(self$1, val); - args.splice(index, 1); - index--; - } - return match; - }); - createDebug$1.formatArgs.call(self$1, args); - (self$1.log || createDebug$1.log).apply(self$1, args); - } - debug$19.namespace = namespace; - debug$19.useColors = createDebug$1.useColors(); - debug$19.color = createDebug$1.selectColor(namespace); - debug$19.extend = extend; - debug$19.destroy = createDebug$1.destroy; - Object.defineProperty(debug$19, "enabled", { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) return enableOverride; - if (namespacesCache !== createDebug$1.namespaces) { - namespacesCache = createDebug$1.namespaces; - enabledCache = createDebug$1.enabled(namespace); - } - return enabledCache; - }, - set: (v) => { - enableOverride = v; - } - }); - if (typeof createDebug$1.init === "function") createDebug$1.init(debug$19); - return debug$19; - } - function extend(namespace, delimiter) { - const newDebug = createDebug$1(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable$1(namespaces) { - createDebug$1.save(namespaces); - createDebug$1.namespaces = namespaces; - createDebug$1.names = []; - createDebug$1.skips = []; - const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean); - for (const ns of split) if (ns[0] === "-") createDebug$1.skips.push(ns.slice(1)); - else createDebug$1.names.push(ns); - } - /** - * Checks if the given string matches a namespace template, honoring - * asterisks as wildcards. - * - * @param {String} search - * @param {String} template - * @return {Boolean} - */ - function matchesTemplate(search, template) { - let searchIndex = 0; - let templateIndex = 0; - let starIndex = -1; - let matchIndex = 0; - while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") { - starIndex = templateIndex; - matchIndex = searchIndex; - templateIndex++; - } else { - searchIndex++; - templateIndex++; - } - else if (starIndex !== -1) { - templateIndex = starIndex + 1; - matchIndex++; - searchIndex = matchIndex; - } else return false; - while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++; - return templateIndex === template.length; - } - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable$1() { - const namespaces = [...createDebug$1.names, ...createDebug$1.skips.map((namespace) => "-" + namespace)].join(","); - createDebug$1.enable(""); - return namespaces; - } - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled$1(name) { - for (const skip of createDebug$1.skips) if (matchesTemplate(name, skip)) return false; - for (const ns of createDebug$1.names) if (matchesTemplate(name, ns)) return true; - return false; - } - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce$1(val) { - if (val instanceof Error) return val.stack || val.message; - return val; - } - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy$1() { - console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); - } - createDebug$1.enable(createDebug$1.load()); - return createDebug$1; - } - module.exports = setup; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js -var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js": ((exports, module) => { - /** - * Module dependencies. - */ - const tty$1 = __require("tty"); - const util$2 = __require("util"); - /** - * This is the Node.js implementation of `debug()`. - */ - exports.init = init$2; - exports.log = log$3; - exports.formatArgs = formatArgs$1; - exports.save = save$1; - exports.load = load$2; - exports.useColors = useColors$1; - exports.destroy = util$2.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); - /** - * Colors. - */ - exports.colors = [ - 6, - 2, - 3, - 4, - 5, - 1 - ]; - try { - const supportsColor = __require("supports-color"); - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } catch (error$1) {} - /** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - exports.inspectOpts = Object.keys(process.env).filter((key) => { - return /^debug_/i.test(key); - }).reduce((obj, key) => { - const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) val = true; - else if (/^(no|off|false|disabled)$/i.test(val)) val = false; - else if (val === "null") val = null; - else val = Number(val); - obj[prop] = val; - return obj; - }, {}); - /** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - function useColors$1() { - return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty$1.isatty(process.stderr.fd); - } - /** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - function formatArgs$1(args) { - const { namespace: name, useColors: useColors$2 } = this; - if (useColors$2) { - const c = this.color; - const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - args[0] = prefix + args[0].split("\n").join("\n" + prefix); - args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m"); - } else args[0] = getDate() + name + " " + args[0]; - } - function getDate() { - if (exports.inspectOpts.hideDate) return ""; - return (/* @__PURE__ */ new Date()).toISOString() + " "; - } - /** - * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. - */ - function log$3(...args) { - return process.stderr.write(util$2.formatWithOptions(exports.inspectOpts, ...args) + "\n"); - } - /** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ - function save$1(namespaces) { - if (namespaces) process.env.DEBUG = namespaces; - else delete process.env.DEBUG; - } - /** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - function load$2() { - return process.env.DEBUG; - } - /** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - function init$2(debug$19) { - debug$19.inspectOpts = {}; - const keys = Object.keys(exports.inspectOpts); - for (let i$1 = 0; i$1 < keys.length; i$1++) debug$19.inspectOpts[keys[i$1]] = exports.inspectOpts[keys[i$1]]; - } - module.exports = require_common$1()(exports); - const { formatters } = module.exports; - /** - * Map %o to `util.inspect()`, all on a single line. - */ - formatters.o = function(v) { - this.inspectOpts.colors = this.useColors; - return util$2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); - }; - /** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - formatters.O = function(v) { - this.inspectOpts.colors = this.useColors; - return util$2.inspect(v, this.inspectOpts); - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/estree-walker@2.0.2/node_modules/estree-walker/dist/esm/estree-walker.js -/** @typedef { import('estree').BaseNode} BaseNode */ -/** @typedef {{ -skip: () => void; -remove: () => void; -replace: (node: BaseNode) => void; -}} WalkerContext */ -var WalkerBase$1 = class { - constructor() { - /** @type {boolean} */ - this.should_skip = false; - /** @type {boolean} */ - this.should_remove = false; - /** @type {BaseNode | null} */ - this.replacement = null; - /** @type {WalkerContext} */ - this.context = { - skip: () => this.should_skip = true, - remove: () => this.should_remove = true, - replace: (node) => this.replacement = node - }; - } - /** - * - * @param {any} parent - * @param {string} prop - * @param {number} index - * @param {BaseNode} node - */ - replace(parent, prop, index, node) { - if (parent) if (index !== null) parent[prop][index] = node; - else parent[prop] = node; - } - /** - * - * @param {any} parent - * @param {string} prop - * @param {number} index - */ - remove(parent, prop, index) { - if (parent) if (index !== null) parent[prop].splice(index, 1); - else delete parent[prop]; - } -}; -/** @typedef { import('estree').BaseNode} BaseNode */ -/** @typedef { import('./walker.js').WalkerContext} WalkerContext */ -/** @typedef {( -* this: WalkerContext, -* node: BaseNode, -* parent: BaseNode, -* key: string, -* index: number -* ) => void} SyncHandler */ -var SyncWalker$1 = class extends WalkerBase$1 { - /** - * - * @param {SyncHandler} enter - * @param {SyncHandler} leave - */ - constructor(enter, leave) { - super(); - /** @type {SyncHandler} */ - this.enter = enter; - /** @type {SyncHandler} */ - this.leave = leave; - } - /** - * - * @param {BaseNode} node - * @param {BaseNode} parent - * @param {string} [prop] - * @param {number} [index] - * @returns {BaseNode} - */ - visit(node, parent, prop, index) { - if (node) { - if (this.enter) { - const _should_skip = this.should_skip; - const _should_remove = this.should_remove; - const _replacement = this.replacement; - this.should_skip = false; - this.should_remove = false; - this.replacement = null; - this.enter.call(this.context, node, parent, prop, index); - if (this.replacement) { - node = this.replacement; - this.replace(parent, prop, index, node); - } - if (this.should_remove) this.remove(parent, prop, index); - const skipped = this.should_skip; - const removed = this.should_remove; - this.should_skip = _should_skip; - this.should_remove = _should_remove; - this.replacement = _replacement; - if (skipped) return node; - if (removed) return null; - } - for (const key in node) { - const value$1 = node[key]; - if (typeof value$1 !== "object") continue; - else if (Array.isArray(value$1)) { - for (let i$1 = 0; i$1 < value$1.length; i$1 += 1) if (value$1[i$1] !== null && typeof value$1[i$1].type === "string") { - if (!this.visit(value$1[i$1], node, key, i$1)) i$1--; - } - } else if (value$1 !== null && typeof value$1.type === "string") this.visit(value$1, node, key, null); - } - if (this.leave) { - const _replacement = this.replacement; - const _should_remove = this.should_remove; - this.replacement = null; - this.should_remove = false; - this.leave.call(this.context, node, parent, prop, index); - if (this.replacement) { - node = this.replacement; - this.replace(parent, prop, index, node); - } - if (this.should_remove) this.remove(parent, prop, index); - const removed = this.should_remove; - this.replacement = _replacement; - this.should_remove = _should_remove; - if (removed) return null; - } - } - return node; - } -}; -/** @typedef { import('estree').BaseNode} BaseNode */ -/** @typedef { import('./sync.js').SyncHandler} SyncHandler */ -/** @typedef { import('./async.js').AsyncHandler} AsyncHandler */ -/** -* -* @param {BaseNode} ast -* @param {{ -* enter?: SyncHandler -* leave?: SyncHandler -* }} walker -* @returns {BaseNode} -*/ -function walk$2(ast, { enter, leave }) { - return new SyncWalker$1(enter, leave).visit(ast, null); -} - -//#endregion -//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.43.0/node_modules/@rollup/pluginutils/dist/es/index.js -const extractors = { - ArrayPattern(names, param) { - for (const element of param.elements) if (element) extractors[element.type](names, element); - }, - AssignmentPattern(names, param) { - extractors[param.left.type](names, param.left); - }, - Identifier(names, param) { - names.push(param.name); - }, - MemberExpression() {}, - ObjectPattern(names, param) { - for (const prop of param.properties) if (prop.type === "RestElement") extractors.RestElement(names, prop); - else extractors[prop.value.type](names, prop.value); - }, - RestElement(names, param) { - extractors[param.argument.type](names, param.argument); - } -}; -const extractAssignedNames = function extractAssignedNames$1(param) { - const names = []; - extractors[param.type](names, param); - return names; -}; -const blockDeclarations = { - const: true, - let: true -}; -var Scope = class { - constructor(options$1 = {}) { - this.parent = options$1.parent; - this.isBlockScope = !!options$1.block; - this.declarations = Object.create(null); - if (options$1.params) options$1.params.forEach((param) => { - extractAssignedNames(param).forEach((name) => { - this.declarations[name] = true; - }); - }); - } - addDeclaration(node, isBlockDeclaration, isVar) { - if (!isBlockDeclaration && this.isBlockScope) this.parent.addDeclaration(node, isBlockDeclaration, isVar); - else if (node.id) extractAssignedNames(node.id).forEach((name) => { - this.declarations[name] = true; - }); - } - contains(name) { - return this.declarations[name] || (this.parent ? this.parent.contains(name) : false); - } -}; -const attachScopes = function attachScopes$1(ast, propertyName = "scope") { - let scope = new Scope(); - walk$2(ast, { - enter(n$2, parent) { - const node = n$2; - if (/(?:Function|Class)Declaration/.test(node.type)) scope.addDeclaration(node, false, false); - if (node.type === "VariableDeclaration") { - const { kind } = node; - const isBlockDeclaration = blockDeclarations[kind]; - node.declarations.forEach((declaration) => { - scope.addDeclaration(declaration, isBlockDeclaration, true); - }); - } - let newScope; - if (node.type.includes("Function")) { - const func = node; - newScope = new Scope({ - parent: scope, - block: false, - params: func.params - }); - if (func.type === "FunctionExpression" && func.id) newScope.addDeclaration(func, false, false); - } - if (/For(?:In|Of)?Statement/.test(node.type)) newScope = new Scope({ - parent: scope, - block: true - }); - if (node.type === "BlockStatement" && !parent.type.includes("Function")) newScope = new Scope({ - parent: scope, - block: true - }); - if (node.type === "CatchClause") newScope = new Scope({ - parent: scope, - params: node.param ? [node.param] : [], - block: true - }); - if (newScope) { - Object.defineProperty(node, propertyName, { - value: newScope, - configurable: true - }); - scope = newScope; - } - }, - leave(n$2) { - if (n$2[propertyName]) scope = scope.parent; - } - }); - return scope; -}; -function isArray(arg) { - return Array.isArray(arg); -} -function ensureArray(thing) { - if (isArray(thing)) return thing; - if (thing == null) return []; - return [thing]; -} -const normalizePathRegExp = new RegExp(`\\${win32.sep}`, "g"); -const normalizePath$3 = function normalizePath$5(filename) { - return filename.replace(normalizePathRegExp, posix$1.sep); -}; -function getMatcherString$1(id, resolutionBase) { - if (resolutionBase === false || isAbsolute$1(id) || id.startsWith("**")) return normalizePath$3(id); - const basePath = normalizePath$3(resolve$1(resolutionBase || "")).replace(/[-^$*+?.()|[\]{}]/g, "\\$&"); - return posix$1.join(basePath, normalizePath$3(id)); -} -const createFilter$2 = function createFilter$3(include, exclude, options$1) { - const resolutionBase = options$1 && options$1.resolve; - const getMatcher = (id) => id instanceof RegExp ? id : { test: (what) => { - return picomatch(getMatcherString$1(id, resolutionBase), { dot: true })(what); - } }; - const includeMatchers = ensureArray(include).map(getMatcher); - const excludeMatchers = ensureArray(exclude).map(getMatcher); - if (!includeMatchers.length && !excludeMatchers.length) return (id) => typeof id === "string" && !id.includes("\0"); - return function result(id) { - if (typeof id !== "string") return false; - if (id.includes("\0")) return false; - const pathId = normalizePath$3(id); - for (let i$1 = 0; i$1 < excludeMatchers.length; ++i$1) { - const matcher = excludeMatchers[i$1]; - if (matcher instanceof RegExp) matcher.lastIndex = 0; - if (matcher.test(pathId)) return false; - } - for (let i$1 = 0; i$1 < includeMatchers.length; ++i$1) { - const matcher = includeMatchers[i$1]; - if (matcher instanceof RegExp) matcher.lastIndex = 0; - if (matcher.test(pathId)) return true; - } - return !includeMatchers.length; - }; -}; -const forbiddenIdentifiers = new Set(`break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl`.split(" ")); -forbiddenIdentifiers.add(""); -const makeLegalIdentifier = function makeLegalIdentifier$1(str) { - let identifier = str.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, "_"); - if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) identifier = `_${identifier}`; - return identifier || "_"; -}; -function stringify$4(obj) { - return (JSON.stringify(obj) || "undefined").replace(/[\u2028\u2029]/g, (char) => `\\u${`000${char.charCodeAt(0).toString(16)}`.slice(-4)}`); -} -function serializeArray(arr, indent, baseIndent) { - let output = "["; - const separator = indent ? `\n${baseIndent}${indent}` : ""; - for (let i$1 = 0; i$1 < arr.length; i$1++) { - const key = arr[i$1]; - output += `${i$1 > 0 ? "," : ""}${separator}${serialize(key, indent, baseIndent + indent)}`; - } - return `${output}${indent ? `\n${baseIndent}` : ""}]`; -} -function serializeObject(obj, indent, baseIndent) { - let output = "{"; - const separator = indent ? `\n${baseIndent}${indent}` : ""; - const entries = Object.entries(obj); - for (let i$1 = 0; i$1 < entries.length; i$1++) { - const [key, value$1] = entries[i$1]; - const stringKey = makeLegalIdentifier(key) === key ? key : stringify$4(key); - output += `${i$1 > 0 ? "," : ""}${separator}${stringKey}:${indent ? " " : ""}${serialize(value$1, indent, baseIndent + indent)}`; - } - return `${output}${indent ? `\n${baseIndent}` : ""}}`; -} -function serialize(obj, indent, baseIndent) { - if (typeof obj === "object" && obj !== null) { - if (Array.isArray(obj)) return serializeArray(obj, indent, baseIndent); - if (obj instanceof Date) return `new Date(${obj.getTime()})`; - if (obj instanceof RegExp) return obj.toString(); - return serializeObject(obj, indent, baseIndent); - } - if (typeof obj === "number") { - if (obj === Infinity) return "Infinity"; - if (obj === -Infinity) return "-Infinity"; - if (obj === 0) return 1 / obj === Infinity ? "0" : "-0"; - if (obj !== obj) return "NaN"; - } - if (typeof obj === "symbol") { - const key = Symbol.keyFor(obj); - if (key !== void 0) return `Symbol.for(${stringify$4(key)})`; - } - if (typeof obj === "bigint") return `${obj}n`; - return stringify$4(obj); -} -const hasStringIsWellFormed = "isWellFormed" in String.prototype; -function isWellFormedString(input) { - if (hasStringIsWellFormed) return input.isWellFormed(); - return !/\p{Surrogate}/u.test(input); -} -const dataToEsm = function dataToEsm$1(data, options$1 = {}) { - var _a, _b; - const t$1 = options$1.compact ? "" : "indent" in options$1 ? options$1.indent : " "; - const _ = options$1.compact ? "" : " "; - const n$2 = options$1.compact ? "" : "\n"; - const declarationType = options$1.preferConst ? "const" : "var"; - if (options$1.namedExports === false || typeof data !== "object" || Array.isArray(data) || data instanceof Date || data instanceof RegExp || data === null) { - const code = serialize(data, options$1.compact ? null : t$1, ""); - return `export default${_ || (/^[{[\-\/]/.test(code) ? "" : " ")}${code};`; - } - let maxUnderbarPrefixLength = 0; - for (const key of Object.keys(data)) { - const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0; - if (underbarPrefixLength > maxUnderbarPrefixLength) maxUnderbarPrefixLength = underbarPrefixLength; - } - const arbitraryNamePrefix = `${"_".repeat(maxUnderbarPrefixLength + 1)}arbitrary`; - let namedExportCode = ""; - const defaultExportRows = []; - const arbitraryNameExportRows = []; - for (const [key, value$1] of Object.entries(data)) if (key === makeLegalIdentifier(key)) { - if (options$1.objectShorthand) defaultExportRows.push(key); - else defaultExportRows.push(`${key}:${_}${key}`); - namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(value$1, options$1.compact ? null : t$1, "")};${n$2}`; - } else { - defaultExportRows.push(`${stringify$4(key)}:${_}${serialize(value$1, options$1.compact ? null : t$1, "")}`); - if (options$1.includeArbitraryNames && isWellFormedString(key)) { - const variableName = `${arbitraryNamePrefix}${arbitraryNameExportRows.length}`; - namedExportCode += `${declarationType} ${variableName}${_}=${_}${serialize(value$1, options$1.compact ? null : t$1, "")};${n$2}`; - arbitraryNameExportRows.push(`${variableName} as ${JSON.stringify(key)}`); - } - } - const arbitraryExportCode = arbitraryNameExportRows.length > 0 ? `export${_}{${n$2}${t$1}${arbitraryNameExportRows.join(`,${n$2}${t$1}`)}${n$2}};${n$2}` : ""; - const defaultExportCode = `export default${_}{${n$2}${t$1}${defaultExportRows.join(`,${n$2}${t$1}`)}${n$2}};${n$2}`; - return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`; -}; - -//#endregion -//#region src/shared/builtin.ts -function createIsBuiltin(builtins) { - const plainBuiltinsSet = new Set(builtins.filter((builtin) => typeof builtin === "string")); - const regexBuiltins = builtins.filter((builtin) => typeof builtin !== "string"); - return (id) => plainBuiltinsSet.has(id) || regexBuiltins.some((regexp) => regexp.test(id)); -} - -//#endregion -//#region src/node/packages.ts -let pnp; -if (process.versions.pnp) try { - pnp = createRequire( - /** #__KEEP__ */ - import.meta.url - )("pnpapi"); -} catch {} -function invalidatePackageData(packageCache, pkgPath) { - const pkgDir = normalizePath(path.dirname(pkgPath)); - packageCache.forEach((pkg, cacheKey) => { - if (pkg.dir === pkgDir) packageCache.delete(cacheKey); - }); -} -function resolvePackageData(pkgName, basedir, preserveSymlinks = false, packageCache) { - if (pnp) { - const cacheKey = getRpdCacheKey(pkgName, basedir, preserveSymlinks); - if (packageCache?.has(cacheKey)) return packageCache.get(cacheKey); - try { - const pkg = pnp.resolveToUnqualified(pkgName, basedir, { considerBuiltins: false }); - if (!pkg) return null; - const pkgData = loadPackageData(path.join(pkg, "package.json")); - packageCache?.set(cacheKey, pkgData); - return pkgData; - } catch { - return null; - } - } - const originalBasedir = basedir; - while (basedir) { - if (packageCache) { - const cached = getRpdCache(packageCache, pkgName, basedir, originalBasedir, preserveSymlinks); - if (cached) return cached; - } - const pkg = path.join(basedir, "node_modules", pkgName, "package.json"); - try { - if (fs.existsSync(pkg)) { - const pkgData = loadPackageData(preserveSymlinks ? pkg : safeRealpathSync(pkg)); - if (packageCache) setRpdCache(packageCache, pkgData, pkgName, basedir, originalBasedir, preserveSymlinks); - return pkgData; - } - } catch {} - const nextBasedir = path.dirname(basedir); - if (nextBasedir === basedir) break; - basedir = nextBasedir; - } - return null; -} -function findNearestPackageData(basedir, packageCache) { - const originalBasedir = basedir; - while (basedir) { - if (packageCache) { - const cached = getFnpdCache(packageCache, basedir, originalBasedir); - if (cached) return cached; - } - const pkgPath = path.join(basedir, "package.json"); - if (tryStatSync(pkgPath)?.isFile()) try { - const pkgData = loadPackageData(pkgPath); - if (packageCache) setFnpdCache(packageCache, pkgData, basedir, originalBasedir); - return pkgData; - } catch {} - const nextBasedir = path.dirname(basedir); - if (nextBasedir === basedir) break; - basedir = nextBasedir; - } - return null; -} -function findNearestMainPackageData(basedir, packageCache) { - const nearestPackage = findNearestPackageData(basedir, packageCache); - return nearestPackage && (nearestPackage.data.name ? nearestPackage : findNearestMainPackageData(path.dirname(nearestPackage.dir), packageCache)); -} -function loadPackageData(pkgPath) { - const data = JSON.parse(stripBomTag(fs.readFileSync(pkgPath, "utf-8"))); - const pkgDir = normalizePath(path.dirname(pkgPath)); - const { sideEffects } = data; - let hasSideEffects; - if (typeof sideEffects === "boolean") hasSideEffects = () => sideEffects; - else if (Array.isArray(sideEffects)) if (sideEffects.length <= 0) hasSideEffects = () => false; - else hasSideEffects = createFilter(sideEffects.map((sideEffect) => { - if (sideEffect.includes("/")) return sideEffect; - return `**/${sideEffect}`; - }), null, { resolve: pkgDir }); - else hasSideEffects = () => null; - const resolvedCache = {}; - return { - dir: pkgDir, - data, - hasSideEffects, - setResolvedCache(key, entry, options$1) { - resolvedCache[getResolveCacheKey(key, options$1)] = entry; - }, - getResolvedCache(key, options$1) { - return resolvedCache[getResolveCacheKey(key, options$1)]; - } - }; -} -function getResolveCacheKey(key, options$1) { - return [ - key, - options$1.isRequire ? "1" : "0", - options$1.conditions.join("_"), - options$1.extensions.join("_"), - options$1.mainFields.join("_") - ].join("|"); -} -function findNearestNodeModules(basedir) { - while (basedir) { - const pkgPath = path.join(basedir, "node_modules"); - if (tryStatSync(pkgPath)?.isDirectory()) return pkgPath; - const nextBasedir = path.dirname(basedir); - if (nextBasedir === basedir) break; - basedir = nextBasedir; - } - return null; -} -function watchPackageDataPlugin(packageCache) { - const watchQueue = /* @__PURE__ */ new Set(); - const watchedDirs = /* @__PURE__ */ new Set(); - const watchFileStub = (id) => { - watchQueue.add(id); - }; - let watchFile = watchFileStub; - const setPackageData = packageCache.set.bind(packageCache); - packageCache.set = (id, pkg) => { - if (!isInNodeModules(pkg.dir) && !watchedDirs.has(pkg.dir)) { - watchedDirs.add(pkg.dir); - watchFile(path.join(pkg.dir, "package.json")); - } - return setPackageData(id, pkg); - }; - return { - name: "vite:watch-package-data", - buildStart() { - watchFile = this.addWatchFile.bind(this); - watchQueue.forEach(watchFile); - watchQueue.clear(); - }, - buildEnd() { - watchFile = watchFileStub; - }, - watchChange(id) { - if (id.endsWith("/package.json")) invalidatePackageData(packageCache, path.normalize(id)); - } - }; -} -/** -* Get cached `resolvePackageData` value based on `basedir`. When one is found, -* and we've already traversed some directories between `basedir` and `originalBasedir`, -* we cache the value for those in-between directories as well. -* -* This makes it so the fs is only read once for a shared `basedir`. -*/ -function getRpdCache(packageCache, pkgName, basedir, originalBasedir, preserveSymlinks) { - const cacheKey = getRpdCacheKey(pkgName, basedir, preserveSymlinks); - const pkgData = packageCache.get(cacheKey); - if (pkgData) { - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getRpdCacheKey(pkgName, dir, preserveSymlinks), pkgData); - }); - return pkgData; - } -} -function setRpdCache(packageCache, pkgData, pkgName, basedir, originalBasedir, preserveSymlinks) { - packageCache.set(getRpdCacheKey(pkgName, basedir, preserveSymlinks), pkgData); - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getRpdCacheKey(pkgName, dir, preserveSymlinks), pkgData); - }); -} -function getRpdCacheKey(pkgName, basedir, preserveSymlinks) { - return `rpd_${pkgName}_${basedir}_${preserveSymlinks}`; -} -/** -* Get cached `findNearestPackageData` value based on `basedir`. When one is found, -* and we've already traversed some directories between `basedir` and `originalBasedir`, -* we cache the value for those in-between directories as well. -* -* This makes it so the fs is only read once for a shared `basedir`. -*/ -function getFnpdCache(packageCache, basedir, originalBasedir) { - const cacheKey = getFnpdCacheKey(basedir); - const pkgData = packageCache.get(cacheKey); - if (pkgData) { - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getFnpdCacheKey(dir), pkgData); - }); - return pkgData; - } -} -function setFnpdCache(packageCache, pkgData, basedir, originalBasedir) { - packageCache.set(getFnpdCacheKey(basedir), pkgData); - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getFnpdCacheKey(dir), pkgData); - }); -} -function getFnpdCacheKey(basedir) { - return `fnpd_${basedir}`; -} -/** -* Traverse between `longerDir` (inclusive) and `shorterDir` (exclusive) and call `cb` for each dir. -* @param longerDir Longer dir path, e.g. `/User/foo/bar/baz` -* @param shorterDir Shorter dir path, e.g. `/User/foo` -*/ -function traverseBetweenDirs(longerDir, shorterDir, cb) { - while (longerDir !== shorterDir) { - cb(longerDir); - longerDir = path.dirname(longerDir); - } -} - -//#endregion -//#region src/node/utils.ts -var import_picocolors$33 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -var import_node = /* @__PURE__ */ __toESM(require_node$1(), 1); -const createFilter = createFilter$2; -const replaceSlashOrColonRE = /[/:]/g; -const replaceDotRE = /\./g; -const replaceNestedIdRE = /\s*>\s*/g; -const replaceHashRE = /#/g; -const flattenId = (id) => { - return limitFlattenIdLength(id.replace(replaceSlashOrColonRE, "_").replace(replaceDotRE, "__").replace(replaceNestedIdRE, "___").replace(replaceHashRE, "____")); -}; -const FLATTEN_ID_HASH_LENGTH = 8; -const FLATTEN_ID_MAX_FILE_LENGTH = 170; -const limitFlattenIdLength = (id, limit = FLATTEN_ID_MAX_FILE_LENGTH) => { - if (id.length <= limit) return id; - return id.slice(0, limit - (FLATTEN_ID_HASH_LENGTH + 1)) + "_" + getHash(id); -}; -const normalizeId = (id) => id.replace(replaceNestedIdRE, " > "); -const NODE_BUILTIN_NAMESPACE = "node:"; -const BUN_BUILTIN_NAMESPACE = "bun:"; -const nodeBuiltins = builtinModules.filter((id) => !id.includes(":")); -const isBuiltinCache = /* @__PURE__ */ new WeakMap(); -function isBuiltin(builtins, id) { - let isBuiltin$1 = isBuiltinCache.get(builtins); - if (!isBuiltin$1) { - isBuiltin$1 = createIsBuiltin(builtins); - isBuiltinCache.set(builtins, isBuiltin$1); - } - return isBuiltin$1(id); -} -const nodeLikeBuiltins = [ - ...nodeBuiltins, - /* @__PURE__ */ new RegExp(`^${NODE_BUILTIN_NAMESPACE}`), - /* @__PURE__ */ new RegExp(`^${BUN_BUILTIN_NAMESPACE}`) -]; -function isNodeLikeBuiltin(id) { - return isBuiltin(nodeLikeBuiltins, id); -} -function isNodeBuiltin(id) { - if (id.startsWith(NODE_BUILTIN_NAMESPACE)) return true; - return nodeBuiltins.includes(id); -} -function isInNodeModules(id) { - return id.includes("node_modules"); -} -function moduleListContains(moduleList, id) { - return moduleList?.some((m$2) => m$2 === id || id.startsWith(withTrailingSlash(m$2))); -} -function isOptimizable(id, optimizeDeps$1) { - const { extensions: extensions$1 } = optimizeDeps$1; - return OPTIMIZABLE_ENTRY_RE.test(id) || (extensions$1?.some((ext) => id.endsWith(ext)) ?? false); -} -const bareImportRE = /^(?![a-zA-Z]:)[\w@](?!.*:\/\/)/; -const deepImportRE = /^([^@][^/]*)\/|^(@[^/]+\/[^/]+)\//; -const _dirname = path.dirname(fileURLToPath( - /** #__KEEP__ */ - import.meta.url -)); -const rollupVersion = resolvePackageData("rollup", _dirname, true)?.data.version ?? ""; -const filter = process.env.VITE_DEBUG_FILTER; -const DEBUG = process.env.DEBUG; -function createDebugger(namespace, options$1 = {}) { - const log$4 = (0, import_node.default)(namespace); - const { onlyWhenFocused, depth } = options$1; - if (depth && log$4.inspectOpts && log$4.inspectOpts.depth == null) log$4.inspectOpts.depth = options$1.depth; - let enabled$1 = log$4.enabled; - if (enabled$1 && onlyWhenFocused) enabled$1 = !!DEBUG?.includes(typeof onlyWhenFocused === "string" ? onlyWhenFocused : namespace); - if (enabled$1) return (...args) => { - if (!filter || args.some((a) => a?.includes?.(filter))) log$4(...args); - }; -} -function testCaseInsensitiveFS() { - if (!CLIENT_ENTRY.endsWith("client.mjs")) throw new Error(`cannot test case insensitive FS, CLIENT_ENTRY const doesn't contain client.mjs`); - if (!fs.existsSync(CLIENT_ENTRY)) throw new Error("cannot test case insensitive FS, CLIENT_ENTRY does not point to an existing file: " + CLIENT_ENTRY); - return fs.existsSync(CLIENT_ENTRY.replace("client.mjs", "cLiEnT.mjs")); -} -const isCaseInsensitiveFS = testCaseInsensitiveFS(); -const VOLUME_RE = /^[A-Z]:/i; -function normalizePath(id) { - return path.posix.normalize(isWindows ? slash(id) : id); -} -function fsPathFromId(id) { - const fsPath = normalizePath(id.startsWith(FS_PREFIX) ? id.slice(FS_PREFIX.length) : id); - return fsPath[0] === "/" || VOLUME_RE.test(fsPath) ? fsPath : `/${fsPath}`; -} -function fsPathFromUrl(url$3) { - return fsPathFromId(cleanUrl(url$3)); -} -/** -* Check if dir is a parent of file -* -* Warning: parameters are not validated, only works with normalized absolute paths -* -* @param dir - normalized absolute path -* @param file - normalized absolute path -* @returns true if dir is a parent of file -*/ -function isParentDirectory(dir, file) { - dir = withTrailingSlash(dir); - return file.startsWith(dir) || isCaseInsensitiveFS && file.toLowerCase().startsWith(dir.toLowerCase()); -} -/** -* Check if 2 file name are identical -* -* Warning: parameters are not validated, only works with normalized absolute paths -* -* @param file1 - normalized absolute path -* @param file2 - normalized absolute path -* @returns true if both files url are identical -*/ -function isSameFilePath(file1, file2) { - return file1 === file2 || isCaseInsensitiveFS && file1.toLowerCase() === file2.toLowerCase(); -} -const externalRE = /^([a-z]+:)?\/\//; -const isExternalUrl = (url$3) => externalRE.test(url$3); -const dataUrlRE = /^\s*data:/i; -const isDataUrl = (url$3) => dataUrlRE.test(url$3); -const virtualModuleRE = /^virtual-module:.*/; -const virtualModulePrefix = "virtual-module:"; -const knownJsSrcRE = /\.(?:[jt]sx?|m[jt]s|vue|marko|svelte|astro|imba|mdx)(?:$|\?)/; -const isJSRequest = (url$3) => { - url$3 = cleanUrl(url$3); - if (knownJsSrcRE.test(url$3)) return true; - if (!path.extname(url$3) && url$3[url$3.length - 1] !== "/") return true; - return false; -}; -const isCSSRequest = (request) => CSS_LANGS_RE.test(request); -const importQueryRE = /(\?|&)import=?(?:&|$)/; -const directRequestRE$1 = /(\?|&)direct=?(?:&|$)/; -const internalPrefixes = [ - FS_PREFIX, - VALID_ID_PREFIX, - CLIENT_PUBLIC_PATH, - ENV_PUBLIC_PATH -]; -const InternalPrefixRE = /* @__PURE__ */ new RegExp(`^(?:${internalPrefixes.join("|")})`); -const trailingSeparatorRE = /[?&]$/; -const isImportRequest = (url$3) => importQueryRE.test(url$3); -const isInternalRequest = (url$3) => InternalPrefixRE.test(url$3); -function removeImportQuery(url$3) { - return url$3.replace(importQueryRE, "$1").replace(trailingSeparatorRE, ""); -} -function removeDirectQuery(url$3) { - return url$3.replace(directRequestRE$1, "$1").replace(trailingSeparatorRE, ""); -} -const urlRE = /(\?|&)url(?:&|$)/; -const rawRE = /(\?|&)raw(?:&|$)/; -function removeUrlQuery(url$3) { - return url$3.replace(urlRE, "$1").replace(trailingSeparatorRE, ""); -} -function injectQuery(url$3, queryToInject) { - const { file, postfix } = splitFileAndPostfix(url$3); - return `${isWindows ? slash(file) : file}?${queryToInject}${postfix[0] === "?" ? `&${postfix.slice(1)}` : postfix}`; -} -const timestampRE = /\bt=\d{13}&?\b/; -function removeTimestampQuery(url$3) { - return url$3.replace(timestampRE, "").replace(trailingSeparatorRE, ""); -} -async function asyncReplace(input, re, replacer) { - let match; - let remaining = input; - let rewritten = ""; - while (match = re.exec(remaining)) { - rewritten += remaining.slice(0, match.index); - rewritten += await replacer(match); - remaining = remaining.slice(match.index + match[0].length); - } - rewritten += remaining; - return rewritten; -} -function timeFrom(start, subtract = 0) { - const time = performance$1.now() - start - subtract; - const timeString = (time.toFixed(2) + `ms`).padEnd(5, " "); - if (time < 10) return import_picocolors$33.default.green(timeString); - else if (time < 50) return import_picocolors$33.default.yellow(timeString); - else return import_picocolors$33.default.red(timeString); -} -/** -* pretty url for logging. -*/ -function prettifyUrl(url$3, root) { - url$3 = removeTimestampQuery(url$3); - const isAbsoluteFile = url$3.startsWith(root); - if (isAbsoluteFile || url$3.startsWith(FS_PREFIX)) { - const file = path.posix.relative(root, isAbsoluteFile ? url$3 : fsPathFromId(url$3)); - return import_picocolors$33.default.dim(file); - } else return import_picocolors$33.default.dim(url$3); -} -function isObject(value$1) { - return Object.prototype.toString.call(value$1) === "[object Object]"; -} -function isDefined(value$1) { - return value$1 != null; -} -function tryStatSync(file) { - try { - return fs.statSync(file, { throwIfNoEntry: false }); - } catch {} -} -function lookupFile(dir, fileNames) { - while (dir) { - for (const fileName of fileNames) { - const fullPath = path.join(dir, fileName); - if (tryStatSync(fullPath)?.isFile()) return fullPath; - } - const parentDir$1 = path.dirname(dir); - if (parentDir$1 === dir) return; - dir = parentDir$1; - } -} -function isFilePathESM(filePath, packageCache) { - if (/\.m[jt]s$/.test(filePath)) return true; - else if (/\.c[jt]s$/.test(filePath)) return false; - else try { - return findNearestPackageData(path.dirname(filePath), packageCache)?.data.type === "module"; - } catch { - return false; - } -} -const splitRE = /\r?\n/g; -const range = 2; -function pad$1(source, n$2 = 2) { - return source.split(splitRE).map((l) => ` `.repeat(n$2) + l).join(`\n`); -} -function posToNumber(source, pos) { - if (typeof pos === "number") return pos; - const lines = source.split(splitRE); - const { line, column } = pos; - let start = 0; - for (let i$1 = 0; i$1 < line - 1 && i$1 < lines.length; i$1++) start += lines[i$1].length + 1; - return start + column; -} -function numberToPos(source, offset$1) { - if (typeof offset$1 !== "number") return offset$1; - if (offset$1 > source.length) throw new Error(`offset is longer than source length! offset ${offset$1} > length ${source.length}`); - const lines = source.slice(0, offset$1).split(splitRE); - return { - line: lines.length, - column: lines[lines.length - 1].length - }; -} -const MAX_DISPLAY_LEN = 120; -const ELLIPSIS = "..."; -function generateCodeFrame(source, start = 0, end) { - start = Math.max(posToNumber(source, start), 0); - end = Math.min(end !== void 0 ? posToNumber(source, end) : start, source.length); - const lastPosLine = end !== void 0 ? numberToPos(source, end).line : numberToPos(source, start).line + range; - const lineNumberWidth = Math.max(3, String(lastPosLine).length + 1); - const lines = source.split(splitRE); - let count = 0; - const res = []; - for (let i$1 = 0; i$1 < lines.length; i$1++) { - count += lines[i$1].length; - if (count >= start) { - for (let j = i$1 - range; j <= i$1 + range || end > count; j++) { - if (j < 0 || j >= lines.length) continue; - const line = j + 1; - const lineLength = lines[j].length; - const pad$2 = Math.max(start - (count - lineLength), 0); - const underlineLength = Math.max(1, end > count ? lineLength - pad$2 : end - start); - let displayLine = lines[j]; - let underlinePad = pad$2; - if (lineLength > MAX_DISPLAY_LEN) { - let startIdx = 0; - if (j === i$1) { - if (underlineLength > MAX_DISPLAY_LEN) startIdx = pad$2; - else { - const center = pad$2 + Math.floor(underlineLength / 2); - startIdx = Math.max(0, center - Math.floor(MAX_DISPLAY_LEN / 2)); - } - underlinePad = Math.max(0, pad$2 - startIdx) + (startIdx > 0 ? 3 : 0); - } - const prefix = startIdx > 0 ? ELLIPSIS : ""; - const suffix = lineLength - startIdx > MAX_DISPLAY_LEN ? ELLIPSIS : ""; - const sliceLen = MAX_DISPLAY_LEN - prefix.length - suffix.length; - displayLine = prefix + displayLine.slice(startIdx, startIdx + sliceLen) + suffix; - } - res.push(`${line}${" ".repeat(lineNumberWidth - String(line).length)}| ${displayLine}`); - if (j === i$1) { - const underline = "^".repeat(Math.min(underlineLength, MAX_DISPLAY_LEN)); - res.push(`${" ".repeat(lineNumberWidth)}| ` + " ".repeat(underlinePad) + underline); - } else if (j > i$1) { - if (end > count) { - const length = Math.max(Math.min(end - count, lineLength), 1); - const underline = "^".repeat(Math.min(length, MAX_DISPLAY_LEN)); - res.push(`${" ".repeat(lineNumberWidth)}| ` + underline); - } - count += lineLength + 1; - } - } - break; - } - count++; - } - return res.join("\n"); -} -function isFileReadable(filename) { - if (!tryStatSync(filename)) return false; - try { - fs.accessSync(filename, fs.constants.R_OK); - return true; - } catch { - return false; - } -} -const splitFirstDirRE = /(.+?)[\\/](.+)/; -/** -* Delete every file and subdirectory. **The given directory must exist.** -* Pass an optional `skip` array to preserve files under the root directory. -*/ -function emptyDir(dir, skip) { - const skipInDir = []; - let nested = null; - if (skip?.length) for (const file of skip) if (path.dirname(file) !== ".") { - const matched = splitFirstDirRE.exec(file); - if (matched) { - nested ??= /* @__PURE__ */ new Map(); - const [, nestedDir, skipPath] = matched; - let nestedSkip = nested.get(nestedDir); - if (!nestedSkip) { - nestedSkip = []; - nested.set(nestedDir, nestedSkip); - } - if (!nestedSkip.includes(skipPath)) nestedSkip.push(skipPath); - } - } else skipInDir.push(file); - for (const file of fs.readdirSync(dir)) { - if (skipInDir.includes(file)) continue; - if (nested?.has(file)) emptyDir(path.resolve(dir, file), nested.get(file)); - else fs.rmSync(path.resolve(dir, file), { - recursive: true, - force: true - }); - } -} -function copyDir(srcDir, destDir) { - fs.mkdirSync(destDir, { recursive: true }); - for (const file of fs.readdirSync(srcDir)) { - const srcFile = path.resolve(srcDir, file); - if (srcFile === destDir) continue; - const destFile = path.resolve(destDir, file); - if (fs.statSync(srcFile).isDirectory()) copyDir(srcFile, destFile); - else fs.copyFileSync(srcFile, destFile); - } -} -const ERR_SYMLINK_IN_RECURSIVE_READDIR = "ERR_SYMLINK_IN_RECURSIVE_READDIR"; -async function recursiveReaddir(dir) { - if (!fs.existsSync(dir)) return []; - let dirents; - try { - dirents = await fsp.readdir(dir, { withFileTypes: true }); - } catch (e$1) { - if (e$1.code === "EACCES") return []; - throw e$1; - } - if (dirents.some((dirent) => dirent.isSymbolicLink())) { - const err$2 = /* @__PURE__ */ new Error("Symbolic links are not supported in recursiveReaddir"); - err$2.code = ERR_SYMLINK_IN_RECURSIVE_READDIR; - throw err$2; - } - return (await Promise.all(dirents.map((dirent) => { - const res = path.resolve(dir, dirent.name); - return dirent.isDirectory() ? recursiveReaddir(res) : normalizePath(res); - }))).flat(1); -} -let safeRealpathSync = isWindows ? windowsSafeRealPathSync : fs.realpathSync.native; -const windowsNetworkMap = /* @__PURE__ */ new Map(); -function windowsMappedRealpathSync(path$13) { - const realPath = fs.realpathSync.native(path$13); - if (realPath.startsWith("\\\\")) { - for (const [network, volume] of windowsNetworkMap) if (realPath.startsWith(network)) return realPath.replace(network, volume); - } - return realPath; -} -const parseNetUseRE = /^\w* +(\w:) +([^ ]+)\s/; -let firstSafeRealPathSyncRun = false; -function windowsSafeRealPathSync(path$13) { - if (!firstSafeRealPathSyncRun) { - optimizeSafeRealPathSync(); - firstSafeRealPathSyncRun = true; - } - return fs.realpathSync(path$13); -} -function optimizeSafeRealPathSync() { - try { - fs.realpathSync.native(path.resolve("./")); - } catch (error$1) { - if (error$1.message.includes("EISDIR: illegal operation on a directory")) { - safeRealpathSync = fs.realpathSync; - return; - } - } - exec("net use", (error$1, stdout) => { - if (error$1) return; - const lines = stdout.split("\n"); - for (const line of lines) { - const m$2 = parseNetUseRE.exec(line); - if (m$2) windowsNetworkMap.set(m$2[2], m$2[1]); - } - if (windowsNetworkMap.size === 0) safeRealpathSync = fs.realpathSync.native; - else safeRealpathSync = windowsMappedRealpathSync; - }); -} -function ensureWatchedFile(watcher, file, root) { - if (file && !file.startsWith(withTrailingSlash(root)) && !file.includes("\0") && fs.existsSync(file)) watcher.add(path.resolve(file)); -} -function joinSrcset(ret) { - return ret.map(({ url: url$3, descriptor }) => url$3 + (descriptor ? ` ${descriptor}` : "")).join(", "); -} -/** -This regex represents a loose rule of an “image candidate string” and "image set options". - -@see https://html.spec.whatwg.org/multipage/images.html#srcset-attribute -@see https://drafts.csswg.org/css-images-4/#image-set-notation - -The Regex has named capturing groups `url` and `descriptor`. -The `url` group can be: -* any CSS function -* CSS string (single or double-quoted) -* URL string (unquoted) -The `descriptor` is anything after the space and before the comma. -*/ -const imageCandidateRegex = /(?:^|\s|(?<=,))(?[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?\w[^,]+))?(?:,|$)/g; -const escapedSpaceCharacters = /(?: |\\t|\\n|\\f|\\r)+/g; -function parseSrcset(string) { - const matches$2 = string.trim().replace(escapedSpaceCharacters, " ").replace(/\r?\n/, "").replace(/,\s+/, ", ").replaceAll(/\s+/g, " ").matchAll(imageCandidateRegex); - return Array.from(matches$2, ({ groups: groups$1 }) => ({ - url: groups$1?.url?.trim() ?? "", - descriptor: groups$1?.descriptor?.trim() ?? "" - })).filter(({ url: url$3 }) => !!url$3); -} -function processSrcSet(srcs, replacer) { - return Promise.all(parseSrcset(srcs).map(async ({ url: url$3, descriptor }) => ({ - url: await replacer({ - url: url$3, - descriptor - }), - descriptor - }))).then(joinSrcset); -} -function processSrcSetSync(srcs, replacer) { - return joinSrcset(parseSrcset(srcs).map(({ url: url$3, descriptor }) => ({ - url: replacer({ - url: url$3, - descriptor - }), - descriptor - }))); -} -const windowsDriveRE = /^[A-Z]:/; -const replaceWindowsDriveRE = /^([A-Z]):\//; -const linuxAbsolutePathRE = /^\/[^/]/; -function escapeToLinuxLikePath(path$13) { - if (windowsDriveRE.test(path$13)) return path$13.replace(replaceWindowsDriveRE, "/windows/$1/"); - if (linuxAbsolutePathRE.test(path$13)) return `/linux${path$13}`; - return path$13; -} -const revertWindowsDriveRE = /^\/windows\/([A-Z])\//; -function unescapeToLinuxLikePath(path$13) { - if (path$13.startsWith("/linux/")) return path$13.slice(6); - if (path$13.startsWith("/windows/")) return path$13.replace(revertWindowsDriveRE, "$1:/"); - return path$13; -} -const nullSourceMap = { - names: [], - sources: [], - mappings: "", - version: 3 -}; -/** -* Combines multiple sourcemaps into a single sourcemap. -* Note that the length of sourcemapList must be 2. -*/ -function combineSourcemaps(filename, sourcemapList) { - if (sourcemapList.length === 0 || sourcemapList.every((m$2) => m$2.sources.length === 0)) return { ...nullSourceMap }; - sourcemapList = sourcemapList.map((sourcemap) => { - const newSourcemaps = { ...sourcemap }; - newSourcemaps.sources = sourcemap.sources.map((source) => source ? escapeToLinuxLikePath(source) : null); - if (sourcemap.sourceRoot) newSourcemaps.sourceRoot = escapeToLinuxLikePath(sourcemap.sourceRoot); - return newSourcemaps; - }); - const escapedFilename = escapeToLinuxLikePath(filename); - let map$1; - let mapIndex = 1; - if (sourcemapList.slice(0, -1).find((m$2) => m$2.sources.length !== 1) === void 0) map$1 = remapping(sourcemapList, () => null); - else map$1 = remapping(sourcemapList[0], function loader$1(sourcefile) { - if (sourcefile === escapedFilename && sourcemapList[mapIndex]) return sourcemapList[mapIndex++]; - else return null; - }); - if (!map$1.file) delete map$1.file; - map$1.sources = map$1.sources.map((source) => source ? unescapeToLinuxLikePath(source) : source); - map$1.file = filename; - return map$1; -} -function unique(arr) { - return Array.from(new Set(arr)); -} -/** -* Returns resolved localhost address when `dns.lookup` result differs from DNS -* -* `dns.lookup` result is same when defaultResultOrder is `verbatim`. -* Even if defaultResultOrder is `ipv4first`, `dns.lookup` result maybe same. -* For example, when IPv6 is not supported on that machine/network. -*/ -async function getLocalhostAddressIfDiffersFromDNS() { - const [nodeResult, dnsResult] = await Promise.all([promises$1.lookup("localhost"), promises$1.lookup("localhost", { verbatim: true })]); - return nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address ? void 0 : nodeResult.address; -} -function diffDnsOrderChange(oldUrls, newUrls) { - return !(oldUrls === newUrls || oldUrls && newUrls && arrayEqual(oldUrls.local, newUrls.local) && arrayEqual(oldUrls.network, newUrls.network)); -} -async function resolveHostname(optionsHost) { - let host; - if (optionsHost === void 0 || optionsHost === false) host = "localhost"; - else if (optionsHost === true) host = void 0; - else host = optionsHost; - let name = host === void 0 || wildcardHosts.has(host) ? "localhost" : host; - if (host === "localhost") { - const localhostAddr = await getLocalhostAddressIfDiffersFromDNS(); - if (localhostAddr) name = localhostAddr; - } - return { - host, - name - }; -} -function extractHostnamesFromCerts(certs) { - const certList = certs ? arraify(certs) : []; - if (certList.length === 0) return []; - return unique(certList.map((cert) => { - try { - return new crypto.X509Certificate(cert); - } catch { - return null; - } - }).flatMap((cert) => cert?.subjectAltName ? extractHostnamesFromSubjectAltName(cert.subjectAltName) : [])); -} -function resolveServerUrls(server, options$1, hostname, httpsOptions, config$2) { - const address = server.address(); - const isAddressInfo = (x) => x?.address; - if (!isAddressInfo(address)) return { - local: [], - network: [] - }; - const local = []; - const network = []; - const protocol = options$1.https ? "https" : "http"; - const port = address.port; - const base = config$2.rawBase === "./" || config$2.rawBase === "" ? "/" : config$2.rawBase; - if (hostname.host !== void 0 && !wildcardHosts.has(hostname.host)) { - let hostnameName = hostname.name; - if (hostnameName.includes(":")) hostnameName = `[${hostnameName}]`; - const address$1 = `${protocol}://${hostnameName}:${port}${base}`; - if (loopbackHosts.has(hostname.host)) local.push(address$1); - else network.push(address$1); - } else Object.values(os.networkInterfaces()).flatMap((nInterface) => nInterface ?? []).filter((detail) => detail.address && detail.family === "IPv4").forEach((detail) => { - let host = detail.address.replace("127.0.0.1", hostname.name); - if (host.includes(":")) host = `[${host}]`; - const url$3 = `${protocol}://${host}:${port}${base}`; - if (detail.address.includes("127.0.0.1")) local.push(url$3); - else network.push(url$3); - }); - const hostnamesFromCert = extractHostnamesFromCerts(httpsOptions?.cert); - if (hostnamesFromCert.length > 0) { - const existings = new Set([...local, ...network]); - local.push(...hostnamesFromCert.map((hostname$1) => `${protocol}://${hostname$1}:${port}${base}`).filter((url$3) => !existings.has(url$3))); - } - return { - local, - network - }; -} -function extractHostnamesFromSubjectAltName(subjectAltName) { - const hostnames = []; - let remaining = subjectAltName; - while (remaining) { - const nameEndIndex = remaining.indexOf(":"); - const name = remaining.slice(0, nameEndIndex); - remaining = remaining.slice(nameEndIndex + 1); - if (!remaining) break; - const isQuoted = remaining[0] === "\""; - let value$1; - if (isQuoted) { - const endQuoteIndex = remaining.indexOf("\"", 1); - value$1 = JSON.parse(remaining.slice(0, endQuoteIndex + 1)); - remaining = remaining.slice(endQuoteIndex + 1); - } else { - const maybeEndIndex = remaining.indexOf(","); - const endIndex = maybeEndIndex === -1 ? remaining.length : maybeEndIndex; - value$1 = remaining.slice(0, endIndex); - remaining = remaining.slice(endIndex); - } - remaining = remaining.slice(1).trimStart(); - if (name === "DNS" && value$1 !== "[::1]" && !(value$1.startsWith("*.") && net.isIPv4(value$1.slice(2)))) hostnames.push(value$1.replace("*", "vite")); - } - return hostnames; -} -function arraify(target) { - return Array.isArray(target) ? target : [target]; -} -const multilineCommentsRE = /\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g; -const singlelineCommentsRE = /\/\/.*/g; -const requestQuerySplitRE = /\?(?!.*[/|}])/; -const requestQueryMaybeEscapedSplitRE = /\\?\?(?!.*[/|}])/; -const blankReplacer = (match) => " ".repeat(match.length); -function getHash(text, length = 8) { - const h$2 = crypto.hash("sha256", text, "hex").substring(0, length); - if (length <= 64) return h$2; - return h$2.padEnd(length, "_"); -} -function emptyCssComments(raw) { - return raw.replace(multilineCommentsRE, blankReplacer); -} -function backwardCompatibleWorkerPlugins(plugins$1) { - if (Array.isArray(plugins$1)) return plugins$1; - if (typeof plugins$1 === "function") return plugins$1(); - return []; -} -function deepClone(value$1) { - if (Array.isArray(value$1)) return value$1.map((v) => deepClone(v)); - if (isObject(value$1)) { - const cloned = {}; - for (const key in value$1) cloned[key] = deepClone(value$1[key]); - return cloned; - } - if (typeof value$1 === "function") return value$1; - if (value$1 instanceof RegExp) return new RegExp(value$1); - if (typeof value$1 === "object" && value$1 != null) throw new Error("Cannot deep clone non-plain object"); - return value$1; -} -function mergeWithDefaultsRecursively(defaults, values) { - const merged = defaults; - for (const key in values) { - const value$1 = values[key]; - if (value$1 === void 0) continue; - const existing = merged[key]; - if (existing === void 0) { - merged[key] = value$1; - continue; - } - if (isObject(existing) && isObject(value$1)) { - merged[key] = mergeWithDefaultsRecursively(existing, value$1); - continue; - } - merged[key] = value$1; - } - return merged; -} -const environmentPathRE = /^environments\.[^.]+$/; -function mergeWithDefaults(defaults, values) { - return mergeWithDefaultsRecursively(deepClone(defaults), values); -} -function mergeConfigRecursively(defaults, overrides, rootPath) { - const merged = { ...defaults }; - for (const key in overrides) { - const value$1 = overrides[key]; - if (value$1 == null) continue; - const existing = merged[key]; - if (existing == null) { - merged[key] = value$1; - continue; - } - if (key === "alias" && (rootPath === "resolve" || rootPath === "")) { - merged[key] = mergeAlias(existing, value$1); - continue; - } else if (key === "assetsInclude" && rootPath === "") { - merged[key] = [].concat(existing, value$1); - continue; - } else if ((key === "noExternal" && (rootPath === "ssr" || rootPath === "resolve") || key === "allowedHosts" && rootPath === "server") && (existing === true || value$1 === true)) { - merged[key] = true; - continue; - } else if (key === "plugins" && rootPath === "worker") { - merged[key] = () => [...backwardCompatibleWorkerPlugins(existing), ...backwardCompatibleWorkerPlugins(value$1)]; - continue; - } else if (key === "server" && rootPath === "server.hmr") { - merged[key] = value$1; - continue; - } - if (Array.isArray(existing) || Array.isArray(value$1)) { - merged[key] = [...arraify(existing), ...arraify(value$1)]; - continue; - } - if (isObject(existing) && isObject(value$1)) { - merged[key] = mergeConfigRecursively(existing, value$1, rootPath && !environmentPathRE.test(rootPath) ? `${rootPath}.${key}` : key); - continue; - } - merged[key] = value$1; - } - return merged; -} -function mergeConfig(defaults, overrides, isRoot = true) { - if (typeof defaults === "function" || typeof overrides === "function") throw new Error(`Cannot merge config in form of callback`); - return mergeConfigRecursively(defaults, overrides, isRoot ? "" : "."); -} -function mergeAlias(a, b) { - if (!a) return b; - if (!b) return a; - if (isObject(a) && isObject(b)) return { - ...a, - ...b - }; - return [...normalizeAlias(b), ...normalizeAlias(a)]; -} -function normalizeAlias(o$1 = []) { - return Array.isArray(o$1) ? o$1.map(normalizeSingleAlias) : Object.keys(o$1).map((find$1) => normalizeSingleAlias({ - find: find$1, - replacement: o$1[find$1] - })); -} -function normalizeSingleAlias({ find: find$1, replacement, customResolver }) { - if (typeof find$1 === "string" && find$1.endsWith("/") && replacement.endsWith("/")) { - find$1 = find$1.slice(0, find$1.length - 1); - replacement = replacement.slice(0, replacement.length - 1); - } - const alias$2 = { - find: find$1, - replacement - }; - if (customResolver) alias$2.customResolver = customResolver; - return alias$2; -} -/** -* Transforms transpiled code result where line numbers aren't altered, -* so we can skip sourcemap generation during dev -*/ -function transformStableResult(s$2, id, config$2) { - return { - code: s$2.toString(), - map: config$2.command === "build" && config$2.build.sourcemap ? s$2.generateMap({ - hires: "boundary", - source: id - }) : null - }; -} -async function asyncFlatten(arr) { - do - arr = (await Promise.all(arr)).flat(Infinity); - while (arr.some((v) => v?.then)); - return arr; -} -function stripBomTag(content) { - if (content.charCodeAt(0) === 65279) return content.slice(1); - return content; -} -const windowsDrivePathPrefixRE = /^[A-Za-z]:[/\\]/; -/** -* path.isAbsolute also returns true for drive relative paths on windows (e.g. /something) -* this function returns false for them but true for absolute paths (e.g. C:/something) -*/ -const isNonDriveRelativeAbsolutePath = (p) => { - if (!isWindows) return p[0] === "/"; - return windowsDrivePathPrefixRE.test(p); -}; -/** -* Determine if a file is being requested with the correct case, to ensure -* consistent behavior between dev and prod and across operating systems. -*/ -function shouldServeFile(filePath, root) { - if (!isCaseInsensitiveFS) return true; - return hasCorrectCase(filePath, root); -} -/** -* Note that we can't use realpath here, because we don't want to follow -* symlinks. -*/ -function hasCorrectCase(file, assets) { - if (file === assets) return true; - const parent = path.dirname(file); - if (fs.readdirSync(parent).includes(path.basename(file))) return hasCorrectCase(parent, assets); - return false; -} -function joinUrlSegments(a, b) { - if (!a || !b) return a || b || ""; - if (a.endsWith("/")) a = a.substring(0, a.length - 1); - if (b[0] !== "/") b = "/" + b; - return a + b; -} -function removeLeadingSlash(str) { - return str[0] === "/" ? str.slice(1) : str; -} -function stripBase(path$13, base) { - if (path$13 === base) return "/"; - const devBase = withTrailingSlash(base); - return path$13.startsWith(devBase) ? path$13.slice(devBase.length - 1) : path$13; -} -function arrayEqual(a, b) { - if (a === b) return true; - if (a.length !== b.length) return false; - for (let i$1 = 0; i$1 < a.length; i$1++) if (a[i$1] !== b[i$1]) return false; - return true; -} -function evalValue(rawValue) { - return new Function(` - var console, exports, global, module, process, require - return (\n${rawValue}\n) - `)(); -} -function getNpmPackageName(importPath) { - const parts = importPath.split("/"); - if (parts[0][0] === "@") { - if (!parts[1]) return null; - return `${parts[0]}/${parts[1]}`; - } else return parts[0]; -} -function getPkgName(name) { - return name[0] === "@" ? name.split("/")[1] : name; -} -const escapeRegexRE$1 = /[-/\\^$*+?.()|[\]{}]/g; -function escapeRegex(str) { - return str.replace(escapeRegexRE$1, "\\$&"); -} -function getPackageManagerCommand(type = "install") { - const packageManager = process.env.npm_config_user_agent?.split(" ")[0].split("/")[0] || "npm"; - switch (type) { - case "install": return packageManager === "npm" ? "npm install" : `${packageManager} add`; - case "uninstall": return packageManager === "npm" ? "npm uninstall" : `${packageManager} remove`; - case "update": return packageManager === "yarn" ? "yarn upgrade" : `${packageManager} update`; - default: throw new TypeError(`Unknown command type: ${type}`); - } -} -function isDevServer(server) { - return "pluginContainer" in server; -} -function createSerialPromiseQueue() { - let previousTask; - return { async run(f$1) { - const thisTask = f$1(); - const depTasks = Promise.all([previousTask, thisTask]); - previousTask = depTasks; - const [, result] = await depTasks; - if (previousTask === depTasks) previousTask = void 0; - return result; - } }; -} -function sortObjectKeys(obj) { - const sorted = {}; - for (const key of Object.keys(obj).sort()) sorted[key] = obj[key]; - return sorted; -} -function displayTime(time) { - if (time < 1e3) return `${time}ms`; - time = time / 1e3; - if (time < 60) return `${time.toFixed(2)}s`; - const mins = Math.floor(time / 60); - const seconds = Math.round(time % 60); - if (seconds === 60) return `${mins + 1}m`; - return `${mins}m${seconds < 1 ? "" : ` ${seconds}s`}`; -} -/** -* Encodes the URI path portion (ignores part after ? or #) -*/ -function encodeURIPath(uri) { - if (uri.startsWith("data:")) return uri; - const filePath = cleanUrl(uri); - const postfix = filePath !== uri ? uri.slice(filePath.length) : ""; - return encodeURI(filePath) + postfix; -} -/** -* Like `encodeURIPath`, but only replacing `%` as `%25`. This is useful for environments -* that can handle un-encoded URIs, where `%` is the only ambiguous character. -*/ -function partialEncodeURIPath(uri) { - if (uri.startsWith("data:")) return uri; - const filePath = cleanUrl(uri); - const postfix = filePath !== uri ? uri.slice(filePath.length) : ""; - return filePath.replaceAll("%", "%25") + postfix; -} -function decodeURIIfPossible(input) { - try { - return decodeURI(input); - } catch { - return; - } -} -const sigtermCallbacks = /* @__PURE__ */ new Set(); -const parentSigtermCallback = async (signal, exitCode) => { - await Promise.all([...sigtermCallbacks].map((cb) => cb(signal, exitCode))); -}; -const setupSIGTERMListener = (callback) => { - if (sigtermCallbacks.size === 0) { - process.once("SIGTERM", parentSigtermCallback); - if (process.env.CI !== "true") process.stdin.on("end", parentSigtermCallback); - } - sigtermCallbacks.add(callback); -}; -const teardownSIGTERMListener = (callback) => { - sigtermCallbacks.delete(callback); - if (sigtermCallbacks.size === 0) { - process.off("SIGTERM", parentSigtermCallback); - if (process.env.CI !== "true") process.stdin.off("end", parentSigtermCallback); - } -}; -function getServerUrlByHost(resolvedUrls, host) { - if (typeof host === "string") { - const matchedUrl = [...resolvedUrls?.local ?? [], ...resolvedUrls?.network ?? []].find((url$3) => url$3.includes(host)); - if (matchedUrl) return matchedUrl; - } - return resolvedUrls?.local[0] ?? resolvedUrls?.network[0]; -} -let lastDateNow = 0; -/** -* Similar to `Date.now()`, but strictly monotonically increasing. -* -* This function will never return the same value. -* Thus, the value may differ from the actual time. -* -* related: https://github.com/vitejs/vite/issues/19804 -*/ -function monotonicDateNow() { - const now = Date.now(); - if (now > lastDateNow) { - lastDateNow = now; - return lastDateNow; - } - lastDateNow++; - return lastDateNow; -} - -//#endregion -//#region src/node/plugin.ts -async function resolveEnvironmentPlugins(environment) { - const environmentPlugins = []; - for (const plugin of environment.getTopLevelConfig().plugins) { - if (plugin.applyToEnvironment) { - const applied = await plugin.applyToEnvironment(environment); - if (!applied) continue; - if (applied !== true) { - environmentPlugins.push(...(await asyncFlatten(arraify(applied))).filter(Boolean)); - continue; - } - } - environmentPlugins.push(plugin); - } - return environmentPlugins; -} -/** -* @experimental -*/ -function perEnvironmentPlugin(name, applyToEnvironment) { - return { - name, - applyToEnvironment - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js -var require_commondir = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js": ((exports, module) => { - var path$12 = __require("path"); - module.exports = function(basedir, relfiles) { - if (relfiles) var files = relfiles.map(function(r$1) { - return path$12.resolve(basedir, r$1); - }); - else var files = basedir; - var res = files.slice(1).reduce(function(ps, file) { - if (!file.match(/^([A-Za-z]:)?\/|\\/)) throw new Error("relative path without a basedir"); - var xs = file.split(/\/+|\\+/); - for (var i$1 = 0; ps[i$1] === xs[i$1] && i$1 < Math.min(ps.length, xs.length); i$1++); - return ps.slice(0, i$1); - }, files[0].split(/\/+|\\+/)); - return res.length > 1 ? res.join("/") : "/"; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs -var BitSet = class BitSet { - constructor(arg) { - this.bits = arg instanceof BitSet ? arg.bits.slice() : []; - } - add(n$2) { - this.bits[n$2 >> 5] |= 1 << (n$2 & 31); - } - has(n$2) { - return !!(this.bits[n$2 >> 5] & 1 << (n$2 & 31)); - } -}; -var Chunk = class Chunk { - constructor(start, end, content) { - this.start = start; - this.end = end; - this.original = content; - this.intro = ""; - this.outro = ""; - this.content = content; - this.storeName = false; - this.edited = false; - this.previous = null; - this.next = null; - } - appendLeft(content) { - this.outro += content; - } - appendRight(content) { - this.intro = this.intro + content; - } - clone() { - const chunk = new Chunk(this.start, this.end, this.original); - chunk.intro = this.intro; - chunk.outro = this.outro; - chunk.content = this.content; - chunk.storeName = this.storeName; - chunk.edited = this.edited; - return chunk; - } - contains(index) { - return this.start < index && index < this.end; - } - eachNext(fn) { - let chunk = this; - while (chunk) { - fn(chunk); - chunk = chunk.next; - } - } - eachPrevious(fn) { - let chunk = this; - while (chunk) { - fn(chunk); - chunk = chunk.previous; - } - } - edit(content, storeName, contentOnly) { - this.content = content; - if (!contentOnly) { - this.intro = ""; - this.outro = ""; - } - this.storeName = storeName; - this.edited = true; - return this; - } - prependLeft(content) { - this.outro = content + this.outro; - } - prependRight(content) { - this.intro = content + this.intro; - } - reset() { - this.intro = ""; - this.outro = ""; - if (this.edited) { - this.content = this.original; - this.storeName = false; - this.edited = false; - } - } - split(index) { - const sliceIndex = index - this.start; - const originalBefore = this.original.slice(0, sliceIndex); - const originalAfter = this.original.slice(sliceIndex); - this.original = originalBefore; - const newChunk = new Chunk(index, this.end, originalAfter); - newChunk.outro = this.outro; - this.outro = ""; - this.end = index; - if (this.edited) { - newChunk.edit("", false); - this.content = ""; - } else this.content = originalBefore; - newChunk.next = this.next; - if (newChunk.next) newChunk.next.previous = newChunk; - newChunk.previous = this; - this.next = newChunk; - return newChunk; - } - toString() { - return this.intro + this.content + this.outro; - } - trimEnd(rx) { - this.outro = this.outro.replace(rx, ""); - if (this.outro.length) return true; - const trimmed = this.content.replace(rx, ""); - if (trimmed.length) { - if (trimmed !== this.content) { - this.split(this.start + trimmed.length).edit("", void 0, true); - if (this.edited) this.edit(trimmed, this.storeName, true); - } - return true; - } else { - this.edit("", void 0, true); - this.intro = this.intro.replace(rx, ""); - if (this.intro.length) return true; - } - } - trimStart(rx) { - this.intro = this.intro.replace(rx, ""); - if (this.intro.length) return true; - const trimmed = this.content.replace(rx, ""); - if (trimmed.length) { - if (trimmed !== this.content) { - const newChunk = this.split(this.end - trimmed.length); - if (this.edited) newChunk.edit(trimmed, this.storeName, true); - this.edit("", void 0, true); - } - return true; - } else { - this.edit("", void 0, true); - this.outro = this.outro.replace(rx, ""); - if (this.outro.length) return true; - } - } -}; -function getBtoa() { - if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") return (str) => globalThis.btoa(unescape(encodeURIComponent(str))); - else if (typeof Buffer === "function") return (str) => Buffer.from(str, "utf-8").toString("base64"); - else return () => { - throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported."); - }; -} -const btoa$1 = /* @__PURE__ */ getBtoa(); -var SourceMap = class { - constructor(properties) { - this.version = 3; - this.file = properties.file; - this.sources = properties.sources; - this.sourcesContent = properties.sourcesContent; - this.names = properties.names; - this.mappings = encode$1(properties.mappings); - if (typeof properties.x_google_ignoreList !== "undefined") this.x_google_ignoreList = properties.x_google_ignoreList; - if (typeof properties.debugId !== "undefined") this.debugId = properties.debugId; - } - toString() { - return JSON.stringify(this); - } - toUrl() { - return "data:application/json;charset=utf-8;base64," + btoa$1(this.toString()); - } -}; -function guessIndent(code) { - const lines = code.split("\n"); - const tabbed = lines.filter((line) => /^\t+/.test(line)); - const spaced = lines.filter((line) => /^ {2,}/.test(line)); - if (tabbed.length === 0 && spaced.length === 0) return null; - if (tabbed.length >= spaced.length) return " "; - const min$1 = spaced.reduce((previous, current) => { - const numSpaces = /^ +/.exec(current)[0].length; - return Math.min(numSpaces, previous); - }, Infinity); - return new Array(min$1 + 1).join(" "); -} -function getRelativePath(from, to) { - const fromParts = from.split(/[/\\]/); - const toParts = to.split(/[/\\]/); - fromParts.pop(); - while (fromParts[0] === toParts[0]) { - fromParts.shift(); - toParts.shift(); - } - if (fromParts.length) { - let i$1 = fromParts.length; - while (i$1--) fromParts[i$1] = ".."; - } - return fromParts.concat(toParts).join("/"); -} -const toString$1 = Object.prototype.toString; -function isObject$2(thing) { - return toString$1.call(thing) === "[object Object]"; -} -function getLocator(source) { - const originalLines = source.split("\n"); - const lineOffsets = []; - for (let i$1 = 0, pos = 0; i$1 < originalLines.length; i$1++) { - lineOffsets.push(pos); - pos += originalLines[i$1].length + 1; - } - return function locate(index) { - let i$1 = 0; - let j = lineOffsets.length; - while (i$1 < j) { - const m$2 = i$1 + j >> 1; - if (index < lineOffsets[m$2]) j = m$2; - else i$1 = m$2 + 1; - } - const line = i$1 - 1; - return { - line, - column: index - lineOffsets[line] - }; - }; -} -const wordRegex = /\w/; -var Mappings = class { - constructor(hires) { - this.hires = hires; - this.generatedCodeLine = 0; - this.generatedCodeColumn = 0; - this.raw = []; - this.rawSegments = this.raw[this.generatedCodeLine] = []; - this.pending = null; - } - addEdit(sourceIndex, content, loc, nameIndex) { - if (content.length) { - const contentLengthMinusOne = content.length - 1; - let contentLineEnd = content.indexOf("\n", 0); - let previousContentLineEnd = -1; - while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) { - const segment$1 = [ - this.generatedCodeColumn, - sourceIndex, - loc.line, - loc.column - ]; - if (nameIndex >= 0) segment$1.push(nameIndex); - this.rawSegments.push(segment$1); - this.generatedCodeLine += 1; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - this.generatedCodeColumn = 0; - previousContentLineEnd = contentLineEnd; - contentLineEnd = content.indexOf("\n", contentLineEnd + 1); - } - const segment = [ - this.generatedCodeColumn, - sourceIndex, - loc.line, - loc.column - ]; - if (nameIndex >= 0) segment.push(nameIndex); - this.rawSegments.push(segment); - this.advance(content.slice(previousContentLineEnd + 1)); - } else if (this.pending) { - this.rawSegments.push(this.pending); - this.advance(content); - } - this.pending = null; - } - addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) { - let originalCharIndex = chunk.start; - let first$2 = true; - let charInHiresBoundary = false; - while (originalCharIndex < chunk.end) { - if (original[originalCharIndex] === "\n") { - loc.line += 1; - loc.column = 0; - this.generatedCodeLine += 1; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - this.generatedCodeColumn = 0; - first$2 = true; - charInHiresBoundary = false; - } else { - if (this.hires || first$2 || sourcemapLocations.has(originalCharIndex)) { - const segment = [ - this.generatedCodeColumn, - sourceIndex, - loc.line, - loc.column - ]; - if (this.hires === "boundary") if (wordRegex.test(original[originalCharIndex])) { - if (!charInHiresBoundary) { - this.rawSegments.push(segment); - charInHiresBoundary = true; - } - } else { - this.rawSegments.push(segment); - charInHiresBoundary = false; - } - else this.rawSegments.push(segment); - } - loc.column += 1; - this.generatedCodeColumn += 1; - first$2 = false; - } - originalCharIndex += 1; - } - this.pending = null; - } - advance(str) { - if (!str) return; - const lines = str.split("\n"); - if (lines.length > 1) { - for (let i$1 = 0; i$1 < lines.length - 1; i$1++) { - this.generatedCodeLine++; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - } - this.generatedCodeColumn = 0; - } - this.generatedCodeColumn += lines[lines.length - 1].length; - } -}; -const n$1 = "\n"; -const warned = { - insertLeft: false, - insertRight: false, - storeName: false -}; -var MagicString = class MagicString { - constructor(string, options$1 = {}) { - const chunk = new Chunk(0, string.length, string); - Object.defineProperties(this, { - original: { - writable: true, - value: string - }, - outro: { - writable: true, - value: "" - }, - intro: { - writable: true, - value: "" - }, - firstChunk: { - writable: true, - value: chunk - }, - lastChunk: { - writable: true, - value: chunk - }, - lastSearchedChunk: { - writable: true, - value: chunk - }, - byStart: { - writable: true, - value: {} - }, - byEnd: { - writable: true, - value: {} - }, - filename: { - writable: true, - value: options$1.filename - }, - indentExclusionRanges: { - writable: true, - value: options$1.indentExclusionRanges - }, - sourcemapLocations: { - writable: true, - value: new BitSet() - }, - storedNames: { - writable: true, - value: {} - }, - indentStr: { - writable: true, - value: void 0 - }, - ignoreList: { - writable: true, - value: options$1.ignoreList - }, - offset: { - writable: true, - value: options$1.offset || 0 - } - }); - this.byStart[0] = chunk; - this.byEnd[string.length] = chunk; - } - addSourcemapLocation(char) { - this.sourcemapLocations.add(char); - } - append(content) { - if (typeof content !== "string") throw new TypeError("outro content must be a string"); - this.outro += content; - return this; - } - appendLeft(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byEnd[index]; - if (chunk) chunk.appendLeft(content); - else this.intro += content; - return this; - } - appendRight(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byStart[index]; - if (chunk) chunk.appendRight(content); - else this.outro += content; - return this; - } - clone() { - const cloned = new MagicString(this.original, { - filename: this.filename, - offset: this.offset - }); - let originalChunk = this.firstChunk; - let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone(); - while (originalChunk) { - cloned.byStart[clonedChunk.start] = clonedChunk; - cloned.byEnd[clonedChunk.end] = clonedChunk; - const nextOriginalChunk = originalChunk.next; - const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone(); - if (nextClonedChunk) { - clonedChunk.next = nextClonedChunk; - nextClonedChunk.previous = clonedChunk; - clonedChunk = nextClonedChunk; - } - originalChunk = nextOriginalChunk; - } - cloned.lastChunk = clonedChunk; - if (this.indentExclusionRanges) cloned.indentExclusionRanges = this.indentExclusionRanges.slice(); - cloned.sourcemapLocations = new BitSet(this.sourcemapLocations); - cloned.intro = this.intro; - cloned.outro = this.outro; - return cloned; - } - generateDecodedMap(options$1) { - options$1 = options$1 || {}; - const sourceIndex = 0; - const names = Object.keys(this.storedNames); - const mappings = new Mappings(options$1.hires); - const locate = getLocator(this.original); - if (this.intro) mappings.advance(this.intro); - this.firstChunk.eachNext((chunk) => { - const loc = locate(chunk.start); - if (chunk.intro.length) mappings.advance(chunk.intro); - if (chunk.edited) mappings.addEdit(sourceIndex, chunk.content, loc, chunk.storeName ? names.indexOf(chunk.original) : -1); - else mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations); - if (chunk.outro.length) mappings.advance(chunk.outro); - }); - if (this.outro) mappings.advance(this.outro); - return { - file: options$1.file ? options$1.file.split(/[/\\]/).pop() : void 0, - sources: [options$1.source ? getRelativePath(options$1.file || "", options$1.source) : options$1.file || ""], - sourcesContent: options$1.includeContent ? [this.original] : void 0, - names, - mappings: mappings.raw, - x_google_ignoreList: this.ignoreList ? [sourceIndex] : void 0 - }; - } - generateMap(options$1) { - return new SourceMap(this.generateDecodedMap(options$1)); - } - _ensureindentStr() { - if (this.indentStr === void 0) this.indentStr = guessIndent(this.original); - } - _getRawIndentString() { - this._ensureindentStr(); - return this.indentStr; - } - getIndentString() { - this._ensureindentStr(); - return this.indentStr === null ? " " : this.indentStr; - } - indent(indentStr, options$1) { - const pattern = /^[^\r\n]/gm; - if (isObject$2(indentStr)) { - options$1 = indentStr; - indentStr = void 0; - } - if (indentStr === void 0) { - this._ensureindentStr(); - indentStr = this.indentStr || " "; - } - if (indentStr === "") return this; - options$1 = options$1 || {}; - const isExcluded = {}; - if (options$1.exclude) (typeof options$1.exclude[0] === "number" ? [options$1.exclude] : options$1.exclude).forEach((exclusion) => { - for (let i$1 = exclusion[0]; i$1 < exclusion[1]; i$1 += 1) isExcluded[i$1] = true; - }); - let shouldIndentNextCharacter = options$1.indentStart !== false; - const replacer = (match) => { - if (shouldIndentNextCharacter) return `${indentStr}${match}`; - shouldIndentNextCharacter = true; - return match; - }; - this.intro = this.intro.replace(pattern, replacer); - let charIndex = 0; - let chunk = this.firstChunk; - while (chunk) { - const end = chunk.end; - if (chunk.edited) { - if (!isExcluded[charIndex]) { - chunk.content = chunk.content.replace(pattern, replacer); - if (chunk.content.length) shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === "\n"; - } - } else { - charIndex = chunk.start; - while (charIndex < end) { - if (!isExcluded[charIndex]) { - const char = this.original[charIndex]; - if (char === "\n") shouldIndentNextCharacter = true; - else if (char !== "\r" && shouldIndentNextCharacter) { - shouldIndentNextCharacter = false; - if (charIndex === chunk.start) chunk.prependRight(indentStr); - else { - this._splitChunk(chunk, charIndex); - chunk = chunk.next; - chunk.prependRight(indentStr); - } - } - } - charIndex += 1; - } - } - charIndex = chunk.end; - chunk = chunk.next; - } - this.outro = this.outro.replace(pattern, replacer); - return this; - } - insert() { - throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"); - } - insertLeft(index, content) { - if (!warned.insertLeft) { - console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"); - warned.insertLeft = true; - } - return this.appendLeft(index, content); - } - insertRight(index, content) { - if (!warned.insertRight) { - console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"); - warned.insertRight = true; - } - return this.prependRight(index, content); - } - move(start, end, index) { - start = start + this.offset; - end = end + this.offset; - index = index + this.offset; - if (index >= start && index <= end) throw new Error("Cannot move a selection inside itself"); - this._split(start); - this._split(end); - this._split(index); - const first$2 = this.byStart[start]; - const last = this.byEnd[end]; - const oldLeft = first$2.previous; - const oldRight = last.next; - const newRight = this.byStart[index]; - if (!newRight && last === this.lastChunk) return this; - const newLeft = newRight ? newRight.previous : this.lastChunk; - if (oldLeft) oldLeft.next = oldRight; - if (oldRight) oldRight.previous = oldLeft; - if (newLeft) newLeft.next = first$2; - if (newRight) newRight.previous = last; - if (!first$2.previous) this.firstChunk = last.next; - if (!last.next) { - this.lastChunk = first$2.previous; - this.lastChunk.next = null; - } - first$2.previous = newLeft; - last.next = newRight || null; - if (!newLeft) this.firstChunk = first$2; - if (!newRight) this.lastChunk = last; - return this; - } - overwrite(start, end, content, options$1) { - options$1 = options$1 || {}; - return this.update(start, end, content, { - ...options$1, - overwrite: !options$1.contentOnly - }); - } - update(start, end, content, options$1) { - start = start + this.offset; - end = end + this.offset; - if (typeof content !== "string") throw new TypeError("replacement content must be a string"); - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - if (end > this.original.length) throw new Error("end is out of bounds"); - if (start === end) throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead"); - this._split(start); - this._split(end); - if (options$1 === true) { - if (!warned.storeName) { - console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"); - warned.storeName = true; - } - options$1 = { storeName: true }; - } - const storeName = options$1 !== void 0 ? options$1.storeName : false; - const overwrite = options$1 !== void 0 ? options$1.overwrite : false; - if (storeName) { - const original = this.original.slice(start, end); - Object.defineProperty(this.storedNames, original, { - writable: true, - value: true, - enumerable: true - }); - } - const first$2 = this.byStart[start]; - const last = this.byEnd[end]; - if (first$2) { - let chunk = first$2; - while (chunk !== last) { - if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point"); - chunk = chunk.next; - chunk.edit("", false); - } - first$2.edit(content, storeName, !overwrite); - } else { - const newChunk = new Chunk(start, end, "").edit(content, storeName); - last.next = newChunk; - newChunk.previous = last; - } - return this; - } - prepend(content) { - if (typeof content !== "string") throw new TypeError("outro content must be a string"); - this.intro = content + this.intro; - return this; - } - prependLeft(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byEnd[index]; - if (chunk) chunk.prependLeft(content); - else this.intro = content + this.intro; - return this; - } - prependRight(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byStart[index]; - if (chunk) chunk.prependRight(content); - else this.outro = content + this.outro; - return this; - } - remove(start, end) { - start = start + this.offset; - end = end + this.offset; - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - if (start === end) return this; - if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds"); - if (start > end) throw new Error("end must be greater than start"); - this._split(start); - this._split(end); - let chunk = this.byStart[start]; - while (chunk) { - chunk.intro = ""; - chunk.outro = ""; - chunk.edit(""); - chunk = end > chunk.end ? this.byStart[chunk.end] : null; - } - return this; - } - reset(start, end) { - start = start + this.offset; - end = end + this.offset; - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - if (start === end) return this; - if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds"); - if (start > end) throw new Error("end must be greater than start"); - this._split(start); - this._split(end); - let chunk = this.byStart[start]; - while (chunk) { - chunk.reset(); - chunk = end > chunk.end ? this.byStart[chunk.end] : null; - } - return this; - } - lastChar() { - if (this.outro.length) return this.outro[this.outro.length - 1]; - let chunk = this.lastChunk; - do { - if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1]; - if (chunk.content.length) return chunk.content[chunk.content.length - 1]; - if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1]; - } while (chunk = chunk.previous); - if (this.intro.length) return this.intro[this.intro.length - 1]; - return ""; - } - lastLine() { - let lineIndex = this.outro.lastIndexOf(n$1); - if (lineIndex !== -1) return this.outro.substr(lineIndex + 1); - let lineStr = this.outro; - let chunk = this.lastChunk; - do { - if (chunk.outro.length > 0) { - lineIndex = chunk.outro.lastIndexOf(n$1); - if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr; - lineStr = chunk.outro + lineStr; - } - if (chunk.content.length > 0) { - lineIndex = chunk.content.lastIndexOf(n$1); - if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr; - lineStr = chunk.content + lineStr; - } - if (chunk.intro.length > 0) { - lineIndex = chunk.intro.lastIndexOf(n$1); - if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr; - lineStr = chunk.intro + lineStr; - } - } while (chunk = chunk.previous); - lineIndex = this.intro.lastIndexOf(n$1); - if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr; - return this.intro + lineStr; - } - slice(start = 0, end = this.original.length - this.offset) { - start = start + this.offset; - end = end + this.offset; - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - let result = ""; - let chunk = this.firstChunk; - while (chunk && (chunk.start > start || chunk.end <= start)) { - if (chunk.start < end && chunk.end >= end) return result; - chunk = chunk.next; - } - if (chunk && chunk.edited && chunk.start !== start) throw new Error(`Cannot use replaced character ${start} as slice start anchor.`); - const startChunk = chunk; - while (chunk) { - if (chunk.intro && (startChunk !== chunk || chunk.start === start)) result += chunk.intro; - const containsEnd = chunk.start < end && chunk.end >= end; - if (containsEnd && chunk.edited && chunk.end !== end) throw new Error(`Cannot use replaced character ${end} as slice end anchor.`); - const sliceStart = startChunk === chunk ? start - chunk.start : 0; - const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length; - result += chunk.content.slice(sliceStart, sliceEnd); - if (chunk.outro && (!containsEnd || chunk.end === end)) result += chunk.outro; - if (containsEnd) break; - chunk = chunk.next; - } - return result; - } - snip(start, end) { - const clone$1 = this.clone(); - clone$1.remove(0, start); - clone$1.remove(end, clone$1.original.length); - return clone$1; - } - _split(index) { - if (this.byStart[index] || this.byEnd[index]) return; - let chunk = this.lastSearchedChunk; - let previousChunk = chunk; - const searchForward = index > chunk.end; - while (chunk) { - if (chunk.contains(index)) return this._splitChunk(chunk, index); - chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start]; - if (chunk === previousChunk) return; - previousChunk = chunk; - } - } - _splitChunk(chunk, index) { - if (chunk.edited && chunk.content.length) { - const loc = getLocator(this.original)(index); - throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`); - } - const newChunk = chunk.split(index); - this.byEnd[index] = chunk; - this.byStart[index] = newChunk; - this.byEnd[newChunk.end] = newChunk; - if (chunk === this.lastChunk) this.lastChunk = newChunk; - this.lastSearchedChunk = chunk; - return true; - } - toString() { - let str = this.intro; - let chunk = this.firstChunk; - while (chunk) { - str += chunk.toString(); - chunk = chunk.next; - } - return str + this.outro; - } - isEmpty() { - let chunk = this.firstChunk; - do - if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim()) return false; - while (chunk = chunk.next); - return true; - } - length() { - let chunk = this.firstChunk; - let length = 0; - do - length += chunk.intro.length + chunk.content.length + chunk.outro.length; - while (chunk = chunk.next); - return length; - } - trimLines() { - return this.trim("[\\r\\n]"); - } - trim(charType) { - return this.trimStart(charType).trimEnd(charType); - } - trimEndAborted(charType) { - const rx = /* @__PURE__ */ new RegExp((charType || "\\s") + "+$"); - this.outro = this.outro.replace(rx, ""); - if (this.outro.length) return true; - let chunk = this.lastChunk; - do { - const end = chunk.end; - const aborted = chunk.trimEnd(rx); - if (chunk.end !== end) { - if (this.lastChunk === chunk) this.lastChunk = chunk.next; - this.byEnd[chunk.end] = chunk; - this.byStart[chunk.next.start] = chunk.next; - this.byEnd[chunk.next.end] = chunk.next; - } - if (aborted) return true; - chunk = chunk.previous; - } while (chunk); - return false; - } - trimEnd(charType) { - this.trimEndAborted(charType); - return this; - } - trimStartAborted(charType) { - const rx = /* @__PURE__ */ new RegExp("^" + (charType || "\\s") + "+"); - this.intro = this.intro.replace(rx, ""); - if (this.intro.length) return true; - let chunk = this.firstChunk; - do { - const end = chunk.end; - const aborted = chunk.trimStart(rx); - if (chunk.end !== end) { - if (chunk === this.lastChunk) this.lastChunk = chunk.next; - this.byEnd[chunk.end] = chunk; - this.byStart[chunk.next.start] = chunk.next; - this.byEnd[chunk.next.end] = chunk.next; - } - if (aborted) return true; - chunk = chunk.next; - } while (chunk); - return false; - } - trimStart(charType) { - this.trimStartAborted(charType); - return this; - } - hasChanged() { - return this.original !== this.toString(); - } - _replaceRegexp(searchValue, replacement) { - function getReplacement(match, str) { - if (typeof replacement === "string") return replacement.replace(/\$(\$|&|\d+)/g, (_, i$1) => { - if (i$1 === "$") return "$"; - if (i$1 === "&") return match[0]; - if (+i$1 < match.length) return match[+i$1]; - return `$${i$1}`; - }); - else return replacement(...match, match.index, str, match.groups); - } - function matchAll$1(re, str) { - let match; - const matches$2 = []; - while (match = re.exec(str)) matches$2.push(match); - return matches$2; - } - if (searchValue.global) matchAll$1(searchValue, this.original).forEach((match) => { - if (match.index != null) { - const replacement$1 = getReplacement(match, this.original); - if (replacement$1 !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement$1); - } - }); - else { - const match = this.original.match(searchValue); - if (match && match.index != null) { - const replacement$1 = getReplacement(match, this.original); - if (replacement$1 !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement$1); - } - } - return this; - } - _replaceString(string, replacement) { - const { original } = this; - const index = original.indexOf(string); - if (index !== -1) { - if (typeof replacement === "function") replacement = replacement(string, index, original); - if (string !== replacement) this.overwrite(index, index + string.length, replacement); - } - return this; - } - replace(searchValue, replacement) { - if (typeof searchValue === "string") return this._replaceString(searchValue, replacement); - return this._replaceRegexp(searchValue, replacement); - } - _replaceAllString(string, replacement) { - const { original } = this; - const stringLength = string.length; - for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) { - const previous = original.slice(index, index + stringLength); - let _replacement = replacement; - if (typeof replacement === "function") _replacement = replacement(previous, index, original); - if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement); - } - return this; - } - replaceAll(searchValue, replacement) { - if (typeof searchValue === "string") return this._replaceAllString(searchValue, replacement); - if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument"); - return this._replaceRegexp(searchValue, replacement); - } -}; - -//#endregion -//#region ../../node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js -var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js": ((exports, module) => { - (function(global$1, factory) { - typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global$1 = global$1 || self, global$1.isReference = factory()); - })(exports, (function() { - function isReference$1(node, parent) { - if (node.type === "MemberExpression") return !node.computed && isReference$1(node.object, node); - if (node.type === "Identifier") { - if (!parent) return true; - switch (parent.type) { - case "MemberExpression": return parent.computed || node === parent.object; - case "MethodDefinition": return parent.computed; - case "FieldDefinition": return parent.computed || node === parent.value; - case "Property": return parent.computed || node === parent.value; - case "ExportSpecifier": - case "ImportSpecifier": return node === parent.local; - case "LabeledStatement": - case "BreakStatement": - case "ContinueStatement": return false; - default: return true; - } - } - return false; - } - return isReference$1; - })); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js -var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1); -var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1); -var version$1 = "29.0.0"; -var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" }; -function tryParse(parse$17, code, id) { - try { - return parse$17(code, { allowReturnOutsideFunction: true }); - } catch (err$2) { - err$2.message += ` in ${id}`; - throw err$2; - } -} -const firstpassGlobal = /\b(?:require|module|exports|global)\b/; -const firstpassNoGlobal = /\b(?:require|module|exports)\b/; -function hasCjsKeywords(code, ignoreGlobal) { - return (ignoreGlobal ? firstpassNoGlobal : firstpassGlobal).test(code); -} -function analyzeTopLevelStatements(parse$17, code, id) { - const ast = tryParse(parse$17, code, id); - let isEsModule = false; - let hasDefaultExport = false; - let hasNamedExports = false; - for (const node of ast.body) switch (node.type) { - case "ExportDefaultDeclaration": - isEsModule = true; - hasDefaultExport = true; - break; - case "ExportNamedDeclaration": - isEsModule = true; - if (node.declaration) hasNamedExports = true; - else for (const specifier of node.specifiers) if (specifier.exported.name === "default") hasDefaultExport = true; - else hasNamedExports = true; - break; - case "ExportAllDeclaration": - isEsModule = true; - if (node.exported && node.exported.name === "default") hasDefaultExport = true; - else hasNamedExports = true; - break; - case "ImportDeclaration": - isEsModule = true; - break; - } - return { - isEsModule, - hasDefaultExport, - hasNamedExports, - ast - }; -} -function deconflict(scopes, globals, identifier) { - let i$1 = 1; - let deconflicted = makeLegalIdentifier(identifier); - const hasConflicts = () => scopes.some((scope) => scope.contains(deconflicted)) || globals.has(deconflicted); - while (hasConflicts()) { - deconflicted = makeLegalIdentifier(`${identifier}_${i$1}`); - i$1 += 1; - } - for (const scope of scopes) scope.declarations[deconflicted] = true; - return deconflicted; -} -function getName(id) { - const name = makeLegalIdentifier(basename$1(id, extname$1(id))); - if (name !== "index") return name; - return makeLegalIdentifier(basename$1(dirname$1(id))); -} -function normalizePathSlashes(path$13) { - return path$13.replace(/\\/g, "/"); -} -const getVirtualPathForDynamicRequirePath = (path$13, commonDir) => `/${normalizePathSlashes(relative$1(commonDir, path$13))}`; -function capitalize(name) { - return name[0].toUpperCase() + name.slice(1); -} -function getStrictRequiresFilter({ strictRequires }) { - switch (strictRequires) { - case void 0: - case true: return { - strictRequiresFilter: () => true, - detectCyclesAndConditional: false - }; - case "auto": - case "debug": - case null: return { - strictRequiresFilter: () => false, - detectCyclesAndConditional: true - }; - case false: return { - strictRequiresFilter: () => false, - detectCyclesAndConditional: false - }; - default: - if (typeof strictRequires === "string" || Array.isArray(strictRequires)) return { - strictRequiresFilter: createFilter$2(strictRequires), - detectCyclesAndConditional: false - }; - throw new Error("Unexpected value for \"strictRequires\" option."); - } -} -function getPackageEntryPoint(dirPath) { - let entryPoint = "index.js"; - try { - if (existsSync$1(join$1(dirPath, "package.json"))) entryPoint = JSON.parse(readFileSync$1(join$1(dirPath, "package.json"), { encoding: "utf8" })).main || entryPoint; - } catch (ignored) {} - return entryPoint; -} -function isDirectory$1(path$13) { - try { - if (statSync(path$13).isDirectory()) return true; - } catch (ignored) {} - return false; -} -function getDynamicRequireModules(patterns, dynamicRequireRoot) { - const dynamicRequireModules = /* @__PURE__ */ new Map(); - const dirNames = /* @__PURE__ */ new Set(); - for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) { - const isNegated = pattern.startsWith("!"); - const modifyMap = (targetPath, resolvedPath) => isNegated ? dynamicRequireModules.delete(targetPath) : dynamicRequireModules.set(targetPath, resolvedPath); - for (const path$13 of new fdir().withBasePath().withDirs().glob(isNegated ? pattern.substr(1) : pattern).crawl(relative$1(".", dynamicRequireRoot)).sync().sort((a, b) => a.localeCompare(b, "en"))) { - const resolvedPath = resolve$1(path$13); - const requirePath = normalizePathSlashes(resolvedPath); - if (isDirectory$1(resolvedPath)) { - dirNames.add(resolvedPath); - const modulePath = resolve$1(join$1(resolvedPath, getPackageEntryPoint(path$13))); - modifyMap(requirePath, modulePath); - modifyMap(normalizePathSlashes(modulePath), modulePath); - } else { - dirNames.add(dirname$1(resolvedPath)); - modifyMap(requirePath, resolvedPath); - } - } - } - return { - commonDir: dirNames.size ? (0, import_commondir.default)([...dirNames, dynamicRequireRoot]) : null, - dynamicRequireModules - }; -} -const FAILED_REQUIRE_ERROR = `throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');`; -const COMMONJS_REQUIRE_EXPORT = "commonjsRequire"; -const CREATE_COMMONJS_REQUIRE_EXPORT = "createCommonjsRequire"; -function getDynamicModuleRegistry(isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, ignoreDynamicRequires) { - if (!isDynamicRequireModulesEnabled) return `export function ${COMMONJS_REQUIRE_EXPORT}(path) { - ${FAILED_REQUIRE_ERROR} -}`; - return `${[...dynamicRequireModules.values()].map((id, index) => `import ${id.endsWith(".json") ? `json${index}` : `{ __require as require${index} }`} from ${JSON.stringify(id)};`).join("\n")} - -var dynamicModules; - -function getDynamicModules() { - return dynamicModules || (dynamicModules = { -${[...dynamicRequireModules.keys()].map((id, index) => `\t\t${JSON.stringify(getVirtualPathForDynamicRequirePath(id, commonDir))}: ${id.endsWith(".json") ? `function () { return json${index}; }` : `require${index}`}`).join(",\n")} - }); -} - -export function ${CREATE_COMMONJS_REQUIRE_EXPORT}(originalModuleDir) { - function handleRequire(path) { - var resolvedPath = commonjsResolve(path, originalModuleDir); - if (resolvedPath !== null) { - return getDynamicModules()[resolvedPath](); - } - ${ignoreDynamicRequires ? "return require(path);" : FAILED_REQUIRE_ERROR} - } - handleRequire.resolve = function (path) { - var resolvedPath = commonjsResolve(path, originalModuleDir); - if (resolvedPath !== null) { - return resolvedPath; - } - return require.resolve(path); - } - return handleRequire; -} - -function commonjsResolve (path, originalModuleDir) { - var shouldTryNodeModules = isPossibleNodeModulesPath(path); - path = normalize(path); - var relPath; - if (path[0] === '/') { - originalModuleDir = ''; - } - var modules = getDynamicModules(); - var checkedExtensions = ['', '.js', '.json']; - while (true) { - if (!shouldTryNodeModules) { - relPath = normalize(originalModuleDir + '/' + path); - } else { - relPath = normalize(originalModuleDir + '/node_modules/' + path); - } - - if (relPath.endsWith('/..')) { - break; // Travelled too far up, avoid infinite loop - } - - for (var extensionIndex = 0; extensionIndex < checkedExtensions.length; extensionIndex++) { - var resolvedPath = relPath + checkedExtensions[extensionIndex]; - if (modules[resolvedPath]) { - return resolvedPath; - } - } - if (!shouldTryNodeModules) break; - var nextDir = normalize(originalModuleDir + '/..'); - if (nextDir === originalModuleDir) break; - originalModuleDir = nextDir; - } - return null; -} - -function isPossibleNodeModulesPath (modulePath) { - var c0 = modulePath[0]; - if (c0 === '/' || c0 === '\\\\') return false; - var c1 = modulePath[1], c2 = modulePath[2]; - if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) || - (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false; - if (c1 === ':' && (c2 === '/' || c2 === '\\\\')) return false; - return true; -} - -function normalize (path) { - path = path.replace(/\\\\/g, '/'); - var parts = path.split('/'); - var slashed = parts[0] === ''; - for (var i = 1; i < parts.length; i++) { - if (parts[i] === '.' || parts[i] === '') { - parts.splice(i--, 1); - } - } - for (var i = 1; i < parts.length; i++) { - if (parts[i] !== '..') continue; - if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') { - parts.splice(--i, 2); - i--; - } - } - path = parts.join('/'); - if (slashed && path[0] !== '/') path = '/' + path; - else if (path.length === 0) path = '.'; - return path; -}`; -} -const isWrappedId = (id, suffix) => id.endsWith(suffix); -const wrapId$1 = (id, suffix) => `\0${id}${suffix}`; -const unwrapId$1 = (wrappedId, suffix) => wrappedId.slice(1, -suffix.length); -const PROXY_SUFFIX = "?commonjs-proxy"; -const WRAPPED_SUFFIX = "?commonjs-wrapped"; -const EXTERNAL_SUFFIX = "?commonjs-external"; -const EXPORTS_SUFFIX = "?commonjs-exports"; -const MODULE_SUFFIX = "?commonjs-module"; -const ENTRY_SUFFIX = "?commonjs-entry"; -const ES_IMPORT_SUFFIX = "?commonjs-es-import"; -const DYNAMIC_MODULES_ID = "\0commonjs-dynamic-modules"; -const HELPERS_ID = "\0commonjsHelpers.js"; -const IS_WRAPPED_COMMONJS = "withRequireFunction"; -const HELPERS = ` -export var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - -export function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - -export function getDefaultExportFromNamespaceIfPresent (n) { - return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n; -} - -export function getDefaultExportFromNamespaceIfNotNamed (n) { - return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n; -} - -export function getAugmentedNamespace(n) { - if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n; - var f = n.default; - if (typeof f == "function") { - var a = function a () { - var isInstance = false; - try { - isInstance = this instanceof a; - } catch {} - if (isInstance) { - return Reflect.construct(f, arguments, this.constructor); - } - return f.apply(this, arguments); - }; - a.prototype = f.prototype; - } else a = {}; - Object.defineProperty(a, '__esModule', {value: true}); - Object.keys(n).forEach(function (k) { - var d = Object.getOwnPropertyDescriptor(n, k); - Object.defineProperty(a, k, d.get ? d : { - enumerable: true, - get: function () { - return n[k]; - } - }); - }); - return a; -} -`; -function getHelpersModule() { - return HELPERS; -} -function getUnknownRequireProxy(id, requireReturnsDefault) { - if (requireReturnsDefault === true || id.endsWith(".json")) return `export { default } from ${JSON.stringify(id)};`; - const name = getName(id); - const exported = requireReturnsDefault === "auto" ? `import { getDefaultExportFromNamespaceIfNotNamed } from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${name});` : requireReturnsDefault === "preferred" ? `import { getDefaultExportFromNamespaceIfPresent } from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${name});` : !requireReturnsDefault ? `import { getAugmentedNamespace } from "${HELPERS_ID}"; export default /*@__PURE__*/getAugmentedNamespace(${name});` : `export default ${name};`; - return `import * as ${name} from ${JSON.stringify(id)}; ${exported}`; -} -async function getStaticRequireProxy(id, requireReturnsDefault, loadModule) { - const name = getName(id); - const { meta: { commonjs: commonjsMeta } } = await loadModule({ id }); - if (!commonjsMeta) return getUnknownRequireProxy(id, requireReturnsDefault); - if (commonjsMeta.isCommonJS) return `export { __moduleExports as default } from ${JSON.stringify(id)};`; - if (!requireReturnsDefault) return `import { getAugmentedNamespace } from "${HELPERS_ID}"; import * as ${name} from ${JSON.stringify(id)}; export default /*@__PURE__*/getAugmentedNamespace(${name});`; - if (requireReturnsDefault !== true && (requireReturnsDefault === "namespace" || !commonjsMeta.hasDefaultExport || requireReturnsDefault === "auto" && commonjsMeta.hasNamedExports)) return `import * as ${name} from ${JSON.stringify(id)}; export default ${name};`; - return `export { default } from ${JSON.stringify(id)};`; -} -function getEntryProxy(id, defaultIsModuleExports, getModuleInfo, shebang) { - const { meta: { commonjs: commonjsMeta }, hasDefaultExport } = getModuleInfo(id); - if (!commonjsMeta || commonjsMeta.isCommonJS !== IS_WRAPPED_COMMONJS) { - const stringifiedId = JSON.stringify(id); - let code = `export * from ${stringifiedId};`; - if (hasDefaultExport) code += `export { default } from ${stringifiedId};`; - return shebang + code; - } - const result = getEsImportProxy(id, defaultIsModuleExports, true); - return { - ...result, - code: shebang + result.code - }; -} -function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) { - const name = getName(id); - const exportsName = `${name}Exports`; - const requireModule = `require${capitalize(name)}`; - let code = `import { getDefaultExportFromCjs } from "${HELPERS_ID}";\nimport { __require as ${requireModule} } from ${JSON.stringify(id)};\nvar ${exportsName} = ${moduleSideEffects ? "" : "/*@__PURE__*/ "}${requireModule}();\nexport { ${exportsName} as __moduleExports };`; - if (defaultIsModuleExports === true) code += `\nexport { ${exportsName} as default };`; - else if (defaultIsModuleExports === false) code += `\nexport default ${exportsName}.default;`; - else code += `\nexport default /*@__PURE__*/getDefaultExportFromCjs(${exportsName});`; - return { - code, - syntheticNamedExports: "__moduleExports" - }; -} -function getExternalBuiltinRequireProxy(id) { - return `import { createRequire } from 'node:module'; -const require = createRequire(import.meta.url); -export function __require() { return require(${JSON.stringify(id)}); }`; -} -function getCandidatesForExtension(resolved, extension$1) { - return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`]; -} -function getCandidates(resolved, extensions$1) { - return extensions$1.reduce((paths, extension$1) => paths.concat(getCandidatesForExtension(resolved, extension$1)), [resolved]); -} -function resolveExtensions(importee, importer, extensions$1) { - if (importee[0] !== "." || !importer) return void 0; - const candidates = getCandidates(resolve$1(dirname$1(importer), importee), extensions$1); - for (let i$1 = 0; i$1 < candidates.length; i$1 += 1) try { - if (statSync(candidates[i$1]).isFile()) return { id: candidates[i$1] }; - } catch (err$2) {} -} -function getResolveId(extensions$1, isPossibleCjsId) { - const currentlyResolving = /* @__PURE__ */ new Map(); - return { - currentlyResolving, - async resolveId(importee, importer, resolveOptions) { - if (resolveOptions.custom?.["node-resolve"]?.isRequire) return null; - const currentlyResolvingForParent = currentlyResolving.get(importer); - if (currentlyResolvingForParent && currentlyResolvingForParent.has(importee)) { - this.warn({ - code: "THIS_RESOLVE_WITHOUT_OPTIONS", - message: "It appears a plugin has implemented a \"resolveId\" hook that uses \"this.resolve\" without forwarding the third \"options\" parameter of \"resolveId\". This is problematic as it can lead to wrong module resolutions especially for the node-resolve plugin and in certain cases cause early exit errors for the commonjs plugin.\nIn rare cases, this warning can appear if the same file is both imported and required from the same mixed ES/CommonJS module, in which case it can be ignored.", - url: "https://rollupjs.org/guide/en/#resolveid" - }); - return null; - } - if (isWrappedId(importee, WRAPPED_SUFFIX)) return unwrapId$1(importee, WRAPPED_SUFFIX); - if (importee.endsWith(ENTRY_SUFFIX) || isWrappedId(importee, MODULE_SUFFIX) || isWrappedId(importee, EXPORTS_SUFFIX) || isWrappedId(importee, PROXY_SUFFIX) || isWrappedId(importee, ES_IMPORT_SUFFIX) || isWrappedId(importee, EXTERNAL_SUFFIX) || importee.startsWith(HELPERS_ID) || importee === DYNAMIC_MODULES_ID) return importee; - if (importer) { - if (importer === DYNAMIC_MODULES_ID || isWrappedId(importer, PROXY_SUFFIX) || isWrappedId(importer, ES_IMPORT_SUFFIX) || importer.endsWith(ENTRY_SUFFIX)) return importee; - if (isWrappedId(importer, EXTERNAL_SUFFIX)) { - if (!await this.resolve(importee, importer, Object.assign({ skipSelf: true }, resolveOptions))) return null; - return { - id: importee, - external: true - }; - } - } - if (importee.startsWith("\0")) return null; - const resolved = await this.resolve(importee, importer, Object.assign({ skipSelf: true }, resolveOptions)) || resolveExtensions(importee, importer, extensions$1); - if (!resolved || resolved.external || resolved.id.endsWith(ENTRY_SUFFIX) || isWrappedId(resolved.id, ES_IMPORT_SUFFIX) || !isPossibleCjsId(resolved.id)) return resolved; - const moduleInfo = await this.load(resolved); - const { meta: { commonjs: commonjsMeta } } = moduleInfo; - if (commonjsMeta) { - const { isCommonJS } = commonjsMeta; - if (isCommonJS) { - if (resolveOptions.isEntry) { - moduleInfo.moduleSideEffects = true; - return resolved.id + ENTRY_SUFFIX; - } - if (isCommonJS === IS_WRAPPED_COMMONJS) return { - id: wrapId$1(resolved.id, ES_IMPORT_SUFFIX), - meta: { commonjs: { resolved } } - }; - } - } - return resolved; - } - }; -} -function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving, requireNodeBuiltins) { - const knownCjsModuleTypes = Object.create(null); - const requiredIds = Object.create(null); - const unconditionallyRequiredIds = Object.create(null); - const dependencies = Object.create(null); - const getDependencies = (id) => dependencies[id] || (dependencies[id] = /* @__PURE__ */ new Set()); - const isCyclic = (id) => { - const dependenciesToCheck = new Set(getDependencies(id)); - for (const dependency of dependenciesToCheck) { - if (dependency === id) return true; - for (const childDependency of getDependencies(dependency)) dependenciesToCheck.add(childDependency); - } - return false; - }; - const fullyAnalyzedModules = Object.create(null); - const getTypeForFullyAnalyzedModule = (id) => { - const knownType = knownCjsModuleTypes[id]; - if (knownType !== true || !detectCyclesAndConditional || fullyAnalyzedModules[id]) return knownType; - if (isCyclic(id)) return knownCjsModuleTypes[id] = IS_WRAPPED_COMMONJS; - return knownType; - }; - const setInitialParentType = (id, initialCommonJSType) => { - if (fullyAnalyzedModules[id]) return; - knownCjsModuleTypes[id] = initialCommonJSType; - if (detectCyclesAndConditional && knownCjsModuleTypes[id] === true && requiredIds[id] && !unconditionallyRequiredIds[id]) knownCjsModuleTypes[id] = IS_WRAPPED_COMMONJS; - }; - const analyzeRequiredModule = async (parentId, resolved, isConditional, loadModule) => { - const childId = resolved.id; - requiredIds[childId] = true; - if (!(isConditional || knownCjsModuleTypes[parentId] === IS_WRAPPED_COMMONJS)) unconditionallyRequiredIds[childId] = true; - getDependencies(parentId).add(childId); - if (!isCyclic(childId)) await loadModule(resolved); - }; - const getTypeForImportedModule = async (resolved, loadModule) => { - if (resolved.id in knownCjsModuleTypes) return knownCjsModuleTypes[resolved.id]; - const { meta: { commonjs: commonjs$1 } } = await loadModule(resolved); - return commonjs$1 && commonjs$1.isCommonJS || false; - }; - return { - getWrappedIds: () => Object.keys(knownCjsModuleTypes).filter((id) => knownCjsModuleTypes[id] === IS_WRAPPED_COMMONJS), - isRequiredId: (id) => requiredIds[id], - async shouldTransformCachedModule({ id: parentId, resolvedSources, meta: { commonjs: parentMeta } }) { - if (!(parentMeta && parentMeta.isCommonJS)) knownCjsModuleTypes[parentId] = false; - if (isWrappedId(parentId, ES_IMPORT_SUFFIX)) return false; - const parentRequires = parentMeta && parentMeta.requires; - if (parentRequires) { - setInitialParentType(parentId, parentMeta.initialCommonJSType); - await Promise.all(parentRequires.map(({ resolved, isConditional }) => analyzeRequiredModule(parentId, resolved, isConditional, this.load))); - if (getTypeForFullyAnalyzedModule(parentId) !== parentMeta.isCommonJS) return true; - for (const { resolved: { id } } of parentRequires) if (getTypeForFullyAnalyzedModule(id) !== parentMeta.isRequiredCommonJS[id]) return true; - fullyAnalyzedModules[parentId] = true; - for (const { resolved: { id } } of parentRequires) fullyAnalyzedModules[id] = true; - } - const parentRequireSet = new Set((parentRequires || []).map(({ resolved: { id } }) => id)); - return (await Promise.all(Object.keys(resolvedSources).map((source) => resolvedSources[source]).filter(({ id, external }) => !(external || parentRequireSet.has(id))).map(async (resolved) => { - if (isWrappedId(resolved.id, ES_IMPORT_SUFFIX)) return await getTypeForImportedModule((await this.load(resolved)).meta.commonjs.resolved, this.load) !== IS_WRAPPED_COMMONJS; - return await getTypeForImportedModule(resolved, this.load) === IS_WRAPPED_COMMONJS; - }))).some((shouldTransform) => shouldTransform); - }, - resolveRequireSourcesAndUpdateMeta: (rollupContext) => async (parentId, isParentCommonJS, parentMeta, sources) => { - parentMeta.initialCommonJSType = isParentCommonJS; - parentMeta.requires = []; - parentMeta.isRequiredCommonJS = Object.create(null); - setInitialParentType(parentId, isParentCommonJS); - const currentlyResolvingForParent = currentlyResolving.get(parentId) || /* @__PURE__ */ new Set(); - currentlyResolving.set(parentId, currentlyResolvingForParent); - const requireTargets = await Promise.all(sources.map(async ({ source, isConditional }) => { - if (source.startsWith("\0")) return { - id: source, - allowProxy: false - }; - currentlyResolvingForParent.add(source); - const resolved = await rollupContext.resolve(source, parentId, { - skipSelf: false, - custom: { "node-resolve": { isRequire: true } } - }) || resolveExtensions(source, parentId, extensions$1); - currentlyResolvingForParent.delete(source); - if (!resolved) return { - id: wrapId$1(source, EXTERNAL_SUFFIX), - allowProxy: false - }; - const childId = resolved.id; - if (resolved.external) return { - id: wrapId$1(childId, EXTERNAL_SUFFIX), - allowProxy: false - }; - parentMeta.requires.push({ - resolved, - isConditional - }); - await analyzeRequiredModule(parentId, resolved, isConditional, rollupContext.load); - return { - id: childId, - allowProxy: true - }; - })); - parentMeta.isCommonJS = getTypeForFullyAnalyzedModule(parentId); - fullyAnalyzedModules[parentId] = true; - return requireTargets.map(({ id: dependencyId, allowProxy }, index) => { - let isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId); - const isExternalWrapped = isWrappedId(dependencyId, EXTERNAL_SUFFIX); - let resolvedDependencyId = dependencyId; - if (requireNodeBuiltins === true) { - if (parentMeta.isCommonJS === IS_WRAPPED_COMMONJS && !allowProxy && isExternalWrapped) { - if (unwrapId$1(dependencyId, EXTERNAL_SUFFIX).startsWith("node:")) { - isCommonJS = IS_WRAPPED_COMMONJS; - parentMeta.isRequiredCommonJS[dependencyId] = isCommonJS; - } - } else if (isExternalWrapped && !allowProxy) { - const actualExternalId = unwrapId$1(dependencyId, EXTERNAL_SUFFIX); - if (actualExternalId.startsWith("node:")) resolvedDependencyId = actualExternalId; - } - } - const isWrappedCommonJS = isCommonJS === IS_WRAPPED_COMMONJS; - fullyAnalyzedModules[dependencyId] = true; - const moduleInfo = isWrappedCommonJS && !isExternalWrapped ? rollupContext.getModuleInfo(dependencyId) : null; - return { - wrappedModuleSideEffects: !isWrappedCommonJS ? false : moduleInfo?.moduleSideEffects ?? true, - source: sources[index].source, - id: allowProxy ? wrapId$1(resolvedDependencyId, isWrappedCommonJS ? WRAPPED_SUFFIX : PROXY_SUFFIX) : resolvedDependencyId, - isCommonJS - }; - }); - }, - isCurrentlyResolving(source, parentId) { - const currentlyResolvingForParent = currentlyResolving.get(parentId); - return currentlyResolvingForParent && currentlyResolvingForParent.has(source); - } - }; -} -function validateVersion(actualVersion, peerDependencyVersion, name) { - const versionRegexp = /\^(\d+\.\d+\.\d+)/g; - let minMajor = Infinity; - let minMinor = Infinity; - let minPatch = Infinity; - let foundVersion; - while (foundVersion = versionRegexp.exec(peerDependencyVersion)) { - const [foundMajor, foundMinor, foundPatch] = foundVersion[1].split(".").map(Number); - if (foundMajor < minMajor) { - minMajor = foundMajor; - minMinor = foundMinor; - minPatch = foundPatch; - } - } - if (!actualVersion) throw new Error(`Insufficient ${name} version: "@rollup/plugin-commonjs" requires at least ${name}@${minMajor}.${minMinor}.${minPatch}.`); - const [major, minor, patch] = actualVersion.split(".").map(Number); - if (major < minMajor || major === minMajor && (minor < minMinor || minor === minMinor && patch < minPatch)) throw new Error(`Insufficient ${name} version: "@rollup/plugin-commonjs" requires at least ${name}@${minMajor}.${minMinor}.${minPatch} but found ${name}@${actualVersion}.`); -} -const operators = { - "==": (x) => equals(x.left, x.right, false), - "!=": (x) => not(operators["=="](x)), - "===": (x) => equals(x.left, x.right, true), - "!==": (x) => not(operators["==="](x)), - "!": (x) => isFalsy(x.argument), - "&&": (x) => isTruthy(x.left) && isTruthy(x.right), - "||": (x) => isTruthy(x.left) || isTruthy(x.right) -}; -function not(value$1) { - return value$1 === null ? value$1 : !value$1; -} -function equals(a, b, strict) { - if (a.type !== b.type) return null; - if (a.type === "Literal") return strict ? a.value === b.value : a.value == b.value; - return null; -} -function isTruthy(node) { - if (!node) return false; - if (node.type === "Literal") return !!node.value; - if (node.type === "ParenthesizedExpression") return isTruthy(node.expression); - if (node.operator in operators) return operators[node.operator](node); - return null; -} -function isFalsy(node) { - return not(isTruthy(node)); -} -function getKeypath(node) { - const parts = []; - while (node.type === "MemberExpression") { - if (node.computed) return null; - parts.unshift(node.property.name); - node = node.object; - } - if (node.type !== "Identifier") return null; - const { name } = node; - parts.unshift(name); - return { - name, - keypath: parts.join(".") - }; -} -const KEY_COMPILED_ESM = "__esModule"; -function getDefineCompiledEsmType(node) { - const definedPropertyWithExports = getDefinePropertyCallName(node, "exports"); - const definedProperty = definedPropertyWithExports || getDefinePropertyCallName(node, "module.exports"); - if (definedProperty && definedProperty.key === KEY_COMPILED_ESM) return isTruthy(definedProperty.value) ? definedPropertyWithExports ? "exports" : "module" : false; - return false; -} -function getDefinePropertyCallName(node, targetName) { - const { callee: { object, property } } = node; - if (!object || object.type !== "Identifier" || object.name !== "Object") return; - if (!property || property.type !== "Identifier" || property.name !== "defineProperty") return; - if (node.arguments.length !== 3) return; - const targetNames = targetName.split("."); - const [target, key, value$1] = node.arguments; - if (targetNames.length === 1) { - if (target.type !== "Identifier" || target.name !== targetNames[0]) return; - } - if (targetNames.length === 2) { - if (target.type !== "MemberExpression" || target.object.name !== targetNames[0] || target.property.name !== targetNames[1]) return; - } - if (value$1.type !== "ObjectExpression" || !value$1.properties) return; - const valueProperty = value$1.properties.find((p) => p.key && p.key.name === "value"); - if (!valueProperty || !valueProperty.value) return; - return { - key: key.value, - value: valueProperty.value - }; -} -function isShorthandProperty(parent) { - return parent && parent.type === "Property" && parent.shorthand; -} -function wrapCode(magicString, uses, moduleName, exportsName, indentExclusionRanges) { - const args = []; - const passedArgs = []; - if (uses.module) { - args.push("module"); - passedArgs.push(moduleName); - } - if (uses.exports) { - args.push("exports"); - passedArgs.push(uses.module ? `${moduleName}.exports` : exportsName); - } - magicString.trim().indent(" ", { exclude: indentExclusionRanges }).prepend(`(function (${args.join(", ")}) {\n`).append(` \n} (${passedArgs.join(", ")}));`); -} -function rewriteExportsAndGetExportsBlock(magicString, moduleName, exportsName, exportedExportsName, wrapped, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsAssignmentsByName, topLevelAssignments, defineCompiledEsmExpressions, deconflictedExportNames, code, HELPERS_NAME, exportMode, defaultIsModuleExports, usesRequireWrapper, requireName) { - const exports$1 = []; - const exportDeclarations = []; - if (usesRequireWrapper) getExportsWhenUsingRequireWrapper(magicString, wrapped, exportMode, exports$1, moduleExportsAssignments, exportsAssignmentsByName, moduleName, exportsName, requireName, defineCompiledEsmExpressions); - else if (exportMode === "replace") getExportsForReplacedModuleExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsName, defaultIsModuleExports, HELPERS_NAME); - else { - if (exportMode === "module") { - exportDeclarations.push(`var ${exportedExportsName} = ${moduleName}.exports`); - exports$1.push(`${exportedExportsName} as __moduleExports`); - } else exports$1.push(`${exportsName} as __moduleExports`); - if (wrapped) exportDeclarations.push(getDefaultExportDeclaration(exportedExportsName, defaultIsModuleExports, HELPERS_NAME)); - else getExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, exportsAssignmentsByName, deconflictedExportNames, topLevelAssignments, moduleName, exportsName, exportedExportsName, defineCompiledEsmExpressions, HELPERS_NAME, defaultIsModuleExports, exportMode); - } - if (exports$1.length) exportDeclarations.push(`export { ${exports$1.join(", ")} }`); - return `\n\n${exportDeclarations.join(";\n")};`; -} -function getExportsWhenUsingRequireWrapper(magicString, wrapped, exportMode, exports$1, moduleExportsAssignments, exportsAssignmentsByName, moduleName, exportsName, requireName, defineCompiledEsmExpressions) { - exports$1.push(`${requireName} as __require`); - if (wrapped) return; - if (exportMode === "replace") rewriteModuleExportsAssignments(magicString, moduleExportsAssignments, exportsName); - else { - rewriteModuleExportsAssignments(magicString, moduleExportsAssignments, `${moduleName}.exports`); - for (const [exportName, { nodes }] of exportsAssignmentsByName) for (const { node, type } of nodes) magicString.overwrite(node.start, node.left.end, `${exportMode === "module" && type === "module" ? `${moduleName}.exports` : exportsName}.${exportName}`); - replaceDefineCompiledEsmExpressionsAndGetIfRestorable(defineCompiledEsmExpressions, magicString, exportMode, moduleName, exportsName); - } -} -function getExportsForReplacedModuleExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsName, defaultIsModuleExports, HELPERS_NAME) { - for (const { left } of moduleExportsAssignments) magicString.overwrite(left.start, left.end, exportsName); - magicString.prependRight(firstTopLevelModuleExportsAssignment.left.start, "var "); - exports$1.push(`${exportsName} as __moduleExports`); - exportDeclarations.push(getDefaultExportDeclaration(exportsName, defaultIsModuleExports, HELPERS_NAME)); -} -function getDefaultExportDeclaration(exportedExportsName, defaultIsModuleExports, HELPERS_NAME) { - return `export default ${defaultIsModuleExports === true ? exportedExportsName : defaultIsModuleExports === false ? `${exportedExportsName}.default` : `/*@__PURE__*/${HELPERS_NAME}.getDefaultExportFromCjs(${exportedExportsName})`}`; -} -function getExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, exportsAssignmentsByName, deconflictedExportNames, topLevelAssignments, moduleName, exportsName, exportedExportsName, defineCompiledEsmExpressions, HELPERS_NAME, defaultIsModuleExports, exportMode) { - let deconflictedDefaultExportName; - for (const { left } of moduleExportsAssignments) magicString.overwrite(left.start, left.end, `${moduleName}.exports`); - for (const [exportName, { nodes }] of exportsAssignmentsByName) { - const deconflicted = deconflictedExportNames[exportName]; - let needsDeclaration = true; - for (const { node, type } of nodes) { - let replacement = `${deconflicted} = ${exportMode === "module" && type === "module" ? `${moduleName}.exports` : exportsName}.${exportName}`; - if (needsDeclaration && topLevelAssignments.has(node)) { - replacement = `var ${replacement}`; - needsDeclaration = false; - } - magicString.overwrite(node.start, node.left.end, replacement); - } - if (needsDeclaration) magicString.prepend(`var ${deconflicted};\n`); - if (exportName === "default") deconflictedDefaultExportName = deconflicted; - else exports$1.push(exportName === deconflicted ? exportName : `${deconflicted} as ${exportName}`); - } - const isRestorableCompiledEsm = replaceDefineCompiledEsmExpressionsAndGetIfRestorable(defineCompiledEsmExpressions, magicString, exportMode, moduleName, exportsName); - if (defaultIsModuleExports === false || defaultIsModuleExports === "auto" && isRestorableCompiledEsm && moduleExportsAssignments.length === 0) exports$1.push(`${deconflictedDefaultExportName || exportedExportsName} as default`); - else if (defaultIsModuleExports === true || !isRestorableCompiledEsm && moduleExportsAssignments.length === 0) exports$1.push(`${exportedExportsName} as default`); - else exportDeclarations.push(getDefaultExportDeclaration(exportedExportsName, defaultIsModuleExports, HELPERS_NAME)); -} -function rewriteModuleExportsAssignments(magicString, moduleExportsAssignments, exportsName) { - for (const { left } of moduleExportsAssignments) magicString.overwrite(left.start, left.end, exportsName); -} -function replaceDefineCompiledEsmExpressionsAndGetIfRestorable(defineCompiledEsmExpressions, magicString, exportMode, moduleName, exportsName) { - let isRestorableCompiledEsm = false; - for (const { node, type } of defineCompiledEsmExpressions) { - isRestorableCompiledEsm = true; - const moduleExportsExpression = node.type === "CallExpression" ? node.arguments[0] : node.left.object; - magicString.overwrite(moduleExportsExpression.start, moduleExportsExpression.end, exportMode === "module" && type === "module" ? `${moduleName}.exports` : exportsName); - } - return isRestorableCompiledEsm; -} -function isRequireExpression(node, scope) { - if (!node) return false; - if (node.type !== "CallExpression") return false; - if (node.arguments.length === 0) return false; - return isRequire(node.callee, scope); -} -function isRequire(node, scope) { - return node.type === "Identifier" && node.name === "require" && !scope.contains("require") || node.type === "MemberExpression" && isModuleRequire(node, scope); -} -function isModuleRequire({ object, property }, scope) { - return object.type === "Identifier" && object.name === "module" && property.type === "Identifier" && property.name === "require" && !scope.contains("module"); -} -function hasDynamicArguments(node) { - return node.arguments.length > 1 || node.arguments[0].type !== "Literal" && (node.arguments[0].type !== "TemplateLiteral" || node.arguments[0].expressions.length > 0); -} -const reservedMethod = { - resolve: true, - cache: true, - main: true -}; -function isNodeRequirePropertyAccess(parent) { - return parent && parent.property && reservedMethod[parent.property.name]; -} -function getRequireStringArg(node) { - return node.arguments[0].type === "Literal" ? node.arguments[0].value : node.arguments[0].quasis[0].value.cooked; -} -function getRequireHandlers() { - const requireExpressions = []; - function addRequireExpression(sourceId, node, scope, usesReturnValue, isInsideTryBlock, isInsideConditional, toBeRemoved) { - requireExpressions.push({ - sourceId, - node, - scope, - usesReturnValue, - isInsideTryBlock, - isInsideConditional, - toBeRemoved - }); - } - async function rewriteRequireExpressionsAndGetImportBlock(magicString, topLevelDeclarations, reassignedNames, helpersName, dynamicRequireName, moduleName, exportsName, id, exportMode, resolveRequireSourcesAndUpdateMeta, needsRequireWrapper, isEsModule, isDynamicRequireModulesEnabled, getIgnoreTryCatchRequireStatementMode, commonjsMeta) { - const imports = []; - imports.push(`import * as ${helpersName} from "${HELPERS_ID}"`); - if (dynamicRequireName) imports.push(`import { ${isDynamicRequireModulesEnabled ? CREATE_COMMONJS_REQUIRE_EXPORT : COMMONJS_REQUIRE_EXPORT} as ${dynamicRequireName} } from "${DYNAMIC_MODULES_ID}"`); - if (exportMode === "module") imports.push(`import { __module as ${moduleName} } from ${JSON.stringify(wrapId$1(id, MODULE_SUFFIX))}`, `var ${exportsName} = ${moduleName}.exports`); - else if (exportMode === "exports") imports.push(`import { __exports as ${exportsName} } from ${JSON.stringify(wrapId$1(id, EXPORTS_SUFFIX))}`); - const requiresBySource = collectSources(requireExpressions); - processRequireExpressions(imports, await resolveRequireSourcesAndUpdateMeta(id, needsRequireWrapper ? IS_WRAPPED_COMMONJS : !isEsModule, commonjsMeta, Object.keys(requiresBySource).map((source) => { - return { - source, - isConditional: requiresBySource[source].every((require$1) => require$1.isInsideConditional) - }; - })), requiresBySource, getIgnoreTryCatchRequireStatementMode, magicString); - return imports.length ? `${imports.join(";\n")};\n\n` : ""; - } - return { - addRequireExpression, - rewriteRequireExpressionsAndGetImportBlock - }; -} -function collectSources(requireExpressions) { - const requiresBySource = Object.create(null); - for (const requireExpression of requireExpressions) { - const { sourceId } = requireExpression; - if (!requiresBySource[sourceId]) requiresBySource[sourceId] = []; - requiresBySource[sourceId].push(requireExpression); - } - return requiresBySource; -} -function processRequireExpressions(imports, requireTargets, requiresBySource, getIgnoreTryCatchRequireStatementMode, magicString) { - const generateRequireName = getGenerateRequireName(); - for (const { source, id: resolvedId, isCommonJS, wrappedModuleSideEffects } of requireTargets) { - const requires = requiresBySource[source]; - const name = generateRequireName(requires); - let usesRequired = false; - let needsImport = false; - for (const { node, usesReturnValue, toBeRemoved, isInsideTryBlock } of requires) { - const { canConvertRequire, shouldRemoveRequire } = isInsideTryBlock && isWrappedId(resolvedId, EXTERNAL_SUFFIX) ? getIgnoreTryCatchRequireStatementMode(source) : { - canConvertRequire: true, - shouldRemoveRequire: false - }; - if (shouldRemoveRequire) if (usesReturnValue) magicString.overwrite(node.start, node.end, "undefined"); - else magicString.remove(toBeRemoved.start, toBeRemoved.end); - else if (canConvertRequire) { - needsImport = true; - if (isCommonJS === IS_WRAPPED_COMMONJS) magicString.overwrite(node.start, node.end, `${wrappedModuleSideEffects ? "" : "/*@__PURE__*/ "}${name}()`); - else if (usesReturnValue) { - usesRequired = true; - magicString.overwrite(node.start, node.end, name); - } else magicString.remove(toBeRemoved.start, toBeRemoved.end); - } - } - if (needsImport) if (isCommonJS === IS_WRAPPED_COMMONJS) imports.push(`import { __require as ${name} } from ${JSON.stringify(resolvedId)}`); - else imports.push(`import ${usesRequired ? `${name} from ` : ""}${JSON.stringify(resolvedId)}`); - } -} -function getGenerateRequireName() { - let uid = 0; - return (requires) => { - let name; - const hasNameConflict = ({ scope }) => scope.contains(name); - do { - name = `require$$${uid}`; - uid += 1; - } while (requires.some(hasNameConflict)); - return name; - }; -} -const exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/; -const functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/; -async function transformCommonjs(parse$17, code, id, isEsModule, ignoreGlobal, ignoreRequire, ignoreDynamicRequires, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, astCache, defaultIsModuleExports, needsRequireWrapper, resolveRequireSourcesAndUpdateMeta, isRequired, checkDynamicRequire, commonjsMeta) { - const ast = astCache || tryParse(parse$17, code, id); - const magicString = new MagicString(code); - const uses = { - module: false, - exports: false, - global: false, - require: false - }; - const virtualDynamicRequirePath = isDynamicRequireModulesEnabled && getVirtualPathForDynamicRequirePath(dirname$1(id), commonDir); - let scope = attachScopes(ast, "scope"); - let lexicalDepth = 0; - let programDepth = 0; - let classBodyDepth = 0; - let currentTryBlockEnd = null; - let shouldWrap = false; - const globals = /* @__PURE__ */ new Set(); - let currentConditionalNodeEnd = null; - const conditionalNodes = /* @__PURE__ */ new Set(); - const { addRequireExpression, rewriteRequireExpressionsAndGetImportBlock } = getRequireHandlers(); - const reassignedNames = /* @__PURE__ */ new Set(); - const topLevelDeclarations = []; - const skippedNodes = /* @__PURE__ */ new Set(); - const moduleAccessScopes = new Set([scope]); - const exportsAccessScopes = new Set([scope]); - const moduleExportsAssignments = []; - let firstTopLevelModuleExportsAssignment = null; - const exportsAssignmentsByName = /* @__PURE__ */ new Map(); - const topLevelAssignments = /* @__PURE__ */ new Set(); - const topLevelDefineCompiledEsmExpressions = []; - const replacedGlobal = []; - const replacedThis = []; - const replacedDynamicRequires = []; - const importedVariables = /* @__PURE__ */ new Set(); - const indentExclusionRanges = []; - walk$2(ast, { - enter(node, parent) { - if (skippedNodes.has(node)) { - this.skip(); - return; - } - if (currentTryBlockEnd !== null && node.start > currentTryBlockEnd) currentTryBlockEnd = null; - if (currentConditionalNodeEnd !== null && node.start > currentConditionalNodeEnd) currentConditionalNodeEnd = null; - if (currentConditionalNodeEnd === null && conditionalNodes.has(node)) currentConditionalNodeEnd = node.end; - programDepth += 1; - if (node.scope) ({scope} = node); - if (functionType.test(node.type)) lexicalDepth += 1; - if (sourceMap) { - magicString.addSourcemapLocation(node.start); - magicString.addSourcemapLocation(node.end); - } - switch (node.type) { - case "AssignmentExpression": - if (node.left.type === "MemberExpression") { - const flattened = getKeypath(node.left); - if (!flattened || scope.contains(flattened.name)) return; - const exportsPatternMatch = exportsPattern.exec(flattened.keypath); - if (!exportsPatternMatch || flattened.keypath === "exports") return; - const [, exportName] = exportsPatternMatch; - uses[flattened.name] = true; - if (flattened.keypath === "module.exports") { - moduleExportsAssignments.push(node); - if (programDepth > 3) moduleAccessScopes.add(scope); - else if (!firstTopLevelModuleExportsAssignment) firstTopLevelModuleExportsAssignment = node; - } else if (exportName === KEY_COMPILED_ESM) if (programDepth > 3) shouldWrap = true; - else topLevelDefineCompiledEsmExpressions.push({ - node, - type: flattened.name - }); - else { - const exportsAssignments = exportsAssignmentsByName.get(exportName) || { - nodes: [], - scopes: /* @__PURE__ */ new Set() - }; - exportsAssignments.nodes.push({ - node, - type: flattened.name - }); - exportsAssignments.scopes.add(scope); - exportsAccessScopes.add(scope); - exportsAssignmentsByName.set(exportName, exportsAssignments); - if (programDepth <= 3) topLevelAssignments.add(node); - } - skippedNodes.add(node.left); - } else for (const name of extractAssignedNames(node.left)) reassignedNames.add(name); - return; - case "CallExpression": { - const defineCompiledEsmType = getDefineCompiledEsmType(node); - if (defineCompiledEsmType) { - if (programDepth === 3 && parent.type === "ExpressionStatement") { - skippedNodes.add(node.arguments[0]); - topLevelDefineCompiledEsmExpressions.push({ - node, - type: defineCompiledEsmType - }); - } else shouldWrap = true; - return; - } - if (isDynamicRequireModulesEnabled && node.callee.object && isRequire(node.callee.object, scope) && node.callee.property.name === "resolve") { - checkDynamicRequire(node.start); - uses.require = true; - replacedDynamicRequires.push(node.callee.object); - skippedNodes.add(node.callee); - return; - } - if (!isRequireExpression(node, scope)) { - const keypath = getKeypath(node.callee); - if (keypath && importedVariables.has(keypath.name)) currentConditionalNodeEnd = Infinity; - return; - } - skippedNodes.add(node.callee); - uses.require = true; - if (hasDynamicArguments(node)) { - if (isDynamicRequireModulesEnabled) checkDynamicRequire(node.start); - if (!ignoreDynamicRequires) replacedDynamicRequires.push(node.callee); - return; - } - const requireStringArg = getRequireStringArg(node); - if (!ignoreRequire(requireStringArg)) { - addRequireExpression(requireStringArg, node, scope, parent.type !== "ExpressionStatement", currentTryBlockEnd !== null, currentConditionalNodeEnd !== null, parent.type === "ExpressionStatement" && (!currentConditionalNodeEnd || currentTryBlockEnd !== null && currentTryBlockEnd < currentConditionalNodeEnd) ? parent : node); - if (parent.type === "VariableDeclarator" && parent.id.type === "Identifier") for (const name of extractAssignedNames(parent.id)) importedVariables.add(name); - } - return; - } - case "ClassBody": - classBodyDepth += 1; - return; - case "ConditionalExpression": - case "IfStatement": - if (isFalsy(node.test)) skippedNodes.add(node.consequent); - else if (isTruthy(node.test)) { - if (node.alternate) skippedNodes.add(node.alternate); - } else { - conditionalNodes.add(node.consequent); - if (node.alternate) conditionalNodes.add(node.alternate); - } - return; - case "ArrowFunctionExpression": - case "FunctionDeclaration": - case "FunctionExpression": - if (currentConditionalNodeEnd === null && !(parent.type === "CallExpression" && parent.callee === node)) currentConditionalNodeEnd = node.end; - return; - case "Identifier": { - const { name } = node; - if (!(0, import_is_reference.default)(node, parent) || scope.contains(name) || parent.type === "PropertyDefinition" && parent.key === node) return; - switch (name) { - case "require": - uses.require = true; - if (isNodeRequirePropertyAccess(parent)) return; - if (!ignoreDynamicRequires) { - if (isShorthandProperty(parent)) { - skippedNodes.add(parent.value); - magicString.prependRight(node.start, "require: "); - } - replacedDynamicRequires.push(node); - } - return; - case "module": - case "exports": - shouldWrap = true; - uses[name] = true; - return; - case "global": - uses.global = true; - if (!ignoreGlobal) replacedGlobal.push(node); - return; - case "define": - magicString.overwrite(node.start, node.end, "undefined", { storeName: true }); - return; - default: - globals.add(name); - return; - } - } - case "LogicalExpression": - if (node.operator === "&&") { - if (isFalsy(node.left)) skippedNodes.add(node.right); - else if (!isTruthy(node.left)) conditionalNodes.add(node.right); - } else if (node.operator === "||") { - if (isTruthy(node.left)) skippedNodes.add(node.right); - else if (!isFalsy(node.left)) conditionalNodes.add(node.right); - } - return; - case "MemberExpression": - if (!isDynamicRequireModulesEnabled && isModuleRequire(node, scope)) { - uses.require = true; - replacedDynamicRequires.push(node); - skippedNodes.add(node.object); - skippedNodes.add(node.property); - } - return; - case "ReturnStatement": - if (lexicalDepth === 0) shouldWrap = true; - return; - case "ThisExpression": - if (lexicalDepth === 0 && !classBodyDepth) { - uses.global = true; - if (!ignoreGlobal) replacedThis.push(node); - } - return; - case "TryStatement": - if (currentTryBlockEnd === null) currentTryBlockEnd = node.block.end; - if (currentConditionalNodeEnd === null) currentConditionalNodeEnd = node.end; - return; - case "UnaryExpression": - if (node.operator === "typeof") { - const flattened = getKeypath(node.argument); - if (!flattened) return; - if (scope.contains(flattened.name)) return; - if (!isEsModule && (flattened.keypath === "module.exports" || flattened.keypath === "module" || flattened.keypath === "exports")) magicString.overwrite(node.start, node.end, `'object'`, { storeName: false }); - } - return; - case "VariableDeclaration": - if (!scope.parent) topLevelDeclarations.push(node); - return; - case "TemplateElement": if (node.value.raw.includes("\n")) indentExclusionRanges.push([node.start, node.end]); - } - }, - leave(node) { - programDepth -= 1; - if (node.scope) scope = scope.parent; - if (functionType.test(node.type)) lexicalDepth -= 1; - if (node.type === "ClassBody") classBodyDepth -= 1; - } - }); - const nameBase = getName(id); - const exportsName = deconflict([...exportsAccessScopes], globals, nameBase); - const moduleName = deconflict([...moduleAccessScopes], globals, `${nameBase}Module`); - const requireName = deconflict([scope], globals, `require${capitalize(nameBase)}`); - const isRequiredName = deconflict([scope], globals, `hasRequired${capitalize(nameBase)}`); - const helpersName = deconflict([scope], globals, "commonjsHelpers"); - const dynamicRequireName = replacedDynamicRequires.length > 0 && deconflict([scope], globals, isDynamicRequireModulesEnabled ? CREATE_COMMONJS_REQUIRE_EXPORT : COMMONJS_REQUIRE_EXPORT); - const deconflictedExportNames = Object.create(null); - for (const [exportName, { scopes }] of exportsAssignmentsByName) deconflictedExportNames[exportName] = deconflict([...scopes], globals, exportName); - for (const node of replacedGlobal) magicString.overwrite(node.start, node.end, `${helpersName}.commonjsGlobal`, { storeName: true }); - for (const node of replacedThis) magicString.overwrite(node.start, node.end, exportsName, { storeName: true }); - for (const node of replacedDynamicRequires) magicString.overwrite(node.start, node.end, isDynamicRequireModulesEnabled ? `${dynamicRequireName}(${JSON.stringify(virtualDynamicRequirePath)})` : dynamicRequireName, { - contentOnly: true, - storeName: true - }); - shouldWrap = !isEsModule && (shouldWrap || uses.exports && moduleExportsAssignments.length > 0); - if (!(shouldWrap || isRequired || needsRequireWrapper || uses.module || uses.exports || uses.require || topLevelDefineCompiledEsmExpressions.length > 0) && (ignoreGlobal || !uses.global)) return { meta: { commonjs: { isCommonJS: false } } }; - let leadingComment = ""; - if (code.startsWith("/*")) { - const commentEnd = code.indexOf("*/", 2) + 2; - leadingComment = `${code.slice(0, commentEnd)}\n`; - magicString.remove(0, commentEnd).trim(); - } - let shebang = ""; - if (code.startsWith("#!")) { - const shebangEndPosition = code.indexOf("\n") + 1; - shebang = code.slice(0, shebangEndPosition); - magicString.remove(0, shebangEndPosition).trim(); - } - const exportMode = isEsModule ? "none" : shouldWrap ? uses.module ? "module" : "exports" : firstTopLevelModuleExportsAssignment ? exportsAssignmentsByName.size === 0 && topLevelDefineCompiledEsmExpressions.length === 0 ? "replace" : "module" : moduleExportsAssignments.length === 0 ? "exports" : "module"; - const exportedExportsName = exportMode === "module" ? deconflict([], globals, `${nameBase}Exports`) : exportsName; - const importBlock = await rewriteRequireExpressionsAndGetImportBlock(magicString, topLevelDeclarations, reassignedNames, helpersName, dynamicRequireName, moduleName, exportsName, id, exportMode, resolveRequireSourcesAndUpdateMeta, needsRequireWrapper, isEsModule, isDynamicRequireModulesEnabled, getIgnoreTryCatchRequireStatementMode, commonjsMeta); - const usesRequireWrapper = commonjsMeta.isCommonJS === IS_WRAPPED_COMMONJS; - const exportBlock = isEsModule ? "" : rewriteExportsAndGetExportsBlock(magicString, moduleName, exportsName, exportedExportsName, shouldWrap, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsAssignmentsByName, topLevelAssignments, topLevelDefineCompiledEsmExpressions, deconflictedExportNames, code, helpersName, exportMode, defaultIsModuleExports, usesRequireWrapper, requireName); - if (shouldWrap) wrapCode(magicString, uses, moduleName, exportsName, indentExclusionRanges); - if (usesRequireWrapper) { - magicString.trim().indent(" ", { exclude: indentExclusionRanges }); - const exported = exportMode === "module" ? `${moduleName}.exports` : exportsName; - magicString.prepend(`var ${isRequiredName}; - -function ${requireName} () { -\tif (${isRequiredName}) return ${exported}; -\t${isRequiredName} = 1; -`).append(` -\treturn ${exported}; -}`); - if (exportMode === "replace") magicString.prepend(`var ${exportsName};\n`); - } - magicString.trim().prepend(shebang + leadingComment + importBlock).append(exportBlock); - return { - code: magicString.toString(), - map: sourceMap ? magicString.generateMap() : null, - syntheticNamedExports: isEsModule || usesRequireWrapper ? false : "__moduleExports", - meta: { commonjs: { - ...commonjsMeta, - shebang - } } - }; -} -const PLUGIN_NAME = "commonjs"; -function commonjs(options$1 = {}) { - const { ignoreGlobal, ignoreDynamicRequires, requireReturnsDefault: requireReturnsDefaultOption, defaultIsModuleExports: defaultIsModuleExportsOption, esmExternals, requireNodeBuiltins = false } = options$1; - const extensions$1 = options$1.extensions || [".js"]; - const filter$1 = createFilter$2(options$1.include, options$1.exclude); - const isPossibleCjsId = (id) => { - const extName = extname$1(id); - return extName === ".cjs" || extensions$1.includes(extName) && filter$1(id); - }; - const { strictRequiresFilter, detectCyclesAndConditional } = getStrictRequiresFilter(options$1); - const getRequireReturnsDefault = typeof requireReturnsDefaultOption === "function" ? requireReturnsDefaultOption : () => requireReturnsDefaultOption; - let esmExternalIds; - const isEsmExternal = typeof esmExternals === "function" ? esmExternals : Array.isArray(esmExternals) ? (esmExternalIds = new Set(esmExternals), (id) => esmExternalIds.has(id)) : () => esmExternals; - const getDefaultIsModuleExports = typeof defaultIsModuleExportsOption === "function" ? defaultIsModuleExportsOption : () => typeof defaultIsModuleExportsOption === "boolean" ? defaultIsModuleExportsOption : "auto"; - const dynamicRequireRoot = typeof options$1.dynamicRequireRoot === "string" ? resolve$1(options$1.dynamicRequireRoot) : process.cwd(); - const { commonDir, dynamicRequireModules } = getDynamicRequireModules(options$1.dynamicRequireTargets, dynamicRequireRoot); - const isDynamicRequireModulesEnabled = dynamicRequireModules.size > 0; - const ignoreRequire = typeof options$1.ignore === "function" ? options$1.ignore : Array.isArray(options$1.ignore) ? (id) => options$1.ignore.includes(id) : () => false; - const getIgnoreTryCatchRequireStatementMode = (id) => { - const mode = typeof options$1.ignoreTryCatch === "function" ? options$1.ignoreTryCatch(id) : Array.isArray(options$1.ignoreTryCatch) ? options$1.ignoreTryCatch.includes(id) : typeof options$1.ignoreTryCatch !== "undefined" ? options$1.ignoreTryCatch : true; - return { - canConvertRequire: mode !== "remove" && mode !== true, - shouldRemoveRequire: mode === "remove" - }; - }; - const { currentlyResolving, resolveId } = getResolveId(extensions$1, isPossibleCjsId); - const sourceMap = options$1.sourceMap !== false; - let requireResolver; - function transformAndCheckExports(code, id) { - const normalizedId = normalizePathSlashes(id); - const { isEsModule, hasDefaultExport, hasNamedExports, ast } = analyzeTopLevelStatements(this.parse, code, id); - const commonjsMeta = this.getModuleInfo(id).meta.commonjs || {}; - if (hasDefaultExport) commonjsMeta.hasDefaultExport = true; - if (hasNamedExports) commonjsMeta.hasNamedExports = true; - if (!dynamicRequireModules.has(normalizedId) && (!(hasCjsKeywords(code, ignoreGlobal) || requireResolver.isRequiredId(id)) || isEsModule && !options$1.transformMixedEsModules)) { - commonjsMeta.isCommonJS = false; - return { meta: { commonjs: commonjsMeta } }; - } - const needsRequireWrapper = !isEsModule && (dynamicRequireModules.has(normalizedId) || strictRequiresFilter(id)); - const checkDynamicRequire = (position) => { - const normalizedDynamicRequireRoot = normalizePathSlashes(dynamicRequireRoot); - if (normalizedId.indexOf(normalizedDynamicRequireRoot) !== 0) this.error({ - code: "DYNAMIC_REQUIRE_OUTSIDE_ROOT", - normalizedId, - normalizedDynamicRequireRoot, - message: `"${normalizedId}" contains dynamic require statements but it is not within the current dynamicRequireRoot "${normalizedDynamicRequireRoot}". You should set dynamicRequireRoot to "${dirname$1(normalizedId)}" or one of its parent directories.` - }, position); - }; - return transformCommonjs(this.parse, code, id, isEsModule, ignoreGlobal || isEsModule, ignoreRequire, ignoreDynamicRequires && !isDynamicRequireModulesEnabled, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, ast, getDefaultIsModuleExports(id), needsRequireWrapper, requireResolver.resolveRequireSourcesAndUpdateMeta(this), requireResolver.isRequiredId(id), checkDynamicRequire, commonjsMeta); - } - return { - name: PLUGIN_NAME, - version: version$1, - options(rawOptions) { - const plugins$1 = Array.isArray(rawOptions.plugins) ? [...rawOptions.plugins] : rawOptions.plugins ? [rawOptions.plugins] : []; - plugins$1.unshift({ - name: "commonjs--resolver", - resolveId - }); - return { - ...rawOptions, - plugins: plugins$1 - }; - }, - buildStart({ plugins: plugins$1 }) { - validateVersion(this.meta.rollupVersion, peerDependencies.rollup, "rollup"); - const nodeResolve = plugins$1.find(({ name }) => name === "node-resolve"); - if (nodeResolve) validateVersion(nodeResolve.version, "^13.0.6", "@rollup/plugin-node-resolve"); - if (options$1.namedExports != null) this.warn("The namedExports option from \"@rollup/plugin-commonjs\" is deprecated. Named exports are now handled automatically."); - requireResolver = getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving, requireNodeBuiltins); - }, - buildEnd() { - if (options$1.strictRequires === "debug") { - const wrappedIds = requireResolver.getWrappedIds(); - if (wrappedIds.length) this.warn({ - code: "WRAPPED_IDS", - ids: wrappedIds, - message: `The commonjs plugin automatically wrapped the following files:\n[\n${wrappedIds.map((id) => `\t${JSON.stringify(relative$1(process.cwd(), id))}`).join(",\n")}\n]` - }); - else this.warn({ - code: "WRAPPED_IDS", - ids: wrappedIds, - message: "The commonjs plugin did not wrap any files." - }); - } - }, - async load(id) { - if (id === HELPERS_ID) return getHelpersModule(); - if (isWrappedId(id, MODULE_SUFFIX)) { - const name = getName(unwrapId$1(id, MODULE_SUFFIX)); - return { - code: `var ${name} = {exports: {}}; export {${name} as __module}`, - meta: { commonjs: { isCommonJS: false } } - }; - } - if (isWrappedId(id, EXPORTS_SUFFIX)) { - const name = getName(unwrapId$1(id, EXPORTS_SUFFIX)); - return { - code: `var ${name} = {}; export {${name} as __exports}`, - meta: { commonjs: { isCommonJS: false } } - }; - } - if (isWrappedId(id, EXTERNAL_SUFFIX)) { - const actualId = unwrapId$1(id, EXTERNAL_SUFFIX); - if (requireNodeBuiltins === true && actualId.startsWith("node:")) return getExternalBuiltinRequireProxy(actualId); - return getUnknownRequireProxy(actualId, isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true); - } - if (id.endsWith(ENTRY_SUFFIX)) { - const acutalId = id.slice(0, -15); - const { meta: { commonjs: commonjsMeta } } = this.getModuleInfo(acutalId); - const shebang = commonjsMeta?.shebang ?? ""; - return getEntryProxy(acutalId, getDefaultIsModuleExports(acutalId), this.getModuleInfo, shebang); - } - if (isWrappedId(id, ES_IMPORT_SUFFIX)) { - const actualId = unwrapId$1(id, ES_IMPORT_SUFFIX); - return getEsImportProxy(actualId, getDefaultIsModuleExports(actualId), (await this.load({ id: actualId })).moduleSideEffects); - } - if (id === DYNAMIC_MODULES_ID) return getDynamicModuleRegistry(isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, ignoreDynamicRequires); - if (isWrappedId(id, PROXY_SUFFIX)) { - const actualId = unwrapId$1(id, PROXY_SUFFIX); - return getStaticRequireProxy(actualId, getRequireReturnsDefault(actualId), this.load); - } - return null; - }, - shouldTransformCachedModule(...args) { - return requireResolver.shouldTransformCachedModule.call(this, ...args); - }, - transform(code, id) { - if (!isPossibleCjsId(id)) return null; - try { - return transformAndCheckExports.call(this, code, id); - } catch (err$2) { - return this.error(err$2, err$2.pos); - } - } - }; -} - -//#endregion -//#region src/node/environment.ts -/** -* Creates a function that hides the complexities of a WeakMap with an initial value -* to implement object metadata. Used by plugins to implement cross hooks per -* environment metadata -* -* @experimental -*/ -function perEnvironmentState(initial) { - const stateMap = /* @__PURE__ */ new WeakMap(); - return function(context) { - const { environment } = context; - let state = stateMap.get(environment); - if (!state) { - state = initial(environment); - stateMap.set(environment, state); - } - return state; - }; -} - -//#endregion -//#region src/node/plugins/reporter.ts -var import_picocolors$32 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const groups = [ - { - name: "Assets", - color: import_picocolors$32.default.green - }, - { - name: "CSS", - color: import_picocolors$32.default.magenta - }, - { - name: "JS", - color: import_picocolors$32.default.cyan - } -]; -const COMPRESSIBLE_ASSETS_RE = /\.(?:html|json|svg|txt|xml|xhtml|wasm)$/; -function buildReporterPlugin(config$2) { - const compress = promisify(gzip); - const numberFormatter = new Intl.NumberFormat("en", { - maximumFractionDigits: 2, - minimumFractionDigits: 2 - }); - const displaySize = (bytes) => { - return `${numberFormatter.format(bytes / 1e3)} kB`; - }; - const tty$2 = process.stdout.isTTY && !process.env.CI; - const shouldLogInfo = LogLevels[config$2.logLevel || "info"] >= LogLevels.info; - const modulesReporter = shouldLogInfo ? perEnvironmentState((environment) => { - let hasTransformed = false; - let transformedCount = 0; - const logTransform = throttle((id) => { - writeLine(`transforming (${transformedCount}) ${import_picocolors$32.default.dim(path.relative(config$2.root, id))}`); - }); - return { - reset() { - transformedCount = 0; - }, - register(id) { - transformedCount++; - if (!tty$2) { - if (!hasTransformed) config$2.logger.info(`transforming...`); - } else { - if (id.includes(`?`)) return; - logTransform(id); - } - hasTransformed = true; - }, - log() { - if (tty$2) clearLine$1(); - environment.logger.info(`${import_picocolors$32.default.green(`✓`)} ${transformedCount} modules transformed.`); - } - }; - }) : void 0; - const chunksReporter = perEnvironmentState((environment) => { - let hasRenderedChunk = false; - let hasCompressChunk = false; - let chunkCount = 0; - let compressedCount = 0; - async function getCompressedSize(code) { - if (environment.config.consumer !== "client" || !environment.config.build.reportCompressedSize) return null; - if (shouldLogInfo && !hasCompressChunk) { - if (!tty$2) config$2.logger.info("computing gzip size..."); - else writeLine("computing gzip size (0)..."); - hasCompressChunk = true; - } - const compressed = await compress(typeof code === "string" ? code : Buffer.from(code)); - compressedCount++; - if (shouldLogInfo && tty$2) writeLine(`computing gzip size (${compressedCount})...`); - return compressed.length; - } - return { - reset() { - chunkCount = 0; - compressedCount = 0; - }, - register() { - chunkCount++; - if (shouldLogInfo) { - if (!tty$2) { - if (!hasRenderedChunk) environment.logger.info("rendering chunks..."); - } else writeLine(`rendering chunks (${chunkCount})...`); - hasRenderedChunk = true; - } - }, - async log(output, outDir) { - const chunkLimit = environment.config.build.chunkSizeWarningLimit; - let hasLargeChunks = false; - if (shouldLogInfo) { - const entries = (await Promise.all(Object.values(output).map(async (chunk) => { - if (chunk.type === "chunk") return { - name: chunk.fileName, - group: "JS", - size: Buffer.byteLength(chunk.code), - compressedSize: await getCompressedSize(chunk.code), - mapSize: chunk.map ? Buffer.byteLength(chunk.map.toString()) : null - }; - else { - if (chunk.fileName.endsWith(".map")) return null; - const isCSS = chunk.fileName.endsWith(".css"); - const isCompressible = isCSS || COMPRESSIBLE_ASSETS_RE.test(chunk.fileName); - return { - name: chunk.fileName, - group: isCSS ? "CSS" : "Assets", - size: Buffer.byteLength(chunk.source), - mapSize: null, - compressedSize: isCompressible ? await getCompressedSize(chunk.source) : null - }; - } - }))).filter(isDefined); - if (tty$2) clearLine$1(); - let longest = 0; - let biggestSize = 0; - let biggestMap = 0; - let biggestCompressSize = 0; - for (const entry of entries) { - if (entry.name.length > longest) longest = entry.name.length; - if (entry.size > biggestSize) biggestSize = entry.size; - if (entry.mapSize && entry.mapSize > biggestMap) biggestMap = entry.mapSize; - if (entry.compressedSize && entry.compressedSize > biggestCompressSize) biggestCompressSize = entry.compressedSize; - } - const sizePad = displaySize(biggestSize).length; - const mapPad = displaySize(biggestMap).length; - const compressPad = displaySize(biggestCompressSize).length; - const relativeOutDir = normalizePath(path.relative(config$2.root, path.resolve(config$2.root, outDir ?? environment.config.build.outDir))); - const assetsDir = path.join(environment.config.build.assetsDir, "/"); - for (const group of groups) { - const filtered = entries.filter((e$1) => e$1.group === group.name); - if (!filtered.length) continue; - for (const entry of filtered.sort((a, z) => a.size - z.size)) { - const isLarge = group.name === "JS" && entry.size / 1e3 > chunkLimit; - if (isLarge) hasLargeChunks = true; - const sizeColor = isLarge ? import_picocolors$32.default.yellow : import_picocolors$32.default.dim; - let log$4 = import_picocolors$32.default.dim(withTrailingSlash(relativeOutDir)); - log$4 += !config$2.build.lib && entry.name.startsWith(withTrailingSlash(assetsDir)) ? import_picocolors$32.default.dim(assetsDir) + group.color(entry.name.slice(assetsDir.length).padEnd(longest + 2 - assetsDir.length)) : group.color(entry.name.padEnd(longest + 2)); - log$4 += import_picocolors$32.default.bold(sizeColor(displaySize(entry.size).padStart(sizePad))); - if (entry.compressedSize) log$4 += import_picocolors$32.default.dim(` │ gzip: ${displaySize(entry.compressedSize).padStart(compressPad)}`); - if (entry.mapSize) log$4 += import_picocolors$32.default.dim(` │ map: ${displaySize(entry.mapSize).padStart(mapPad)}`); - config$2.logger.info(log$4); - } - } - } else hasLargeChunks = Object.values(output).some((chunk) => { - return chunk.type === "chunk" && chunk.code.length / 1e3 > chunkLimit; - }); - if (hasLargeChunks && environment.config.build.minify && !config$2.build.lib && environment.config.consumer === "client") environment.logger.warn(import_picocolors$32.default.yellow(`\n(!) Some chunks are larger than ${chunkLimit} kB after minification. Consider:\n- Using dynamic import() to code-split the application\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.`)); - } - }; - }); - return { - name: "vite:reporter", - sharedDuringBuild: true, - perEnvironmentStartEndDuringDev: true, - ...modulesReporter ? { - transform(_, id) { - modulesReporter(this).register(id); - }, - buildStart() { - modulesReporter(this).reset(); - }, - buildEnd() { - modulesReporter(this).log(); - } - } : {}, - renderStart() { - chunksReporter(this).reset(); - }, - renderChunk(_, chunk, options$1) { - if (!options$1.inlineDynamicImports) for (const id of chunk.moduleIds) { - const module$1 = this.getModuleInfo(id); - if (!module$1) continue; - if (module$1.importers.length && module$1.dynamicImporters.length) { - if (module$1.dynamicImporters.some((id$1) => !isInNodeModules(id$1) && chunk.moduleIds.includes(id$1))) this.warn(`\n(!) ${module$1.id} is dynamically imported by ${module$1.dynamicImporters.join(", ")} but also statically imported by ${module$1.importers.join(", ")}, dynamic import will not move module into another chunk.\n`); - } - } - chunksReporter(this).register(); - }, - generateBundle() { - if (shouldLogInfo && tty$2) clearLine$1(); - }, - async writeBundle({ dir }, output) { - await chunksReporter(this).log(output, dir); - } - }; -} -function writeLine(output) { - clearLine$1(); - if (output.length < process.stdout.columns) process.stdout.write(output); - else process.stdout.write(output.substring(0, process.stdout.columns - 1)); -} -function clearLine$1() { - process.stdout.clearLine(0); - process.stdout.cursorTo(0); -} -function throttle(fn) { - let timerHandle = null; - return (...args) => { - if (timerHandle) return; - fn(...args); - timerHandle = setTimeout(() => { - timerHandle = null; - }, 100); - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/util.js -const POSIX_SEP_RE = new RegExp("\\" + path.posix.sep, "g"); -const NATIVE_SEP_RE = new RegExp("\\" + path.sep, "g"); -/** @type {Map}*/ -const PATTERN_REGEX_CACHE = /* @__PURE__ */ new Map(); -const GLOB_ALL_PATTERN = `**/*`; -const TS_EXTENSIONS = [ - ".ts", - ".tsx", - ".mts", - ".cts" -]; -const TSJS_EXTENSIONS = TS_EXTENSIONS.concat([ - ".js", - ".jsx", - ".mjs", - ".cjs" -]); -const TS_EXTENSIONS_RE_GROUP = `\\.(?:${TS_EXTENSIONS.map((ext) => ext.substring(1)).join("|")})`; -const TSJS_EXTENSIONS_RE_GROUP = `\\.(?:${TSJS_EXTENSIONS.map((ext) => ext.substring(1)).join("|")})`; -const IS_POSIX = path.posix.sep === path.sep; -/** -* @template T -* @returns {{resolve:(result:T)=>void, reject:(error:any)=>void, promise: Promise}} -*/ -function makePromise() { - let resolve$4, reject; - return { - promise: new Promise((res, rej) => { - resolve$4 = res; - reject = rej; - }), - resolve: resolve$4, - reject - }; -} -/** -* @param {string} filename -* @param {import('./cache.js').TSConfckCache} [cache] -* @returns {Promise} -*/ -async function resolveTSConfigJson(filename, cache$1) { - if (path.extname(filename) !== ".json") return; - const tsconfig = path.resolve(filename); - if (cache$1 && (cache$1.hasParseResult(tsconfig) || cache$1.hasParseResult(filename))) return tsconfig; - return promises.stat(tsconfig).then((stat$4) => { - if (stat$4.isFile() || stat$4.isFIFO()) return tsconfig; - else throw new Error(`${filename} exists but is not a regular file.`); - }); -} -/** -* -* @param {string} dir an absolute directory path -* @returns {boolean} if dir path includes a node_modules segment -*/ -const isInNodeModules$1 = IS_POSIX ? (dir) => dir.includes("/node_modules/") : (dir) => dir.match(/[/\\]node_modules[/\\]/); -/** -* convert posix separator to native separator -* -* eg. -* windows: C:/foo/bar -> c:\foo\bar -* linux: /foo/bar -> /foo/bar -* -* @param {string} filename with posix separators -* @returns {string} filename with native separators -*/ -const posix2native = IS_POSIX ? (filename) => filename : (filename) => filename.replace(POSIX_SEP_RE, path.sep); -/** -* convert native separator to posix separator -* -* eg. -* windows: C:\foo\bar -> c:/foo/bar -* linux: /foo/bar -> /foo/bar -* -* @param {string} filename - filename with native separators -* @returns {string} filename with posix separators -*/ -const native2posix = IS_POSIX ? (filename) => filename : (filename) => filename.replace(NATIVE_SEP_RE, path.posix.sep); -/** -* converts params to native separator, resolves path and converts native back to posix -* -* needed on windows to handle posix paths in tsconfig -* -* @param dir {string|null} directory to resolve from -* @param filename {string} filename or pattern to resolve -* @returns string -*/ -const resolve2posix = IS_POSIX ? (dir, filename) => dir ? path.resolve(dir, filename) : path.resolve(filename) : (dir, filename) => native2posix(dir ? path.resolve(posix2native(dir), posix2native(filename)) : path.resolve(posix2native(filename))); -/** -* -* @param {import('./public.d.ts').TSConfckParseResult} result -* @param {import('./public.d.ts').TSConfckParseOptions} [options] -* @returns {string[]} -*/ -function resolveReferencedTSConfigFiles(result, options$1) { - const dir = path.dirname(result.tsconfigFile); - return result.tsconfig.references.map((ref) => { - return resolve2posix(dir, ref.path.endsWith(".json") ? ref.path : path.join(ref.path, options$1?.configName ?? "tsconfig.json")); - }); -} -/** -* @param {string} filename -* @param {import('./public.d.ts').TSConfckParseResult} result -* @returns {import('./public.d.ts').TSConfckParseResult} -*/ -function resolveSolutionTSConfig(filename, result) { - if (result.referenced && (result.tsconfig.compilerOptions?.allowJs ? TSJS_EXTENSIONS : TS_EXTENSIONS).some((ext) => filename.endsWith(ext)) && !isIncluded(filename, result)) { - const solutionTSConfig = result.referenced.find((referenced) => isIncluded(filename, referenced)); - if (solutionTSConfig) return solutionTSConfig; - } - return result; -} -/** -* -* @param {string} filename -* @param {import('./public.d.ts').TSConfckParseResult} result -* @returns {boolean} -*/ -function isIncluded(filename, result) { - const dir = native2posix(path.dirname(result.tsconfigFile)); - const files = (result.tsconfig.files || []).map((file) => resolve2posix(dir, file)); - const absoluteFilename = resolve2posix(null, filename); - if (files.includes(filename)) return true; - const allowJs = result.tsconfig.compilerOptions?.allowJs; - if (isGlobMatch(absoluteFilename, dir, result.tsconfig.include || (result.tsconfig.files ? [] : [GLOB_ALL_PATTERN]), allowJs)) return !isGlobMatch(absoluteFilename, dir, result.tsconfig.exclude || [], allowJs); - return false; -} -/** -* test filenames agains glob patterns in tsconfig -* -* @param filename {string} posix style abolute path to filename to test -* @param dir {string} posix style absolute path to directory of tsconfig containing patterns -* @param patterns {string[]} glob patterns to match against -* @param allowJs {boolean} allowJs setting in tsconfig to include js extensions in checks -* @returns {boolean} true when at least one pattern matches filename -*/ -function isGlobMatch(filename, dir, patterns, allowJs) { - const extensions$1 = allowJs ? TSJS_EXTENSIONS : TS_EXTENSIONS; - return patterns.some((pattern) => { - let lastWildcardIndex = pattern.length; - let hasWildcard = false; - let hasExtension = false; - let hasSlash = false; - let lastSlashIndex = -1; - for (let i$1 = pattern.length - 1; i$1 > -1; i$1--) { - const c = pattern[i$1]; - if (!hasWildcard) { - if (c === "*" || c === "?") { - lastWildcardIndex = i$1; - hasWildcard = true; - } - } - if (!hasSlash) { - if (c === ".") hasExtension = true; - else if (c === "/") { - lastSlashIndex = i$1; - hasSlash = true; - } - } - if (hasWildcard && hasSlash) break; - } - if (!hasExtension && (!hasWildcard || lastWildcardIndex < lastSlashIndex)) { - pattern += `${pattern.endsWith("/") ? "" : "/"}${GLOB_ALL_PATTERN}`; - lastWildcardIndex = pattern.length - 1; - hasWildcard = true; - } - if (lastWildcardIndex < pattern.length - 1 && !filename.endsWith(pattern.slice(lastWildcardIndex + 1))) return false; - if (pattern.endsWith("*") && !extensions$1.some((ext) => filename.endsWith(ext))) return false; - if (pattern === GLOB_ALL_PATTERN) return filename.startsWith(`${dir}/`); - const resolvedPattern = resolve2posix(dir, pattern); - let firstWildcardIndex = -1; - for (let i$1 = 0; i$1 < resolvedPattern.length; i$1++) if (resolvedPattern[i$1] === "*" || resolvedPattern[i$1] === "?") { - firstWildcardIndex = i$1; - hasWildcard = true; - break; - } - if (firstWildcardIndex > 1 && !filename.startsWith(resolvedPattern.slice(0, firstWildcardIndex - 1))) return false; - if (!hasWildcard) return filename === resolvedPattern; - else if (firstWildcardIndex + GLOB_ALL_PATTERN.length === resolvedPattern.length - (pattern.length - 1 - lastWildcardIndex) && resolvedPattern.slice(firstWildcardIndex, firstWildcardIndex + GLOB_ALL_PATTERN.length) === GLOB_ALL_PATTERN) return true; - if (PATTERN_REGEX_CACHE.has(resolvedPattern)) return PATTERN_REGEX_CACHE.get(resolvedPattern).test(filename); - const regex = pattern2regex(resolvedPattern, allowJs); - PATTERN_REGEX_CACHE.set(resolvedPattern, regex); - return regex.test(filename); - }); -} -/** -* @param {string} resolvedPattern -* @param {boolean} allowJs -* @returns {RegExp} -*/ -function pattern2regex(resolvedPattern, allowJs) { - let regexStr = "^"; - for (let i$1 = 0; i$1 < resolvedPattern.length; i$1++) { - const char = resolvedPattern[i$1]; - if (char === "?") { - regexStr += "[^\\/]"; - continue; - } - if (char === "*") { - if (resolvedPattern[i$1 + 1] === "*" && resolvedPattern[i$1 + 2] === "/") { - i$1 += 2; - regexStr += "(?:[^\\/]*\\/)*"; - continue; - } - regexStr += "[^\\/]*"; - continue; - } - if ("/.+^${}()|[]\\".includes(char)) regexStr += `\\`; - regexStr += char; - } - if (resolvedPattern.endsWith("*")) regexStr += allowJs ? TSJS_EXTENSIONS_RE_GROUP : TS_EXTENSIONS_RE_GROUP; - regexStr += "$"; - return new RegExp(regexStr); -} -/** -* replace tokens like ${configDir} -* @param {import('./public.d.ts').TSConfckParseResult} result -*/ -function replaceTokens(result) { - if (result.tsconfig) result.tsconfig = JSON.parse(JSON.stringify(result.tsconfig).replaceAll(/"\${configDir}/g, `"${native2posix(path.dirname(result.tsconfigFile))}`)); -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/find.js -/** -* find the closest tsconfig.json file -* -* @param {string} filename - path to file to find tsconfig for (absolute or relative to cwd) -* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options -* @returns {Promise} absolute path to closest tsconfig.json or null if not found -*/ -async function find(filename, options$1) { - let dir = path.dirname(path.resolve(filename)); - if (options$1?.ignoreNodeModules && isInNodeModules$1(dir)) return null; - const cache$1 = options$1?.cache; - const configName = options$1?.configName ?? "tsconfig.json"; - if (cache$1?.hasConfigPath(dir, configName)) return cache$1.getConfigPath(dir, configName); - const { promise, resolve: resolve$4, reject } = makePromise(); - if (options$1?.root && !path.isAbsolute(options$1.root)) options$1.root = path.resolve(options$1.root); - findUp(dir, { - promise, - resolve: resolve$4, - reject - }, options$1); - return promise; -} -/** -* -* @param {string} dir -* @param {{promise:Promise,resolve:(result:string|null)=>void,reject:(err:any)=>void}} madePromise -* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options -*/ -function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) { - const { cache: cache$1, root, configName } = options$1 ?? {}; - if (cache$1) if (cache$1.hasConfigPath(dir, configName)) { - let cached; - try { - cached = cache$1.getConfigPath(dir, configName); - } catch (e$1) { - reject(e$1); - return; - } - if (cached?.then) cached.then(resolve$4).catch(reject); - else resolve$4(cached); - } else cache$1.setConfigPath(dir, promise, configName); - const tsconfig = path.join(dir, options$1?.configName ?? "tsconfig.json"); - fs.stat(tsconfig, (err$2, stats) => { - if (stats && (stats.isFile() || stats.isFIFO())) resolve$4(tsconfig); - else if (err$2?.code !== "ENOENT") reject(err$2); - else { - let parent; - if (root === dir || (parent = path.dirname(dir)) === dir) resolve$4(null); - else findUp(parent, { - promise, - resolve: resolve$4, - reject - }, options$1); - } - }); -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/to-json.js -/** -* convert content of tsconfig.json to regular json -* -* @param {string} tsconfigJson - content of tsconfig.json -* @returns {string} content as regular json, comments and dangling commas have been replaced with whitespace -*/ -function toJson(tsconfigJson) { - const stripped = stripDanglingComma(stripJsonComments(stripBom(tsconfigJson))); - if (stripped.trim() === "") return "{}"; - else return stripped; -} -/** -* replace dangling commas from pseudo-json string with single space -* implementation heavily inspired by strip-json-comments -* -* @param {string} pseudoJson -* @returns {string} -*/ -function stripDanglingComma(pseudoJson) { - let insideString = false; - let offset$1 = 0; - let result = ""; - let danglingCommaPos = null; - for (let i$1 = 0; i$1 < pseudoJson.length; i$1++) { - const currentCharacter = pseudoJson[i$1]; - if (currentCharacter === "\"") { - if (!isEscaped(pseudoJson, i$1)) insideString = !insideString; - } - if (insideString) { - danglingCommaPos = null; - continue; - } - if (currentCharacter === ",") { - danglingCommaPos = i$1; - continue; - } - if (danglingCommaPos) { - if (currentCharacter === "}" || currentCharacter === "]") { - result += pseudoJson.slice(offset$1, danglingCommaPos) + " "; - offset$1 = danglingCommaPos + 1; - danglingCommaPos = null; - } else if (!currentCharacter.match(/\s/)) danglingCommaPos = null; - } - } - return result + pseudoJson.substring(offset$1); -} -/** -* -* @param {string} jsonString -* @param {number} quotePosition -* @returns {boolean} -*/ -function isEscaped(jsonString, quotePosition) { - let index = quotePosition - 1; - let backslashCount = 0; - while (jsonString[index] === "\\") { - index -= 1; - backslashCount += 1; - } - return Boolean(backslashCount % 2); -} -/** -* -* @param {string} string -* @param {number?} start -* @param {number?} end -*/ -function strip(string, start, end) { - return string.slice(start, end).replace(/\S/g, " "); -} -const singleComment = Symbol("singleComment"); -const multiComment = Symbol("multiComment"); -/** -* @param {string} jsonString -* @returns {string} -*/ -function stripJsonComments(jsonString) { - let isInsideString = false; - /** @type {false | symbol} */ - let isInsideComment = false; - let offset$1 = 0; - let result = ""; - for (let index = 0; index < jsonString.length; index++) { - const currentCharacter = jsonString[index]; - const nextCharacter = jsonString[index + 1]; - if (!isInsideComment && currentCharacter === "\"") { - if (!isEscaped(jsonString, index)) isInsideString = !isInsideString; - } - if (isInsideString) continue; - if (!isInsideComment && currentCharacter + nextCharacter === "//") { - result += jsonString.slice(offset$1, index); - offset$1 = index; - isInsideComment = singleComment; - index++; - } else if (isInsideComment === singleComment && currentCharacter + nextCharacter === "\r\n") { - index++; - isInsideComment = false; - result += strip(jsonString, offset$1, index); - offset$1 = index; - } else if (isInsideComment === singleComment && currentCharacter === "\n") { - isInsideComment = false; - result += strip(jsonString, offset$1, index); - offset$1 = index; - } else if (!isInsideComment && currentCharacter + nextCharacter === "/*") { - result += jsonString.slice(offset$1, index); - offset$1 = index; - isInsideComment = multiComment; - index++; - } else if (isInsideComment === multiComment && currentCharacter + nextCharacter === "*/") { - index++; - isInsideComment = false; - result += strip(jsonString, offset$1, index + 1); - offset$1 = index + 1; - } - } - return result + (isInsideComment ? strip(jsonString.slice(offset$1)) : jsonString.slice(offset$1)); -} -/** -* @param {string} string -* @returns {string} -*/ -function stripBom(string) { - if (string.charCodeAt(0) === 65279) return string.slice(1); - return string; -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/parse.js -const not_found_result = { - tsconfigFile: null, - tsconfig: {} -}; -/** -* parse the closest tsconfig.json file -* -* @param {string} filename - path to a tsconfig .json or a source file or directory (absolute or relative to cwd) -* @param {import('./public.d.ts').TSConfckParseOptions} [options] - options -* @returns {Promise} -* @throws {TSConfckParseError} -*/ -async function parse$14(filename, options$1) { - /** @type {import('./cache.js').TSConfckCache} */ - const cache$1 = options$1?.cache; - if (cache$1?.hasParseResult(filename)) return getParsedDeep(filename, cache$1, options$1); - const { resolve: resolve$4, reject, promise } = makePromise(); - cache$1?.setParseResult(filename, promise, true); - try { - let tsconfigFile = await resolveTSConfigJson(filename, cache$1) || await find(filename, options$1); - if (!tsconfigFile) { - resolve$4(not_found_result); - return promise; - } - let result; - if (filename !== tsconfigFile && cache$1?.hasParseResult(tsconfigFile)) result = await getParsedDeep(tsconfigFile, cache$1, options$1); - else { - result = await parseFile$1(tsconfigFile, cache$1, filename === tsconfigFile); - await Promise.all([parseExtends(result, cache$1), parseReferences(result, options$1)]); - } - replaceTokens(result); - resolve$4(resolveSolutionTSConfig(filename, result)); - } catch (e$1) { - reject(e$1); - } - return promise; -} -/** -* ensure extends and references are parsed -* -* @param {string} filename - cached file -* @param {import('./cache.js').TSConfckCache} cache - cache -* @param {import('./public.d.ts').TSConfckParseOptions} options - options -*/ -async function getParsedDeep(filename, cache$1, options$1) { - const result = await cache$1.getParseResult(filename); - if (result.tsconfig.extends && !result.extended || result.tsconfig.references && !result.referenced) { - const promise = Promise.all([parseExtends(result, cache$1), parseReferences(result, options$1)]).then(() => result); - cache$1.setParseResult(filename, promise, true); - return promise; - } - return result; -} -/** -* -* @param {string} tsconfigFile - path to tsconfig file -* @param {import('./cache.js').TSConfckCache} [cache] - cache -* @param {boolean} [skipCache] - skip cache -* @returns {Promise} -*/ -async function parseFile$1(tsconfigFile, cache$1, skipCache) { - if (!skipCache && cache$1?.hasParseResult(tsconfigFile) && !cache$1.getParseResult(tsconfigFile)._isRootFile_) return cache$1.getParseResult(tsconfigFile); - const promise = promises.readFile(tsconfigFile, "utf-8").then(toJson).then((json) => { - const parsed = JSON.parse(json); - applyDefaults(parsed, tsconfigFile); - return { - tsconfigFile, - tsconfig: normalizeTSConfig(parsed, path.dirname(tsconfigFile)) - }; - }).catch((e$1) => { - throw new TSConfckParseError(`parsing ${tsconfigFile} failed: ${e$1}`, "PARSE_FILE", tsconfigFile, e$1); - }); - if (!skipCache && (!cache$1?.hasParseResult(tsconfigFile) || !cache$1.getParseResult(tsconfigFile)._isRootFile_)) cache$1?.setParseResult(tsconfigFile, promise); - return promise; -} -/** -* normalize to match the output of ts.parseJsonConfigFileContent -* -* @param {any} tsconfig - typescript tsconfig output -* @param {string} dir - directory -*/ -function normalizeTSConfig(tsconfig, dir) { - const baseUrl = tsconfig.compilerOptions?.baseUrl; - if (baseUrl && !baseUrl.startsWith("${") && !path.isAbsolute(baseUrl)) tsconfig.compilerOptions.baseUrl = resolve2posix(dir, baseUrl); - return tsconfig; -} -/** -* -* @param {import('./public.d.ts').TSConfckParseResult} result -* @param {import('./public.d.ts').TSConfckParseOptions} [options] -* @returns {Promise} -*/ -async function parseReferences(result, options$1) { - if (!result.tsconfig.references) return; - const referencedFiles = resolveReferencedTSConfigFiles(result, options$1); - const referenced = await Promise.all(referencedFiles.map((file) => parseFile$1(file, options$1?.cache))); - await Promise.all(referenced.map((ref) => parseExtends(ref, options$1?.cache))); - referenced.forEach((ref) => { - ref.solution = result; - replaceTokens(ref); - }); - result.referenced = referenced; -} -/** -* @param {import('./public.d.ts').TSConfckParseResult} result -* @param {import('./cache.js').TSConfckCache}[cache] -* @returns {Promise} -*/ -async function parseExtends(result, cache$1) { - if (!result.tsconfig.extends) return; - /** @type {import('./public.d.ts').TSConfckParseResult[]} */ - const extended = [{ - tsconfigFile: result.tsconfigFile, - tsconfig: JSON.parse(JSON.stringify(result.tsconfig)) - }]; - let pos = 0; - /** @type {string[]} */ - const extendsPath = []; - let currentBranchDepth = 0; - while (pos < extended.length) { - const extending = extended[pos]; - extendsPath.push(extending.tsconfigFile); - if (extending.tsconfig.extends) { - currentBranchDepth += 1; - /** @type {string[]} */ - let resolvedExtends; - if (!Array.isArray(extending.tsconfig.extends)) resolvedExtends = [resolveExtends(extending.tsconfig.extends, extending.tsconfigFile)]; - else resolvedExtends = extending.tsconfig.extends.reverse().map((ex) => resolveExtends(ex, extending.tsconfigFile)); - const circularExtends = resolvedExtends.find((tsconfigFile) => extendsPath.includes(tsconfigFile)); - if (circularExtends) throw new TSConfckParseError(`Circular dependency in "extends": ${extendsPath.concat([circularExtends]).join(" -> ")}`, "EXTENDS_CIRCULAR", result.tsconfigFile); - extended.splice(pos + 1, 0, ...await Promise.all(resolvedExtends.map((file) => parseFile$1(file, cache$1)))); - } else { - extendsPath.splice(-currentBranchDepth); - currentBranchDepth = 0; - } - pos = pos + 1; - } - result.extended = extended; - for (const ext of result.extended.slice(1)) extendTSConfig(result, ext); -} -/** -* -* @param {string} extended -* @param {string} from -* @returns {string} -*/ -function resolveExtends(extended, from) { - if ([".", ".."].includes(extended)) extended = extended + "/tsconfig.json"; - const req$4 = createRequire$1(from); - let error$1; - try { - return req$4.resolve(extended); - } catch (e$1) { - error$1 = e$1; - } - if (extended[0] !== "." && !path.isAbsolute(extended)) try { - return req$4.resolve(`${extended}/tsconfig.json`); - } catch (e$1) { - error$1 = e$1; - } - throw new TSConfckParseError(`failed to resolve "extends":"${extended}" in ${from}`, "EXTENDS_RESOLVE", from, error$1); -} -const EXTENDABLE_KEYS = [ - "compilerOptions", - "files", - "include", - "exclude", - "watchOptions", - "compileOnSave", - "typeAcquisition", - "buildOptions" -]; -/** -* -* @param {import('./public.d.ts').TSConfckParseResult} extending -* @param {import('./public.d.ts').TSConfckParseResult} extended -* @returns void -*/ -function extendTSConfig(extending, extended) { - const extendingConfig = extending.tsconfig; - const extendedConfig = extended.tsconfig; - const relativePath = native2posix(path.relative(path.dirname(extending.tsconfigFile), path.dirname(extended.tsconfigFile))); - for (const key of Object.keys(extendedConfig).filter((key$1) => EXTENDABLE_KEYS.includes(key$1))) if (key === "compilerOptions") { - if (!extendingConfig.compilerOptions) extendingConfig.compilerOptions = {}; - for (const option of Object.keys(extendedConfig.compilerOptions)) { - if (Object.prototype.hasOwnProperty.call(extendingConfig.compilerOptions, option)) continue; - extendingConfig.compilerOptions[option] = rebaseRelative(option, extendedConfig.compilerOptions[option], relativePath); - } - } else if (extendingConfig[key] === void 0) if (key === "watchOptions") { - extendingConfig.watchOptions = {}; - for (const option of Object.keys(extendedConfig.watchOptions)) extendingConfig.watchOptions[option] = rebaseRelative(option, extendedConfig.watchOptions[option], relativePath); - } else extendingConfig[key] = rebaseRelative(key, extendedConfig[key], relativePath); -} -const REBASE_KEYS = [ - "files", - "include", - "exclude", - "baseUrl", - "rootDir", - "rootDirs", - "typeRoots", - "outDir", - "outFile", - "declarationDir", - "excludeDirectories", - "excludeFiles" -]; -/** @typedef {string | string[]} PathValue */ -/** -* -* @param {string} key -* @param {PathValue} value -* @param {string} prependPath -* @returns {PathValue} -*/ -function rebaseRelative(key, value$1, prependPath) { - if (!REBASE_KEYS.includes(key)) return value$1; - if (Array.isArray(value$1)) return value$1.map((x) => rebasePath(x, prependPath)); - else return rebasePath(value$1, prependPath); -} -/** -* -* @param {string} value -* @param {string} prependPath -* @returns {string} -*/ -function rebasePath(value$1, prependPath) { - if (path.isAbsolute(value$1) || value$1.startsWith("${configDir}")) return value$1; - else return path.posix.normalize(path.posix.join(prependPath, value$1)); -} -var TSConfckParseError = class TSConfckParseError extends Error { - /** - * error code - * @type {string} - */ - code; - /** - * error cause - * @type { Error | undefined} - */ - cause; - /** - * absolute path of tsconfig file where the error happened - * @type {string} - */ - tsconfigFile; - /** - * - * @param {string} message - error message - * @param {string} code - error code - * @param {string} tsconfigFile - path to tsconfig file - * @param {Error?} cause - cause of this error - */ - constructor(message, code, tsconfigFile, cause) { - super(message); - Object.setPrototypeOf(this, TSConfckParseError.prototype); - this.name = TSConfckParseError.name; - this.code = code; - this.cause = cause; - this.tsconfigFile = tsconfigFile; - } -}; -/** -* -* @param {any} tsconfig -* @param {string} tsconfigFile -*/ -function applyDefaults(tsconfig, tsconfigFile) { - if (isJSConfig(tsconfigFile)) tsconfig.compilerOptions = { - ...DEFAULT_JSCONFIG_COMPILER_OPTIONS, - ...tsconfig.compilerOptions - }; -} -const DEFAULT_JSCONFIG_COMPILER_OPTIONS = { - allowJs: true, - maxNodeModuleJsDepth: 2, - allowSyntheticDefaultImports: true, - skipLibCheck: true, - noEmit: true -}; -/** -* @param {string} configFileName -*/ -function isJSConfig(configFileName) { - return path.basename(configFileName) === "jsconfig.json"; -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/parse-native.js -/** @typedef TSDiagnosticError { -code: number; -category: number; -messageText: string; -start?: number; -} TSDiagnosticError */ - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/cache.js -/** @template T */ -var TSConfckCache = class { - /** - * clear cache, use this if you have a long running process and tsconfig files have been added,changed or deleted - */ - clear() { - this.#configPaths.clear(); - this.#parsed.clear(); - } - /** - * has cached closest config for files in dir - * @param {string} dir - * @param {string} [configName=tsconfig.json] - * @returns {boolean} - */ - hasConfigPath(dir, configName = "tsconfig.json") { - return this.#configPaths.has(`${dir}/${configName}`); - } - /** - * get cached closest tsconfig for files in dir - * @param {string} dir - * @param {string} [configName=tsconfig.json] - * @returns {Promise|string|null} - * @throws {unknown} if cached value is an error - */ - getConfigPath(dir, configName = "tsconfig.json") { - const key = `${dir}/${configName}`; - const value$1 = this.#configPaths.get(key); - if (value$1 == null || value$1.length || value$1.then) return value$1; - else throw value$1; - } - /** - * has parsed tsconfig for file - * @param {string} file - * @returns {boolean} - */ - hasParseResult(file) { - return this.#parsed.has(file); - } - /** - * get parsed tsconfig for file - * @param {string} file - * @returns {Promise|T} - * @throws {unknown} if cached value is an error - */ - getParseResult(file) { - const value$1 = this.#parsed.get(file); - if (value$1.then || value$1.tsconfig) return value$1; - else throw value$1; - } - /** - * @internal - * @private - * @param file - * @param {boolean} isRootFile a flag to check if current file which involking the parse() api, used to distinguish the normal cache which only parsed by parseFile() - * @param {Promise} result - */ - setParseResult(file, result, isRootFile = false) { - Object.defineProperty(result, "_isRootFile_", { - value: isRootFile, - writable: false, - enumerable: false, - configurable: false - }); - this.#parsed.set(file, result); - result.then((parsed) => { - if (this.#parsed.get(file) === result) this.#parsed.set(file, parsed); - }).catch((e$1) => { - if (this.#parsed.get(file) === result) this.#parsed.set(file, e$1); - }); - } - /** - * @internal - * @private - * @param {string} dir - * @param {Promise} configPath - * @param {string} [configName=tsconfig.json] - */ - setConfigPath(dir, configPath, configName = "tsconfig.json") { - const key = `${dir}/${configName}`; - this.#configPaths.set(key, configPath); - configPath.then((path$13) => { - if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, path$13); - }).catch((e$1) => { - if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, e$1); - }); - } - /** - * map directories to their closest tsconfig.json - * @internal - * @private - * @type{Map|string|null)>} - */ - #configPaths = /* @__PURE__ */ new Map(); - /** - * map files to their parsed tsconfig result - * @internal - * @private - * @type {Map|T)> } - */ - #parsed = /* @__PURE__ */ new Map(); -}; - -//#endregion -//#region src/node/plugins/esbuild.ts -var import_picocolors$31 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const debug$17 = createDebugger("vite:esbuild"); -const IIFE_BEGIN_RE = /(?:const|var)\s+\S+\s*=\s*\(?function\([^()]*\)\s*\{\s*"use strict";/; -const validExtensionRE = /\.\w+$/; -const jsxExtensionsRE = /\.(?:j|t)sx\b/; -const defaultEsbuildSupported = { - "dynamic-import": true, - "import-meta": true -}; -async function transformWithEsbuild(code, filename, options$1, inMap, config$2, watcher) { - let loader$1 = options$1?.loader; - if (!loader$1) { - const ext = path.extname(validExtensionRE.test(filename) ? filename : cleanUrl(filename)).slice(1); - if (ext === "cjs" || ext === "mjs") loader$1 = "js"; - else if (ext === "cts" || ext === "mts") loader$1 = "ts"; - else loader$1 = ext; - } - let tsconfigRaw = options$1?.tsconfigRaw; - if (typeof tsconfigRaw !== "string") { - const meaningfulFields = [ - "alwaysStrict", - "experimentalDecorators", - "importsNotUsedAsValues", - "jsx", - "jsxFactory", - "jsxFragmentFactory", - "jsxImportSource", - "preserveValueImports", - "target", - "useDefineForClassFields", - "verbatimModuleSyntax" - ]; - const compilerOptionsForFile = {}; - if (loader$1 === "ts" || loader$1 === "tsx") try { - const { tsconfig: loadedTsconfig, tsconfigFile } = await loadTsconfigJsonForFile(filename, config$2); - if (watcher && tsconfigFile && config$2) ensureWatchedFile(watcher, tsconfigFile, config$2.root); - const loadedCompilerOptions = loadedTsconfig.compilerOptions ?? {}; - for (const field of meaningfulFields) if (field in loadedCompilerOptions) compilerOptionsForFile[field] = loadedCompilerOptions[field]; - } catch (e$1) { - if (e$1 instanceof TSConfckParseError) { - if (watcher && e$1.tsconfigFile && config$2) ensureWatchedFile(watcher, e$1.tsconfigFile, config$2.root); - } - throw e$1; - } - const compilerOptions = { - ...compilerOptionsForFile, - ...tsconfigRaw?.compilerOptions - }; - if (compilerOptions.useDefineForClassFields === void 0 && compilerOptions.target === void 0) compilerOptions.useDefineForClassFields = false; - if (options$1) { - if (options$1.jsx) compilerOptions.jsx = void 0; - if (options$1.jsxFactory) compilerOptions.jsxFactory = void 0; - if (options$1.jsxFragment) compilerOptions.jsxFragmentFactory = void 0; - if (options$1.jsxImportSource) compilerOptions.jsxImportSource = void 0; - } - tsconfigRaw = { - ...tsconfigRaw, - compilerOptions - }; - } - const resolvedOptions = { - sourcemap: true, - sourcefile: filename, - ...options$1, - loader: loader$1, - tsconfigRaw - }; - delete resolvedOptions.include; - delete resolvedOptions.exclude; - delete resolvedOptions.jsxInject; - try { - const result = await transform(code, resolvedOptions); - let map$1; - if (inMap && resolvedOptions.sourcemap) { - const nextMap = JSON.parse(result.map); - nextMap.sourcesContent = []; - map$1 = combineSourcemaps(filename, [nextMap, inMap]); - } else map$1 = resolvedOptions.sourcemap && resolvedOptions.sourcemap !== "inline" ? JSON.parse(result.map) : { mappings: "" }; - return { - ...result, - map: map$1 - }; - } catch (e$1) { - debug$17?.(`esbuild error with options used: `, resolvedOptions); - if (e$1.errors) { - e$1.frame = ""; - e$1.errors.forEach((m$2) => { - if (m$2.text === "Experimental decorators are not currently enabled" || m$2.text === "Parameter decorators only work when experimental decorators are enabled") m$2.text += ". Vite 5 now uses esbuild 0.18 and you need to enable them by adding \"experimentalDecorators\": true in your \"tsconfig.json\" file."; - e$1.frame += `\n` + prettifyMessage(m$2, code); - }); - e$1.loc = e$1.errors[0].location; - } - throw e$1; - } -} -function esbuildPlugin(config$2) { - const { jsxInject, include, exclude, ...esbuildTransformOptions } = config$2.esbuild; - const filter$1 = createFilter(include || /\.(m?ts|[jt]sx)$/, exclude || /\.js$/); - const transformOptions = { - target: "esnext", - ...esbuildTransformOptions, - minify: false, - minifyIdentifiers: false, - minifySyntax: false, - minifyWhitespace: false, - treeShaking: false, - keepNames: false, - supported: { - ...defaultEsbuildSupported, - ...esbuildTransformOptions.supported - } - }; - let server; - return { - name: "vite:esbuild", - configureServer(_server) { - server = _server; - }, - async transform(code, id) { - if (filter$1(id) || filter$1(cleanUrl(id))) { - const result = await transformWithEsbuild(code, id, transformOptions, void 0, config$2, server?.watcher); - if (result.warnings.length) result.warnings.forEach((m$2) => { - this.warn(prettifyMessage(m$2, code)); - }); - if (jsxInject && jsxExtensionsRE.test(id)) result.code = jsxInject + ";" + result.code; - return { - code: result.code, - map: result.map - }; - } - } - }; -} -const rollupToEsbuildFormatMap = { - es: "esm", - cjs: "cjs", - iife: void 0 -}; -const injectEsbuildHelpers = (esbuildCode, format$3) => { - const contentIndex = format$3 === "iife" ? Math.max(esbuildCode.search(IIFE_BEGIN_RE), 0) : format$3 === "umd" ? esbuildCode.indexOf(`(function(`) : 0; - if (contentIndex > 0) { - const esbuildHelpers = esbuildCode.slice(0, contentIndex); - return esbuildCode.slice(contentIndex).replace("\"use strict\";", (m$2) => m$2 + esbuildHelpers); - } - return esbuildCode; -}; -const buildEsbuildPlugin = () => { - return { - name: "vite:esbuild-transpile", - applyToEnvironment(environment) { - return environment.config.esbuild !== false; - }, - async renderChunk(code, chunk, opts) { - if (opts.__vite_skip_esbuild__) return null; - const config$2 = this.environment.config; - const options$1 = resolveEsbuildTranspileOptions(config$2, opts.format); - if (!options$1) return null; - const res = await transformWithEsbuild(code, chunk.fileName, options$1, void 0, config$2); - if (config$2.build.lib) res.code = injectEsbuildHelpers(res.code, opts.format); - return res; - } - }; -}; -function resolveEsbuildTranspileOptions(config$2, format$3) { - const target = config$2.build.target; - const minify = config$2.build.minify === "esbuild"; - if ((!target || target === "esnext") && !minify) return null; - const isEsLibBuild = config$2.build.lib && format$3 === "es"; - const esbuildOptions = config$2.esbuild || {}; - const options$1 = { - ...esbuildOptions, - loader: "js", - target: target || void 0, - format: rollupToEsbuildFormatMap[format$3], - supported: { - ...defaultEsbuildSupported, - ...esbuildOptions.supported - } - }; - if (!minify) return { - ...options$1, - minify: false, - minifyIdentifiers: false, - minifySyntax: false, - minifyWhitespace: false, - treeShaking: false - }; - if (options$1.minifyIdentifiers != null || options$1.minifySyntax != null || options$1.minifyWhitespace != null) if (isEsLibBuild) return { - ...options$1, - minify: false, - minifyIdentifiers: options$1.minifyIdentifiers ?? true, - minifySyntax: options$1.minifySyntax ?? true, - minifyWhitespace: false, - treeShaking: true - }; - else return { - ...options$1, - minify: false, - minifyIdentifiers: options$1.minifyIdentifiers ?? true, - minifySyntax: options$1.minifySyntax ?? true, - minifyWhitespace: options$1.minifyWhitespace ?? true, - treeShaking: true - }; - if (isEsLibBuild) return { - ...options$1, - minify: false, - minifyIdentifiers: true, - minifySyntax: true, - minifyWhitespace: false, - treeShaking: true - }; - else return { - ...options$1, - minify: true, - treeShaking: true - }; -} -function prettifyMessage(m$2, code) { - let res = import_picocolors$31.default.yellow(m$2.text); - if (m$2.location) res += `\n` + generateCodeFrame(code, m$2.location); - return res + `\n`; -} -let globalTSConfckCache; -const tsconfckCacheMap = /* @__PURE__ */ new WeakMap(); -function getTSConfckCache(config$2) { - if (!config$2) return globalTSConfckCache ??= new TSConfckCache(); - let cache$1 = tsconfckCacheMap.get(config$2); - if (!cache$1) { - cache$1 = new TSConfckCache(); - tsconfckCacheMap.set(config$2, cache$1); - } - return cache$1; -} -async function loadTsconfigJsonForFile(filename, config$2) { - const { tsconfig, tsconfigFile } = await parse$14(filename, { - cache: getTSConfckCache(config$2), - ignoreNodeModules: true - }); - return { - tsconfigFile, - tsconfig - }; -} -async function reloadOnTsconfigChange(server, changedFile) { - if (changedFile.endsWith(".json")) { - const cache$1 = getTSConfckCache(server.config); - if (changedFile.endsWith("/tsconfig.json") || cache$1.hasParseResult(changedFile)) { - server.config.logger.info(`changed tsconfig file detected: ${changedFile} - Clearing cache and forcing full-reload to ensure TypeScript is compiled with updated config values.`, { - clear: server.config.clearScreen, - timestamp: true - }); - for (const environment of Object.values(server.environments)) environment.moduleGraph.invalidateAll(); - cache$1.clear(); - for (const environment of Object.values(server.environments)) environment.hot.send({ - type: "full-reload", - path: "*" - }); - } - } -} - -//#endregion -//#region ../../node_modules/.pnpm/artichokie@0.4.2/node_modules/artichokie/dist/index.js -const AsyncFunction = async function() {}.constructor; -const codeToDataUrl = (code) => `data:application/javascript,${encodeURIComponent(code + "\n//# sourceURL=[worker-eval(artichokie)]")}`; -const viteSsrDynamicImport = "__vite_ssr_dynamic_import__"; -const stackBlitzImport = "𝐢𝐦𝐩𝐨𝐫𝐭"; -var Worker$1 = class { - /** @internal */ - _isModule; - /** @internal */ - _code; - /** @internal */ - _parentFunctions; - /** @internal */ - _max; - /** @internal */ - _pool; - /** @internal */ - _idlePool; - /** @internal */ - _queue; - constructor(fn, options$1 = {}) { - this._isModule = options$1.type === "module"; - this._code = genWorkerCode(fn, this._isModule, 5 * 1e3, options$1.parentFunctions ?? {}); - this._parentFunctions = options$1.parentFunctions ?? {}; - const defaultMax = Math.max(1, (os.availableParallelism?.() ?? os.cpus().length) - 1); - this._max = options$1.max || defaultMax; - this._pool = []; - this._idlePool = []; - this._queue = []; - } - async run(...args) { - const worker = await this._getAvailableWorker(); - return new Promise((resolve$4, reject) => { - worker.currentResolve = resolve$4; - worker.currentReject = reject; - worker.postMessage({ args }); - }); - } - stop() { - this._pool.forEach((w$1) => w$1.unref()); - this._queue.forEach(([, reject]) => reject(/* @__PURE__ */ new Error("Main worker pool stopped before a worker was available."))); - this._pool = []; - this._idlePool = []; - this._queue = []; - } - /** @internal */ - _createWorker(parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort, lockState) { - const options$1 = { - workerData: [ - parentFunctionSyncMessagePort, - parentFunctionAsyncMessagePort, - lockState - ], - transferList: [parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort] - }; - if (this._isModule) return new Worker(new URL(codeToDataUrl(this._code)), options$1); - return new Worker(this._code, { - ...options$1, - eval: true - }); - } - /** @internal */ - async _getAvailableWorker() { - if (this._idlePool.length) return this._idlePool.shift(); - if (this._pool.length < this._max) { - const parentFunctionResponder = createParentFunctionResponder(this._parentFunctions); - const worker = this._createWorker(parentFunctionResponder.workerPorts.sync, parentFunctionResponder.workerPorts.async, parentFunctionResponder.lockState); - worker.on("message", async (args) => { - if ("result" in args) { - worker.currentResolve?.(args.result); - worker.currentResolve = null; - } else { - if (args.error instanceof ReferenceError) args.error.message += ". Maybe you forgot to pass the function to parentFunction?"; - worker.currentReject?.(args.error); - worker.currentReject = null; - } - this._assignDoneWorker(worker); - }); - worker.on("error", (err$2) => { - worker.currentReject?.(err$2); - worker.currentReject = null; - parentFunctionResponder.close(); - }); - worker.on("exit", (code) => { - const i$1 = this._pool.indexOf(worker); - if (i$1 > -1) this._pool.splice(i$1, 1); - if (code !== 0 && worker.currentReject) { - worker.currentReject(/* @__PURE__ */ new Error(`Worker stopped with non-0 exit code ${code}`)); - worker.currentReject = null; - parentFunctionResponder.close(); - } - }); - this._pool.push(worker); - return worker; - } - let resolve$4; - let reject; - const onWorkerAvailablePromise = new Promise((r$1, rj) => { - resolve$4 = r$1; - reject = rj; - }); - this._queue.push([resolve$4, reject]); - return onWorkerAvailablePromise; - } - /** @internal */ - _assignDoneWorker(worker) { - if (this._queue.length) { - const [resolve$4] = this._queue.shift(); - resolve$4(worker); - return; - } - this._idlePool.push(worker); - } -}; -function createParentFunctionResponder(parentFunctions) { - const lockState = new Int32Array(new SharedArrayBuffer(4)); - const unlock = () => { - Atomics.store(lockState, 0, 0); - Atomics.notify(lockState, 0); - }; - const parentFunctionSyncMessageChannel = new MessageChannel(); - const parentFunctionAsyncMessageChannel = new MessageChannel(); - const parentFunctionSyncMessagePort = parentFunctionSyncMessageChannel.port1; - const parentFunctionAsyncMessagePort = parentFunctionAsyncMessageChannel.port1; - const syncResponse = (data) => { - parentFunctionSyncMessagePort.postMessage(data); - unlock(); - }; - parentFunctionSyncMessagePort.on("message", async (args) => { - let syncResult; - try { - syncResult = parentFunctions[args.name](...args.args); - } catch (error$1) { - syncResponse({ - id: args.id, - error: error$1 - }); - return; - } - if (!(typeof syncResult === "object" && syncResult !== null && "then" in syncResult && typeof syncResult.then === "function")) { - syncResponse({ - id: args.id, - result: syncResult - }); - return; - } - syncResponse({ - id: args.id, - isAsync: true - }); - try { - const result = await syncResult; - parentFunctionAsyncMessagePort.postMessage({ - id: args.id, - result - }); - } catch (error$1) { - parentFunctionAsyncMessagePort.postMessage({ - id: args.id, - error: error$1 - }); - } - }); - parentFunctionSyncMessagePort.unref(); - return { - close: () => { - parentFunctionSyncMessagePort.close(); - parentFunctionAsyncMessagePort.close(); - }, - lockState, - workerPorts: { - sync: parentFunctionSyncMessageChannel.port2, - async: parentFunctionAsyncMessageChannel.port2 - } - }; -} -function genWorkerCode(fn, isModule, waitTimeout, parentFunctions) { - const createLock = (performance$2, lockState) => { - return { - lock: () => { - Atomics.store(lockState, 0, 1); - }, - waitUnlock: () => { - let utilizationBefore; - while (true) { - const status$1 = Atomics.wait(lockState, 0, 1, waitTimeout); - if (status$1 === "timed-out") { - if (utilizationBefore === void 0) { - utilizationBefore = performance$2.eventLoopUtilization(); - continue; - } - utilizationBefore = performance$2.eventLoopUtilization(utilizationBefore); - if (utilizationBefore.utilization > .9) continue; - throw new Error(status$1); - } - break; - } - } - }; - }; - const createParentFunctionRequester = (syncPort, asyncPort, receive, lock) => { - let id = 0; - const resolvers = /* @__PURE__ */ new Map(); - const call$1 = (key) => (...args) => { - id++; - lock.lock(); - syncPort.postMessage({ - id, - name: key, - args - }); - lock.waitUnlock(); - const resArgs = receive(syncPort).message; - if (resArgs.isAsync) { - let resolve$4, reject; - const promise = new Promise((res, rej) => { - resolve$4 = res; - reject = rej; - }); - resolvers.set(id, { - resolve: resolve$4, - reject - }); - return promise; - } - if ("error" in resArgs) throw resArgs.error; - else return resArgs.result; - }; - asyncPort.on("message", (args) => { - const id$1 = args.id; - if (resolvers.has(id$1)) { - const { resolve: resolve$4, reject } = resolvers.get(id$1); - resolvers.delete(id$1); - if ("result" in args) resolve$4(args.result); - else reject(args.error); - } - }); - return { call: call$1 }; - }; - const fnString = fn.toString().replaceAll(stackBlitzImport, "import").replaceAll(viteSsrDynamicImport, "import"); - return ` -${isModule ? "import { parentPort, receiveMessageOnPort, workerData } from 'worker_threads'" : "const { parentPort, receiveMessageOnPort, workerData } = require('worker_threads')"} -${isModule ? "import { performance } from 'node:perf_hooks'" : "const { performance } = require('node:perf_hooks')"} -const [parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort, lockState] = workerData -const waitTimeout = ${waitTimeout} -const createLock = ${createLock.toString()} -const parentFunctionRequester = (${createParentFunctionRequester.toString()})( - parentFunctionSyncMessagePort, - parentFunctionAsyncMessagePort, - receiveMessageOnPort, - createLock(performance, lockState) -) - -const doWorkPromise = (async () => { - ${Object.keys(parentFunctions).map((key) => `const ${key} = parentFunctionRequester.call(${JSON.stringify(key)});`).join("\n")} - return await (${fnString})() -})() -let doWork - -parentPort.on('message', async (args) => { - doWork ||= await doWorkPromise - - try { - const res = await doWork(...args.args) - parentPort.postMessage({ result: res }) - } catch (e) { - parentPort.postMessage({ error: e }) - } -}) - `; -} -const importRe = /\bimport\s*\(/g; -const internalImportName = "__artichokie_local_import__"; -var FakeWorker = class { - /** @internal */ - _fn; - constructor(fn, options$1 = {}) { - const declareRequire = options$1.type !== "module"; - const argsAndCode = genFakeWorkerArgsAndCode(fn, declareRequire, options$1.parentFunctions ?? {}); - const localImport = (specifier) => import(specifier); - const args = [ - ...declareRequire ? [createRequire(import.meta.url)] : [], - localImport, - options$1.parentFunctions - ]; - this._fn = new AsyncFunction(...argsAndCode)(...args); - } - async run(...args) { - try { - return await (await this._fn)(...args); - } catch (err$2) { - if (err$2 instanceof ReferenceError) err$2.message += ". Maybe you forgot to pass the function to parentFunction?"; - throw err$2; - } - } - stop() {} -}; -function genFakeWorkerArgsAndCode(fn, declareRequire, parentFunctions) { - const fnString = fn.toString().replace(importRe, `${internalImportName}(`).replaceAll(stackBlitzImport, internalImportName).replaceAll(viteSsrDynamicImport, internalImportName); - return [ - ...declareRequire ? ["require"] : [], - internalImportName, - "parentFunctions", - ` -${Object.keys(parentFunctions).map((key) => `const ${key} = parentFunctions[${JSON.stringify(key)}];`).join("\n")} -return await (${fnString})() - ` - ]; -} -var WorkerWithFallback = class { - /** @internal */ - _disableReal; - /** @internal */ - _realWorker; - /** @internal */ - _fakeWorker; - /** @internal */ - _shouldUseFake; - constructor(fn, options$1) { - this._disableReal = options$1.max !== void 0 && options$1.max <= 0; - this._realWorker = new Worker$1(fn, options$1); - this._fakeWorker = new FakeWorker(fn, options$1); - this._shouldUseFake = options$1.shouldUseFake; - } - async run(...args) { - const useFake = this._disableReal || this._shouldUseFake(...args); - return this[useFake ? "_fakeWorker" : "_realWorker"].run(...args); - } - stop() { - this._realWorker.stop(); - this._fakeWorker.stop(); - } -}; - -//#endregion -//#region ../../node_modules/.pnpm/resolve.exports@2.0.3/node_modules/resolve.exports/dist/index.mjs -function e(e$1, n$2, r$1) { - throw new Error(r$1 ? `No known conditions for "${n$2}" specifier in "${e$1}" package` : `Missing "${n$2}" specifier in "${e$1}" package`); -} -function n(n$2, i$1, o$1, f$1) { - let s$2, u, l = r(n$2, o$1), c = function(e$1) { - let n$3 = new Set(["default", ...e$1.conditions || []]); - return e$1.unsafe || n$3.add(e$1.require ? "require" : "import"), e$1.unsafe || n$3.add(e$1.browser ? "browser" : "node"), n$3; - }(f$1 || {}), a = i$1[l]; - if (void 0 === a) { - let e$1, n$3, r$1, t$1; - for (t$1 in i$1) n$3 && t$1.length < n$3.length || ("/" === t$1[t$1.length - 1] && l.startsWith(t$1) ? (u = l.substring(t$1.length), n$3 = t$1) : t$1.length > 1 && (r$1 = t$1.indexOf("*", 1), ~r$1 && (e$1 = RegExp("^" + t$1.substring(0, r$1) + "(.*)" + t$1.substring(1 + r$1) + "$").exec(l), e$1 && e$1[1] && (u = e$1[1], n$3 = t$1)))); - a = i$1[n$3]; - } - return a || e(n$2, l), s$2 = t(a, c), s$2 || e(n$2, l, 1), u && function(e$1, n$3) { - let r$1, t$1 = 0, i$2 = e$1.length, o$2 = /[*]/g, f$2 = /[/]$/; - for (; t$1 < i$2; t$1++) e$1[t$1] = o$2.test(r$1 = e$1[t$1]) ? r$1.replace(o$2, n$3) : f$2.test(r$1) ? r$1 + n$3 : r$1; - }(s$2, u), s$2; -} -function r(e$1, n$2, r$1) { - if (e$1 === n$2 || "." === n$2) return "."; - let t$1 = e$1 + "/", i$1 = t$1.length, o$1 = n$2.slice(0, i$1) === t$1, f$1 = o$1 ? n$2.slice(i$1) : n$2; - return "#" === f$1[0] ? f$1 : o$1 || !r$1 ? "./" === f$1.slice(0, 2) ? f$1 : "./" + f$1 : f$1; -} -function t(e$1, n$2, r$1) { - if (e$1) { - if ("string" == typeof e$1) return r$1 && r$1.add(e$1), [e$1]; - let i$1, o$1; - if (Array.isArray(e$1)) { - for (o$1 = r$1 || /* @__PURE__ */ new Set(), i$1 = 0; i$1 < e$1.length; i$1++) t(e$1[i$1], n$2, o$1); - if (!r$1 && o$1.size) return [...o$1]; - } else for (i$1 in e$1) if (n$2.has(i$1)) return t(e$1[i$1], n$2, r$1); - } -} -function o(e$1, r$1, t$1) { - let i$1, o$1 = e$1.exports; - if (o$1) { - if ("string" == typeof o$1) o$1 = { ".": o$1 }; - else for (i$1 in o$1) { - "." !== i$1[0] && (o$1 = { ".": o$1 }); - break; - } - return n(e$1.name, o$1, r$1 || ".", t$1); - } -} -function f(e$1, r$1, t$1) { - if (e$1.imports) return n(e$1.name, e$1.imports, r$1, t$1); -} - -//#endregion -//#region ../../node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs -const HASH_RE = /#/g; -const AMPERSAND_RE = /&/g; -const SLASH_RE = /\//g; -const EQUAL_RE = /=/g; -const PLUS_RE = /\+/g; -const ENC_CARET_RE = /%5e/gi; -const ENC_BACKTICK_RE = /%60/gi; -const ENC_PIPE_RE = /%7c/gi; -const ENC_SPACE_RE = /%20/gi; -function encode(text) { - return encodeURI("" + text).replace(ENC_PIPE_RE, "|"); -} -function encodeQueryValue(input) { - return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F"); -} -function encodeQueryKey(text) { - return encodeQueryValue(text).replace(EQUAL_RE, "%3D"); -} -function encodeQueryItem(key, value$1) { - if (typeof value$1 === "number" || typeof value$1 === "boolean") value$1 = String(value$1); - if (!value$1) return encodeQueryKey(key); - if (Array.isArray(value$1)) return value$1.map((_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`).join("&"); - return `${encodeQueryKey(key)}=${encodeQueryValue(value$1)}`; -} -function stringifyQuery(query) { - return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&"); -} -const protocolRelative = Symbol.for("ufo:protocolRelative"); - -//#endregion -//#region ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs -const BUILTIN_MODULES = new Set(builtinModules); -function clearImports(imports) { - return (imports || "").replace(/\/\/[^\n]*\n|\/\*.*\*\//g, "").replace(/\s+/g, " "); -} -function getImportNames(cleanedImports) { - const topLevelImports = cleanedImports.replace(/{[^}]*}/, ""); - return { - namespacedImport: topLevelImports.match(/\* as \s*(\S*)/)?.[1], - defaultImport: topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || void 0 - }; -} -/** -* @typedef ErrnoExceptionFields -* @property {number | undefined} [errnode] -* @property {string | undefined} [code] -* @property {string | undefined} [path] -* @property {string | undefined} [syscall] -* @property {string | undefined} [url] -* -* @typedef {Error & ErrnoExceptionFields} ErrnoException -*/ -const own$1 = {}.hasOwnProperty; -const classRegExp = /^([A-Z][a-z\d]*)+$/; -const kTypes = new Set([ - "string", - "function", - "number", - "object", - "Function", - "Object", - "boolean", - "bigint", - "symbol" -]); -const codes$1 = {}; -/** -* Create a list string in the form like 'A and B' or 'A, B, ..., and Z'. -* We cannot use Intl.ListFormat because it's not available in -* --without-intl builds. -* -* @param {Array} array -* An array of strings. -* @param {string} [type] -* The list type to be inserted before the last element. -* @returns {string} -*/ -function formatList(array, type = "and") { - return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`; -} -/** @type {Map} */ -const messages = /* @__PURE__ */ new Map(); -const nodeInternalPrefix = "__node_internal_"; -/** @type {number} */ -let userStackTraceLimit; -codes$1.ERR_INVALID_ARG_TYPE = createError( - "ERR_INVALID_ARG_TYPE", - /** - * @param {string} name - * @param {Array | string} expected - * @param {unknown} actual - */ - (name, expected, actual) => { - assert(typeof name === "string", "'name' must be a string"); - if (!Array.isArray(expected)) expected = [expected]; - let message = "The "; - if (name.endsWith(" argument")) message += `${name} `; - else { - const type = name.includes(".") ? "property" : "argument"; - message += `"${name}" ${type} `; - } - message += "must be "; - /** @type {Array} */ - const types = []; - /** @type {Array} */ - const instances = []; - /** @type {Array} */ - const other = []; - for (const value$1 of expected) { - assert(typeof value$1 === "string", "All expected entries have to be of type string"); - if (kTypes.has(value$1)) types.push(value$1.toLowerCase()); - else if (classRegExp.exec(value$1) === null) { - assert(value$1 !== "object", "The value \"object\" should be written as \"Object\""); - other.push(value$1); - } else instances.push(value$1); - } - if (instances.length > 0) { - const pos = types.indexOf("object"); - if (pos !== -1) { - types.slice(pos, 1); - instances.push("Object"); - } - } - if (types.length > 0) { - message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(types, "or")}`; - if (instances.length > 0 || other.length > 0) message += " or "; - } - if (instances.length > 0) { - message += `an instance of ${formatList(instances, "or")}`; - if (other.length > 0) message += " or "; - } - if (other.length > 0) if (other.length > 1) message += `one of ${formatList(other, "or")}`; - else { - if (other[0].toLowerCase() !== other[0]) message += "an "; - message += `${other[0]}`; - } - message += `. Received ${determineSpecificType(actual)}`; - return message; - }, - TypeError -); -codes$1.ERR_INVALID_MODULE_SPECIFIER = createError( - "ERR_INVALID_MODULE_SPECIFIER", - /** - * @param {string} request - * @param {string} reason - * @param {string} [base] - */ - (request, reason, base = void 0) => { - return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`; - }, - TypeError -); -codes$1.ERR_INVALID_PACKAGE_CONFIG = createError( - "ERR_INVALID_PACKAGE_CONFIG", - /** - * @param {string} path - * @param {string} [base] - * @param {string} [message] - */ - (path$13, base, message) => { - return `Invalid package config ${path$13}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`; - }, - Error -); -codes$1.ERR_INVALID_PACKAGE_TARGET = createError( - "ERR_INVALID_PACKAGE_TARGET", - /** - * @param {string} packagePath - * @param {string} key - * @param {unknown} target - * @param {boolean} [isImport=false] - * @param {string} [base] - */ - (packagePath, key, target, isImport = false, base = void 0) => { - const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./"); - if (key === ".") { - assert(isImport === false); - return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`; - } - return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`; - }, - Error -); -codes$1.ERR_MODULE_NOT_FOUND = createError( - "ERR_MODULE_NOT_FOUND", - /** - * @param {string} path - * @param {string} base - * @param {boolean} [exactUrl] - */ - (path$13, base, exactUrl = false) => { - return `Cannot find ${exactUrl ? "module" : "package"} '${path$13}' imported from ${base}`; - }, - Error -); -codes$1.ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error); -codes$1.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError( - "ERR_PACKAGE_IMPORT_NOT_DEFINED", - /** - * @param {string} specifier - * @param {string} packagePath - * @param {string} base - */ - (specifier, packagePath, base) => { - return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath}package.json` : ""} imported from ${base}`; - }, - TypeError -); -codes$1.ERR_PACKAGE_PATH_NOT_EXPORTED = createError( - "ERR_PACKAGE_PATH_NOT_EXPORTED", - /** - * @param {string} packagePath - * @param {string} subpath - * @param {string} [base] - */ - (packagePath, subpath, base = void 0) => { - if (subpath === ".") return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`; - return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`; - }, - Error -); -codes$1.ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error); -codes$1.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError("ERR_UNSUPPORTED_RESOLVE_REQUEST", "Failed to resolve module specifier \"%s\" from \"%s\": Invalid relative URL or base scheme is not hierarchical.", TypeError); -codes$1.ERR_UNKNOWN_FILE_EXTENSION = createError( - "ERR_UNKNOWN_FILE_EXTENSION", - /** - * @param {string} extension - * @param {string} path - */ - (extension$1, path$13) => { - return `Unknown file extension "${extension$1}" for ${path$13}`; - }, - TypeError -); -codes$1.ERR_INVALID_ARG_VALUE = createError( - "ERR_INVALID_ARG_VALUE", - /** - * @param {string} name - * @param {unknown} value - * @param {string} [reason='is invalid'] - */ - (name, value$1, reason = "is invalid") => { - let inspected = inspect(value$1); - if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`; - return `The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${inspected}`; - }, - TypeError -); -/** -* Utility function for registering the error codes. Only used here. Exported -* *only* to allow for testing. -* @param {string} sym -* @param {MessageFunction | string} value -* @param {ErrorConstructor} constructor -* @returns {new (...parameters: Array) => Error} -*/ -function createError(sym, value$1, constructor) { - messages.set(sym, value$1); - return makeNodeErrorWithCode(constructor, sym); -} -/** -* @param {ErrorConstructor} Base -* @param {string} key -* @returns {ErrorConstructor} -*/ -function makeNodeErrorWithCode(Base, key) { - return NodeError; - /** - * @param {Array} parameters - */ - function NodeError(...parameters) { - const limit = Error.stackTraceLimit; - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0; - const error$1 = new Base(); - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit; - const message = getMessage(key, parameters, error$1); - Object.defineProperties(error$1, { - message: { - value: message, - enumerable: false, - writable: true, - configurable: true - }, - toString: { - value() { - return `${this.name} [${key}]: ${this.message}`; - }, - enumerable: false, - writable: true, - configurable: true - } - }); - captureLargerStackTrace(error$1); - error$1.code = key; - return error$1; - } -} -/** -* @returns {boolean} -*/ -function isErrorStackTraceLimitWritable() { - try { - if (v8.startupSnapshot.isBuildingSnapshot()) return false; - } catch {} - const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit"); - if (desc === void 0) return Object.isExtensible(Error); - return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0; -} -/** -* This function removes unnecessary frames from Node.js core errors. -* @template {(...parameters: unknown[]) => unknown} T -* @param {T} wrappedFunction -* @returns {T} -*/ -function hideStackFrames(wrappedFunction) { - const hidden = nodeInternalPrefix + wrappedFunction.name; - Object.defineProperty(wrappedFunction, "name", { value: hidden }); - return wrappedFunction; -} -const captureLargerStackTrace = hideStackFrames( - /** - * @param {Error} error - * @returns {Error} - */ - function(error$1) { - const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable(); - if (stackTraceLimitIsWritable) { - userStackTraceLimit = Error.stackTraceLimit; - Error.stackTraceLimit = Number.POSITIVE_INFINITY; - } - Error.captureStackTrace(error$1); - if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit; - return error$1; - } -); -/** -* @param {string} key -* @param {Array} parameters -* @param {Error} self -* @returns {string} -*/ -function getMessage(key, parameters, self$1) { - const message = messages.get(key); - assert(message !== void 0, "expected `message` to be found"); - if (typeof message === "function") { - assert(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`); - return Reflect.apply(message, self$1, parameters); - } - const regex = /%[dfijoOs]/g; - let expectedLength = 0; - while (regex.exec(message) !== null) expectedLength++; - assert(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`); - if (parameters.length === 0) return message; - parameters.unshift(message); - return Reflect.apply(format, null, parameters); -} -/** -* Determine the specific type of a value for type-mismatch errors. -* @param {unknown} value -* @returns {string} -*/ -function determineSpecificType(value$1) { - if (value$1 === null || value$1 === void 0) return String(value$1); - if (typeof value$1 === "function" && value$1.name) return `function ${value$1.name}`; - if (typeof value$1 === "object") { - if (value$1.constructor && value$1.constructor.name) return `an instance of ${value$1.constructor.name}`; - return `${inspect(value$1, { depth: -1 })}`; - } - let inspected = inspect(value$1, { colors: false }); - if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`; - return `type ${typeof value$1} (${inspected})`; -} -const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*(?:[\s"']*(?[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu; -const TYPE_RE = /^\s*?type\s/; -function parseStaticImport(matched) { - const cleanedImports = clearImports(matched.imports); - const namedImports = {}; - const _matches = cleanedImports.match(/{([^}]*)}/)?.[1]?.split(",") || []; - for (const namedImport of _matches) { - const _match = namedImport.match(/^\s*(\S*) as (\S*)\s*$/); - const source = _match?.[1] || namedImport.trim(); - const importName = _match?.[2] || source; - if (source && !TYPE_RE.test(source)) namedImports[source] = importName; - } - const { namespacedImport, defaultImport } = getImportNames(cleanedImports); - return { - ...matched, - defaultImport, - namespacedImport, - namedImports - }; -} -const ESM_RE = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m; -const COMMENT_RE = /\/\*.+?\*\/|\/\/.*(?=[nr])/g; -function hasESMSyntax(code, opts = {}) { - if (opts.stripComments) code = code.replace(COMMENT_RE, ""); - return ESM_RE.test(code); -} - -//#endregion -//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.50/node_modules/@rolldown/pluginutils/dist/simple-filters.js -/** -* Constructs a RegExp that matches the exact string specified. -* -* This is useful for plugin hook filters. -* -* @param str the string to match. -* @param flags flags for the RegExp. -* -* @example -* ```ts -* import { exactRegex } from '@rolldown/pluginutils'; -* const plugin = { -* name: 'plugin', -* resolveId: { -* filter: { id: exactRegex('foo') }, -* handler(id) {} // will only be called for `foo` -* } -* } -* ``` -*/ -function exactRegex(str, flags) { - return new RegExp(`^${escapeRegex$1(str)}$`, flags); -} -/** -* Constructs a RegExp that matches a value that has the specified prefix. -* -* This is useful for plugin hook filters. -* -* @param str the string to match. -* @param flags flags for the RegExp. -* -* @example -* ```ts -* import { prefixRegex } from '@rolldown/pluginutils'; -* const plugin = { -* name: 'plugin', -* resolveId: { -* filter: { id: prefixRegex('foo') }, -* handler(id) {} // will only be called for IDs starting with `foo` -* } -* } -* ``` -*/ -function prefixRegex(str, flags) { - return new RegExp(`^${escapeRegex$1(str)}`, flags); -} -const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g; -function escapeRegex$1(str) { - return str.replace(escapeRegexRE, "\\$&"); -} - -//#endregion -//#region ../../node_modules/.pnpm/es-module-lexer@1.7.0/node_modules/es-module-lexer/dist/lexer.js -var ImportType; -(function(A$1) { - A$1[A$1.Static = 1] = "Static", A$1[A$1.Dynamic = 2] = "Dynamic", A$1[A$1.ImportMeta = 3] = "ImportMeta", A$1[A$1.StaticSourcePhase = 4] = "StaticSourcePhase", A$1[A$1.DynamicSourcePhase = 5] = "DynamicSourcePhase", A$1[A$1.StaticDeferPhase = 6] = "StaticDeferPhase", A$1[A$1.DynamicDeferPhase = 7] = "DynamicDeferPhase"; -})(ImportType || (ImportType = {})); -const A = 1 === new Uint8Array(new Uint16Array([1]).buffer)[0]; -function parse(E$1, g = "@") { - if (!C) return init.then((() => parse(E$1))); - const I = E$1.length + 1, w$1 = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength; - w$1 > 0 && C.memory.grow(Math.ceil(w$1 / 65536)); - const K = C.sa(I - 1); - if ((A ? B : Q)(E$1, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(/* @__PURE__ */ new Error(`Parse error ${g}:${E$1.slice(0, C.e()).split("\n").length}:${C.e() - E$1.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() }); - const o$1 = [], D = []; - for (; C.ri();) { - const A$1 = C.is(), Q$1 = C.ie(), B$1 = C.it(), g$1 = C.ai(), I$1 = C.id(), w$2 = C.ss(), K$1 = C.se(); - let D$1; - C.ip() && (D$1 = k(E$1.slice(-1 === I$1 ? A$1 - 1 : A$1, -1 === I$1 ? Q$1 + 1 : Q$1))), o$1.push({ - n: D$1, - t: B$1, - s: A$1, - e: Q$1, - ss: w$2, - se: K$1, - d: I$1, - a: g$1 - }); - } - for (; C.re();) { - const A$1 = C.es(), Q$1 = C.ee(), B$1 = C.els(), g$1 = C.ele(), I$1 = E$1.slice(A$1, Q$1), w$2 = I$1[0], K$1 = B$1 < 0 ? void 0 : E$1.slice(B$1, g$1), o$2 = K$1 ? K$1[0] : ""; - D.push({ - s: A$1, - e: Q$1, - ls: B$1, - le: g$1, - n: "\"" === w$2 || "'" === w$2 ? k(I$1) : I$1, - ln: "\"" === o$2 || "'" === o$2 ? k(K$1) : K$1 - }); - } - function k(A$1) { - try { - return (0, eval)(A$1); - } catch (A$2) {} - } - return [ - o$1, - D, - !!C.f(), - !!C.ms() - ]; -} -function Q(A$1, Q$1) { - const B$1 = A$1.length; - let C$1 = 0; - for (; C$1 < B$1;) { - const B$2 = A$1.charCodeAt(C$1); - Q$1[C$1++] = (255 & B$2) << 8 | B$2 >>> 8; - } -} -function B(A$1, Q$1) { - const B$1 = A$1.length; - let C$1 = 0; - for (; C$1 < B$1;) Q$1[C$1] = A$1.charCodeAt(C$1++); -} -let C; -const E = () => { - return A$1 = "AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKzkQwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9AlBACAFQSRqNgKICiAEQSBqQeAJIAQbIAU2AgBBACgC1AkhBEEAKALQCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGIgAbIAQgA0Y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AoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=", "undefined" != typeof Buffer ? Buffer.from(A$1, "base64") : Uint8Array.from(atob(A$1), ((A$2) => A$2.charCodeAt(0))); - var A$1; -}; -const init = WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({ exports: A$1 }) => { - C = A$1; -})); - -//#endregion -//#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js -var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js": ((exports, module) => { - const path$11 = __require("path"); - const fs$11 = __require("fs"); - const os$4 = __require("os"); - const url$2 = __require("url"); - const fsReadFileAsync = fs$11.promises.readFile; - /** @type {(name: string, sync: boolean) => string[]} */ - function getDefaultSearchPlaces(name, sync$3) { - return [ - "package.json", - `.${name}rc.json`, - `.${name}rc.js`, - `.${name}rc.cjs`, - ...sync$3 ? [] : [`.${name}rc.mjs`], - `.config/${name}rc`, - `.config/${name}rc.json`, - `.config/${name}rc.js`, - `.config/${name}rc.cjs`, - ...sync$3 ? [] : [`.config/${name}rc.mjs`], - `${name}.config.js`, - `${name}.config.cjs`, - ...sync$3 ? [] : [`${name}.config.mjs`] - ]; - } - /** - * @type {(p: string) => string} - * - * see #17 - * On *nix, if cwd is not under homedir, - * the last path will be '', ('/build' -> '') - * but it should be '/' actually. - * And on Windows, this will never happen. ('C:\build' -> 'C:') - */ - function parentDir(p) { - return path$11.dirname(p) || path$11.sep; - } - /** @type {import('./index').LoaderSync} */ - const jsonLoader = (_, content) => JSON.parse(content); - const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; - /** @type {import('./index').LoadersSync} */ - const defaultLoadersSync = Object.freeze({ - ".js": requireFunc, - ".json": requireFunc, - ".cjs": requireFunc, - noExt: jsonLoader - }); - module.exports.defaultLoadersSync = defaultLoadersSync; - /** @type {import('./index').Loader} */ - const dynamicImport = async (id) => { - try { - return (await import(url$2.pathToFileURL(id).href)).default; - } catch (e$1) { - try { - return requireFunc(id); - } catch (requireE) { - if (requireE.code === "ERR_REQUIRE_ESM" || requireE instanceof SyntaxError && requireE.toString().includes("Cannot use import statement outside a module")) throw e$1; - throw requireE; - } - } - }; - /** @type {import('./index').Loaders} */ - const defaultLoaders = Object.freeze({ - ".js": dynamicImport, - ".mjs": dynamicImport, - ".cjs": dynamicImport, - ".json": jsonLoader, - noExt: jsonLoader - }); - module.exports.defaultLoaders = defaultLoaders; - /** - * @param {string} name - * @param {import('./index').Options | import('./index').OptionsSync} options - * @param {boolean} sync - * @returns {Required} - */ - function getOptions(name, options$1, sync$3) { - /** @type {Required} */ - const conf = { - stopDir: os$4.homedir(), - searchPlaces: getDefaultSearchPlaces(name, sync$3), - ignoreEmptySearchPlaces: true, - cache: true, - transform: (x) => x, - packageProp: [name], - ...options$1, - loaders: { - ...sync$3 ? defaultLoadersSync : defaultLoaders, - ...options$1.loaders - } - }; - conf.searchPlaces.forEach((place) => { - const key = path$11.extname(place) || "noExt"; - const loader$1 = conf.loaders[key]; - if (!loader$1) throw new Error(`Missing loader for extension "${place}"`); - if (typeof loader$1 !== "function") throw new Error(`Loader for extension "${place}" is not a function: Received ${typeof loader$1}.`); - }); - return conf; - } - /** @type {(props: string | string[], obj: Record) => unknown} */ - function getPackageProp(props, obj) { - if (typeof props === "string" && props in obj) return obj[props]; - return (Array.isArray(props) ? props : props.split(".")).reduce((acc, prop) => acc === void 0 ? acc : acc[prop], obj) || null; - } - /** @param {string} filepath */ - function validateFilePath(filepath) { - if (!filepath) throw new Error("load must pass a non-empty string"); - } - /** @type {(loader: import('./index').Loader, ext: string) => void} */ - function validateLoader(loader$1, ext) { - if (!loader$1) throw new Error(`No loader specified for extension "${ext}"`); - if (typeof loader$1 !== "function") throw new Error("loader is not a function"); - } - /** @type {(enableCache: boolean) => (c: Map, filepath: string, res: T) => T} */ - const makeEmplace = (enableCache) => (c, filepath, res) => { - if (enableCache) c.set(filepath, res); - return res; - }; - /** @type {import('./index').lilconfig} */ - module.exports.lilconfig = function lilconfig(name, options$1) { - const { ignoreEmptySearchPlaces, loaders, packageProp, searchPlaces, stopDir, transform: transform$2, cache: cache$1 } = getOptions(name, options$1 ?? {}, false); - const searchCache = /* @__PURE__ */ new Map(); - const loadCache = /* @__PURE__ */ new Map(); - const emplace = makeEmplace(cache$1); - return { - async search(searchFrom = process.cwd()) { - /** @type {import('./index').LilconfigResult} */ - const result = { - config: null, - filepath: "" - }; - /** @type {Set} */ - const visited = /* @__PURE__ */ new Set(); - let dir = searchFrom; - dirLoop: while (true) { - if (cache$1) { - const r$1 = searchCache.get(dir); - if (r$1 !== void 0) { - for (const p of visited) searchCache.set(p, r$1); - return r$1; - } - visited.add(dir); - } - for (const searchPlace of searchPlaces) { - const filepath = path$11.join(dir, searchPlace); - try { - await fs$11.promises.access(filepath); - } catch { - continue; - } - const content = String(await fsReadFileAsync(filepath)); - const loaderKey = path$11.extname(searchPlace) || "noExt"; - const loader$1 = loaders[loaderKey]; - if (searchPlace === "package.json") { - const maybeConfig = getPackageProp(packageProp, await loader$1(filepath, content)); - if (maybeConfig != null) { - result.config = maybeConfig; - result.filepath = filepath; - break dirLoop; - } - continue; - } - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) continue; - if (isEmpty) { - result.isEmpty = true; - result.config = void 0; - } else { - validateLoader(loader$1, loaderKey); - result.config = await loader$1(filepath, content); - } - result.filepath = filepath; - break dirLoop; - } - if (dir === stopDir || dir === parentDir(dir)) break dirLoop; - dir = parentDir(dir); - } - const transformed = result.filepath === "" && result.config === null ? transform$2(null) : transform$2(result); - if (cache$1) for (const p of visited) searchCache.set(p, transformed); - return transformed; - }, - async load(filepath) { - validateFilePath(filepath); - const absPath = path$11.resolve(process.cwd(), filepath); - if (cache$1 && loadCache.has(absPath)) return loadCache.get(absPath); - const { base, ext } = path$11.parse(absPath); - const loaderKey = ext || "noExt"; - const loader$1 = loaders[loaderKey]; - validateLoader(loader$1, loaderKey); - const content = String(await fsReadFileAsync(absPath)); - if (base === "package.json") return emplace(loadCache, absPath, transform$2({ - config: getPackageProp(packageProp, await loader$1(absPath, content)), - filepath: absPath - })); - /** @type {import('./index').LilconfigResult} */ - const result = { - config: null, - filepath: absPath - }; - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) return emplace(loadCache, absPath, transform$2({ - config: void 0, - filepath: absPath, - isEmpty: true - })); - result.config = isEmpty ? void 0 : await loader$1(absPath, content); - return emplace(loadCache, absPath, transform$2(isEmpty ? { - ...result, - isEmpty, - config: void 0 - } : result)); - }, - clearLoadCache() { - if (cache$1) loadCache.clear(); - }, - clearSearchCache() { - if (cache$1) searchCache.clear(); - }, - clearCaches() { - if (cache$1) { - loadCache.clear(); - searchCache.clear(); - } - } - }; - }; - /** @type {import('./index').lilconfigSync} */ - module.exports.lilconfigSync = function lilconfigSync(name, options$1) { - const { ignoreEmptySearchPlaces, loaders, packageProp, searchPlaces, stopDir, transform: transform$2, cache: cache$1 } = getOptions(name, options$1 ?? {}, true); - const searchCache = /* @__PURE__ */ new Map(); - const loadCache = /* @__PURE__ */ new Map(); - const emplace = makeEmplace(cache$1); - return { - search(searchFrom = process.cwd()) { - /** @type {import('./index').LilconfigResult} */ - const result = { - config: null, - filepath: "" - }; - /** @type {Set} */ - const visited = /* @__PURE__ */ new Set(); - let dir = searchFrom; - dirLoop: while (true) { - if (cache$1) { - const r$1 = searchCache.get(dir); - if (r$1 !== void 0) { - for (const p of visited) searchCache.set(p, r$1); - return r$1; - } - visited.add(dir); - } - for (const searchPlace of searchPlaces) { - const filepath = path$11.join(dir, searchPlace); - try { - fs$11.accessSync(filepath); - } catch { - continue; - } - const loaderKey = path$11.extname(searchPlace) || "noExt"; - const loader$1 = loaders[loaderKey]; - const content = String(fs$11.readFileSync(filepath)); - if (searchPlace === "package.json") { - const maybeConfig = getPackageProp(packageProp, loader$1(filepath, content)); - if (maybeConfig != null) { - result.config = maybeConfig; - result.filepath = filepath; - break dirLoop; - } - continue; - } - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) continue; - if (isEmpty) { - result.isEmpty = true; - result.config = void 0; - } else { - validateLoader(loader$1, loaderKey); - result.config = loader$1(filepath, content); - } - result.filepath = filepath; - break dirLoop; - } - if (dir === stopDir || dir === parentDir(dir)) break dirLoop; - dir = parentDir(dir); - } - const transformed = result.filepath === "" && result.config === null ? transform$2(null) : transform$2(result); - if (cache$1) for (const p of visited) searchCache.set(p, transformed); - return transformed; - }, - load(filepath) { - validateFilePath(filepath); - const absPath = path$11.resolve(process.cwd(), filepath); - if (cache$1 && loadCache.has(absPath)) return loadCache.get(absPath); - const { base, ext } = path$11.parse(absPath); - const loaderKey = ext || "noExt"; - const loader$1 = loaders[loaderKey]; - validateLoader(loader$1, loaderKey); - const content = String(fs$11.readFileSync(absPath)); - if (base === "package.json") return transform$2({ - config: getPackageProp(packageProp, loader$1(absPath, content)), - filepath: absPath - }); - const result = { - config: null, - filepath: absPath - }; - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) return emplace(loadCache, absPath, transform$2({ - filepath: absPath, - config: void 0, - isEmpty: true - })); - result.config = isEmpty ? void 0 : loader$1(absPath, content); - return emplace(loadCache, absPath, transform$2(isEmpty ? { - ...result, - isEmpty, - config: void 0 - } : result)); - }, - clearLoadCache() { - if (cache$1) loadCache.clear(); - }, - clearSearchCache() { - if (cache$1) searchCache.clear(); - }, - clearCaches() { - if (cache$1) { - loadCache.clear(); - searchCache.clear(); - } - } - }; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/req.js -var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/req.js": ((exports, module) => { - const { createRequire: createRequire$2 } = __require("node:module"); - const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url"); - const TS_EXT_RE = /\.[mc]?ts$/; - let tsx; - let jiti; - let importError = []; - /** - * @param {string} name - * @param {string} rootFile - * @returns {Promise} - */ - async function req$3(name, rootFile = fileURLToPath$1(import.meta.url)) { - let url$3 = createRequire$2(rootFile).resolve(name); - try { - return (await import(`${pathToFileURL$1(url$3)}?t=${Date.now()}`)).default; - } catch (err$2) { - if (!TS_EXT_RE.test(url$3)) - /* c8 ignore start */ - throw err$2; - } - if (tsx === void 0) try { - tsx = await import("tsx/cjs/api"); - } catch (error$1) { - importError.push(error$1); - } - if (tsx) { - let loaded = tsx.require(name, rootFile); - return loaded && "__esModule" in loaded ? loaded.default : loaded; - } - if (jiti === void 0) try { - jiti = (await import("jiti")).default; - } catch (error$1) { - importError.push(error$1); - } - if (jiti) return jiti(rootFile, { interopDefault: true })(name); - throw new Error(`'tsx' or 'jiti' is required for the TypeScript configuration files. Make sure it is installed\nError: ${importError.map((error$1) => error$1.message).join("\n")}`); - } - module.exports = req$3; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/options.js -var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/options.js": ((exports, module) => { - const req$2 = require_req(); - /** - * Load Options - * - * @private - * @method options - * - * @param {Object} config PostCSS Config - * - * @return {Promise} options PostCSS Options - */ - async function options(config$2, file) { - if (config$2.parser && typeof config$2.parser === "string") try { - config$2.parser = await req$2(config$2.parser, file); - } catch (err$2) { - throw new Error(`Loading PostCSS Parser failed: ${err$2.message}\n\n(@${file})`); - } - if (config$2.syntax && typeof config$2.syntax === "string") try { - config$2.syntax = await req$2(config$2.syntax, file); - } catch (err$2) { - throw new Error(`Loading PostCSS Syntax failed: ${err$2.message}\n\n(@${file})`); - } - if (config$2.stringifier && typeof config$2.stringifier === "string") try { - config$2.stringifier = await req$2(config$2.stringifier, file); - } catch (err$2) { - throw new Error(`Loading PostCSS Stringifier failed: ${err$2.message}\n\n(@${file})`); - } - return config$2; - } - module.exports = options; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js -var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js": ((exports, module) => { - const req$1 = require_req(); - /** - * Plugin Loader - * - * @private - * @method load - * - * @param {String} plugin PostCSS Plugin Name - * @param {Object} options PostCSS Plugin Options - * - * @return {Promise} PostCSS Plugin - */ - async function load$1(plugin, options$1, file) { - try { - if (options$1 === null || options$1 === void 0 || Object.keys(options$1).length === 0) return await req$1(plugin, file); - else return (await req$1(plugin, file))(options$1); - } catch (err$2) { - throw new Error(`Loading PostCSS Plugin failed: ${err$2.message}\n\n(@${file})`); - } - } - /** - * Load Plugins - * - * @private - * @method plugins - * - * @param {Object} config PostCSS Config Plugins - * - * @return {Promise} plugins PostCSS Plugins - */ - async function plugins(config$2, file) { - let list = []; - if (Array.isArray(config$2.plugins)) list = config$2.plugins.filter(Boolean); - else { - list = Object.entries(config$2.plugins).filter(([, options$1]) => { - return options$1 !== false; - }).map(([plugin, options$1]) => { - return load$1(plugin, options$1, file); - }); - list = await Promise.all(list); - } - if (list.length && list.length > 0) list.forEach((plugin, i$1) => { - if (plugin.default) plugin = plugin.default; - if (plugin.postcss === true) plugin = plugin(); - else if (plugin.postcss) plugin = plugin.postcss; - if (!(typeof plugin === "object" && Array.isArray(plugin.plugins) || typeof plugin === "object" && plugin.postcssPlugin || typeof plugin === "function")) throw new TypeError(`Invalid PostCSS Plugin found at: plugins[${i$1}]\n\n(@${file})`); - }); - return list; - } - module.exports = plugins; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/index.js -var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/index.js": ((exports, module) => { - const { resolve: resolve$2 } = __require("node:path"); - const config$1 = require_src$1(); - const loadOptions = require_options(); - const loadPlugins = require_plugins(); - const req = require_req(); - const interopRequireDefault = (obj) => obj && obj.__esModule ? obj : { default: obj }; - /** - * Process the result from cosmiconfig - * - * @param {Object} ctx Config Context - * @param {Object} result Cosmiconfig result - * - * @return {Promise} PostCSS Config - */ - async function processResult(ctx, result) { - let file = result.filepath || ""; - let projectConfig = interopRequireDefault(result.config).default || {}; - if (typeof projectConfig === "function") projectConfig = projectConfig(ctx); - else projectConfig = Object.assign({}, projectConfig, ctx); - if (!projectConfig.plugins) projectConfig.plugins = []; - let res = { - file, - options: await loadOptions(projectConfig, file), - plugins: await loadPlugins(projectConfig, file) - }; - delete projectConfig.plugins; - return res; - } - /** - * Builds the Config Context - * - * @param {Object} ctx Config Context - * - * @return {Object} Config Context - */ - function createContext(ctx) { - /** - * @type {Object} - * - * @prop {String} cwd=process.cwd() Config search start location - * @prop {String} env=process.env.NODE_ENV Config Enviroment, will be set to `development` by `postcss-load-config` if `process.env.NODE_ENV` is `undefined` - */ - ctx = Object.assign({ - cwd: process.cwd(), - env: process.env.NODE_ENV - }, ctx); - if (!ctx.env) process.env.NODE_ENV = "development"; - return ctx; - } - async function loader(filepath) { - return req(filepath); - } - let yaml; - async function yamlLoader(_, content) { - if (!yaml) try { - yaml = await import("yaml"); - } catch (e$1) { - /* c8 ignore start */ - throw new Error(`'yaml' is required for the YAML configuration files. Make sure it is installed\nError: ${e$1.message}`); - } - return yaml.parse(content); - } - /** @return {import('lilconfig').Options} */ - const withLoaders = (options$1 = {}) => { - let moduleName = "postcss"; - return { - ...options$1, - loaders: { - ...options$1.loaders, - ".cjs": loader, - ".cts": loader, - ".js": loader, - ".mjs": loader, - ".mts": loader, - ".ts": loader, - ".yaml": yamlLoader, - ".yml": yamlLoader - }, - searchPlaces: [ - ...options$1.searchPlaces || [], - "package.json", - `.${moduleName}rc`, - `.${moduleName}rc.json`, - `.${moduleName}rc.yaml`, - `.${moduleName}rc.yml`, - `.${moduleName}rc.ts`, - `.${moduleName}rc.cts`, - `.${moduleName}rc.mts`, - `.${moduleName}rc.js`, - `.${moduleName}rc.cjs`, - `.${moduleName}rc.mjs`, - `${moduleName}.config.ts`, - `${moduleName}.config.cts`, - `${moduleName}.config.mts`, - `${moduleName}.config.js`, - `${moduleName}.config.cjs`, - `${moduleName}.config.mjs` - ] - }; - }; - /** - * Load Config - * - * @method rc - * - * @param {Object} ctx Config Context - * @param {String} path Config Path - * @param {Object} options Config Options - * - * @return {Promise} config PostCSS Config - */ - function rc(ctx, path$13, options$1) { - /** - * @type {Object} The full Config Context - */ - ctx = createContext(ctx); - /** - * @type {String} `process.cwd()` - */ - path$13 = path$13 ? resolve$2(path$13) : process.cwd(); - return config$1.lilconfig("postcss", withLoaders(options$1)).search(path$13).then((result) => { - if (!result) throw new Error(`No PostCSS Config found in: ${path$13}`); - return processResult(ctx, result); - }); - } - /** - * Autoload Config for PostCSS - * - * @author Michael Ciniawsky @michael-ciniawsky - * @license MIT - * - * @module postcss-load-config - * @version 2.1.0 - * - * @requires comsiconfig - * @requires ./options - * @requires ./plugins - */ - module.exports = rc; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js -var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": ((exports) => { - Object.defineProperty(exports, "commentRegex", { get: function getCommentRegex() { - return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm; - } }); - Object.defineProperty(exports, "mapFileCommentRegex", { get: function getMapFileCommentRegex() { - return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm; - } }); - var decodeBase64; - if (typeof Buffer !== "undefined") if (typeof Buffer.from === "function") decodeBase64 = decodeBase64WithBufferFrom; - else decodeBase64 = decodeBase64WithNewBuffer; - else decodeBase64 = decodeBase64WithAtob; - function decodeBase64WithBufferFrom(base64) { - return Buffer.from(base64, "base64").toString(); - } - function decodeBase64WithNewBuffer(base64) { - if (typeof value === "number") throw new TypeError("The value to decode must not be of type number."); - return new Buffer(base64, "base64").toString(); - } - function decodeBase64WithAtob(base64) { - return decodeURIComponent(escape(atob(base64))); - } - function stripComment(sm) { - return sm.split(",").pop(); - } - function readFromFileMap(sm, read) { - var r$1 = exports.mapFileCommentRegex.exec(sm); - var filename = r$1[1] || r$1[2]; - try { - var sm = read(filename); - if (sm != null && typeof sm.catch === "function") return sm.catch(throwError); - else return sm; - } catch (e$1) { - throwError(e$1); - } - function throwError(e$1) { - throw new Error("An error occurred while trying to read the map file at " + filename + "\n" + e$1.stack); - } - } - function Converter(sm, opts) { - opts = opts || {}; - if (opts.hasComment) sm = stripComment(sm); - if (opts.encoding === "base64") sm = decodeBase64(sm); - else if (opts.encoding === "uri") sm = decodeURIComponent(sm); - if (opts.isJSON || opts.encoding) sm = JSON.parse(sm); - this.sourcemap = sm; - } - Converter.prototype.toJSON = function(space) { - return JSON.stringify(this.sourcemap, null, space); - }; - if (typeof Buffer !== "undefined") if (typeof Buffer.from === "function") Converter.prototype.toBase64 = encodeBase64WithBufferFrom; - else Converter.prototype.toBase64 = encodeBase64WithNewBuffer; - else Converter.prototype.toBase64 = encodeBase64WithBtoa; - function encodeBase64WithBufferFrom() { - var json = this.toJSON(); - return Buffer.from(json, "utf8").toString("base64"); - } - function encodeBase64WithNewBuffer() { - var json = this.toJSON(); - if (typeof json === "number") throw new TypeError("The json to encode must not be of type number."); - return new Buffer(json, "utf8").toString("base64"); - } - function encodeBase64WithBtoa() { - var json = this.toJSON(); - return btoa(unescape(encodeURIComponent(json))); - } - Converter.prototype.toURI = function() { - var json = this.toJSON(); - return encodeURIComponent(json); - }; - Converter.prototype.toComment = function(options$1) { - var encoding, content, data; - if (options$1 != null && options$1.encoding === "uri") { - encoding = ""; - content = this.toURI(); - } else { - encoding = ";base64"; - content = this.toBase64(); - } - data = "sourceMappingURL=data:application/json;charset=utf-8" + encoding + "," + content; - return options$1 != null && options$1.multiline ? "/*# " + data + " */" : "//# " + data; - }; - Converter.prototype.toObject = function() { - return JSON.parse(this.toJSON()); - }; - Converter.prototype.addProperty = function(key, value$1) { - if (this.sourcemap.hasOwnProperty(key)) throw new Error("property \"" + key + "\" already exists on the sourcemap, use set property instead"); - return this.setProperty(key, value$1); - }; - Converter.prototype.setProperty = function(key, value$1) { - this.sourcemap[key] = value$1; - return this; - }; - Converter.prototype.getProperty = function(key) { - return this.sourcemap[key]; - }; - exports.fromObject = function(obj) { - return new Converter(obj); - }; - exports.fromJSON = function(json) { - return new Converter(json, { isJSON: true }); - }; - exports.fromURI = function(uri) { - return new Converter(uri, { encoding: "uri" }); - }; - exports.fromBase64 = function(base64) { - return new Converter(base64, { encoding: "base64" }); - }; - exports.fromComment = function(comment) { - var m$2, encoding; - comment = comment.replace(/^\/\*/g, "//").replace(/\*\/$/g, ""); - m$2 = exports.commentRegex.exec(comment); - encoding = m$2 && m$2[4] || "uri"; - return new Converter(comment, { - encoding, - hasComment: true - }); - }; - function makeConverter(sm) { - return new Converter(sm, { isJSON: true }); - } - exports.fromMapFileComment = function(comment, read) { - if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading"); - var sm = readFromFileMap(comment, read); - if (sm != null && typeof sm.then === "function") return sm.then(makeConverter); - else return makeConverter(sm); - }; - exports.fromSource = function(content) { - var m$2 = content.match(exports.commentRegex); - return m$2 ? exports.fromComment(m$2.pop()) : null; - }; - exports.fromMapFileSource = function(content, read) { - if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading"); - var m$2 = content.match(exports.mapFileCommentRegex); - return m$2 ? exports.fromMapFileComment(m$2.pop(), read) : null; - }; - exports.removeComments = function(src) { - return src.replace(exports.commentRegex, ""); - }; - exports.removeMapFileComments = function(src) { - return src.replace(exports.mapFileCommentRegex, ""); - }; - exports.generateMapFileComment = function(file, options$1) { - var data = "sourceMappingURL=" + file; - return options$1 && options$1.multiline ? "/*# " + data + " */" : "//# " + data; - }; -}) }); - -//#endregion -//#region src/node/server/sourcemap.ts -var import_convert_source_map$2 = /* @__PURE__ */ __toESM(require_convert_source_map(), 1); -const debug$16 = createDebugger("vite:sourcemap", { onlyWhenFocused: true }); -const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/; -async function computeSourceRoute(map$1, file) { - let sourceRoot; - try { - sourceRoot = await fsp.realpath(path.resolve(path.dirname(file), map$1.sourceRoot || "")); - } catch {} - return sourceRoot; -} -async function injectSourcesContent(map$1, file, logger) { - let sourceRootPromise; - const missingSources = []; - const sourcesContent = map$1.sourcesContent || []; - const sourcesContentPromises = []; - for (let index = 0; index < map$1.sources.length; index++) { - const sourcePath = map$1.sources[index]; - if (sourcesContent[index] == null && sourcePath && !virtualSourceRE.test(sourcePath)) sourcesContentPromises.push((async () => { - sourceRootPromise ??= computeSourceRoute(map$1, file); - const sourceRoot = await sourceRootPromise; - let resolvedSourcePath = cleanUrl(decodeURI(sourcePath)); - if (sourceRoot) resolvedSourcePath = path.resolve(sourceRoot, resolvedSourcePath); - sourcesContent[index] = await fsp.readFile(resolvedSourcePath, "utf-8").catch(() => { - missingSources.push(resolvedSourcePath); - return null; - }); - })()); - } - await Promise.all(sourcesContentPromises); - map$1.sourcesContent = sourcesContent; - if (missingSources.length) { - logger.warnOnce(`Sourcemap for "${file}" points to missing source files`); - debug$16?.(`Missing sources:\n ` + missingSources.join(`\n `)); - } -} -function genSourceMapUrl(map$1) { - if (typeof map$1 !== "string") map$1 = JSON.stringify(map$1); - return `data:application/json;base64,${Buffer.from(map$1).toString("base64")}`; -} -function getCodeWithSourcemap(type, code, map$1) { - if (debug$16) code += `\n/*${JSON.stringify(map$1, null, 2).replace(/\*\//g, "*\\/")}*/\n`; - if (type === "js") code += `\n//# sourceMappingURL=${genSourceMapUrl(map$1)}`; - else if (type === "css") code += `\n/*# sourceMappingURL=${genSourceMapUrl(map$1)} */`; - return code; -} -function applySourcemapIgnoreList(map$1, sourcemapPath, sourcemapIgnoreList, logger) { - let { x_google_ignoreList } = map$1; - if (x_google_ignoreList === void 0) x_google_ignoreList = []; - for (let sourcesIndex = 0; sourcesIndex < map$1.sources.length; ++sourcesIndex) { - const sourcePath = map$1.sources[sourcesIndex]; - if (!sourcePath) continue; - const ignoreList = sourcemapIgnoreList(path.isAbsolute(sourcePath) ? sourcePath : path.resolve(path.dirname(sourcemapPath), sourcePath), sourcemapPath); - if (logger && typeof ignoreList !== "boolean") logger.warn("sourcemapIgnoreList function must return a boolean."); - if (ignoreList && !x_google_ignoreList.includes(sourcesIndex)) x_google_ignoreList.push(sourcesIndex); - } - if (x_google_ignoreList.length > 0) { - if (!map$1.x_google_ignoreList) map$1.x_google_ignoreList = x_google_ignoreList; - } -} -async function extractSourcemapFromFile(code, filePath) { - const map$1 = (import_convert_source_map$2.fromSource(code) || await import_convert_source_map$2.fromMapFileSource(code, createConvertSourceMapReadMap(filePath)))?.toObject(); - if (map$1) return { - code: code.replace(import_convert_source_map$2.default.mapFileCommentRegex, blankReplacer), - map: map$1 - }; -} -function createConvertSourceMapReadMap(originalFileName) { - return (filename) => { - return fsp.readFile(path.resolve(path.dirname(originalFileName), filename), "utf-8"); - }; -} - -//#endregion -//#region src/node/publicDir.ts -const publicFilesMap = /* @__PURE__ */ new WeakMap(); -async function initPublicFiles(config$2) { - let fileNames; - try { - fileNames = await recursiveReaddir(config$2.publicDir); - } catch (e$1) { - if (e$1.code === ERR_SYMLINK_IN_RECURSIVE_READDIR) return; - throw e$1; - } - const publicFiles = new Set(fileNames.map((fileName) => fileName.slice(config$2.publicDir.length))); - publicFilesMap.set(config$2, publicFiles); - return publicFiles; -} -function getPublicFiles(config$2) { - return publicFilesMap.get(config$2); -} -function checkPublicFile(url$3, config$2) { - const { publicDir } = config$2; - if (!publicDir || url$3[0] !== "/") return; - const fileName = cleanUrl(url$3); - const publicFiles = getPublicFiles(config$2); - if (publicFiles) return publicFiles.has(fileName) ? normalizePath(path.join(publicDir, fileName)) : void 0; - const publicFile = normalizePath(path.join(publicDir, fileName)); - if (!publicFile.startsWith(withTrailingSlash(publicDir))) return; - return tryStatSync(publicFile)?.isFile() ? publicFile : void 0; -} - -//#endregion -//#region ../../node_modules/.pnpm/@rollup+plugin-alias@5.1.1_rollup@4.43.0/node_modules/@rollup/plugin-alias/dist/es/index.js -function matches$1(pattern, importee) { - if (pattern instanceof RegExp) return pattern.test(importee); - if (importee.length < pattern.length) return false; - if (importee === pattern) return true; - return importee.startsWith(pattern + "/"); -} -function getEntries({ entries, customResolver }) { - if (!entries) return []; - const resolverFunctionFromOptions = resolveCustomResolver(customResolver); - if (Array.isArray(entries)) return entries.map((entry) => { - return { - find: entry.find, - replacement: entry.replacement, - resolverFunction: resolveCustomResolver(entry.customResolver) || resolverFunctionFromOptions - }; - }); - return Object.entries(entries).map(([key, value$1]) => { - return { - find: key, - replacement: value$1, - resolverFunction: resolverFunctionFromOptions - }; - }); -} -function getHookFunction(hook) { - if (typeof hook === "function") return hook; - if (hook && "handler" in hook && typeof hook.handler === "function") return hook.handler; - return null; -} -function resolveCustomResolver(customResolver) { - if (typeof customResolver === "function") return customResolver; - if (customResolver) return getHookFunction(customResolver.resolveId); - return null; -} -function alias(options$1 = {}) { - const entries = getEntries(options$1); - if (entries.length === 0) return { - name: "alias", - resolveId: () => null - }; - return { - name: "alias", - async buildStart(inputOptions) { - await Promise.all([...Array.isArray(options$1.entries) ? options$1.entries : [], options$1].map(({ customResolver }) => { - var _a; - return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === void 0 ? void 0 : _a.call(this, inputOptions)); - })); - }, - resolveId(importee, importer, resolveOptions) { - const matchedEntry = entries.find((entry) => matches$1(entry.find, importee)); - if (!matchedEntry) return null; - const updatedId = importee.replace(matchedEntry.find, matchedEntry.replacement); - if (matchedEntry.resolverFunction) return matchedEntry.resolverFunction.call(this, updatedId, importer, resolveOptions); - return this.resolve(updatedId, importer, Object.assign({ skipSelf: true }, resolveOptions)).then((resolved) => { - if (resolved) return resolved; - if (!path$1.isAbsolute(updatedId)) this.warn(`rewrote ${importee} to ${updatedId} but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.`); - return { id: updatedId }; - }); - } - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/mrmime@2.0.1/node_modules/mrmime/index.mjs -const mimes = { - "3g2": "video/3gpp2", - "3gp": "video/3gpp", - "3gpp": "video/3gpp", - "3mf": "model/3mf", - "aac": "audio/aac", - "ac": "application/pkix-attr-cert", - "adp": "audio/adpcm", - "adts": "audio/aac", - "ai": "application/postscript", - "aml": "application/automationml-aml+xml", - "amlx": "application/automationml-amlx+zip", - "amr": "audio/amr", - "apng": "image/apng", - "appcache": "text/cache-manifest", - "appinstaller": "application/appinstaller", - "appx": "application/appx", - "appxbundle": "application/appxbundle", - "asc": "application/pgp-keys", - "atom": "application/atom+xml", - "atomcat": "application/atomcat+xml", - "atomdeleted": "application/atomdeleted+xml", - "atomsvc": "application/atomsvc+xml", - "au": "audio/basic", - "avci": "image/avci", - "avcs": "image/avcs", - "avif": "image/avif", - "aw": "application/applixware", - "bdoc": "application/bdoc", - "bin": "application/octet-stream", - "bmp": "image/bmp", - "bpk": "application/octet-stream", - "btf": "image/prs.btif", - "btif": "image/prs.btif", - "buffer": "application/octet-stream", - "ccxml": "application/ccxml+xml", - "cdfx": "application/cdfx+xml", - "cdmia": "application/cdmi-capability", - "cdmic": "application/cdmi-container", - "cdmid": "application/cdmi-domain", - "cdmio": "application/cdmi-object", - "cdmiq": "application/cdmi-queue", - "cer": "application/pkix-cert", - "cgm": "image/cgm", - "cjs": "application/node", - "class": "application/java-vm", - "coffee": "text/coffeescript", - "conf": "text/plain", - "cpl": "application/cpl+xml", - "cpt": "application/mac-compactpro", - "crl": "application/pkix-crl", - "css": "text/css", - "csv": "text/csv", - "cu": "application/cu-seeme", - "cwl": "application/cwl", - "cww": "application/prs.cww", - "davmount": "application/davmount+xml", - "dbk": "application/docbook+xml", - "deb": "application/octet-stream", - "def": "text/plain", - "deploy": "application/octet-stream", - "dib": "image/bmp", - "disposition-notification": "message/disposition-notification", - "dist": "application/octet-stream", - "distz": "application/octet-stream", - "dll": "application/octet-stream", - "dmg": "application/octet-stream", - "dms": "application/octet-stream", - "doc": "application/msword", - "dot": "application/msword", - "dpx": "image/dpx", - "drle": "image/dicom-rle", - "dsc": "text/prs.lines.tag", - "dssc": "application/dssc+der", - "dtd": "application/xml-dtd", - "dump": "application/octet-stream", - "dwd": "application/atsc-dwd+xml", - "ear": "application/java-archive", - "ecma": "application/ecmascript", - "elc": "application/octet-stream", - "emf": "image/emf", - "eml": "message/rfc822", - "emma": "application/emma+xml", - "emotionml": "application/emotionml+xml", - "eps": "application/postscript", - "epub": "application/epub+zip", - "exe": "application/octet-stream", - "exi": "application/exi", - "exp": "application/express", - "exr": "image/aces", - "ez": "application/andrew-inset", - "fdf": "application/fdf", - "fdt": "application/fdt+xml", - "fits": "image/fits", - "g3": "image/g3fax", - "gbr": "application/rpki-ghostbusters", - "geojson": "application/geo+json", - "gif": "image/gif", - "glb": "model/gltf-binary", - "gltf": "model/gltf+json", - "gml": "application/gml+xml", - "gpx": "application/gpx+xml", - "gram": "application/srgs", - "grxml": "application/srgs+xml", - "gxf": "application/gxf", - "gz": "application/gzip", - "h261": "video/h261", - "h263": "video/h263", - "h264": "video/h264", - "heic": "image/heic", - "heics": "image/heic-sequence", - "heif": "image/heif", - "heifs": "image/heif-sequence", - "hej2": "image/hej2k", - "held": "application/atsc-held+xml", - "hjson": "application/hjson", - "hlp": "application/winhlp", - "hqx": "application/mac-binhex40", - "hsj2": "image/hsj2", - "htm": "text/html", - "html": "text/html", - "ics": "text/calendar", - "ief": "image/ief", - "ifb": "text/calendar", - "iges": "model/iges", - "igs": "model/iges", - "img": "application/octet-stream", - "in": "text/plain", - "ini": "text/plain", - "ink": "application/inkml+xml", - "inkml": "application/inkml+xml", - "ipfix": "application/ipfix", - "iso": "application/octet-stream", - "its": "application/its+xml", - "jade": "text/jade", - "jar": "application/java-archive", - "jhc": "image/jphc", - "jls": "image/jls", - "jp2": "image/jp2", - "jpe": "image/jpeg", - "jpeg": "image/jpeg", - "jpf": "image/jpx", - "jpg": "image/jpeg", - "jpg2": "image/jp2", - "jpgm": "image/jpm", - "jpgv": "video/jpeg", - "jph": "image/jph", - "jpm": "image/jpm", - "jpx": "image/jpx", - "js": "text/javascript", - "json": "application/json", - "json5": "application/json5", - "jsonld": "application/ld+json", - "jsonml": "application/jsonml+json", - "jsx": "text/jsx", - "jt": "model/jt", - "jxl": "image/jxl", - "jxr": "image/jxr", - "jxra": "image/jxra", - "jxrs": "image/jxrs", - "jxs": "image/jxs", - "jxsc": "image/jxsc", - "jxsi": "image/jxsi", - "jxss": "image/jxss", - "kar": "audio/midi", - "ktx": "image/ktx", - "ktx2": "image/ktx2", - "less": "text/less", - "lgr": "application/lgr+xml", - "list": "text/plain", - "litcoffee": "text/coffeescript", - "log": "text/plain", - "lostxml": "application/lost+xml", - "lrf": "application/octet-stream", - "m1v": "video/mpeg", - "m21": "application/mp21", - "m2a": "audio/mpeg", - "m2t": "video/mp2t", - "m2ts": "video/mp2t", - "m2v": "video/mpeg", - "m3a": "audio/mpeg", - "m4a": "audio/mp4", - "m4p": "application/mp4", - "m4s": "video/iso.segment", - "ma": "application/mathematica", - "mads": "application/mads+xml", - "maei": "application/mmt-aei+xml", - "man": "text/troff", - "manifest": "text/cache-manifest", - "map": "application/json", - "mar": "application/octet-stream", - "markdown": "text/markdown", - "mathml": "application/mathml+xml", - "mb": "application/mathematica", - "mbox": "application/mbox", - "md": "text/markdown", - "mdx": "text/mdx", - "me": "text/troff", - "mesh": "model/mesh", - "meta4": "application/metalink4+xml", - "metalink": "application/metalink+xml", - "mets": "application/mets+xml", - "mft": "application/rpki-manifest", - "mid": "audio/midi", - "midi": "audio/midi", - "mime": "message/rfc822", - "mj2": "video/mj2", - "mjp2": "video/mj2", - "mjs": "text/javascript", - "mml": "text/mathml", - "mods": "application/mods+xml", - "mov": "video/quicktime", - "mp2": "audio/mpeg", - "mp21": "application/mp21", - "mp2a": "audio/mpeg", - "mp3": "audio/mpeg", - "mp4": "video/mp4", - "mp4a": "audio/mp4", - "mp4s": "application/mp4", - "mp4v": "video/mp4", - "mpd": "application/dash+xml", - "mpe": "video/mpeg", - "mpeg": "video/mpeg", - "mpf": "application/media-policy-dataset+xml", - "mpg": "video/mpeg", - "mpg4": "video/mp4", - "mpga": "audio/mpeg", - "mpp": "application/dash-patch+xml", - "mrc": "application/marc", - "mrcx": "application/marcxml+xml", - "ms": "text/troff", - "mscml": "application/mediaservercontrol+xml", - "msh": "model/mesh", - "msi": "application/octet-stream", - "msix": "application/msix", - "msixbundle": "application/msixbundle", - "msm": "application/octet-stream", - "msp": "application/octet-stream", - "mtl": "model/mtl", - "mts": "video/mp2t", - "musd": "application/mmt-usd+xml", - "mxf": "application/mxf", - "mxmf": "audio/mobile-xmf", - "mxml": "application/xv+xml", - "n3": "text/n3", - "nb": "application/mathematica", - "nq": "application/n-quads", - "nt": "application/n-triples", - "obj": "model/obj", - "oda": "application/oda", - "oga": "audio/ogg", - "ogg": "audio/ogg", - "ogv": "video/ogg", - "ogx": "application/ogg", - "omdoc": "application/omdoc+xml", - "onepkg": "application/onenote", - "onetmp": "application/onenote", - "onetoc": "application/onenote", - "onetoc2": "application/onenote", - "opf": "application/oebps-package+xml", - "opus": "audio/ogg", - "otf": "font/otf", - "owl": "application/rdf+xml", - "oxps": "application/oxps", - "p10": "application/pkcs10", - "p7c": "application/pkcs7-mime", - "p7m": "application/pkcs7-mime", - "p7s": "application/pkcs7-signature", - "p8": "application/pkcs8", - "pdf": "application/pdf", - "pfr": "application/font-tdpfr", - "pgp": "application/pgp-encrypted", - "pkg": "application/octet-stream", - "pki": "application/pkixcmp", - "pkipath": "application/pkix-pkipath", - "pls": "application/pls+xml", - "png": "image/png", - "prc": "model/prc", - "prf": "application/pics-rules", - "provx": "application/provenance+xml", - "ps": "application/postscript", - "pskcxml": "application/pskc+xml", - "pti": "image/prs.pti", - "qt": "video/quicktime", - "raml": "application/raml+yaml", - "rapd": "application/route-apd+xml", - "rdf": "application/rdf+xml", - "relo": "application/p2p-overlay+xml", - "rif": "application/reginfo+xml", - "rl": "application/resource-lists+xml", - "rld": "application/resource-lists-diff+xml", - "rmi": "audio/midi", - "rnc": "application/relax-ng-compact-syntax", - "rng": "application/xml", - "roa": "application/rpki-roa", - "roff": "text/troff", - "rq": "application/sparql-query", - "rs": "application/rls-services+xml", - "rsat": "application/atsc-rsat+xml", - "rsd": "application/rsd+xml", - "rsheet": "application/urc-ressheet+xml", - "rss": "application/rss+xml", - "rtf": "text/rtf", - "rtx": "text/richtext", - "rusd": "application/route-usd+xml", - "s3m": "audio/s3m", - "sbml": "application/sbml+xml", - "scq": "application/scvp-cv-request", - "scs": "application/scvp-cv-response", - "sdp": "application/sdp", - "senmlx": "application/senml+xml", - "sensmlx": "application/sensml+xml", - "ser": "application/java-serialized-object", - "setpay": "application/set-payment-initiation", - "setreg": "application/set-registration-initiation", - "sgi": "image/sgi", - "sgm": "text/sgml", - "sgml": "text/sgml", - "shex": "text/shex", - "shf": "application/shf+xml", - "shtml": "text/html", - "sieve": "application/sieve", - "sig": "application/pgp-signature", - "sil": "audio/silk", - "silo": "model/mesh", - "siv": "application/sieve", - "slim": "text/slim", - "slm": "text/slim", - "sls": "application/route-s-tsid+xml", - "smi": "application/smil+xml", - "smil": "application/smil+xml", - "snd": "audio/basic", - "so": "application/octet-stream", - "spdx": "text/spdx", - "spp": "application/scvp-vp-response", - "spq": "application/scvp-vp-request", - "spx": "audio/ogg", - "sql": "application/sql", - "sru": "application/sru+xml", - "srx": "application/sparql-results+xml", - "ssdl": "application/ssdl+xml", - "ssml": "application/ssml+xml", - "stk": "application/hyperstudio", - "stl": "model/stl", - "stpx": "model/step+xml", - "stpxz": "model/step-xml+zip", - "stpz": "model/step+zip", - "styl": "text/stylus", - "stylus": "text/stylus", - "svg": "image/svg+xml", - "svgz": "image/svg+xml", - "swidtag": "application/swid+xml", - "t": "text/troff", - "t38": "image/t38", - "td": "application/urc-targetdesc+xml", - "tei": "application/tei+xml", - "teicorpus": "application/tei+xml", - "text": "text/plain", - "tfi": "application/thraud+xml", - "tfx": "image/tiff-fx", - "tif": "image/tiff", - "tiff": "image/tiff", - "toml": "application/toml", - "tr": "text/troff", - "trig": "application/trig", - "ts": "video/mp2t", - "tsd": "application/timestamped-data", - "tsv": "text/tab-separated-values", - "ttc": "font/collection", - "ttf": "font/ttf", - "ttl": "text/turtle", - "ttml": "application/ttml+xml", - "txt": "text/plain", - "u3d": "model/u3d", - "u8dsn": "message/global-delivery-status", - "u8hdr": "message/global-headers", - "u8mdn": "message/global-disposition-notification", - "u8msg": "message/global", - "ubj": "application/ubjson", - "uri": "text/uri-list", - "uris": "text/uri-list", - "urls": "text/uri-list", - "vcard": "text/vcard", - "vrml": "model/vrml", - "vtt": "text/vtt", - "vxml": "application/voicexml+xml", - "war": "application/java-archive", - "wasm": "application/wasm", - "wav": "audio/wav", - "weba": "audio/webm", - "webm": "video/webm", - "webmanifest": "application/manifest+json", - "webp": "image/webp", - "wgsl": "text/wgsl", - "wgt": "application/widget", - "wif": "application/watcherinfo+xml", - "wmf": "image/wmf", - "woff": "font/woff", - "woff2": "font/woff2", - "wrl": "model/vrml", - "wsdl": "application/wsdl+xml", - "wspolicy": "application/wspolicy+xml", - "x3d": "model/x3d+xml", - "x3db": "model/x3d+fastinfoset", - "x3dbz": "model/x3d+binary", - "x3dv": "model/x3d-vrml", - "x3dvz": "model/x3d+vrml", - "x3dz": "model/x3d+xml", - "xaml": "application/xaml+xml", - "xav": "application/xcap-att+xml", - "xca": "application/xcap-caps+xml", - "xcs": "application/calendar+xml", - "xdf": "application/xcap-diff+xml", - "xdssc": "application/dssc+xml", - "xel": "application/xcap-el+xml", - "xenc": "application/xenc+xml", - "xer": "application/patch-ops-error+xml", - "xfdf": "application/xfdf", - "xht": "application/xhtml+xml", - "xhtml": "application/xhtml+xml", - "xhvml": "application/xv+xml", - "xlf": "application/xliff+xml", - "xm": "audio/xm", - "xml": "text/xml", - "xns": "application/xcap-ns+xml", - "xop": "application/xop+xml", - "xpl": "application/xproc+xml", - "xsd": "application/xml", - "xsf": "application/prs.xsf+xml", - "xsl": "application/xml", - "xslt": "application/xml", - "xspf": "application/xspf+xml", - "xvm": "application/xv+xml", - "xvml": "application/xv+xml", - "yaml": "text/yaml", - "yang": "application/yang", - "yin": "application/yin+xml", - "yml": "text/yaml", - "zip": "application/zip" -}; -function lookup(extn) { - let tmp = ("" + extn).trim().toLowerCase(); - let idx = tmp.lastIndexOf("."); - return mimes[!~idx ? tmp : tmp.substring(++idx)]; -} - -//#endregion -//#region src/node/plugins/asset.ts -var import_picocolors$30 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g; -const jsSourceMapRE = /\.[cm]?js\.map$/; -const noInlineRE = /[?&]no-inline\b/; -const inlineRE$3 = /[?&]inline\b/; -const assetCache = /* @__PURE__ */ new WeakMap(); -/** a set of referenceId for entry CSS assets for each environment */ -const cssEntriesMap = /* @__PURE__ */ new WeakMap(); -function registerCustomMime() { - mimes.ico = "image/x-icon"; - mimes.cur = "image/x-icon"; - mimes.flac = "audio/flac"; - mimes.eot = "application/vnd.ms-fontobject"; -} -function renderAssetUrlInJS(pluginContext, chunk, opts, code) { - const { environment } = pluginContext; - const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, environment.config.isWorker); - let match; - let s$2; - assetUrlRE.lastIndex = 0; - while (match = assetUrlRE.exec(code)) { - s$2 ||= new MagicString(code); - const [full, referenceId, postfix = ""] = match; - const file = pluginContext.getFileName(referenceId); - chunk.viteMetadata.importedAssets.add(cleanUrl(file)); - const replacement = toOutputFilePathInJS(environment, file + postfix, "asset", chunk.fileName, "js", toRelativeRuntime); - const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`; - s$2.update(match.index, match.index + full.length, replacementString); - } - const publicAssetUrlMap = publicAssetUrlCache.get(environment.getTopLevelConfig()); - publicAssetUrlRE.lastIndex = 0; - while (match = publicAssetUrlRE.exec(code)) { - s$2 ||= new MagicString(code); - const [full, hash$1] = match; - const replacement = toOutputFilePathInJS(environment, publicAssetUrlMap.get(hash$1).slice(1), "public", chunk.fileName, "js", toRelativeRuntime); - const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`; - s$2.update(match.index, match.index + full.length, replacementString); - } - return s$2; -} -/** -* Also supports loading plain strings with import text from './foo.txt?raw' -*/ -function assetPlugin(config$2) { - registerCustomMime(); - return { - name: "vite:asset", - perEnvironmentStartEndDuringDev: true, - buildStart() { - assetCache.set(this.environment, /* @__PURE__ */ new Map()); - cssEntriesMap.set(this.environment, /* @__PURE__ */ new Map()); - }, - resolveId: { handler(id) { - if (!config$2.assetsInclude(cleanUrl(id)) && !urlRE.test(id)) return; - if (checkPublicFile(id, config$2)) return id; - } }, - load: { - filter: { id: { exclude: /^\0/ } }, - async handler(id) { - if (rawRE.test(id)) { - const file = checkPublicFile(id, config$2) || cleanUrl(id); - this.addWatchFile(file); - return `export default ${JSON.stringify(await fsp.readFile(file, "utf-8"))}`; - } - if (!urlRE.test(id) && !config$2.assetsInclude(cleanUrl(id))) return; - id = removeUrlQuery(id); - let url$3 = await fileToUrl$1(this, id); - if (!url$3.startsWith("data:") && this.environment.mode === "dev") { - const mod = this.environment.moduleGraph.getModuleById(id); - if (mod && mod.lastHMRTimestamp > 0) url$3 = injectQuery(url$3, `t=${mod.lastHMRTimestamp}`); - } - return { - code: `export default ${JSON.stringify(encodeURIPath(url$3))}`, - moduleSideEffects: config$2.command === "build" && this.getModuleInfo(id)?.isEntry ? "no-treeshake" : false, - meta: config$2.command === "build" ? { "vite:asset": true } : void 0 - }; - } - }, - renderChunk(code, chunk, opts) { - const s$2 = renderAssetUrlInJS(this, chunk, opts, code); - if (s$2) return { - code: s$2.toString(), - map: this.environment.config.build.sourcemap ? s$2.generateMap({ hires: "boundary" }) : null - }; - else return null; - }, - generateBundle(_, bundle) { - let importedFiles; - for (const file in bundle) { - const chunk = bundle[file]; - if (chunk.type === "chunk" && chunk.isEntry && chunk.moduleIds.length === 1 && config$2.assetsInclude(chunk.moduleIds[0]) && this.getModuleInfo(chunk.moduleIds[0])?.meta["vite:asset"]) { - if (!importedFiles) { - importedFiles = /* @__PURE__ */ new Set(); - for (const file$1 in bundle) { - const chunk$1 = bundle[file$1]; - if (chunk$1.type === "chunk") { - for (const importedFile of chunk$1.imports) importedFiles.add(importedFile); - for (const importedFile of chunk$1.dynamicImports) importedFiles.add(importedFile); - } - } - } - if (!importedFiles.has(file)) delete bundle[file]; - } - } - if (config$2.command === "build" && !this.environment.config.build.emitAssets) { - for (const file in bundle) if (bundle[file].type === "asset" && !file.endsWith("ssr-manifest.json") && !jsSourceMapRE.test(file)) delete bundle[file]; - } - } - }; -} -async function fileToUrl$1(pluginContext, id) { - const { environment } = pluginContext; - if (environment.config.command === "serve") return fileToDevUrl(environment, id); - else return fileToBuiltUrl(pluginContext, id); -} -async function fileToDevUrl(environment, id, skipBase = false) { - const config$2 = environment.getTopLevelConfig(); - const publicFile = checkPublicFile(id, config$2); - if (inlineRE$3.test(id)) { - const file = publicFile || cleanUrl(id); - return assetToDataURL(environment, file, await fsp.readFile(file)); - } - const cleanedId = cleanUrl(id); - if (cleanedId.endsWith(".svg")) { - const file = publicFile || cleanedId; - const content = await fsp.readFile(file); - if (shouldInline(environment, file, id, content, void 0, void 0)) return assetToDataURL(environment, file, content); - } - let rtn; - if (publicFile) rtn = id; - else if (id.startsWith(withTrailingSlash(config$2.root))) rtn = "/" + path.posix.relative(config$2.root, id); - else rtn = path.posix.join(FS_PREFIX, id); - if (skipBase) return rtn; - return joinUrlSegments(joinUrlSegments(config$2.server.origin ?? "", config$2.decodedBase), removeLeadingSlash(rtn)); -} -function getPublicAssetFilename(hash$1, config$2) { - return publicAssetUrlCache.get(config$2)?.get(hash$1); -} -const publicAssetUrlCache = /* @__PURE__ */ new WeakMap(); -const publicAssetUrlRE = /__VITE_PUBLIC_ASSET__([a-z\d]{8})__/g; -function publicFileToBuiltUrl(url$3, config$2) { - if (config$2.command !== "build") return joinUrlSegments(config$2.decodedBase, url$3); - const hash$1 = getHash(url$3); - let cache$1 = publicAssetUrlCache.get(config$2); - if (!cache$1) { - cache$1 = /* @__PURE__ */ new Map(); - publicAssetUrlCache.set(config$2, cache$1); - } - if (!cache$1.get(hash$1)) cache$1.set(hash$1, url$3); - return `__VITE_PUBLIC_ASSET__${hash$1}__`; -} -const GIT_LFS_PREFIX = Buffer$1.from("version https://git-lfs.github.com"); -function isGitLfsPlaceholder(content) { - if (content.length < GIT_LFS_PREFIX.length) return false; - return GIT_LFS_PREFIX.compare(content, 0, GIT_LFS_PREFIX.length) === 0; -} -/** -* Register an asset to be emitted as part of the bundle (if necessary) -* and returns the resolved public URL -*/ -async function fileToBuiltUrl(pluginContext, id, skipPublicCheck = false, forceInline) { - const environment = pluginContext.environment; - const topLevelConfig = environment.getTopLevelConfig(); - if (!skipPublicCheck) { - const publicFile = checkPublicFile(id, topLevelConfig); - if (publicFile) if (inlineRE$3.test(id)) id = publicFile; - else return publicFileToBuiltUrl(id, topLevelConfig); - } - const cache$1 = assetCache.get(environment); - const cached = cache$1.get(id); - if (cached) return cached; - let { file, postfix } = splitFileAndPostfix(id); - const content = await fsp.readFile(file); - let url$3; - if (shouldInline(environment, file, id, content, pluginContext, forceInline)) url$3 = assetToDataURL(environment, file, content); - else { - const originalFileName = normalizePath(path.relative(environment.config.root, file)); - const referenceId = pluginContext.emitFile({ - type: "asset", - name: path.basename(file), - originalFileName, - source: content - }); - if (environment.config.command === "build" && noInlineRE.test(postfix)) postfix = postfix.replace(noInlineRE, "").replace(/^&/, "?"); - url$3 = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}`; - } - cache$1.set(id, url$3); - return url$3; -} -async function urlToBuiltUrl(pluginContext, url$3, importer, forceInline) { - const topLevelConfig = pluginContext.environment.getTopLevelConfig(); - if (checkPublicFile(url$3, topLevelConfig)) return publicFileToBuiltUrl(url$3, topLevelConfig); - return fileToBuiltUrl(pluginContext, normalizePath(url$3[0] === "/" ? path.join(topLevelConfig.root, url$3) : path.join(path.dirname(importer), url$3)), true, forceInline); -} -function shouldInline(environment, file, id, content, buildPluginContext, forceInline) { - if (noInlineRE.test(id)) return false; - if (inlineRE$3.test(id)) return true; - if (buildPluginContext) { - if (environment.config.build.lib) return true; - if (buildPluginContext.getModuleInfo(id)?.isEntry) return false; - } - if (forceInline !== void 0) return forceInline; - if (file.endsWith(".html")) return false; - if (file.endsWith(".svg") && id.includes("#")) return false; - let limit; - const { assetsInlineLimit } = environment.config.build; - if (typeof assetsInlineLimit === "function") { - const userShouldInline = assetsInlineLimit(file, content); - if (userShouldInline != null) return userShouldInline; - limit = DEFAULT_ASSETS_INLINE_LIMIT; - } else limit = Number(assetsInlineLimit); - return content.length < limit && !isGitLfsPlaceholder(content); -} -function assetToDataURL(environment, file, content) { - if (environment.config.build.lib && isGitLfsPlaceholder(content)) environment.logger.warn(import_picocolors$30.default.yellow(`Inlined file ${file} was not downloaded via Git LFS`)); - if (file.endsWith(".svg")) return svgToDataURL(content); - else return `data:${lookup(file) ?? "application/octet-stream"};base64,${content.toString("base64")}`; -} -const nestedQuotesRE = /"[^"']*'[^"]*"|'[^'"]*"[^']*'/; -function svgToDataURL(content) { - const stringContent = content.toString(); - if (stringContent.includes("\s+<").replaceAll("\"", "'").replaceAll("%", "%25").replaceAll("#", "%23").replaceAll("<", "%3c").replaceAll(">", "%3e").replaceAll(/\s+/g, "%20"); -} - -//#endregion -//#region src/node/plugins/json.ts -/** -* https://github.com/rollup/plugins/blob/master/packages/json/src/index.js -* -* This source code is licensed under the MIT license found in the -* LICENSE file at -* https://github.com/rollup/plugins/blob/master/LICENSE -*/ -const jsonExtRE = /\.json(?:$|\?)(?!commonjs-(?:proxy|external))/; -const jsonObjRE = /^\s*\{/; -const jsonLangRE = new RegExp(`\\.(?:json|json5)(?:$|\\?)`); -const isJSONRequest = (request) => jsonLangRE.test(request); -function jsonPlugin(options$1, isBuild) { - return { - name: "vite:json", - transform: { - filter: { id: { - include: jsonExtRE, - exclude: SPECIAL_QUERY_RE - } }, - handler(json, id) { - if (inlineRE$3.test(id) || noInlineRE.test(id)) this.warn("\nUsing ?inline or ?no-inline for JSON imports will have no effect.\nPlease use ?url&inline or ?url&no-inline to control JSON file inlining behavior.\n"); - json = stripBomTag(json); - try { - if (options$1.stringify !== false) { - if (options$1.namedExports && jsonObjRE.test(json)) { - const parsed = JSON.parse(json); - const keys = Object.keys(parsed); - let code = ""; - let defaultObjectCode = "{\n"; - for (const key of keys) if (key === makeLegalIdentifier(key)) { - code += `export const ${key} = ${serializeValue(parsed[key])};\n`; - defaultObjectCode += ` ${key},\n`; - } else defaultObjectCode += ` ${JSON.stringify(key)}: ${serializeValue(parsed[key])},\n`; - defaultObjectCode += "}"; - code += `export default ${defaultObjectCode};\n`; - return { - code, - map: { mappings: "" } - }; - } - if (options$1.stringify === true || json.length > 10 * 1e3) { - if (isBuild) json = JSON.stringify(JSON.parse(json)); - return { - code: `export default /* #__PURE__ */ JSON.parse(${JSON.stringify(json)})`, - map: { mappings: "" } - }; - } - } - return { - code: dataToEsm(JSON.parse(json), { - preferConst: true, - namedExports: options$1.namedExports - }), - map: { mappings: "" } - }; - } catch (e$1) { - const position = extractJsonErrorPosition(e$1.message, json.length); - const msg = position ? `, invalid JSON syntax found at position ${position}` : `.`; - this.error(`Failed to parse JSON file` + msg, position); - } - } - } - }; -} -function serializeValue(value$1) { - const valueAsString = JSON.stringify(value$1); - if (typeof value$1 === "object" && value$1 != null && valueAsString.length > 10 * 1e3) return `/* #__PURE__ */ JSON.parse(${JSON.stringify(valueAsString)})`; - return valueAsString; -} -function extractJsonErrorPosition(errorMessage, inputLength) { - if (errorMessage.startsWith("Unexpected end of JSON input")) return inputLength - 1; - const errorMessageList = /at position (\d+)/.exec(errorMessage); - return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : void 0; -} - -//#endregion -//#region src/node/plugins/optimizedDeps.ts -var import_picocolors$29 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const debug$15 = createDebugger("vite:optimize-deps"); -function optimizedDepsPlugin() { - return { - name: "vite:optimized-deps", - applyToEnvironment(environment) { - return !isDepOptimizationDisabled(environment.config.optimizeDeps); - }, - resolveId(id) { - if (this.environment.depsOptimizer?.isOptimizedDepFile(id)) return id; - }, - async load(id) { - const depsOptimizer = this.environment.depsOptimizer; - if (depsOptimizer?.isOptimizedDepFile(id)) { - const metadata = depsOptimizer.metadata; - const file = cleanUrl(id); - const versionMatch = DEP_VERSION_RE.exec(id); - const browserHash = versionMatch ? versionMatch[1].split("=")[1] : void 0; - const info = optimizedDepInfoFromFile(metadata, file); - if (info) { - if (browserHash && info.browserHash !== browserHash) throwOutdatedRequest(id); - try { - await info.processing; - } catch { - throwProcessingError(id); - } - const newMetadata = depsOptimizer.metadata; - if (metadata !== newMetadata) { - const currentInfo = optimizedDepInfoFromFile(newMetadata, file); - if (info.browserHash !== currentInfo?.browserHash) throwOutdatedRequest(id); - } - } - debug$15?.(`load ${import_picocolors$29.default.cyan(file)}`); - try { - return await fsp.readFile(file, "utf-8"); - } catch { - if (browserHash) throwOutdatedRequest(id); - throwFileNotFoundInOptimizedDep(id); - } - } - } - }; -} -function throwProcessingError(id) { - const err$2 = /* @__PURE__ */ new Error(`Something unexpected happened while optimizing "${id}". The current page should have reloaded by now`); - err$2.code = ERR_OPTIMIZE_DEPS_PROCESSING_ERROR; - throw err$2; -} -function throwOutdatedRequest(id) { - const err$2 = /* @__PURE__ */ new Error(`There is a new version of the pre-bundle for "${id}", a page reload is going to ask for it.`); - err$2.code = ERR_OUTDATED_OPTIMIZED_DEP; - throw err$2; -} -function throwFileNotFoundInOptimizedDep(id) { - const err$2 = /* @__PURE__ */ new Error(`The file does not exist at "${id}" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to \`optimizeDeps.exclude\`.`); - err$2.code = ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR; - throw err$2; -} - -//#endregion -//#region ../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json -var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json": ((exports, module) => { - module.exports = { - "name": "dotenv", - "version": "17.2.3", - "description": "Loads environment variables from .env file", - "main": "lib/main.js", - "types": "lib/main.d.ts", - "exports": { - ".": { - "types": "./lib/main.d.ts", - "require": "./lib/main.js", - "default": "./lib/main.js" - }, - "./config": "./config.js", - "./config.js": "./config.js", - "./lib/env-options": "./lib/env-options.js", - "./lib/env-options.js": "./lib/env-options.js", - "./lib/cli-options": "./lib/cli-options.js", - "./lib/cli-options.js": "./lib/cli-options.js", - "./package.json": "./package.json" - }, - "scripts": { - "dts-check": "tsc --project tests/types/tsconfig.json", - "lint": "standard", - "pretest": "npm run lint && npm run dts-check", - "test": "tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000", - "test:coverage": "tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov", - "prerelease": "npm test", - "release": "standard-version" - }, - "repository": { - "type": "git", - "url": "git://github.com/motdotla/dotenv.git" - }, - "homepage": "https://github.com/motdotla/dotenv#readme", - "funding": "https://dotenvx.com", - "keywords": [ - "dotenv", - "env", - ".env", - "environment", - "variables", - "config", - "settings" - ], - "readmeFilename": "README.md", - "license": "BSD-2-Clause", - "devDependencies": { - "@types/node": "^18.11.3", - "decache": "^4.6.2", - "sinon": "^14.0.1", - "standard": "^17.0.0", - "standard-version": "^9.5.0", - "tap": "^19.2.0", - "typescript": "^4.8.4" - }, - "engines": { "node": ">=12" }, - "browser": { "fs": false } - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js -var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js": ((exports, module) => { - const fs$10 = __require("fs"); - const path$10 = __require("path"); - const os$3 = __require("os"); - const crypto$2 = __require("crypto"); - const version = require_package().version; - const TIPS = [ - "🔐 encrypt with Dotenvx: https://dotenvx.com", - "🔐 prevent committing .env to code: https://dotenvx.com/precommit", - "🔐 prevent building .env in docker: https://dotenvx.com/prebuild", - "📡 add observability to secrets: https://dotenvx.com/ops", - "👥 sync secrets across teammates & machines: https://dotenvx.com/ops", - "🗂️ backup and recover secrets: https://dotenvx.com/ops", - "✅ audit secrets and track compliance: https://dotenvx.com/ops", - "🔄 add secrets lifecycle management: https://dotenvx.com/ops", - "🔑 add access controls to secrets: https://dotenvx.com/ops", - "🛠️ run anywhere with `dotenvx run -- yourcommand`", - "⚙️ specify custom .env file path with { path: '/custom/path/.env' }", - "⚙️ enable debug logging with { debug: true }", - "⚙️ override existing env vars with { override: true }", - "⚙️ suppress all logs with { quiet: true }", - "⚙️ write to custom object with { processEnv: myObject }", - "⚙️ load multiple .env files with { path: ['.env.local', '.env'] }" - ]; - function _getRandomTip() { - return TIPS[Math.floor(Math.random() * TIPS.length)]; - } - function parseBoolean(value$1) { - if (typeof value$1 === "string") return ![ - "false", - "0", - "no", - "off", - "" - ].includes(value$1.toLowerCase()); - return Boolean(value$1); - } - function supportsAnsi() { - return process.stdout.isTTY; - } - function dim(text) { - return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text; - } - const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm; - function parse$13(src) { - const obj = {}; - let lines = src.toString(); - lines = lines.replace(/\r\n?/gm, "\n"); - let match; - while ((match = LINE.exec(lines)) != null) { - const key = match[1]; - let value$1 = match[2] || ""; - value$1 = value$1.trim(); - const maybeQuote = value$1[0]; - value$1 = value$1.replace(/^(['"`])([\s\S]*)\1$/gm, "$2"); - if (maybeQuote === "\"") { - value$1 = value$1.replace(/\\n/g, "\n"); - value$1 = value$1.replace(/\\r/g, "\r"); - } - obj[key] = value$1; - } - return obj; - } - function _parseVault(options$1) { - options$1 = options$1 || {}; - const vaultPath = _vaultPath(options$1); - options$1.path = vaultPath; - const result = DotenvModule.configDotenv(options$1); - if (!result.parsed) { - const err$2 = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`); - err$2.code = "MISSING_DATA"; - throw err$2; - } - const keys = _dotenvKey(options$1).split(","); - const length = keys.length; - let decrypted; - for (let i$1 = 0; i$1 < length; i$1++) try { - const attrs = _instructions(result, keys[i$1].trim()); - decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key); - break; - } catch (error$1) { - if (i$1 + 1 >= length) throw error$1; - } - return DotenvModule.parse(decrypted); - } - function _warn(message) { - console.error(`[dotenv@${version}][WARN] ${message}`); - } - function _debug(message) { - console.log(`[dotenv@${version}][DEBUG] ${message}`); - } - function _log(message) { - console.log(`[dotenv@${version}] ${message}`); - } - function _dotenvKey(options$1) { - if (options$1 && options$1.DOTENV_KEY && options$1.DOTENV_KEY.length > 0) return options$1.DOTENV_KEY; - if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) return process.env.DOTENV_KEY; - return ""; - } - function _instructions(result, dotenvKey) { - let uri; - try { - uri = new URL(dotenvKey); - } catch (error$1) { - if (error$1.code === "ERR_INVALID_URL") { - const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development"); - err$2.code = "INVALID_DOTENV_KEY"; - throw err$2; - } - throw error$1; - } - const key = uri.password; - if (!key) { - const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part"); - err$2.code = "INVALID_DOTENV_KEY"; - throw err$2; - } - const environment = uri.searchParams.get("environment"); - if (!environment) { - const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part"); - err$2.code = "INVALID_DOTENV_KEY"; - throw err$2; - } - const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`; - const ciphertext = result.parsed[environmentKey]; - if (!ciphertext) { - const err$2 = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`); - err$2.code = "NOT_FOUND_DOTENV_ENVIRONMENT"; - throw err$2; - } - return { - ciphertext, - key - }; - } - function _vaultPath(options$1) { - let possibleVaultPath = null; - if (options$1 && options$1.path && options$1.path.length > 0) if (Array.isArray(options$1.path)) { - for (const filepath of options$1.path) if (fs$10.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`; - } else possibleVaultPath = options$1.path.endsWith(".vault") ? options$1.path : `${options$1.path}.vault`; - else possibleVaultPath = path$10.resolve(process.cwd(), ".env.vault"); - if (fs$10.existsSync(possibleVaultPath)) return possibleVaultPath; - return null; - } - function _resolveHome(envPath) { - return envPath[0] === "~" ? path$10.join(os$3.homedir(), envPath.slice(1)) : envPath; - } - function _configVault(options$1) { - const debug$19 = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options$1 && options$1.debug); - const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options$1 && options$1.quiet); - if (debug$19 || !quiet) _log("Loading env from encrypted .env.vault"); - const parsed = DotenvModule._parseVault(options$1); - let processEnv = process.env; - if (options$1 && options$1.processEnv != null) processEnv = options$1.processEnv; - DotenvModule.populate(processEnv, parsed, options$1); - return { parsed }; - } - function configDotenv(options$1) { - const dotenvPath = path$10.resolve(process.cwd(), ".env"); - let encoding = "utf8"; - let processEnv = process.env; - if (options$1 && options$1.processEnv != null) processEnv = options$1.processEnv; - let debug$19 = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options$1 && options$1.debug); - let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options$1 && options$1.quiet); - if (options$1 && options$1.encoding) encoding = options$1.encoding; - else if (debug$19) _debug("No encoding is specified. UTF-8 is used by default"); - let optionPaths = [dotenvPath]; - if (options$1 && options$1.path) if (!Array.isArray(options$1.path)) optionPaths = [_resolveHome(options$1.path)]; - else { - optionPaths = []; - for (const filepath of options$1.path) optionPaths.push(_resolveHome(filepath)); - } - let lastError; - const parsedAll = {}; - for (const path$13 of optionPaths) try { - const parsed = DotenvModule.parse(fs$10.readFileSync(path$13, { encoding })); - DotenvModule.populate(parsedAll, parsed, options$1); - } catch (e$1) { - if (debug$19) _debug(`Failed to load ${path$13} ${e$1.message}`); - lastError = e$1; - } - const populated = DotenvModule.populate(processEnv, parsedAll, options$1); - debug$19 = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug$19); - quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet); - if (debug$19 || !quiet) { - const keysCount = Object.keys(populated).length; - const shortPaths = []; - for (const filePath of optionPaths) try { - const relative$3 = path$10.relative(process.cwd(), filePath); - shortPaths.push(relative$3); - } catch (e$1) { - if (debug$19) _debug(`Failed to load ${filePath} ${e$1.message}`); - lastError = e$1; - } - _log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`); - } - if (lastError) return { - parsed: parsedAll, - error: lastError - }; - else return { parsed: parsedAll }; - } - function config(options$1) { - if (_dotenvKey(options$1).length === 0) return DotenvModule.configDotenv(options$1); - const vaultPath = _vaultPath(options$1); - if (!vaultPath) { - _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`); - return DotenvModule.configDotenv(options$1); - } - return DotenvModule._configVault(options$1); - } - function decrypt(encrypted, keyStr) { - const key = Buffer.from(keyStr.slice(-64), "hex"); - let ciphertext = Buffer.from(encrypted, "base64"); - const nonce = ciphertext.subarray(0, 12); - const authTag = ciphertext.subarray(-16); - ciphertext = ciphertext.subarray(12, -16); - try { - const aesgcm = crypto$2.createDecipheriv("aes-256-gcm", key, nonce); - aesgcm.setAuthTag(authTag); - return `${aesgcm.update(ciphertext)}${aesgcm.final()}`; - } catch (error$1) { - const isRange = error$1 instanceof RangeError; - const invalidKeyLength = error$1.message === "Invalid key length"; - const decryptionFailed = error$1.message === "Unsupported state or unable to authenticate data"; - if (isRange || invalidKeyLength) { - const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)"); - err$2.code = "INVALID_DOTENV_KEY"; - throw err$2; - } else if (decryptionFailed) { - const err$2 = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY"); - err$2.code = "DECRYPTION_FAILED"; - throw err$2; - } else throw error$1; - } - } - function populate(processEnv, parsed, options$1 = {}) { - const debug$19 = Boolean(options$1 && options$1.debug); - const override = Boolean(options$1 && options$1.override); - const populated = {}; - if (typeof parsed !== "object") { - const err$2 = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate"); - err$2.code = "OBJECT_REQUIRED"; - throw err$2; - } - for (const key of Object.keys(parsed)) if (Object.prototype.hasOwnProperty.call(processEnv, key)) { - if (override === true) { - processEnv[key] = parsed[key]; - populated[key] = parsed[key]; - } - if (debug$19) if (override === true) _debug(`"${key}" is already defined and WAS overwritten`); - else _debug(`"${key}" is already defined and was NOT overwritten`); - } else { - processEnv[key] = parsed[key]; - populated[key] = parsed[key]; - } - return populated; - } - const DotenvModule = { - configDotenv, - _configVault, - _parseVault, - config, - decrypt, - parse: parse$13, - populate - }; - module.exports.configDotenv = DotenvModule.configDotenv; - module.exports._configVault = DotenvModule._configVault; - module.exports._parseVault = DotenvModule._parseVault; - module.exports.config = DotenvModule.config; - module.exports.decrypt = DotenvModule.decrypt; - module.exports.parse = DotenvModule.parse; - module.exports.populate = DotenvModule.populate; - module.exports = DotenvModule; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js -var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js": ((exports, module) => { - function _resolveEscapeSequences(value$1) { - return value$1.replace(/\\\$/g, "$"); - } - function expandValue(value$1, processEnv, runningParsed) { - const env$1 = { - ...runningParsed, - ...processEnv - }; - const regex = /(? normalizePath(path.join(envDir, file))); - return []; -} -function loadEnv(mode, envDir, prefixes = "VITE_") { - const start = performance.now(); - const getTime = () => `${(performance.now() - start).toFixed(2)}ms`; - if (mode === "local") throw new Error("\"local\" cannot be used as a mode name because it conflicts with the .local postfix for .env files."); - prefixes = arraify(prefixes); - const env$1 = {}; - const envFiles = getEnvFilesForMode(mode, envDir); - debug$14?.(`loading env files: %O`, envFiles); - const parsed = Object.fromEntries(envFiles.flatMap((filePath) => { - if (!tryStatSync(filePath)?.isFile()) return []; - return Object.entries((0, import_main.parse)(fs.readFileSync(filePath))); - })); - debug$14?.(`env files loaded in ${getTime()}`); - if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === void 0) process.env.VITE_USER_NODE_ENV = parsed.NODE_ENV; - if (parsed.BROWSER && process.env.BROWSER === void 0) process.env.BROWSER = parsed.BROWSER; - if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === void 0) process.env.BROWSER_ARGS = parsed.BROWSER_ARGS; - (0, import_main$1.expand)({ - parsed, - processEnv: { ...process.env } - }); - for (const [key, value$1] of Object.entries(parsed)) if (prefixes.some((prefix) => key.startsWith(prefix))) env$1[key] = value$1; - for (const key in process.env) if (prefixes.some((prefix) => key.startsWith(prefix))) env$1[key] = process.env[key]; - debug$14?.(`using resolved env: %O`, env$1); - return env$1; -} -function resolveEnvPrefix({ envPrefix = "VITE_" }) { - envPrefix = arraify(envPrefix); - if (envPrefix.includes("")) throw new Error(`envPrefix option contains value '', which could lead unexpected exposure of sensitive information.`); - return envPrefix; -} - -//#endregion -//#region src/node/deprecations.ts -var import_picocolors$28 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const docsURL = "https://vite.dev"; -const deprecationCode = { - removePluginHookSsrArgument: "changes/this-environment-in-hooks", - removePluginHookHandleHotUpdate: "changes/hotupdate-hook", - removeServerModuleGraph: "changes/per-environment-apis", - removeServerReloadModule: "changes/per-environment-apis", - removeServerPluginContainer: "changes/per-environment-apis", - removeServerHot: "changes/per-environment-apis", - removeServerTransformRequest: "changes/per-environment-apis", - removeServerWarmupRequest: "changes/per-environment-apis", - removeSsrLoadModule: "changes/ssr-using-modulerunner" -}; -const deprecationMessages = { - removePluginHookSsrArgument: "Plugin hook `options.ssr` is replaced with `this.environment.config.consumer === 'server'`.", - removePluginHookHandleHotUpdate: "Plugin hook `handleHotUpdate()` is replaced with `hotUpdate()`.", - removeServerModuleGraph: "The `server.moduleGraph` is replaced with `this.environment.moduleGraph`.", - removeServerReloadModule: "The `server.reloadModule` is replaced with `environment.reloadModule`.", - removeServerPluginContainer: "The `server.pluginContainer` is replaced with `this.environment.pluginContainer`.", - removeServerHot: "The `server.hot` is replaced with `this.environment.hot`.", - removeServerTransformRequest: "The `server.transformRequest` is replaced with `this.environment.transformRequest`.", - removeServerWarmupRequest: "The `server.warmupRequest` is replaced with `this.environment.warmupRequest`.", - removeSsrLoadModule: "The `server.ssrLoadModule` is replaced with Environment Runner." -}; -let _ignoreDeprecationWarnings = false; -function isFutureDeprecationEnabled(config$2, type) { - return !!config$2.future?.[type]; -} -/** -* Warn about future deprecations. -*/ -function warnFutureDeprecation(config$2, type, extraMessage, stacktrace = true) { - if (_ignoreDeprecationWarnings || !config$2.future || config$2.future[type] !== "warn") return; - let msg = `[vite future] ${deprecationMessages[type]}`; - if (extraMessage) msg += ` ${extraMessage}`; - msg = import_picocolors$28.default.yellow(msg); - const docs = `${docsURL}/changes/${deprecationCode[type].toLowerCase()}`; - msg += import_picocolors$28.default.gray(`\n ${stacktrace ? "├" : "└"}─── `) + import_picocolors$28.default.underline(docs) + "\n"; - if (stacktrace) { - const stack = (/* @__PURE__ */ new Error()).stack; - if (stack) { - let stacks = stack.split("\n").slice(3).filter((i$1) => !i$1.includes("/node_modules/vite/dist/")); - if (stacks.length === 0) stacks.push("No stack trace found."); - stacks = stacks.map((i$1, idx) => ` ${idx === stacks.length - 1 ? "└" : "│"} ${i$1.trim()}`); - msg += import_picocolors$28.default.dim(stacks.join("\n")) + "\n"; - } - } - config$2.logger.warnOnce(msg); -} -function ignoreDeprecationWarnings(fn) { - const before = _ignoreDeprecationWarnings; - _ignoreDeprecationWarnings = true; - const ret = fn(); - _ignoreDeprecationWarnings = before; - return ret; -} - -//#endregion -//#region src/node/server/middlewares/error.ts -var import_picocolors$27 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -function prepareError(err$2) { - return { - message: stripVTControlCharacters(err$2.message), - stack: stripVTControlCharacters(cleanStack(err$2.stack || "")), - id: err$2.id, - frame: stripVTControlCharacters(err$2.frame || ""), - plugin: err$2.plugin, - pluginCode: err$2.pluginCode?.toString(), - loc: err$2.loc - }; -} -function buildErrorMessage(err$2, args = [], includeStack = true) { - if (err$2.plugin) args.push(` Plugin: ${import_picocolors$27.default.magenta(err$2.plugin)}`); - const loc = err$2.loc ? `:${err$2.loc.line}:${err$2.loc.column}` : ""; - if (err$2.id) args.push(` File: ${import_picocolors$27.default.cyan(err$2.id)}${loc}`); - if (err$2.frame) args.push(import_picocolors$27.default.yellow(pad$1(err$2.frame))); - if (includeStack && err$2.stack) args.push(pad$1(cleanStack(err$2.stack))); - return args.join("\n"); -} -function cleanStack(stack) { - return stack.split(/\n/).filter((l) => /^\s*at/.test(l)).join("\n"); -} -function logError(server, err$2) { - const msg = buildErrorMessage(err$2, [import_picocolors$27.default.red(`Internal server error: ${err$2.message}`)]); - server.config.logger.error(msg, { - clear: true, - timestamp: true, - error: err$2 - }); - server.environments.client.hot.send({ - type: "error", - err: prepareError(err$2) - }); -} -function errorMiddleware(server, allowNext = false) { - return function viteErrorMiddleware(err$2, _req, res, next) { - logError(server, err$2); - if (allowNext) next(); - else { - res.statusCode = 500; - res.end(` - - - - - Error -