konoha-mcp 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/SKILL.md +97 -135
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/api-reference.md +30 -47
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/standards.md +7 -6
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/scripts/agent.py +65 -57
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/agent.py +36 -17
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/process.py +25 -13
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-adcs-with-certipy/scripts/agent.py +35 -19
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-constrained-delegation-abuse/scripts/agent.py +30 -8
- package/.agents/skills.fingerprint +1 -1
- package/README.md +4 -4
- package/apps/web/build/adapter-node.js +1 -1
- package/apps/web/build/client/_app/immutable/entry/{app.DwlgEXmV.js → app.DLayTcYu.js} +2 -2
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{9.CVBlvZqX.js → 9.CGMmeMVC.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.gz +0 -0
- package/apps/web/build/client/_app/version.json +1 -1
- package/apps/web/build/client/_app/version.json.br +0 -0
- package/apps/web/build/client/_app/version.json.gz +0 -0
- package/apps/web/build/server/.vite/manifest.json +15 -15
- package/apps/web/build/server/adapter-index.js +1 -1
- package/apps/web/build/server/adapter-index.js.map +1 -1
- package/apps/web/build/server/adapter-node-env.js +1 -1
- package/apps/web/build/server/adapter-node-env.js.map +1 -1
- package/apps/web/build/server/adapter-node-handler.js +4 -4
- package/apps/web/build/server/adapter-node-handler.js.map +1 -1
- package/apps/web/build/server/chunks/exports.js +9 -9
- package/apps/web/build/server/chunks/exports.js.map +1 -1
- package/apps/web/build/server/chunks/functions.js +1 -1
- package/apps/web/build/server/chunks/functions.js.map +1 -1
- package/apps/web/build/server/chunks/instance.js +33 -33
- package/apps/web/build/server/chunks/instance.js.map +1 -1
- package/apps/web/build/server/chunks/internal.js +19 -19
- package/apps/web/build/server/chunks/internal.js.map +1 -1
- package/apps/web/build/server/chunks/server-errors.js +2 -2
- package/apps/web/build/server/chunks/server-errors.js.map +1 -1
- package/apps/web/build/server/chunks/server.js.map +1 -1
- package/apps/web/build/server/chunks/shared.js +1 -1
- package/apps/web/build/server/chunks/shared.js.map +1 -1
- package/apps/web/build/server/chunks/state.js +1 -1
- package/apps/web/build/server/chunks/state.js.map +1 -1
- package/apps/web/build/server/chunks/sweetAlert.svelte.js.map +1 -1
- package/apps/web/build/server/chunks/uiState.svelte.js.map +1 -1
- package/apps/web/build/server/entries/fallbacks/error.svelte.js +1 -1
- package/apps/web/build/server/entries/fallbacks/error.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/bridges/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/clients/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/detector/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/docs/_page.svelte.js +1 -1
- package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/persona/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/search/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/semble/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/skills/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/tasks/_page.svelte.js.map +1 -1
- package/apps/web/build/server/index.js +1 -1
- package/apps/web/build/server/index.js.map +1 -1
- package/apps/web/build/server/manifest-full.js +1 -1
- package/apps/web/build/server/manifest.js +1 -1
- package/apps/web/build/server/nodes/9.js +1 -1
- package/apps/web/build/server/remote-entry.js +7 -7
- package/apps/web/build/server/remote-entry.js.map +1 -1
- package/apps/web/build/server/server.js +1 -1
- package/apps/web/package.json +2 -2
- package/bin/cli.js +6 -6
- package/bin/lib/ui_commands.js +4 -3
- package/docs/SecurityCompliance/qa_report_2.1.5_2026-10-07.md +65 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.5_2026-10-07.md +74 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.6_2026-10-07.md +78 -0
- package/docs/SecurityCompliance/socket_baseline_2026-10-07.md +60 -0
- package/docs/SecurityCompliance/socket_burndown_2.1.5_2026-10-07.md +73 -0
- package/docs/SecurityCompliance/socket_report_2.1.5_2026-10-07.md +54 -0
- package/docs/architecture/TOKEN-BASELINE.md +1 -1
- package/package.json +3 -17
- package/src/antigravity_manager.js +81 -15
- package/src/db.js +2 -2
- package/src/db_agents.js +1 -1
- package/src/db_bridges.js +1 -1
- package/src/db_savings.js +1 -1
- package/src/db_stats.js +1 -1
- package/src/deploy_utils.js +4 -5
- package/src/doctor.js +10 -0
- package/src/migrate.js +1 -1
- package/src/persona_memory.js +1 -1
- package/src/sqlite_driver.js +211 -0
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/SKILL.md +97 -135
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/api-reference.md +30 -47
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/standards.md +7 -6
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/scripts/agent.py +65 -57
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/agent.py +36 -17
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/process.py +25 -13
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-adcs-with-certipy/scripts/agent.py +35 -19
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-constrained-delegation-abuse/scripts/agent.py +30 -8
- package/src/vector_search.js +1 -1
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.gz +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
2
|
+
"../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/env.js": {
|
|
3
3
|
"file": "adapter-env.js",
|
|
4
4
|
"name": "adapter-env",
|
|
5
|
-
"src": "../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
5
|
+
"src": "../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/env.js",
|
|
6
6
|
"isEntry": true,
|
|
7
7
|
"imports": [
|
|
8
8
|
"_adapter-node-env.js"
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
11
|
+
"../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/handler.js": {
|
|
12
12
|
"file": "handler.js",
|
|
13
13
|
"name": "handler",
|
|
14
|
-
"src": "../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
14
|
+
"src": "../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/handler.js",
|
|
15
15
|
"isEntry": true,
|
|
16
16
|
"imports": [
|
|
17
17
|
"_adapter-node-handler.js"
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
-
"../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
20
|
+
"../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/index.js": {
|
|
21
21
|
"file": "adapter-index.js",
|
|
22
22
|
"name": "adapter-index",
|
|
23
|
-
"src": "../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
23
|
+
"src": "../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/index.js",
|
|
24
24
|
"isEntry": true,
|
|
25
25
|
"imports": [
|
|
26
26
|
"_adapter-node-handler.js",
|
|
27
27
|
"_adapter-node-env.js"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
30
|
+
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/index.js": {
|
|
31
31
|
"file": "remote-entry.js",
|
|
32
32
|
"name": "remote-entry",
|
|
33
|
-
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
33
|
+
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/index.js",
|
|
34
34
|
"isEntry": true,
|
|
35
35
|
"imports": [
|
|
36
36
|
"_server.js",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"_functions.js"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
-
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
44
|
+
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/components/error.svelte": {
|
|
45
45
|
"file": "entries/fallbacks/error.svelte.js",
|
|
46
46
|
"name": "entries/fallbacks/error.svelte",
|
|
47
|
-
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
47
|
+
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
|
|
48
48
|
"isEntry": true,
|
|
49
49
|
"imports": [
|
|
50
50
|
"_server2.js",
|
|
51
51
|
"_state.js"
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
54
|
+
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/server/index.js": {
|
|
55
55
|
"file": "index.js",
|
|
56
56
|
"name": "index",
|
|
57
|
-
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
57
|
+
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/server/index.js",
|
|
58
58
|
"isEntry": true,
|
|
59
59
|
"imports": [
|
|
60
60
|
"_server.js",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"_internal.js"
|
|
63
63
|
],
|
|
64
64
|
"dynamicImports": [
|
|
65
|
-
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
65
|
+
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/server/instance.js"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
68
|
+
"../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/server/instance.js": {
|
|
69
69
|
"file": "chunks/instance.js",
|
|
70
70
|
"name": "instance",
|
|
71
|
-
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
71
|
+
"src": "../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/server/instance.js",
|
|
72
72
|
"isDynamicEntry": true,
|
|
73
73
|
"imports": [
|
|
74
74
|
"_exports.js",
|
|
@@ -4,7 +4,7 @@ import http from "node:http";
|
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { rm } from "node:fs/promises";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
7
|
+
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/index.js
|
|
8
8
|
var path = env("SOCKET_PATH", false);
|
|
9
9
|
var host = env("HOST", "0.0.0.0");
|
|
10
10
|
var port = env("PORT", !path && "3000");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-index.js","names":[],"sources":["../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
1
|
+
{"version":3,"file":"adapter-index.js","names":[],"sources":["../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/index.js"],"sourcesContent":["import http from 'node:http';\nimport fs from 'node:fs';\nimport process from 'node:process';\nimport { handler } from './handler.js';\nimport { env, timeout_env } from './env.js';\nimport { rm } from 'node:fs/promises';\nimport { format_listening_address } from './utils.js';\n\nexport const path = env('SOCKET_PATH', false);\nexport const host = env('HOST', '0.0.0.0');\nexport const port = env('PORT', !path && '3000');\n\nconst shutdown_timeout = parseInt(env('SHUTDOWN_TIMEOUT', '30'));\nconst idle_timeout = parseInt(env('IDLE_TIMEOUT', '0'));\nconst listen_pid = parseInt(env('LISTEN_PID', '0'));\nconst listen_fds = parseInt(env('LISTEN_FDS', '0'));\n// https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html\nconst SD_LISTEN_FDS_START = 3;\n\nif (listen_pid !== 0 && listen_pid !== process.pid) {\n\tthrow new Error(`received LISTEN_PID ${listen_pid} but current process id is ${process.pid}`);\n}\nif (listen_fds > 1) {\n\tthrow new Error(\n\t\t`only one socket is allowed for socket activation, but LISTEN_FDS was set to ${listen_fds}`\n\t);\n}\n\nconst socket_activation = listen_pid === process.pid && listen_fds === 1;\n\nlet requests = 0;\n/** @type {NodeJS.Timeout | void} */\nlet shutdown_timeout_id;\n/** @type {NodeJS.Timeout | void} */\nlet idle_timeout_id;\n\nconst httpServer = http.createServer();\n\nconst keep_alive_timeout = timeout_env('KEEP_ALIVE_TIMEOUT');\nif (keep_alive_timeout !== undefined) {\n\t// Convert the keep-alive timeout from seconds to milliseconds (the unit Node.js expects).\n\thttpServer.keepAliveTimeout = keep_alive_timeout * 1000;\n}\n\nconst headers_timeout = timeout_env('HEADERS_TIMEOUT');\nif (headers_timeout !== undefined) {\n\t// Convert the headers timeout from seconds to milliseconds (the unit Node.js expects).\n\thttpServer.headersTimeout = headers_timeout * 1000;\n}\n\nhttpServer.on('request', (req, res) => {\n\trequests++;\n\n\tif (socket_activation && idle_timeout_id) {\n\t\tidle_timeout_id = clearTimeout(idle_timeout_id);\n\t}\n\n\treq.on('close', () => {\n\t\trequests--;\n\n\t\tif (shutdown_timeout_id) {\n\t\t\t// close connections as soon as they become idle, so they don't accept new requests\n\t\t\thttpServer.closeIdleConnections();\n\t\t}\n\t\tif (requests === 0 && socket_activation && idle_timeout) {\n\t\t\tidle_timeout_id = setTimeout(() => graceful_shutdown('IDLE'), idle_timeout * 1000);\n\t\t}\n\t});\n\n\treturn handler(req, res, () => {\n\t\tres.statusCode = 404;\n\t\tres.end();\n\t});\n});\n\nif (socket_activation) {\n\thttpServer.listen({ fd: SD_LISTEN_FDS_START }, () => {\n\t\tconsole.log(`Listening on file descriptor ${SD_LISTEN_FDS_START}`);\n\t});\n} else {\n\tif (path) {\n\t\ttry {\n\t\t\tif (fs.statSync(path).size === 0) {\n\t\t\t\tawait rm(path);\n\t\t\t}\n\t\t} catch {\n\t\t\t// ignore\n\t\t}\n\t}\n\n\thttpServer.listen({ path, host, port }, () => {\n\t\tconsole.log(`Listening on ${format_listening_address(path, host, port, httpServer.address())}`);\n\t});\n}\n\n/** @param {'SIGINT' | 'SIGTERM' | 'IDLE'} reason */\nfunction graceful_shutdown(reason) {\n\tif (shutdown_timeout_id) return;\n\n\t// If a connection was opened with a keep-alive header close() will wait for the connection to\n\t// time out rather than close it even if it is not handling any requests, so call this first\n\thttpServer.closeIdleConnections();\n\n\thttpServer.close((error) => {\n\t\t// occurs if the server is already closed\n\t\tif (error) return;\n\n\t\tif (shutdown_timeout_id) {\n\t\t\tclearTimeout(shutdown_timeout_id);\n\t\t}\n\t\tif (idle_timeout_id) {\n\t\t\tclearTimeout(idle_timeout_id);\n\t\t}\n\n\t\t// @ts-expect-error custom events cannot be typed\n\t\tprocess.emit('sveltekit:shutdown', reason);\n\t});\n\n\tshutdown_timeout_id = setTimeout(() => httpServer.closeAllConnections(), shutdown_timeout * 1000);\n}\n\nprocess.on('SIGTERM', graceful_shutdown);\nprocess.on('SIGINT', graceful_shutdown);\n\nexport { httpServer as server };\n"],"ignoreList":[0],"mappings":";;;;;;;AAQA,IAAa,OAAO,IAAI,eAAe,KAAK;AAC5C,IAAa,OAAO,IAAI,QAAQ,SAAS;AACzC,IAAa,OAAO,IAAI,QAAQ,CAAC,QAAQ,MAAM;AAE/C,IAAM,mBAAmB,SAAS,IAAI,oBAAoB,IAAI,CAAC;AAC/D,IAAM,eAAe,SAAS,IAAI,gBAAgB,GAAG,CAAC;AACtD,IAAM,aAAa,SAAS,IAAI,cAAc,GAAG,CAAC;AAClD,IAAM,aAAa,SAAS,IAAI,cAAc,GAAG,CAAC;AAElD,IAAM,sBAAsB;AAE5B,IAAI,eAAe,KAAK,eAAe,QAAQ,KAC9C,MAAM,IAAI,MAAM,uBAAuB,WAAW,6BAA6B,QAAQ,KAAK;AAE7F,IAAI,aAAa,GAChB,MAAM,IAAI,MACT,+EAA+E,YAChF;AAGD,IAAM,oBAAoB,eAAe,QAAQ,OAAO,eAAe;AAEvE,IAAI,WAAW;;AAEf,IAAI;;AAEJ,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EA,QAAQ,GAAG,WAAW,iBAAiB;AACvC,QAAQ,GAAG,UAAU,iBAAiB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import { env_prefix } from "../adapter-node.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/env.js
|
|
4
4
|
var expected = /* @__PURE__ */ new Set([
|
|
5
5
|
"SOCKET_PATH",
|
|
6
6
|
"HOST",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-node-env.js","names":[],"sources":["../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
1
|
+
{"version":3,"file":"adapter-node-env.js","names":[],"sources":["../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/env.js"],"sourcesContent":["import process from 'node:process';\nimport { env_prefix } from '#@sveltejs/adapter-node';\n\nconst expected = new Set([\n\t'SOCKET_PATH',\n\t'HOST',\n\t'PORT',\n\t'XFF_DEPTH',\n\t'ADDRESS_HEADER',\n\t'PROTOCOL_HEADER',\n\t'HOST_HEADER',\n\t'PORT_HEADER',\n\t'BODY_SIZE_LIMIT',\n\t'SHUTDOWN_TIMEOUT',\n\t'IDLE_TIMEOUT',\n\t'KEEP_ALIVE_TIMEOUT',\n\t'HEADERS_TIMEOUT'\n]);\n\nconst expected_unprefixed = new Set(['LISTEN_PID', 'LISTEN_FDS']);\n\nif (env_prefix) {\n\tfor (const name in process.env) {\n\t\tif (name.startsWith(env_prefix)) {\n\t\t\tconst unprefixed = name.slice(env_prefix.length);\n\t\t\tif (!expected.has(unprefixed)) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`You should change envPrefix (${env_prefix}) to avoid conflicts with existing environment variables — unexpectedly saw ${name}`\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * @param {string} name\n * @param {any} [fallback]\n */\nexport function env(name, fallback) {\n\tconst prefix = expected_unprefixed.has(name) ? '' : env_prefix;\n\tconst prefixed = prefix + name;\n\treturn prefixed in process.env ? process.env[prefixed] : fallback;\n}\n\nconst integer_regexp = /^\\d+$/;\n\n/**\n * Throw a consistently-structured parsing error for environment variables.\n * @param {string} name\n * @param {any} value\n * @param {string} description\n * @returns {never}\n */\nfunction parsing_error(name, value, description) {\n\tthrow new Error(\n\t\t`Invalid value for environment variable ${name}: ${JSON.stringify(value)} (${description})`\n\t);\n}\n\n/**\n * Check the environment for a timeout value (non-negative integer) in seconds.\n * @param {string} name\n * @param {number} [fallback]\n * @returns {number | undefined}\n */\nexport function timeout_env(name, fallback) {\n\tconst raw = env(name, fallback);\n\tif (!raw) {\n\t\treturn fallback;\n\t}\n\n\tif (!integer_regexp.test(raw)) {\n\t\tparsing_error(name, raw, 'should be a non-negative integer');\n\t}\n\n\tconst parsed = Number.parseInt(raw, 10);\n\n\t// We don't technically need to check `Number.isNaN` because the value already passed the regexp test.\n\t// However, just in case there's some new codepath introduced somewhere down the line, it's probably good\n\t// to stick this in here.\n\tif (Number.isNaN(parsed)) {\n\t\tparsing_error(name, raw, 'should be a non-negative integer');\n\t}\n\n\tif (parsed < 0) {\n\t\tparsing_error(name, raw, 'should be a non-negative integer');\n\t}\n\n\treturn parsed;\n}\n"],"ignoreList":[0],"mappings":";;;AAGA,IAAM,2BAAW,IAAI,IAAI;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AAED,IAAM,sCAAsB,IAAI,IAAI,CAAC,cAAc,YAAY,CAAC;AAEhE,IAAI,YACE;MAAA,MAAM,QAAQ,QAAQ,KAC1B,IAAI,KAAK,WAAW,UAAU,GAAG;EAChC,MAAM,aAAa,KAAK,MAAM,WAAW,MAAM;EAC/C,IAAI,CAAC,SAAS,IAAI,UAAU,GAC3B,MAAM,IAAI,MACT,gCAAgC,WAAW,8EAA8E,MAC1H;CAEF;;;;;;AAQF,SAAgB,IAAI,MAAM,UAAU;CAEnC,MAAM,YADS,oBAAoB,IAAI,IAAI,IAAI,KAAK,cAC1B;CAC1B,OAAO,YAAY,QAAQ,MAAM,QAAQ,IAAI,YAAY;AAC1D;AAEA,IAAM,iBAAiB;;;;;;;;AASvB,SAAS,cAAc,MAAM,OAAO,aAAa;CAChD,MAAM,IAAI,MACT,0CAA0C,KAAK,IAAI,KAAK,UAAU,KAAK,EAAE,IAAI,YAAY,EAC1F;AACD;;;;;;;AAQA,SAAgB,YAAY,MAAM,UAAU;CAC3C,MAAM,MAAM,IAAI,MAAM,QAAQ;CAC9B,IAAI,CAAC,KACJ,OAAO;CAGR,IAAI,CAAC,eAAe,KAAK,GAAG,GAC3B,cAAc,MAAM,KAAK,kCAAkC;CAG5D,MAAM,SAAS,OAAO,SAAS,KAAK,EAAE;CAKtC,IAAI,OAAO,MAAM,MAAM,GACtB,cAAc,MAAM,KAAK,kCAAkC;CAG5D,IAAI,SAAS,GACZ,cAAc,MAAM,KAAK,kCAAkC;CAG5D,OAAO;AACR"}
|
|
@@ -7,7 +7,7 @@ import { Readable, pipeline } from "node:stream";
|
|
|
7
7
|
import { app_path, assets, base, dir, env_prefix, mime_types, origin, prerendered_assets, server } from "../adapter-node.js";
|
|
8
8
|
import { format } from "node:url";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
10
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/node/index.js
|
|
11
11
|
/** @type {WeakMap<import('http').IncomingMessage, (chunk: Buffer) => void>} */
|
|
12
12
|
var body_data_listeners = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
/**
|
|
@@ -240,7 +240,7 @@ function createReadableStream(file) {
|
|
|
240
240
|
return Readable.toWeb(createReadStream(file));
|
|
241
241
|
}
|
|
242
242
|
//#endregion
|
|
243
|
-
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
243
|
+
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/utils.js
|
|
244
244
|
/**
|
|
245
245
|
* Parses the given value into number of bytes.
|
|
246
246
|
*
|
|
@@ -278,7 +278,7 @@ function format_listening_address(path, host, port, address) {
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
|
-
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
281
|
+
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/static.js
|
|
282
282
|
/** @import { IncomingMessage, ServerResponse } from 'node:http' */
|
|
283
283
|
/**
|
|
284
284
|
* @typedef {(req: IncomingMessage, res: ServerResponse, next: () => void | Promise<void>) => void | Promise<void>} Middleware
|
|
@@ -478,7 +478,7 @@ function serve_static(files) {
|
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
480
|
//#endregion
|
|
481
|
-
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.
|
|
481
|
+
//#region ../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/handler.js
|
|
482
482
|
/** @import { IncomingHttpHeaders } from 'node:http' */
|
|
483
483
|
/** @import { Middleware } from './static.js' */
|
|
484
484
|
var xff_depth = parseInt(env("XFF_DEPTH", "1"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-node-handler.js","names":[],"sources":["../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/exports/node/index.js","../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_e839fe67ee9ed548cafd3a2d2016388d/node_modules/@sveltejs/adapter-node/src/utils.js","../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_e839fe67ee9ed548cafd3a2d2016388d/node_modules/@sveltejs/adapter-node/src/static.js","../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_e839fe67ee9ed548cafd3a2d2016388d/node_modules/@sveltejs/adapter-node/src/handler.js"],"sourcesContent":["import { createReadStream } from 'node:fs';\nimport { Readable } from 'node:stream';\nimport { SvelteKitError } from '../internal/shared.js';\nimport { noop } from '../../utils/functions.js';\n\n/** @type {WeakMap<import('http').IncomingMessage, (chunk: Buffer) => void>} */\nconst body_data_listeners = new WeakMap();\n\n/**\n * @param {import('http').IncomingMessage} req\n * @param {number} [body_size_limit]\n */\nfunction get_raw_body(req, body_size_limit) {\n\tconst h = req.headers;\n\n\tconst content_length = Number(h['content-length']);\n\tconst has_content_length = Number.isFinite(content_length);\n\n\t// check if no request body\n\tif (\n\t\t(req.httpVersionMajor === 1 && !has_content_length && h['transfer-encoding'] == null) ||\n\t\tcontent_length === 0\n\t) {\n\t\treturn null;\n\t}\n\n\tif (req.destroyed) {\n\t\tconst readable = new ReadableStream();\n\t\tvoid readable.cancel();\n\t\treturn readable;\n\t}\n\n\tlet size = 0;\n\tlet cancelled = false;\n\n\treturn new ReadableStream({\n\t\tstart(controller) {\n\t\t\tif (body_size_limit !== undefined && has_content_length && content_length > body_size_limit) {\n\t\t\t\tconst error = new SvelteKitError(\n\t\t\t\t\t413,\n\t\t\t\t\t'Payload Too Large',\n\t\t\t\t\t`Content-length of ${content_length} exceeds limit of ${body_size_limit} bytes.`\n\t\t\t\t);\n\n\t\t\t\tcontroller.error(error);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/** @param {Error} error */\n\t\t\tconst on_error = (error) => {\n\t\t\t\tcancelled = true;\n\t\t\t\tcontroller.error(error);\n\t\t\t};\n\n\t\t\tconst on_end = () => {\n\t\t\t\tif (cancelled) return;\n\t\t\t\tcontroller.close();\n\t\t\t};\n\n\t\t\t/** @param {Buffer} chunk */\n\t\t\tconst on_data = (chunk) => {\n\t\t\t\tif (cancelled) return;\n\n\t\t\t\tsize += chunk.length;\n\n\t\t\t\tif (body_size_limit !== undefined && size > body_size_limit) {\n\t\t\t\t\tcancelled = true;\n\n\t\t\t\t\tconst message = `request body size exceeded BODY_SIZE_LIMIT of ${body_size_limit}`;\n\n\t\t\t\t\tconst error = new SvelteKitError(413, 'Payload Too Large', message);\n\t\t\t\t\tcontroller.error(error);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (has_content_length && size > content_length) {\n\t\t\t\t\tcancelled = true;\n\n\t\t\t\t\tconst message = `request body size exceeded content-length of ${content_length}`;\n\n\t\t\t\t\tconst error = new SvelteKitError(413, 'Payload Too Large', message);\n\t\t\t\t\tcontroller.error(error);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tcontroller.enqueue(chunk);\n\n\t\t\t\tif (controller.desiredSize === null || controller.desiredSize <= 0) {\n\t\t\t\t\treq.pause();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\treq.on('error', on_error);\n\t\t\treq.on('end', on_end);\n\t\t\treq.on('data', on_data);\n\t\t\tbody_data_listeners.set(req, on_data);\n\t\t},\n\n\t\tpull() {\n\t\t\treq.resume();\n\t\t},\n\n\t\tcancel(reason) {\n\t\t\tcancelled = true;\n\t\t\treq.destroy(reason);\n\t\t}\n\t});\n}\n\n/**\n * @param {{\n * request: import('http').IncomingMessage;\n * response?: import('http').ServerResponse;\n * base: string;\n * bodySizeLimit?: number;\n * }} options\n * @returns {Request}\n */\nexport function getRequest({ request, response, base, bodySizeLimit }) {\n\tlet headers = /** @type {Record<string, string>} */ (request.headers);\n\tif (request.httpVersionMajor >= 2) {\n\t\t// the Request constructor rejects headers with ':' in the name\n\t\theaders = Object.assign({}, headers);\n\t\t// https://www.rfc-editor.org/rfc/rfc9113.html#section-8.3.1-2.3.5\n\t\tif (headers[':authority']) {\n\t\t\theaders.host = headers[':authority'];\n\t\t}\n\t\tdelete headers[':authority'];\n\t\tdelete headers[':method'];\n\t\tdelete headers[':path'];\n\t\tdelete headers[':scheme'];\n\t}\n\n\tconst controller = new AbortController();\n\n\trequest.once('close', () => {\n\t\tif (request.readableAborted) {\n\t\t\tcontroller.abort();\n\t\t}\n\t});\n\n\t// `readableAborted` stays false once the request has been fully read (or drained),\n\t// so a client disconnect must also be detected on the response side. `writableEnded`\n\t// rather than `writableFinished` because HTTP/2 marks cancelled streams as finished\n\tresponse?.once('close', () => {\n\t\tif (!response.writableEnded) {\n\t\t\tcontroller.abort();\n\t\t}\n\t});\n\n\treturn new Request(base + request.url, {\n\t\t// @ts-expect-error\n\t\tduplex: 'half',\n\t\tmethod: request.method,\n\t\theaders: Object.entries(headers),\n\t\tsignal: controller.signal,\n\t\tbody:\n\t\t\trequest.method === 'GET' || request.method === 'HEAD'\n\t\t\t\t? undefined\n\t\t\t\t: get_raw_body(request, bodySizeLimit)\n\t});\n}\n\n/**\n * Drains any unconsumed request body once the response has been sent. When a\n * route doesn't read the request body (for example a page route receiving a\n * POST), the unread bytes remain buffered in the socket. On keep-alive\n * connections Node's HTTP parser then reads those leftover bytes as the next\n * request, fails to parse them, and resets the connection — losing any\n * pipelined request. Resuming the request discards the bytes so the connection\n * stays usable.\n *\n * Because `get_raw_body` attaches a `data` listener, Node marks the request as\n * being consumed (`req._consuming`) and skips its own automatic drain, so we\n * have to do it ourselves. The whole remaining body is read and discarded; this\n * is the intended trade-off (keeping the connection reusable) over destroying it.\n * @see https://github.com/sveltejs/kit/issues/14916\n * @see https://github.com/sveltejs/kit/issues/15526\n * @param {import('http').ServerResponse} res\n */\nfunction drain_request(res) {\n\tconst req = res.req;\n\tif (!req || req.readableEnded || req.destroyed) return;\n\n\t// When the body went unread, get_raw_body's `data` listener is still attached\n\t// and enqueues into a ReadableStream nobody consumes; it pauses the request at\n\t// the high water mark, so one chunk sits in memory and the rest stays buffered\n\t// in the socket. Remove only that `data` listener so the resumed stream drops\n\t// the remaining bytes instead of re-buffering them. The `end` and `error`\n\t// listeners stay attached so the body's ReadableStream is still closed (or\n\t// errored) once draining completes, and a consumer that stopped reading\n\t// mid-body sees a clean end instead of hanging.\n\tconst on_data = body_data_listeners.get(req);\n\tif (on_data) {\n\t\treq.removeListener('data', on_data);\n\t\tbody_data_listeners.delete(req);\n\t}\n\n\treq.resume();\n}\n\n/**\n * @param {import('http').ServerResponse} res\n * @param {Response} response\n * @returns {void}\n */\nexport function setResponse(res, response) {\n\tres.once('finish', () => drain_request(res));\n\tres.once('close', () => drain_request(res));\n\n\tfor (const [key, value] of response.headers) {\n\t\ttry {\n\t\t\tres.setHeader(key, key === 'set-cookie' ? response.headers.getSetCookie() : value);\n\t\t} catch (error) {\n\t\t\tres.getHeaderNames().forEach((name) => res.removeHeader(name));\n\t\t\tres.writeHead(500).end(String(error));\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (!response.body) {\n\t\tres.writeHead(response.status);\n\t\tres.end();\n\t\treturn;\n\t}\n\n\tif (response.body.locked) {\n\t\tres.writeHead(response.status);\n\t\tres.end(\n\t\t\t'Fatal error: Response body is locked. ' +\n\t\t\t\t\"This can happen when the response was already read (for example through 'response.json()' or 'response.text()').\"\n\t\t);\n\t\treturn;\n\t}\n\n\tconst reader = response.body.getReader();\n\n\tif (res.destroyed) {\n\t\tvoid reader.cancel();\n\t\treturn;\n\t}\n\n\tconst cancel = (/** @type {Error|undefined} */ error) => {\n\t\tres.off('close', cancel);\n\t\tres.off('error', cancel);\n\n\t\t// If the reader has already been interrupted with an error earlier,\n\t\t// then it will appear here, it is useless, but it needs to be catch.\n\t\treader.cancel(error).catch(noop);\n\t\tif (error) res.destroy(error);\n\t};\n\n\tres.on('close', cancel);\n\tres.on('error', cancel);\n\n\t/** @type {Uint8Array<ArrayBuffer>[]} */\n\tconst buffered = [];\n\n\t/** @type {ReturnType<typeof reader.read> | null} */\n\tlet pending = null;\n\n\tvoid probe();\n\n\t// a fixed body (a string, buffer or blob, however constructed) settles all its\n\t// reads before the next macrotask, so it can be measured and sent with a\n\t// `content-length`; a genuine stream leaves a read pending and only has its\n\t// headers delayed by a single tick\n\tasync function probe() {\n\t\ttry {\n\t\t\t/** @type {Promise<undefined>} */\n\t\t\tconst deadline = new Promise((fulfil) => setImmediate(() => fulfil(undefined)));\n\n\t\t\twhile (buffered.length < 2) {\n\t\t\t\tpending = reader.read();\n\t\t\t\tconst result = await Promise.race([pending, deadline]);\n\n\t\t\t\tif (!result) break; // deadline hit — treat the body as a stream\n\n\t\t\t\tpending = null;\n\n\t\t\t\tif (result.done) {\n\t\t\t\t\t// a `content-length` next to a `transfer-encoding` would be invalid\n\t\t\t\t\tif (!res.hasHeader('content-length') && !res.hasHeader('transfer-encoding')) {\n\t\t\t\t\t\tres.setHeader(\n\t\t\t\t\t\t\t'content-length',\n\t\t\t\t\t\t\tbuffered.reduce((total, chunk) => total + chunk.byteLength, 0)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbuffered.push(result.value);\n\t\t\t}\n\n\t\t\tif (res.destroyed) return;\n\n\t\t\tres.writeHead(response.status);\n\t\t\tawait next();\n\t\t} catch (error) {\n\t\t\tif (!res.headersSent) res.writeHead(response.status);\n\t\t\tcancel(error instanceof Error ? error : new Error(String(error)));\n\t\t}\n\t}\n\n\tasync function next() {\n\t\ttry {\n\t\t\tfor (;;) {\n\t\t\t\t/** @type {Awaited<ReturnType<typeof reader.read>>} */\n\t\t\t\tlet result;\n\t\t\t\tif (buffered.length > 0) {\n\t\t\t\t\tresult = {\n\t\t\t\t\t\tdone: false,\n\t\t\t\t\t\tvalue: /** @type {Uint8Array<ArrayBuffer>} */ (buffered.shift())\n\t\t\t\t\t};\n\t\t\t\t} else if (pending) {\n\t\t\t\t\tresult = await pending;\n\t\t\t\t\tpending = null;\n\t\t\t\t} else {\n\t\t\t\t\tresult = await reader.read();\n\t\t\t\t}\n\n\t\t\t\tconst { done, value } = result;\n\n\t\t\t\tif (done) break;\n\n\t\t\t\tif (!res.write(value)) {\n\t\t\t\t\tres.once('drain', next);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tres.end();\n\t\t} catch (error) {\n\t\t\tcancel(error instanceof Error ? error : new Error(String(error)));\n\t\t}\n\t}\n}\n\n/**\n * Converts a file on disk to a readable stream\n * @param {string} file\n * @returns {ReadableStream}\n * @since 2.4.0\n */\nexport function createReadableStream(file) {\n\treturn /** @type {ReadableStream} */ (Readable.toWeb(createReadStream(file)));\n}\n","import { format } from 'node:url';\n\n/**\n * Parses the given value into number of bytes.\n *\n * @param {string} value - Size in bytes. Can also be specified with a unit suffix kilobytes (K), megabytes (M), or gigabytes (G).\n * @returns {number}\n */\nexport function parse_as_bytes(value) {\n\tconst multiplier =\n\t\t{\n\t\t\tK: 1024,\n\t\t\tM: 1024 * 1024,\n\t\t\tG: 1024 * 1024 * 1024\n\t\t}[value[value.length - 1]?.toUpperCase()] ?? 1;\n\treturn Number(multiplier != 1 ? value.substring(0, value.length - 1) : value) * multiplier;\n}\n\n/**\n * Formats the address the server is listening on.\n *\n * @param {string | false} path\n * @param {string} host\n * @param {string | false} port\n * @param {import('node:net').AddressInfo | string | null} address\n * @returns {string}\n */\nexport function format_listening_address(path, host, port, address) {\n\tif (path) {\n\t\treturn path;\n\t}\n\n\tif (address && typeof address === 'object') {\n\t\treturn format({\n\t\t\tprotocol: 'http:',\n\t\t\thostname: address.address,\n\t\t\tport: address.port\n\t\t});\n\t}\n\n\treturn format({\n\t\tprotocol: 'http:',\n\t\thostname: host,\n\t\tport: String(port)\n\t});\n}\n","/** @import { IncomingMessage, ServerResponse } from 'node:http' */\nimport fs from 'node:fs';\nimport path from 'node:path';\nimport { pipeline } from 'node:stream';\n\n/**\n * @typedef {(req: IncomingMessage, res: ServerResponse, next: () => void | Promise<void>) => void | Promise<void>} Middleware\n * @typedef {AssetEntry & { type?: string, cache_control?: string }} Asset\n * @typedef {Asset | { location: string }} Entry\n */\n\n/**\n * Splits `req.url` into a decoded pathname and the search string.\n * Decoding follows kit's router: reserved characters such as `%2F` stay\n * encoded. An undecodable pathname is returned as-is, so it misses the\n * asset table and falls through to SvelteKit's 400\n * @param {import('node:http').IncomingMessage} req\n */\nfunction split_url(req) {\n\tlet pathname = /** @type {string} */ (req.url);\n\tlet search = '';\n\n\tconst query_index = pathname.indexOf('?');\n\tif (query_index !== -1) {\n\t\tsearch = pathname.slice(query_index);\n\t\tpathname = pathname.slice(0, query_index);\n\t}\n\n\tif (pathname.includes('%')) {\n\t\ttry {\n\t\t\tpathname = pathname.split('%25').map(decodeURI).join('%25');\n\t\t} catch {\n\t\t\t// invalid URI\n\t\t}\n\t}\n\n\treturn { pathname, search };\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash.\n * Keep in sync with the copy in `packages/kit/src/utils/url.js`\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nfunction relative_pathname(from, to) {\n\tconst segment = to.replace(/\\/$/, '').split('/').at(-1);\n\n\t// The prefix prevents a colon in the segment from being interpreted as a URL scheme.\n\treturn from.endsWith('/') ? `../${segment}` : `./${segment}/`;\n}\n\n/**\n * Parses `Accept-Encoding` and picks the preferred variant that exists\n * @param {string | undefined} header\n * @param {Asset} asset\n * @returns {'br' | 'gz' | undefined}\n */\nfunction negotiate(header, asset) {\n\tif (!header || !(asset.br || asset.gz)) return;\n\n\t/** @type {Map<string, number>} */\n\tconst weights = new Map();\n\n\tfor (const part of header.toLowerCase().split(',')) {\n\t\tconst [coding, ...params] = part.split(';');\n\t\tlet weight = 1;\n\n\t\tfor (const param of params) {\n\t\t\tconst [name, value] = param.split('=');\n\t\t\tif (name.trim() === 'q') weight = parseFloat(value) || 0;\n\t\t}\n\n\t\tweights.set(coding.trim(), weight);\n\t}\n\n\t/** @param {string} coding */\n\tconst weight = (coding) => weights.get(coding) ?? weights.get('*') ?? 0;\n\n\tconst br = asset.br ? weight('br') : 0;\n\tconst gzip = asset.gz ? weight('gzip') : 0;\n\n\tif (gzip > br) return 'gz';\n\tif (br > 0) return 'br';\n}\n\n/**\n * Whether an `If-None-Match` value matches `etag`, using weak comparison\n * @param {string | undefined} header\n * @param {string} etag\n */\nfunction etag_matches(header, etag) {\n\tif (!header) return false;\n\tif (header.trim() === '*') return true;\n\n\treturn header.split(',').some((tag) => tag.trim().replace(/^W\\//, '') === etag);\n}\n\n/**\n * Absolute file paths and content types for one table\n * @param {string} dir\n * @param {AssetTable} table\n * @param {Record<string, string>} mime_types\n * @returns {Map<string, Asset>}\n */\nfunction resolve(dir, table, mime_types) {\n\t/** @type {Map<string, Asset>} */\n\tconst files = new Map();\n\n\tfor (const [key, entry] of table.entries) {\n\t\tlet type = mime_types[entry.file.slice(entry.file.lastIndexOf('.'))];\n\t\tif (type === 'text/html') type += ';charset=utf-8';\n\t\tfiles.set(key, { ...entry, file: path.join(dir, entry.file), type });\n\t}\n\n\tfor (const [alias, key] of table.aliases) {\n\t\tfiles.set(alias, /** @type {Asset} */ (files.get(key)));\n\t}\n\n\treturn files;\n}\n\n/**\n * One lookup for every request, decided at boot: client assets (immutable below\n * `app_path`), prerendered pages, and a 308 from the non-canonical trailing-slash\n * form of a prerendered path to the canonical one. Client assets win a collision\n * @param {{\n * dir: string,\n * base: string,\n * app_path: string,\n * mime_types: Record<string, string>,\n * assets: AssetTable,\n * prerendered_assets: AssetTable\n * }} opts\n * @returns {Map<string, Entry>}\n */\nexport function create_file_map({ dir, base, app_path, mime_types, assets, prerendered_assets }) {\n\t/** @type {Map<string, Entry>} */\n\tconst files = resolve(`${dir}/client${base}`, assets, mime_types);\n\n\tconst immutable = `/${app_path}/immutable/`;\n\tfor (const [key, asset] of files) {\n\t\tif (key.startsWith(immutable)) {\n\t\t\t/** @type {Asset} */ (asset).cache_control = 'public,max-age=31536000,immutable';\n\t\t}\n\t}\n\n\tconst prerendered = resolve(`${dir}/prerendered${base}`, prerendered_assets, mime_types);\n\tfor (const [key, asset] of prerendered) {\n\t\tif (!files.has(key)) files.set(key, asset);\n\t}\n\n\tfor (const key of prerendered.keys()) {\n\t\tconst inverted = key.at(-1) === '/' ? key.slice(0, -1) : key + '/';\n\t\tif (inverted && !files.has(inverted)) {\n\t\t\tfiles.set(inverted, { location: relative_pathname(inverted, key) });\n\t\t}\n\t}\n\n\treturn files;\n}\n\n/**\n * Serves the closed set of files recorded at adapt time. Everything about a\n * response is decided before the first request, so a request is one map\n * lookup, header negotiation and a stream\n * @param {Map<string, Entry>} files\n * @returns {Middleware}\n */\nexport function serve_static(files) {\n\treturn (req, res, next) => {\n\t\tconst { pathname, search } = split_url(req);\n\n\t\tconst asset = files.get(pathname);\n\t\tif (!asset) return next();\n\n\t\tif (req.method !== 'GET' && req.method !== 'HEAD') {\n\t\t\tres.writeHead(405, { allow: 'GET, HEAD' }).end();\n\t\t\treturn;\n\t\t}\n\n\t\tif ('location' in asset) {\n\t\t\tres.writeHead(308, { location: asset.location + search }).end();\n\t\t\treturn;\n\t\t}\n\n\t\tlet file = asset.file;\n\t\tlet size = asset.size;\n\t\tlet etag = `\"${asset.etag}\"`;\n\n\t\tconst variant = negotiate(req.headers['accept-encoding'], asset);\n\t\tif (variant) {\n\t\t\tsize = /** @type {number} */ (asset[variant]);\n\t\t\tfile += `.${variant}`;\n\t\t\tetag = `\"${asset.etag}.${variant}\"`;\n\t\t}\n\n\t\t/** @type {Record<string, string | number>} */\n\t\tconst headers = { etag };\n\n\t\tif (asset.br || asset.gz) headers.vary = 'Accept-Encoding';\n\t\tif (asset.cache_control) headers['cache-control'] = asset.cache_control;\n\n\t\tif (etag_matches(req.headers['if-none-match'], etag)) {\n\t\t\tres.writeHead(304, headers).end();\n\t\t\treturn;\n\t\t}\n\t\theaders['content-length'] = size;\n\t\theaders['accept-ranges'] = 'bytes';\n\t\tif (asset.type) headers['content-type'] = asset.type;\n\t\tif (variant) headers['content-encoding'] = variant === 'gz' ? 'gzip' : 'br';\n\n\t\t/** @type {{ start?: number, end?: number }} */\n\t\tconst range = {};\n\t\tlet status = 200;\n\n\t\t// a stale `If-Range` validator means the client's partial copy is of an older\n\t\t// representation, so it gets the whole current one\n\t\tconst if_range = req.headers['if-range'];\n\t\tif (req.headers.range && (!if_range || if_range === etag)) {\n\t\t\tconst match = /^bytes=(\\d*)-(\\d*)$/.exec(req.headers.range);\n\n\t\t\tif (match && (match[1] || match[2])) {\n\t\t\t\tlet start = match[1] ? parseInt(match[1], 10) : NaN;\n\t\t\t\tlet end = match[2] ? parseInt(match[2], 10) : size - 1;\n\n\t\t\t\tif (isNaN(start)) {\n\t\t\t\t\t// suffix range: the last `match[2]` bytes\n\t\t\t\t\tstart = Math.max(size - end, 0);\n\t\t\t\t\tend = size - 1;\n\t\t\t\t} else {\n\t\t\t\t\tend = Math.min(end, size - 1);\n\t\t\t\t}\n\n\t\t\t\tif (start >= size || start > end) {\n\t\t\t\t\tres.writeHead(416, { 'content-range': `bytes */${size}` }).end();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstatus = 206;\n\t\t\t\theaders['content-range'] = `bytes ${start}-${end}/${size}`;\n\t\t\t\theaders['content-length'] = end - start + 1;\n\t\t\t\trange.start = start;\n\t\t\t\trange.end = end;\n\t\t\t}\n\t\t}\n\n\t\tres.writeHead(status, headers);\n\n\t\tif (req.method === 'HEAD') {\n\t\t\tres.end();\n\t\t\treturn;\n\t\t}\n\n\t\t// the headers are already sent, so a failed read can only drop the connection.\n\t\t// `pipeline` also closes the file when the client goes away mid-transfer\n\t\tpipeline(fs.createReadStream(file, range), res, () => {});\n\t};\n}\n","/** @import { IncomingHttpHeaders } from 'node:http' */\nimport process from 'node:process';\nimport { getRequest, setResponse, createReadableStream } from '@sveltejs/kit/node';\nimport {\n\tserver,\n\tdir,\n\tenv_prefix,\n\tbase,\n\tapp_path,\n\torigin,\n\tmime_types,\n\tassets,\n\tprerendered_assets\n} from '#@sveltejs/adapter-node';\nimport { env } from './env.js';\nimport { parse_as_bytes } from './utils.js';\nimport { create_file_map, serve_static } from './static.js';\n\n/** @import { Middleware } from './static.js' */\n\nconst xff_depth = parseInt(env('XFF_DEPTH', '1'));\nconst address_header = env('ADDRESS_HEADER', '').toLowerCase();\nconst protocol_header = env('PROTOCOL_HEADER', '').toLowerCase();\nconst host_header = env('HOST_HEADER', '').toLowerCase();\nconst port_header = env('PORT_HEADER', '').toLowerCase();\n\nconst body_size_limit = parse_as_bytes(env('BODY_SIZE_LIMIT', '512K'));\n\nif (isNaN(body_size_limit)) {\n\tthrow new Error(\n\t\t`Invalid BODY_SIZE_LIMIT: '${env('BODY_SIZE_LIMIT')}'. Please provide a numeric value.`\n\t);\n}\n\nconst asset_dir = `${dir}/client${base}`;\n\nawait server.init({\n\tenv: process.env,\n\tread: (file) => createReadableStream(`${asset_dir}/${file}`)\n});\n\n/** @type {Middleware} */\nconst ssr = async (req, res) => {\n\t/** @type {Request} */\n\tlet request;\n\tlet request_origin = origin;\n\n\tif (!request_origin) {\n\t\ttry {\n\t\t\trequest_origin = get_origin(req.headers);\n\t\t} catch (error) {\n\t\t\tconsole.error(\n\t\t\t\t`Could not determine request origin: ${error instanceof Error ? error.message : String(error)}`\n\t\t\t);\n\t\t\tres.statusCode = 400;\n\t\t\tres.end('Bad Request');\n\t\t\treturn;\n\t\t}\n\t}\n\n\ttry {\n\t\trequest = getRequest({\n\t\t\tbase: request_origin,\n\t\t\trequest: req,\n\t\t\tresponse: res,\n\t\t\tbodySizeLimit: body_size_limit\n\t\t});\n\t} catch {\n\t\tres.statusCode = 400;\n\t\tres.end('Bad Request');\n\t\treturn;\n\t}\n\n\tconst response = await server.respond(request, {\n\t\tplatform: { req },\n\t\tgetClientAddress: () => {\n\t\t\tif (address_header) {\n\t\t\t\tif (!(address_header in req.headers)) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`Address header was specified with ${\n\t\t\t\t\t\t\tenv_prefix + 'ADDRESS_HEADER'\n\t\t\t\t\t\t}=${address_header} but is absent from request`\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst value = /** @type {string} */ (req.headers[address_header]) || '';\n\n\t\t\t\tif (address_header === 'x-forwarded-for') {\n\t\t\t\t\tconst addresses = value.split(',');\n\n\t\t\t\t\tif (xff_depth < 1) {\n\t\t\t\t\t\tthrow new Error(`${env_prefix + 'XFF_DEPTH'} must be a positive integer`);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (xff_depth > addresses.length) {\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t`${env_prefix + 'XFF_DEPTH'} is ${xff_depth}, but only found ${\n\t\t\t\t\t\t\t\taddresses.length\n\t\t\t\t\t\t\t} addresses`\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\treturn addresses[addresses.length - xff_depth].trim();\n\t\t\t\t}\n\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\treq.connection?.remoteAddress ||\n\t\t\t\t// @ts-expect-error\n\t\t\t\treq.connection?.socket?.remoteAddress ||\n\t\t\t\treq.socket?.remoteAddress ||\n\t\t\t\t// @ts-expect-error\n\t\t\t\treq.info?.remoteAddress\n\t\t\t);\n\t\t}\n\t});\n\n\t// Reverse proxies such as nginx buffer responses by default (ignoring\n\t// `cache-control`), which breaks streaming responses like server-sent events.\n\t// `X-Accel-Buffering: no` opts out of that buffering and is a no-op on proxies\n\t// that don't recognise it. See https://github.com/sveltejs/kit/issues/15790\n\tif (response.headers.get('content-type') === 'text/event-stream') {\n\t\tresponse.headers.set('x-accel-buffering', 'no');\n\t}\n\n\tsetResponse(res, response);\n};\n\n/**\n * @param {string} name\n * @param {string | string[] | undefined} value\n * @returns {string | undefined}\n */\nfunction normalise_header(name, value) {\n\tif (!name) return undefined;\n\tif (Array.isArray(value)) {\n\t\tif (value.length === 0) return undefined;\n\t\tif (value.length === 1) return value[0];\n\t\tthrow new Error(\n\t\t\t`Multiple values provided for ${name} header where only one expected: ${value}`\n\t\t);\n\t}\n\treturn value;\n}\n\n/**\n * @param {IncomingHttpHeaders} headers\n * @returns {string}\n */\nfunction get_origin(headers) {\n\tconst protocol = decodeURIComponent(\n\t\tnormalise_header(protocol_header, headers[protocol_header]) || 'https'\n\t);\n\n\t// this helps us avoid host injections through the protocol header\n\tif (protocol.includes(':')) {\n\t\tthrow new Error(\n\t\t\t`The ${protocol_header} header specified ${protocol} which is an invalid because it includes \\`:\\`. It should only contain the protocol scheme (e.g. \\`https\\`)`\n\t\t);\n\t}\n\n\tconst host =\n\t\tnormalise_header(host_header, headers[host_header]) ||\n\t\tnormalise_header('host', headers['host']);\n\tif (!host) {\n\t\tconst header_names = host_header ? `${host_header} or host headers` : 'host header';\n\t\tthrow new Error(\n\t\t\t`Could not determine host. The request must have a value provided by the ${header_names}`\n\t\t);\n\t}\n\n\tconst port = normalise_header(port_header, headers[port_header]);\n\tif (port && isNaN(+port)) {\n\t\tthrow new Error(\n\t\t\t`The ${port_header} header specified ${port} which is an invalid port because it is not a number. The value should only contain the port number (e.g. 443)`\n\t\t);\n\t}\n\n\treturn port ? `${protocol}://${host}:${port}` : `${protocol}://${host}`;\n}\n\nconst serve = serve_static(\n\tcreate_file_map({ dir, base, app_path, mime_types, assets, prerendered_assets })\n);\n\n/** @type {Middleware} */\nexport const handler = (req, res, next) => serve(req, res, () => ssr(req, res, next));\n"],"ignoreList":[0,1,2,3],"mappings":";;;;;;;;;;;AAMA,IAAM,sCAAsB,IAAI,QAAQ;;;;;AAMxC,SAAS,aAAa,KAAK,iBAAiB;CAC3C,MAAM,IAAI,IAAI;CAEd,MAAM,iBAAiB,OAAO,EAAE,iBAAiB;CACjD,MAAM,qBAAqB,OAAO,SAAS,cAAc;CAGzD,IACE,IAAI,qBAAqB,KAAK,CAAC,sBAAsB,EAAE,wBAAwB,QAChF,mBAAmB,GAEnB,OAAO;CAGR,IAAI,IAAI,WAAW;EAClB,MAAM,WAAW,IAAI,eAAe;EACpC,SAAc,OAAO;EACrB,OAAO;CACR;CAEA,IAAI,OAAO;CACX,IAAI,YAAY;CAEhB,OAAO,IAAI,eAAe;EACzB,MAAM,YAAY;GACjB,IAAI,oBAAoB,KAAA,KAAa,sBAAsB,iBAAiB,iBAAiB;IAC5F,MAAM,QAAQ,IAAI,eACjB,KACA,qBACA,qBAAqB,eAAe,oBAAoB,gBAAgB,QACzE;IAEA,WAAW,MAAM,KAAK;IACtB;GACD;;GAGA,MAAM,YAAY,UAAU;IAC3B,YAAY;IACZ,WAAW,MAAM,KAAK;GACvB;GAEA,MAAM,eA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AAI,MAAM,WAAW,GAAG,OAAO,MAAM;EACrC,MAAM,IAAI,MACT,gCAAgC,KAAK,mCAAmC,OACzE;CACD;CACA,OAAO;AACR;;;;;AAMA,SAAS,WAAW,SAAS;CAC5B,MAAM,WAAW,mBAChB,iBAAiB,iBAAiB,QAAQ,gBAAgB,KAAK,OAChE;CAGA,IAAI,SAAS,SAAS,GAAG,GACxB,MAAM,IAAI,MACT,OAAO,gBAAgB,oBAAoB,SAAS,4GACrD;CAGD,MAAM,OACL,iBAAiB,aAAa,QAAQ,YAAY,KAClD,iBAAiB,QAAQ,QAAQ,OAAO;CACzC,IAAI,CAAC,MAAM;EACV,MAAM,eAAe,cAAc,GAAG,YAAY,oBAAoB;EACtE,MAAM,IAAI,MACT,2EAA2E,cAC5E;CACD;CAEA,MAAM,OAAO,iBAAiB,aAAa,QAAQ,YAAY;CAC/D,IAAI,QAAQ,MAAM,CAAC,IAAI,GACtB,MAAM,IAAI,MACT,OAAO,YAAY,oBAAoB,KAAK,+GAC7C;CAGD,OAAO,OAAO,GAAG,SAAS,KAAK,KAAK,GAAG,SAAS,GAAG,SAAS,KAAK;AAClE;AAEA,IAAM,QAAQ,aACb,gBAAgB;CAAE;CAAK;CAAM;CAAU;CAAY;CAAQ;AAAmB,CAAC,CAChF;;AAGA,IAAa,WAAW,KAAK,KAAK,SAAS,MAAM,KAAK,WAAW,IAAI,KAAK,KAAK,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"adapter-node-handler.js","names":[],"sources":["../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/node/index.js","../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/utils.js","../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/static.js","../../../../node_modules/.pnpm/@sveltejs+adapter-node@6.0.0_@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_sve_426de5c69245335bd04c92378b0166a8/node_modules/@sveltejs/adapter-node/src/handler.js"],"sourcesContent":["import { createReadStream } from 'node:fs';\nimport { Readable } from 'node:stream';\nimport { SvelteKitError } from '../internal/shared.js';\nimport { noop } from '../../utils/functions.js';\n\n/** @type {WeakMap<import('http').IncomingMessage, (chunk: Buffer) => void>} */\nconst body_data_listeners = new WeakMap();\n\n/**\n * @param {import('http').IncomingMessage} req\n * @param {number} [body_size_limit]\n */\nfunction get_raw_body(req, body_size_limit) {\n\tconst h = req.headers;\n\n\tconst content_length = Number(h['content-length']);\n\tconst has_content_length = Number.isFinite(content_length);\n\n\t// check if no request body\n\tif (\n\t\t(req.httpVersionMajor === 1 && !has_content_length && h['transfer-encoding'] == null) ||\n\t\tcontent_length === 0\n\t) {\n\t\treturn null;\n\t}\n\n\tif (req.destroyed) {\n\t\tconst readable = new ReadableStream();\n\t\tvoid readable.cancel();\n\t\treturn readable;\n\t}\n\n\tlet size = 0;\n\tlet cancelled = false;\n\n\treturn new ReadableStream({\n\t\tstart(controller) {\n\t\t\tif (body_size_limit !== undefined && has_content_length && content_length > body_size_limit) {\n\t\t\t\tconst error = new SvelteKitError(\n\t\t\t\t\t413,\n\t\t\t\t\t'Payload Too Large',\n\t\t\t\t\t`Content-length of ${content_length} exceeds limit of ${body_size_limit} bytes.`\n\t\t\t\t);\n\n\t\t\t\tcontroller.error(error);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/** @param {Error} error */\n\t\t\tconst on_error = (error) => {\n\t\t\t\tcancelled = true;\n\t\t\t\tcontroller.error(error);\n\t\t\t};\n\n\t\t\tconst on_end = () => {\n\t\t\t\tif (cancelled) return;\n\t\t\t\tcontroller.close();\n\t\t\t};\n\n\t\t\t/** @param {Buffer} chunk */\n\t\t\tconst on_data = (chunk) => {\n\t\t\t\tif (cancelled) return;\n\n\t\t\t\tsize += chunk.length;\n\n\t\t\t\tif (body_size_limit !== undefined && size > body_size_limit) {\n\t\t\t\t\tcancelled = true;\n\n\t\t\t\t\tconst message = `request body size exceeded BODY_SIZE_LIMIT of ${body_size_limit}`;\n\n\t\t\t\t\tconst error = new SvelteKitError(413, 'Payload Too Large', message);\n\t\t\t\t\tcontroller.error(error);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (has_content_length && size > content_length) {\n\t\t\t\t\tcancelled = true;\n\n\t\t\t\t\tconst message = `request body size exceeded content-length of ${content_length}`;\n\n\t\t\t\t\tconst error = new SvelteKitError(413, 'Payload Too Large', message);\n\t\t\t\t\tcontroller.error(error);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tcontroller.enqueue(chunk);\n\n\t\t\t\tif (controller.desiredSize === null || controller.desiredSize <= 0) {\n\t\t\t\t\treq.pause();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\treq.on('error', on_error);\n\t\t\treq.on('end', on_end);\n\t\t\treq.on('data', on_data);\n\t\t\tbody_data_listeners.set(req, on_data);\n\t\t},\n\n\t\tpull() {\n\t\t\treq.resume();\n\t\t},\n\n\t\tcancel(reason) {\n\t\t\tcancelled = true;\n\t\t\treq.destroy(reason);\n\t\t}\n\t});\n}\n\n/**\n * @param {{\n * request: import('http').IncomingMessage;\n * response?: import('http').ServerResponse;\n * base: string;\n * bodySizeLimit?: number;\n * }} options\n * @returns {Request}\n */\nexport function getRequest({ request, response, base, bodySizeLimit }) {\n\tlet headers = /** @type {Record<string, string>} */ (request.headers);\n\tif (request.httpVersionMajor >= 2) {\n\t\t// the Request constructor rejects headers with ':' in the name\n\t\theaders = Object.assign({}, headers);\n\t\t// https://www.rfc-editor.org/rfc/rfc9113.html#section-8.3.1-2.3.5\n\t\tif (headers[':authority']) {\n\t\t\theaders.host = headers[':authority'];\n\t\t}\n\t\tdelete headers[':authority'];\n\t\tdelete headers[':method'];\n\t\tdelete headers[':path'];\n\t\tdelete headers[':scheme'];\n\t}\n\n\tconst controller = new AbortController();\n\n\trequest.once('close', () => {\n\t\tif (request.readableAborted) {\n\t\t\tcontroller.abort();\n\t\t}\n\t});\n\n\t// `readableAborted` stays false once the request has been fully read (or drained),\n\t// so a client disconnect must also be detected on the response side. `writableEnded`\n\t// rather than `writableFinished` because HTTP/2 marks cancelled streams as finished\n\tresponse?.once('close', () => {\n\t\tif (!response.writableEnded) {\n\t\t\tcontroller.abort();\n\t\t}\n\t});\n\n\treturn new Request(base + request.url, {\n\t\t// @ts-expect-error\n\t\tduplex: 'half',\n\t\tmethod: request.method,\n\t\theaders: Object.entries(headers),\n\t\tsignal: controller.signal,\n\t\tbody:\n\t\t\trequest.method === 'GET' || request.method === 'HEAD'\n\t\t\t\t? undefined\n\t\t\t\t: get_raw_body(request, bodySizeLimit)\n\t});\n}\n\n/**\n * Drains any unconsumed request body once the response has been sent. When a\n * route doesn't read the request body (for example a page route receiving a\n * POST), the unread bytes remain buffered in the socket. On keep-alive\n * connections Node's HTTP parser then reads those leftover bytes as the next\n * request, fails to parse them, and resets the connection — losing any\n * pipelined request. Resuming the request discards the bytes so the connection\n * stays usable.\n *\n * Because `get_raw_body` attaches a `data` listener, Node marks the request as\n * being consumed (`req._consuming`) and skips its own automatic drain, so we\n * have to do it ourselves. The whole remaining body is read and discarded; this\n * is the intended trade-off (keeping the connection reusable) over destroying it.\n * @see https://github.com/sveltejs/kit/issues/14916\n * @see https://github.com/sveltejs/kit/issues/15526\n * @param {import('http').ServerResponse} res\n */\nfunction drain_request(res) {\n\tconst req = res.req;\n\tif (!req || req.readableEnded || req.destroyed) return;\n\n\t// When the body went unread, get_raw_body's `data` listener is still attached\n\t// and enqueues into a ReadableStream nobody consumes; it pauses the request at\n\t// the high water mark, so one chunk sits in memory and the rest stays buffered\n\t// in the socket. Remove only that `data` listener so the resumed stream drops\n\t// the remaining bytes instead of re-buffering them. The `end` and `error`\n\t// listeners stay attached so the body's ReadableStream is still closed (or\n\t// errored) once draining completes, and a consumer that stopped reading\n\t// mid-body sees a clean end instead of hanging.\n\tconst on_data = body_data_listeners.get(req);\n\tif (on_data) {\n\t\treq.removeListener('data', on_data);\n\t\tbody_data_listeners.delete(req);\n\t}\n\n\treq.resume();\n}\n\n/**\n * @param {import('http').ServerResponse} res\n * @param {Response} response\n * @returns {void}\n */\nexport function setResponse(res, response) {\n\tres.once('finish', () => drain_request(res));\n\tres.once('close', () => drain_request(res));\n\n\tfor (const [key, value] of response.headers) {\n\t\ttry {\n\t\t\tres.setHeader(key, key === 'set-cookie' ? response.headers.getSetCookie() : value);\n\t\t} catch (error) {\n\t\t\tres.getHeaderNames().forEach((name) => res.removeHeader(name));\n\t\t\tres.writeHead(500).end(String(error));\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (!response.body) {\n\t\tres.writeHead(response.status);\n\t\tres.end();\n\t\treturn;\n\t}\n\n\tif (response.body.locked) {\n\t\tres.writeHead(response.status);\n\t\tres.end(\n\t\t\t'Fatal error: Response body is locked. ' +\n\t\t\t\t\"This can happen when the response was already read (for example through 'response.json()' or 'response.text()').\"\n\t\t);\n\t\treturn;\n\t}\n\n\tconst reader = response.body.getReader();\n\n\tif (res.destroyed) {\n\t\tvoid reader.cancel();\n\t\treturn;\n\t}\n\n\tconst cancel = (/** @type {Error|undefined} */ error) => {\n\t\tres.off('close', cancel);\n\t\tres.off('error', cancel);\n\n\t\t// If the reader has already been interrupted with an error earlier,\n\t\t// then it will appear here, it is useless, but it needs to be catch.\n\t\treader.cancel(error).catch(noop);\n\t\tif (error) res.destroy(error);\n\t};\n\n\tres.on('close', cancel);\n\tres.on('error', cancel);\n\n\t/** @type {Uint8Array<ArrayBuffer>[]} */\n\tconst buffered = [];\n\n\t/** @type {ReturnType<typeof reader.read> | null} */\n\tlet pending = null;\n\n\tvoid probe();\n\n\t// a fixed body (a string, buffer or blob, however constructed) settles all its\n\t// reads before the next macrotask, so it can be measured and sent with a\n\t// `content-length`; a genuine stream leaves a read pending and only has its\n\t// headers delayed by a single tick\n\tasync function probe() {\n\t\ttry {\n\t\t\t/** @type {Promise<undefined>} */\n\t\t\tconst deadline = new Promise((fulfil) => setImmediate(() => fulfil(undefined)));\n\n\t\t\twhile (buffered.length < 2) {\n\t\t\t\tpending = reader.read();\n\t\t\t\tconst result = await Promise.race([pending, deadline]);\n\n\t\t\t\tif (!result) break; // deadline hit — treat the body as a stream\n\n\t\t\t\tpending = null;\n\n\t\t\t\tif (result.done) {\n\t\t\t\t\t// a `content-length` next to a `transfer-encoding` would be invalid\n\t\t\t\t\tif (!res.hasHeader('content-length') && !res.hasHeader('transfer-encoding')) {\n\t\t\t\t\t\tres.setHeader(\n\t\t\t\t\t\t\t'content-length',\n\t\t\t\t\t\t\tbuffered.reduce((total, chunk) => total + chunk.byteLength, 0)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbuffered.push(result.value);\n\t\t\t}\n\n\t\t\tif (res.destroyed) return;\n\n\t\t\tres.writeHead(response.status);\n\t\t\tawait next();\n\t\t} catch (error) {\n\t\t\tif (!res.headersSent) res.writeHead(response.status);\n\t\t\tcancel(error instanceof Error ? error : new Error(String(error)));\n\t\t}\n\t}\n\n\tasync function next() {\n\t\ttry {\n\t\t\tfor (;;) {\n\t\t\t\t/** @type {Awaited<ReturnType<typeof reader.read>>} */\n\t\t\t\tlet result;\n\t\t\t\tif (buffered.length > 0) {\n\t\t\t\t\tresult = {\n\t\t\t\t\t\tdone: false,\n\t\t\t\t\t\tvalue: /** @type {Uint8Array<ArrayBuffer>} */ (buffered.shift())\n\t\t\t\t\t};\n\t\t\t\t} else if (pending) {\n\t\t\t\t\tresult = await pending;\n\t\t\t\t\tpending = null;\n\t\t\t\t} else {\n\t\t\t\t\tresult = await reader.read();\n\t\t\t\t}\n\n\t\t\t\tconst { done, value } = result;\n\n\t\t\t\tif (done) break;\n\n\t\t\t\tif (!res.write(value)) {\n\t\t\t\t\tres.once('drain', next);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tres.end();\n\t\t} catch (error) {\n\t\t\tcancel(error instanceof Error ? error : new Error(String(error)));\n\t\t}\n\t}\n}\n\n/**\n * Converts a file on disk to a readable stream\n * @param {string} file\n * @returns {ReadableStream}\n * @since 2.4.0\n */\nexport function createReadableStream(file) {\n\treturn /** @type {ReadableStream} */ (Readable.toWeb(createReadStream(file)));\n}\n","import { format } from 'node:url';\n\n/**\n * Parses the given value into number of bytes.\n *\n * @param {string} value - Size in bytes. Can also be specified with a unit suffix kilobytes (K), megabytes (M), or gigabytes (G).\n * @returns {number}\n */\nexport function parse_as_bytes(value) {\n\tconst multiplier =\n\t\t{\n\t\t\tK: 1024,\n\t\t\tM: 1024 * 1024,\n\t\t\tG: 1024 * 1024 * 1024\n\t\t}[value[value.length - 1]?.toUpperCase()] ?? 1;\n\treturn Number(multiplier != 1 ? value.substring(0, value.length - 1) : value) * multiplier;\n}\n\n/**\n * Formats the address the server is listening on.\n *\n * @param {string | false} path\n * @param {string} host\n * @param {string | false} port\n * @param {import('node:net').AddressInfo | string | null} address\n * @returns {string}\n */\nexport function format_listening_address(path, host, port, address) {\n\tif (path) {\n\t\treturn path;\n\t}\n\n\tif (address && typeof address === 'object') {\n\t\treturn format({\n\t\t\tprotocol: 'http:',\n\t\t\thostname: address.address,\n\t\t\tport: address.port\n\t\t});\n\t}\n\n\treturn format({\n\t\tprotocol: 'http:',\n\t\thostname: host,\n\t\tport: String(port)\n\t});\n}\n","/** @import { IncomingMessage, ServerResponse } from 'node:http' */\nimport fs from 'node:fs';\nimport path from 'node:path';\nimport { pipeline } from 'node:stream';\n\n/**\n * @typedef {(req: IncomingMessage, res: ServerResponse, next: () => void | Promise<void>) => void | Promise<void>} Middleware\n * @typedef {AssetEntry & { type?: string, cache_control?: string }} Asset\n * @typedef {Asset | { location: string }} Entry\n */\n\n/**\n * Splits `req.url` into a decoded pathname and the search string.\n * Decoding follows kit's router: reserved characters such as `%2F` stay\n * encoded. An undecodable pathname is returned as-is, so it misses the\n * asset table and falls through to SvelteKit's 400\n * @param {import('node:http').IncomingMessage} req\n */\nfunction split_url(req) {\n\tlet pathname = /** @type {string} */ (req.url);\n\tlet search = '';\n\n\tconst query_index = pathname.indexOf('?');\n\tif (query_index !== -1) {\n\t\tsearch = pathname.slice(query_index);\n\t\tpathname = pathname.slice(0, query_index);\n\t}\n\n\tif (pathname.includes('%')) {\n\t\ttry {\n\t\t\tpathname = pathname.split('%25').map(decodeURI).join('%25');\n\t\t} catch {\n\t\t\t// invalid URI\n\t\t}\n\t}\n\n\treturn { pathname, search };\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash.\n * Keep in sync with the copy in `packages/kit/src/utils/url.js`\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nfunction relative_pathname(from, to) {\n\tconst segment = to.replace(/\\/$/, '').split('/').at(-1);\n\n\t// The prefix prevents a colon in the segment from being interpreted as a URL scheme.\n\treturn from.endsWith('/') ? `../${segment}` : `./${segment}/`;\n}\n\n/**\n * Parses `Accept-Encoding` and picks the preferred variant that exists\n * @param {string | undefined} header\n * @param {Asset} asset\n * @returns {'br' | 'gz' | undefined}\n */\nfunction negotiate(header, asset) {\n\tif (!header || !(asset.br || asset.gz)) return;\n\n\t/** @type {Map<string, number>} */\n\tconst weights = new Map();\n\n\tfor (const part of header.toLowerCase().split(',')) {\n\t\tconst [coding, ...params] = part.split(';');\n\t\tlet weight = 1;\n\n\t\tfor (const param of params) {\n\t\t\tconst [name, value] = param.split('=');\n\t\t\tif (name.trim() === 'q') weight = parseFloat(value) || 0;\n\t\t}\n\n\t\tweights.set(coding.trim(), weight);\n\t}\n\n\t/** @param {string} coding */\n\tconst weight = (coding) => weights.get(coding) ?? weights.get('*') ?? 0;\n\n\tconst br = asset.br ? weight('br') : 0;\n\tconst gzip = asset.gz ? weight('gzip') : 0;\n\n\tif (gzip > br) return 'gz';\n\tif (br > 0) return 'br';\n}\n\n/**\n * Whether an `If-None-Match` value matches `etag`, using weak comparison\n * @param {string | undefined} header\n * @param {string} etag\n */\nfunction etag_matches(header, etag) {\n\tif (!header) return false;\n\tif (header.trim() === '*') return true;\n\n\treturn header.split(',').some((tag) => tag.trim().replace(/^W\\//, '') === etag);\n}\n\n/**\n * Absolute file paths and content types for one table\n * @param {string} dir\n * @param {AssetTable} table\n * @param {Record<string, string>} mime_types\n * @returns {Map<string, Asset>}\n */\nfunction resolve(dir, table, mime_types) {\n\t/** @type {Map<string, Asset>} */\n\tconst files = new Map();\n\n\tfor (const [key, entry] of table.entries) {\n\t\tlet type = mime_types[entry.file.slice(entry.file.lastIndexOf('.'))];\n\t\tif (type === 'text/html') type += ';charset=utf-8';\n\t\tfiles.set(key, { ...entry, file: path.join(dir, entry.file), type });\n\t}\n\n\tfor (const [alias, key] of table.aliases) {\n\t\tfiles.set(alias, /** @type {Asset} */ (files.get(key)));\n\t}\n\n\treturn files;\n}\n\n/**\n * One lookup for every request, decided at boot: client assets (immutable below\n * `app_path`), prerendered pages, and a 308 from the non-canonical trailing-slash\n * form of a prerendered path to the canonical one. Client assets win a collision\n * @param {{\n * dir: string,\n * base: string,\n * app_path: string,\n * mime_types: Record<string, string>,\n * assets: AssetTable,\n * prerendered_assets: AssetTable\n * }} opts\n * @returns {Map<string, Entry>}\n */\nexport function create_file_map({ dir, base, app_path, mime_types, assets, prerendered_assets }) {\n\t/** @type {Map<string, Entry>} */\n\tconst files = resolve(`${dir}/client${base}`, assets, mime_types);\n\n\tconst immutable = `/${app_path}/immutable/`;\n\tfor (const [key, asset] of files) {\n\t\tif (key.startsWith(immutable)) {\n\t\t\t/** @type {Asset} */ (asset).cache_control = 'public,max-age=31536000,immutable';\n\t\t}\n\t}\n\n\tconst prerendered = resolve(`${dir}/prerendered${base}`, prerendered_assets, mime_types);\n\tfor (const [key, asset] of prerendered) {\n\t\tif (!files.has(key)) files.set(key, asset);\n\t}\n\n\tfor (const key of prerendered.keys()) {\n\t\tconst inverted = key.at(-1) === '/' ? key.slice(0, -1) : key + '/';\n\t\tif (inverted && !files.has(inverted)) {\n\t\t\tfiles.set(inverted, { location: relative_pathname(inverted, key) });\n\t\t}\n\t}\n\n\treturn files;\n}\n\n/**\n * Serves the closed set of files recorded at adapt time. Everything about a\n * response is decided before the first request, so a request is one map\n * lookup, header negotiation and a stream\n * @param {Map<string, Entry>} files\n * @returns {Middleware}\n */\nexport function serve_static(files) {\n\treturn (req, res, next) => {\n\t\tconst { pathname, search } = split_url(req);\n\n\t\tconst asset = files.get(pathname);\n\t\tif (!asset) return next();\n\n\t\tif (req.method !== 'GET' && req.method !== 'HEAD') {\n\t\t\tres.writeHead(405, { allow: 'GET, HEAD' }).end();\n\t\t\treturn;\n\t\t}\n\n\t\tif ('location' in asset) {\n\t\t\tres.writeHead(308, { location: asset.location + search }).end();\n\t\t\treturn;\n\t\t}\n\n\t\tlet file = asset.file;\n\t\tlet size = asset.size;\n\t\tlet etag = `\"${asset.etag}\"`;\n\n\t\tconst variant = negotiate(req.headers['accept-encoding'], asset);\n\t\tif (variant) {\n\t\t\tsize = /** @type {number} */ (asset[variant]);\n\t\t\tfile += `.${variant}`;\n\t\t\tetag = `\"${asset.etag}.${variant}\"`;\n\t\t}\n\n\t\t/** @type {Record<string, string | number>} */\n\t\tconst headers = { etag };\n\n\t\tif (asset.br || asset.gz) headers.vary = 'Accept-Encoding';\n\t\tif (asset.cache_control) headers['cache-control'] = asset.cache_control;\n\n\t\tif (etag_matches(req.headers['if-none-match'], etag)) {\n\t\t\tres.writeHead(304, headers).end();\n\t\t\treturn;\n\t\t}\n\t\theaders['content-length'] = size;\n\t\theaders['accept-ranges'] = 'bytes';\n\t\tif (asset.type) headers['content-type'] = asset.type;\n\t\tif (variant) headers['content-encoding'] = variant === 'gz' ? 'gzip' : 'br';\n\n\t\t/** @type {{ start?: number, end?: number }} */\n\t\tconst range = {};\n\t\tlet status = 200;\n\n\t\t// a stale `If-Range` validator means the client's partial copy is of an older\n\t\t// representation, so it gets the whole current one\n\t\tconst if_range = req.headers['if-range'];\n\t\tif (req.headers.range && (!if_range || if_range === etag)) {\n\t\t\tconst match = /^bytes=(\\d*)-(\\d*)$/.exec(req.headers.range);\n\n\t\t\tif (match && (match[1] || match[2])) {\n\t\t\t\tlet start = match[1] ? parseInt(match[1], 10) : NaN;\n\t\t\t\tlet end = match[2] ? parseInt(match[2], 10) : size - 1;\n\n\t\t\t\tif (isNaN(start)) {\n\t\t\t\t\t// suffix range: the last `match[2]` bytes\n\t\t\t\t\tstart = Math.max(size - end, 0);\n\t\t\t\t\tend = size - 1;\n\t\t\t\t} else {\n\t\t\t\t\tend = Math.min(end, size - 1);\n\t\t\t\t}\n\n\t\t\t\tif (start >= size || start > end) {\n\t\t\t\t\tres.writeHead(416, { 'content-range': `bytes */${size}` }).end();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstatus = 206;\n\t\t\t\theaders['content-range'] = `bytes ${start}-${end}/${size}`;\n\t\t\t\theaders['content-length'] = end - start + 1;\n\t\t\t\trange.start = start;\n\t\t\t\trange.end = end;\n\t\t\t}\n\t\t}\n\n\t\tres.writeHead(status, headers);\n\n\t\tif (req.method === 'HEAD') {\n\t\t\tres.end();\n\t\t\treturn;\n\t\t}\n\n\t\t// the headers are already sent, so a failed read can only drop the connection.\n\t\t// `pipeline` also closes the file when the client goes away mid-transfer\n\t\tpipeline(fs.createReadStream(file, range), res, () => {});\n\t};\n}\n","/** @import { IncomingHttpHeaders } from 'node:http' */\nimport process from 'node:process';\nimport { getRequest, setResponse, createReadableStream } from '@sveltejs/kit/node';\nimport {\n\tserver,\n\tdir,\n\tenv_prefix,\n\tbase,\n\tapp_path,\n\torigin,\n\tmime_types,\n\tassets,\n\tprerendered_assets\n} from '#@sveltejs/adapter-node';\nimport { env } from './env.js';\nimport { parse_as_bytes } from './utils.js';\nimport { create_file_map, serve_static } from './static.js';\n\n/** @import { Middleware } from './static.js' */\n\nconst xff_depth = parseInt(env('XFF_DEPTH', '1'));\nconst address_header = env('ADDRESS_HEADER', '').toLowerCase();\nconst protocol_header = env('PROTOCOL_HEADER', '').toLowerCase();\nconst host_header = env('HOST_HEADER', '').toLowerCase();\nconst port_header = env('PORT_HEADER', '').toLowerCase();\n\nconst body_size_limit = parse_as_bytes(env('BODY_SIZE_LIMIT', '512K'));\n\nif (isNaN(body_size_limit)) {\n\tthrow new Error(\n\t\t`Invalid BODY_SIZE_LIMIT: '${env('BODY_SIZE_LIMIT')}'. Please provide a numeric value.`\n\t);\n}\n\nconst asset_dir = `${dir}/client${base}`;\n\nawait server.init({\n\tenv: process.env,\n\tread: (file) => createReadableStream(`${asset_dir}/${file}`)\n});\n\n/** @type {Middleware} */\nconst ssr = async (req, res) => {\n\t/** @type {Request} */\n\tlet request;\n\tlet request_origin = origin;\n\n\tif (!request_origin) {\n\t\ttry {\n\t\t\trequest_origin = get_origin(req.headers);\n\t\t} catch (error) {\n\t\t\tconsole.error(\n\t\t\t\t`Could not determine request origin: ${error instanceof Error ? error.message : String(error)}`\n\t\t\t);\n\t\t\tres.statusCode = 400;\n\t\t\tres.end('Bad Request');\n\t\t\treturn;\n\t\t}\n\t}\n\n\ttry {\n\t\trequest = getRequest({\n\t\t\tbase: request_origin,\n\t\t\trequest: req,\n\t\t\tresponse: res,\n\t\t\tbodySizeLimit: body_size_limit\n\t\t});\n\t} catch {\n\t\tres.statusCode = 400;\n\t\tres.end('Bad Request');\n\t\treturn;\n\t}\n\n\tconst response = await server.respond(request, {\n\t\tplatform: { req },\n\t\tgetClientAddress: () => {\n\t\t\tif (address_header) {\n\t\t\t\tif (!(address_header in req.headers)) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`Address header was specified with ${\n\t\t\t\t\t\t\tenv_prefix + 'ADDRESS_HEADER'\n\t\t\t\t\t\t}=${address_header} but is absent from request`\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst value = /** @type {string} */ (req.headers[address_header]) || '';\n\n\t\t\t\tif (address_header === 'x-forwarded-for') {\n\t\t\t\t\tconst addresses = value.split(',');\n\n\t\t\t\t\tif (xff_depth < 1) {\n\t\t\t\t\t\tthrow new Error(`${env_prefix + 'XFF_DEPTH'} must be a positive integer`);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (xff_depth > addresses.length) {\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t`${env_prefix + 'XFF_DEPTH'} is ${xff_depth}, but only found ${\n\t\t\t\t\t\t\t\taddresses.length\n\t\t\t\t\t\t\t} addresses`\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\treturn addresses[addresses.length - xff_depth].trim();\n\t\t\t\t}\n\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\treq.connection?.remoteAddress ||\n\t\t\t\t// @ts-expect-error\n\t\t\t\treq.connection?.socket?.remoteAddress ||\n\t\t\t\treq.socket?.remoteAddress ||\n\t\t\t\t// @ts-expect-error\n\t\t\t\treq.info?.remoteAddress\n\t\t\t);\n\t\t}\n\t});\n\n\t// Reverse proxies such as nginx buffer responses by default (ignoring\n\t// `cache-control`), which breaks streaming responses like server-sent events.\n\t// `X-Accel-Buffering: no` opts out of that buffering and is a no-op on proxies\n\t// that don't recognise it. See https://github.com/sveltejs/kit/issues/15790\n\tif (response.headers.get('content-type') === 'text/event-stream') {\n\t\tresponse.headers.set('x-accel-buffering', 'no');\n\t}\n\n\tsetResponse(res, response);\n};\n\n/**\n * @param {string} name\n * @param {string | string[] | undefined} value\n * @returns {string | undefined}\n */\nfunction normalise_header(name, value) {\n\tif (!name) return undefined;\n\tif (Array.isArray(value)) {\n\t\tif (value.length === 0) return undefined;\n\t\tif (value.length === 1) return value[0];\n\t\tthrow new Error(\n\t\t\t`Multiple values provided for ${name} header where only one expected: ${value}`\n\t\t);\n\t}\n\treturn value;\n}\n\n/**\n * @param {IncomingHttpHeaders} headers\n * @returns {string}\n */\nfunction get_origin(headers) {\n\tconst protocol = decodeURIComponent(\n\t\tnormalise_header(protocol_header, headers[protocol_header]) || 'https'\n\t);\n\n\t// this helps us avoid host injections through the protocol header\n\tif (protocol.includes(':')) {\n\t\tthrow new Error(\n\t\t\t`The ${protocol_header} header specified ${protocol} which is an invalid because it includes \\`:\\`. It should only contain the protocol scheme (e.g. \\`https\\`)`\n\t\t);\n\t}\n\n\tconst host =\n\t\tnormalise_header(host_header, headers[host_header]) ||\n\t\tnormalise_header('host', headers['host']);\n\tif (!host) {\n\t\tconst header_names = host_header ? `${host_header} or host headers` : 'host header';\n\t\tthrow new Error(\n\t\t\t`Could not determine host. The request must have a value provided by the ${header_names}`\n\t\t);\n\t}\n\n\tconst port = normalise_header(port_header, headers[port_header]);\n\tif (port && isNaN(+port)) {\n\t\tthrow new Error(\n\t\t\t`The ${port_header} header specified ${port} which is an invalid port because it is not a number. The value should only contain the port number (e.g. 443)`\n\t\t);\n\t}\n\n\treturn port ? `${protocol}://${host}:${port}` : `${protocol}://${host}`;\n}\n\nconst serve = serve_static(\n\tcreate_file_map({ dir, base, app_path, mime_types, assets, prerendered_assets })\n);\n\n/** @type {Middleware} */\nexport const handler = (req, res, next) => serve(req, res, () => ssr(req, res, next));\n"],"ignoreList":[0,1,2,3],"mappings":";;;;;;;;;;;AAMA,IAAM,sCAAsB,IAAI,QAAQ;;;;;AAMxC,SAAS,aAAa,KAAK,iBAAiB;CAC3C,MAAM,IAAI,IAAI;CAEd,MAAM,iBAAiB,OAAO,EAAE,iBAAiB;CACjD,MAAM,qBAAqB,OAAO,SAAS,cAAc;CAGzD,IACE,IAAI,qBAAqB,KAAK,CAAC,sBAAsB,EAAE,wBAAwB,QAChF,mBAAmB,GAEnB,OAAO;CAGR,IAAI,IAAI,WAAW;EAClB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,KAAK,WAAW,IAAI,KAAK,KAAK,IAAI,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as Redirect, r as HttpError } from "./shared.js";
|
|
2
2
|
import { W as request_store_after_await, X as url_search_unavailable_prerender } from "./server-errors.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/internal/shared.js
|
|
4
4
|
/**
|
|
5
5
|
* Whether shared errors include their full text on the server even though `DEV` is false. This is
|
|
6
6
|
* enabled while the app is being built (analysed or prerendered)
|
|
@@ -31,7 +31,7 @@ function throw_error(code, message, caller) {
|
|
|
31
31
|
throw error;
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
34
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/constants.js
|
|
35
35
|
/**
|
|
36
36
|
* A fake asset path used in `vite dev` and `vite preview`, so that we can
|
|
37
37
|
* serve local assets while verifying that requests are correctly prefixed
|
|
@@ -68,7 +68,7 @@ var IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
|
|
|
68
68
|
*/
|
|
69
69
|
var REROUTED_URL_HEADER = "x-sveltekit-rerouted-url";
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
71
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/internal/server/event.js
|
|
72
72
|
/** @import { RequestEvent } from '@sveltejs/kit' */
|
|
73
73
|
/** @import { RequestStore } from 'types' */
|
|
74
74
|
/** @import { AsyncLocalStorage } from 'node:async_hooks' */
|
|
@@ -102,7 +102,7 @@ function with_request_store(store, fn) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
105
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/internal/server/index.js
|
|
106
106
|
/** @import { Span } from '@opentelemetry/api' */
|
|
107
107
|
function get_origin() {
|
|
108
108
|
const request = try_get_request_store()?.event.request;
|
|
@@ -124,7 +124,7 @@ function merge_tracing(event_like, current) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
127
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/shared-errors.js
|
|
128
128
|
/**
|
|
129
129
|
* Invalid array key `%key%`
|
|
130
130
|
* @param {{ "key": string }} _values
|
|
@@ -297,7 +297,7 @@ function url_hash_unavailable(_values) {
|
|
|
297
297
|
throw new Error("https://svelte.dev/e/kit/url_hash_unavailable");
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
300
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/utils/url.js
|
|
301
301
|
/**
|
|
302
302
|
* Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1
|
|
303
303
|
* @type {RegExp}
|
|
@@ -436,7 +436,7 @@ function allow_nodejs_console_log(url) {
|
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
//#endregion
|
|
439
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
439
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/url.js
|
|
440
440
|
var REDIRECT_BASE = "https://sveltekit-redirect.invalid";
|
|
441
441
|
/**
|
|
442
442
|
* Whether a redirect location is absolute, i.e. not a root-relative or path-relative URL,
|
|
@@ -481,7 +481,7 @@ function validate_redirect_location(location, options) {
|
|
|
481
481
|
redirect_external_option_invalid();
|
|
482
482
|
}
|
|
483
483
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
484
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/shared-warnings.js
|
|
485
485
|
/**
|
|
486
486
|
* `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme
|
|
487
487
|
* @param {{ "route": string; "dependency": string; "scheme": string }} _values
|
|
@@ -497,7 +497,7 @@ function form_fields_enumerated(_values) {
|
|
|
497
497
|
console.warn("https://svelte.dev/e/kit/form_fields_enumerated");
|
|
498
498
|
}
|
|
499
499
|
//#endregion
|
|
500
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
500
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/index.js
|
|
501
501
|
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
502
502
|
var text_encoder = new TextEncoder();
|
|
503
503
|
/**
|