konoha-mcp 2.1.4 → 2.1.5
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.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/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/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 +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;IAE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I,CAAC,MAAM,OAAO,KAAA;CAClB,IAAI,MAAM,QAAQ,KAAK,GAAG;EACzB,IAAI,MAAM,WAAW,GAAG,OAAO,KAAA;EAC/B,IAAI,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;CAG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,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,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
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","names":["e.url_hash_unavailable","server_errors.url_search_unavailable_prerender"],"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/messages/internal/shared.js","../../../../../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/constants.js","../../../../../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/internal/server/event.js","../../../../../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/internal/server/index.js","../../../../../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/messages/shared-errors.js","../../../../../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/utils/url.js","../../../../../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/url.js","../../../../../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/messages/shared-warnings.js","../../../../../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/index.js"],"sourcesContent":["/**\n * Whether shared errors include their full text on the server even though `DEV` is false. This is\n * enabled while the app is being built (analysed or prerendered)\n */\nexport let verbose = false;\n\nexport function enable_verbose_errors() {\n\tverbose = true;\n}\n\n/**\n * @typedef {{ element?: Element }} ClientWarningOptions\n * - `element`: logged after the warning, so that it can be inspected in the browser's devtools\n */\n\n/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */\nexport const bold = 'font-weight: bold';\nexport const normal = 'font-weight: normal';\n\n/**\n * Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so\n * bundlers can remove both this call and the message text from production browser builds\n * @param {string} code\n * @param {string} message\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, caller) {\n\tconst error = new Error(`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`);\n\terror.name = 'SvelteKit error';\n\n\t// not available in every browser, in which case the stack also includes these two frames\n\tError.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError`) rather than throwing it. Unlike `capture_error` in `./server.js`, this can be\n * bundled for browsers, so the thrown error only contains the URL in production\n * @param {() => never} fn A function that calls a generated `client-errors` or `shared-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/**\n * A fake asset path used in `vite dev` and `vite preview`, so that we can\n * serve local assets while verifying that requests are correctly prefixed\n */\nexport const SVELTE_KIT_ASSETS = '/_svelte_kit_assets';\n\nexport const GENERATED_COMMENT = '// this file is generated — do not edit it';\n\nexport const ENDPOINT_METHODS = [\n\t'GET',\n\t'POST',\n\t'PUT',\n\t'PATCH',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY'\n];\n\nexport const MUTATIVE_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE'];\n\n/** methods whose responses depend on the request body, so they can never be prerendered */\nexport const BODY_DEPENDENT_METHODS = [...MUTATIVE_METHODS, 'QUERY'];\n\nexport const PAGE_METHODS = ['GET', 'POST', 'HEAD'];\n\nexport const SRC_ROOT = import.meta.dirname;\n\n// eslint-disable-next-line n/prefer-global/process\nexport const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;\n\n/**\n * If an an adapter deploys a catch-all serverless function, the rerouted URL\n * is stored in this header.\n */\nexport const REROUTED_URL_HEADER = 'x-sveltekit-rerouted-url';\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RequestStore } from 'types' */\n/** @import { AsyncLocalStorage } from 'node:async_hooks' */\nimport { IN_WEBCONTAINER } from '../../../constants.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/** @type {RequestStore | null} */\nlet sync_store = null;\n\n/** @type {AsyncLocalStorage<RequestStore | null> | null} */\nlet als;\n\nimport('node:async_hooks')\n\t.then((hooks) => (als = new hooks.AsyncLocalStorage()))\n\t.catch(() => {\n\t\t// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.\n\t\t// this isn't behind `supports` because it's basically just StackBlitz (i.e.\n\t\t// in-browser usage) that doesn't support it AFAICT\n\t});\n\n/**\n * Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).\n *\n * In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).\n * @since 2.20.0\n *\n * @returns {RequestEvent}\n */\nexport function getRequestEvent() {\n\tconst event = try_get_request_store()?.event;\n\n\tif (!event) {\n\t\tif (als) e.request_event_unavailable();\n\t\te.request_event_after_await();\n\t}\n\n\treturn event;\n}\n\nexport function get_request_store() {\n\tconst result = try_get_request_store();\n\tif (!result) {\n\t\tif (als) throw new Error('Could not get the request store. This is an internal error.');\n\t\te.request_store_after_await();\n\t}\n\treturn result;\n}\n\nexport function try_get_request_store() {\n\treturn sync_store ?? als?.getStore() ?? null;\n}\n\n/**\n * @template T\n * @param {RequestStore | null} store\n * @param {() => T} fn\n */\nexport function with_request_store(store, fn) {\n\ttry {\n\t\tsync_store = store;\n\t\treturn als ? als.run(store, fn) : fn();\n\t} finally {\n\t\t// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`\n\t\t// and handle only one request at a time in `src/runtime/server/index.js`.\n\t\tif (!IN_WEBCONTAINER) {\n\t\t\tsync_store = null;\n\t\t}\n\t}\n}\n","/** @import { Span } from '@opentelemetry/api' */\nimport { try_get_request_store } from './event.js';\n\nexport function get_origin() {\n\t// `request.url` rather than `event.url`, which throws inside queries\n\tconst request = try_get_request_store()?.event.request;\n\treturn request && new URL(request.url).origin;\n}\n\n/**\n * @template {{ tracing: { enabled: boolean, root: Span, current: Span } }} T\n * @param {T} event_like\n * @param {Span} current\n * @returns {T}\n */\nexport function merge_tracing(event_like, current) {\n\treturn {\n\t\t...event_like,\n\t\ttracing: {\n\t\t\t...event_like.tracing,\n\t\t\tcurrent\n\t\t}\n\t};\n}\n\nexport {\n\twith_request_store,\n\tgetRequestEvent,\n\tget_request_store,\n\ttry_get_request_store\n} from './event.js';\n\nexport { init_remote_functions } from './remote-functions.js';\n\nexport { init_tracing, otel, record_span } from './telemetry.js';\n\nexport * from '../shared.js';\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { BROWSER, DEV } from 'esm-env';\nimport { throw_error, verbose } from './internal/shared.js';\n\n/**\n * `$app/stores` has been removed in favour of `$app/state`\n * @param {void} _values\n * @returns {never}\n */\nexport function app_stores_removed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('app_stores_removed', `\\`$app/stores\\` has been removed in favour of \\`$app/state\\``, app_stores_removed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/app_stores_removed');\n}\n\n/**\n * Invalid array key `%key%`\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_array_conflict(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_array_conflict', `Invalid array key \\`${_values.key}\\``, form_field_array_conflict);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_array_conflict');\n}\n\n/**\n * Form cannot contain duplicated keys — `%name%` has %count% values\n * @param {{ \"name\": string; \"count\": string }} _values\n * @returns {never}\n */\nexport function form_field_duplicate(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_duplicate', `Form cannot contain duplicated keys — \\`${_values.name}\\` has ${_values.count} values`, form_field_duplicate);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_duplicate');\n}\n\n/**\n * Invalid key `%key%`: This key is not allowed to prevent prototype pollution.\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_forbidden_key(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_forbidden_key', `Invalid key \\`${_values.key}\\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_forbidden_key');\n}\n\n/**\n * Invalid field name `%name%`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_invalid_name(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_invalid_name', `Invalid field name \\`${_values.name}\\`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields`, form_field_invalid_name);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_invalid_name');\n}\n\n/**\n * Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_unbound(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_unbound', `Form contained a field that wasn't created with \\`form.fields.as(...)\\`: \\`${_values.name}\\``, form_field_unbound);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_unbound');\n}\n\n/**\n * %type% inputs must have a value\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function form_input_missing_value(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_input_missing_value', `${_values.type} inputs must have a value`, form_input_missing_value);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_input_missing_value');\n}\n\n/**\n * HTTP error status codes must be between 400 and 599 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_error_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_error_status', `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_error_status');\n}\n\n/**\n * Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)\n * @param {{ \"key\": string; \"exports\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)` : `Invalid export \\`${_values.key}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)`), invalid_export);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export');\n}\n\n/**\n * Invalid export `%key%` (`%key%` is a valid export in %locations%)\n * @param {{ \"key\": string; \"locations\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export_location(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export_location', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})` : `Invalid export \\`${_values.key}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})`), invalid_export_location);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export_location');\n}\n\n/**\n * Redirect status codes must be between 300 and 308 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_redirect_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_redirect_status', `Redirect status codes must be between 300 and 308 — ${_values.status} is invalid`, invalid_redirect_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_redirect_status');\n}\n\n/**\n * a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)\n * @param {{ \"location\": string; \"type\": string }} _values\n * @returns {never}\n */\nexport function load_invalid_response(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('load_invalid_response', `a \\`load\\` function ${_values.location} returned ${_values.type}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`, load_invalid_response);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/load_invalid_response');\n}\n\n/**\n * Cannot use `match(...)` inside a service worker, as it depends on the SvelteKit client instance\n * @param {void} _values\n * @returns {never}\n */\nexport function match_in_service_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('match_in_service_worker', `Cannot use \\`match(...)\\` inside a service worker, as it depends on the SvelteKit client instance`, match_in_service_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/match_in_service_worker');\n}\n\n/**\n * Invalid param definition\n * @param {void} _values\n * @returns {never}\n */\nexport function param_definition_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_definition_invalid', `Invalid param definition`, param_definition_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_definition_invalid');\n}\n\n/**\n * Async param matchers are not supported\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_async(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_async', `Async param matchers are not supported`, param_matcher_async);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_async');\n}\n\n/**\n * Param matcher must return a string, number, boolean, or bigint\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_result_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_result_invalid', `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_result_invalid');\n}\n\n/**\n * Cannot redirect to `%location%` with `{ external: true }`. The `javascript:` and `data:` protocols must be explicitly listed in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_javascript(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_javascript', `Cannot redirect to \\`${_values.location}\\` with \\`{ external: true }\\`. The \\`javascript:\\` and \\`data:\\` protocols must be explicitly listed in the \\`external\\` allowlist`, redirect_external_javascript);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_javascript');\n}\n\n/**\n * Cannot redirect to external URL `%location%`. To redirect to an external URL, pass `{ external: true }` or an allowlist of permitted origins as the third argument to `redirect`\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_allowed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_allowed', `Cannot redirect to external URL \\`${_values.location}\\`. To redirect to an external URL, pass \\`{ external: true }\\` or an allowlist of permitted origins as the third argument to \\`redirect\\``, redirect_external_not_allowed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_allowed');\n}\n\n/**\n * Cannot redirect to `%location%`: URL origin is not included in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_in_allowlist(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_in_allowlist', `Cannot redirect to \\`${_values.location}\\`: URL origin is not included in the \\`external\\` allowlist`, redirect_external_not_in_allowlist);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_in_allowlist');\n}\n\n/**\n * `redirect` `options.external` must be `true` or an array of allowed origins\n * @param {void} _values\n * @returns {never}\n */\nexport function redirect_external_option_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_option_invalid', `\\`redirect\\` \\`options.external\\` must be \\`true\\` or an array of allowed origins`, redirect_external_option_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_option_invalid');\n}\n\n/**\n * %type% are not valid remote function arguments\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function remote_argument_unsupported(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('remote_argument_unsupported', `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/remote_argument_unsupported');\n}\n\n/**\n * Missing params for dynamic route ID `%id%`\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_params_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_params_missing', `Missing params for dynamic route ID \\`${_values.id}\\``, resolve_params_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_params_missing');\n}\n\n/**\n * Missing parameter `%name%` in route `%id%`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_missing', `Missing parameter \\`${_values.name}\\` in route \\`${_values.id}\\``, route_param_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_missing');\n}\n\n/**\n * Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_slash(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_slash', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` cannot start or end with a slash — this would cause an invalid route like \\`foo/bar\\``, route_param_slash);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_slash');\n}\n\n/**\n * Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_value_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_value_invalid', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` must be a string, number, boolean, or bigint`, route_param_value_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_value_invalid');\n}\n\n/**\n * Page options are ignored when `router.type === 'hash'` (`%source%` has %options%)\n * @param {{ \"source\": string; \"options\": string }} _values\n * @returns {never}\n */\nexport function router_hash_page_options(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('router_hash_page_options', `Page options are ignored when \\`router.type === 'hash'\\` (\\`${_values.source}\\` has ${_values.options})`, router_hash_page_options);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/router_hash_page_options');\n}\n\n/**\n * The `$app/service-worker` module can only be imported into a service worker\n * @param {void} _values\n * @returns {never}\n */\nexport function service_worker_module_outside_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('service_worker_module_outside_worker', `The \\`$app/service-worker\\` module can only be imported into a service worker`, service_worker_module_outside_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/service_worker_module_outside_worker');\n}\n\n/**\n * Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead\n * @param {void} _values\n * @returns {never}\n */\nexport function url_hash_unavailable(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('url_hash_unavailable', `Cannot access \\`event.url.hash\\`. Consider using \\`page.url.hash\\` inside a component instead`, url_hash_unavailable);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/url_hash_unavailable');\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport * as e from '../messages/shared-errors.js';\nimport * as server_errors from '../messages/server-errors.js';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]*:/i;\n\nconst internal = new URL('a://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nexport function 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 * @param {string} location\n * @param {string} allowed\n */\nexport function matches_external_allowlist_entry(location, allowed) {\n\tif (location === allowed) return true;\n\n\t// TODO replace the try/catch with `URL.parse` when browser support allows (Chrome 126, Firefox 126, Safari 18)\n\ttry {\n\t\tconst allow = new URL(allowed);\n\t\tconst loc = new URL(location, allow);\n\n\t\t// this is stricter than `loc.origin === allow.origin`, which can fail in `blob:` cases\n\t\treturn loc.protocol === allow.protocol && loc.host === allow.host;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/** @type {string} */ param, /** @type {string[]} */ ...rest) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t * @type {(keyof URL)[]}\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\treturn e.url_hash_unavailable();\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\treturn server_errors.url_search_unavailable_prerender({ property });\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","// we use the export subpath to conditionally import the client/server `get_origin`\n// so that `node:async_hooks` isn't pulled into the client build\nimport { get_origin } from '#internal';\nimport { matches_external_allowlist_entry } from '../utils/url.js';\nimport * as e from '../messages/shared-errors.js';\n\n// See https://datatracker.ietf.org/doc/html/rfc2606 - no domains under the .invalid TLD can be registered\nconst REDIRECT_BASE = 'https://sveltekit-redirect.invalid';\n\n/**\n * Whether a redirect location is absolute, i.e. not a root-relative or path-relative URL,\n * and not pointing to the same origin as we're currently on (if determineable).\n * @param {string} location\n */\nexport function is_external_location(location) {\n\tconst origin = get_origin();\n\n\ttry {\n\t\treturn !matches_external_allowlist_entry(location, origin ?? REDIRECT_BASE);\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst javascript_protocols = new Set(['javascript:', 'data:']);\n\n/**\n * @param {string} location\n */\nfunction is_javascript_location(location) {\n\ttry {\n\t\treturn javascript_protocols.has(new URL(location, REDIRECT_BASE).protocol);\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} location\n * @param {{ external?: boolean | string[] }} [options]\n */\nexport function validate_redirect_location(location, options) {\n\tif (!is_external_location(location)) return;\n\n\tconst external = options?.external;\n\n\tif (!external) {\n\t\te.redirect_external_not_allowed({ location: JSON.stringify(location) });\n\t}\n\n\tif (external === true) {\n\t\tif (is_javascript_location(location)) {\n\t\t\te.redirect_external_javascript({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\tif (Array.isArray(external)) {\n\t\tif (!external.some((allowed) => matches_external_allowlist_entry(location, allowed))) {\n\t\t\te.redirect_external_not_in_allowlist({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\te.redirect_external_option_invalid();\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\nimport { bold, normal } from './internal/shared.js';\n\n/**\n * `$app/environment` is deprecated, use `$app/env` instead\n * @param {void} _values\n */\nexport function app_environment_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'app_environment_deprecated'}\\n%c${`\\`$app/environment\\` is deprecated, use \\`$app/env\\` instead`}\\nhttps://svelte.dev/e/kit/${'app_environment_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/app_environment_deprecated');\n\t}\n}\n\n/**\n * `asset('%path%')` should now be `asset('%fixed%')`\n * @param {{ \"path\": string; \"fixed\": string }} _values\n */\nexport function asset_leading_slash(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'asset_leading_slash'}\\n%c${`\\`asset('${_values.path}')\\` should now be \\`asset('${_values.fixed}')\\``}\\nhttps://svelte.dev/e/kit/${'asset_leading_slash'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/asset_leading_slash');\n\t}\n}\n\n/**\n * `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme\n * @param {{ \"route\": string; \"dependency\": string; \"scheme\": string }} _values\n */\nexport function depends_special_scheme(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'depends_special_scheme'}\\n%c${`\\`${_values.route}\\`: Calling \\`depends('${_values.dependency}')\\` will throw an error in Firefox because \\`${_values.scheme}\\` is a special URI scheme`}\\nhttps://svelte.dev/e/kit/${'depends_special_scheme'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/depends_special_scheme');\n\t}\n}\n\n/**\n * `%module%` is deprecated, use `%replacement%` instead\n * @param {{ \"module\": string; \"replacement\": string }} _values\n */\nexport function env_module_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'env_module_deprecated'}\\n%c${`\\`${_values.module}\\` is deprecated, use \\`${_values.replacement}\\` instead`}\\nhttps://svelte.dev/e/kit/${'env_module_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/env_module_deprecated');\n\t}\n}\n\n/**\n * Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {void} _values\n */\nexport function error_body_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'error_body_deprecated'}\\n%c${`Passing an \\`App.Error\\` body as the second argument is deprecated — pass the \\`message\\` as the second argument, and any additional properties as the third`}\\nhttps://svelte.dev/e/kit/${'error_body_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/error_body_deprecated');\n\t}\n}\n\n/**\n * The properties of `form.fields` are virtual, so operators like `in` and `Object.keys` are meaningless. If you need the current value of a form field, use `form.fields.x.value()`\n * @param {void} _values\n */\nexport function form_fields_enumerated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'form_fields_enumerated'}\\n%c${`The properties of \\`form.fields\\` are virtual, so operators like \\`in\\` and \\`Object.keys\\` are meaningless. If you need the current value of a form field, use \\`form.fields.x.value()\\``}\\nhttps://svelte.dev/e/kit/${'form_fields_enumerated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/form_fields_enumerated');\n\t}\n}\n\n/**\n * The `message` property of `handleError` is deprecated. Use `error.message` for expected and framework errors, or `'Internal Error'` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_message_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_message_deprecated'}\\n%c${`The \\`message\\` property of \\`handleError\\` is deprecated. Use \\`error.message\\` for expected and framework errors, or \\`'Internal Error'\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_message_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_message_deprecated');\n\t}\n}\n\n/**\n * The `status` property of `handleError` is deprecated. Use `error.status` for expected and framework errors, or `500` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_status_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_status_deprecated'}\\n%c${`The \\`status\\` property of \\`handleError\\` is deprecated. Use \\`error.status\\` for expected and framework errors, or \\`500\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_status_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_status_deprecated');\n\t}\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/shared.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { validate_redirect_location } from './url.js';\nimport * as e from '../messages/shared-errors.js';\nimport * as w from '../messages/shared-warnings.js';\n\nconst text_encoder = new TextEncoder();\n\nexport { VERSION } from '../version.js';\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} [message] The error message.\n * @overload\n * @param {{ status: number; message: string } extends App.Error ? number : never} status\n * @param {{ status: number; message: string } extends App.Error ? string : never} [message]\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} message The error message.\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties Additional properties of the App.Error type.\n * @overload\n * @param {number} status\n * @param {string} message\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @deprecated Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {any} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {any} [message] A string, or (deprecated) a partial App.Error object\n * @param {any} [properties] Additional properties of the App.Error type when passing a string message.\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, message, properties) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\te.invalid_error_status({ status: String(status) });\n\t}\n\n\tif (message !== undefined && typeof message !== 'string') {\n\t\tif (DEV) {\n\t\t\tw.error_body_deprecated();\n\t\t}\n\n\t\t({ message, ...properties } = message);\n\t}\n\n\tthrow new HttpError({ ...properties, status, message: message ?? `Error: ${status}` });\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (import('./public.js').HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @param {{ external?: boolean | string[] }} [options] To redirect to an external URL, you must pass `{ external: true }` to allow any external URL except `javascript:` URLs, or `{ external: [...] }` with an allowlist of permitted origins.\n * @throws {import('./public.js').Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid, the location cannot be used as a header value, or the location is an external URL without permission.\n * @return {never}\n */\nexport function redirect(status, location, options) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\te.invalid_redirect_status({ status: String(status) });\n\t}\n\n\tconst href = location.toString();\n\tvalidate_redirect_location(href, options);\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\thref\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n * @deprecated use `Response.json`\n */\nexport function json(data, init) {\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n * @deprecated use `new Response`\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '#lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is a validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ValidationError}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"ignoreList":[0,1,2,3,4,5,6,7,8],"mappings":";;;;;;;AAIA,IAAW,UAAU;AAErB,SAAgB,wBAAwB;CACvC,UAAU;AACX;;;;;;AAQA,IAAa,OAAO;AACpB,IAAa,S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,QACA,IACD;AACD;;;;;;AAOA,SAAgB,WAAW,GAAG;CAC7B,OAAO,aAAa;AACrB;;;;;;;AAmCA,SAAgB,KAAK,MAAM,MAAM;CAChC,MAAM,UAAU,IAAI,QAAQ,MAAM,OAAO;CACzC,IAAI,CAAC,QAAQ,IAAI,gBAAgB,GAAG;EACnC,MAAM,UAAU,aAAa,OAAO,IAAI;EACxC,QAAQ,IAAI,kBAAkB,QAAQ,WAAW,SAAS,CAAC;EAC3D,OAAO,IAAI,SAAS,SAAS;GAC5B,GAAG;GACH;EACD,CAAC;CACF;CAEA,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF"}
|
|
1
|
+
{"version":3,"file":"exports.js","names":["e.url_hash_unavailable","server_errors.url_search_unavailable_prerender"],"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/messages/internal/shared.js","../../../../../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","../../../../../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","../../../../../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","../../../../../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","../../../../../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","../../../../../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","../../../../../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","../../../../../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"],"sourcesContent":["/**\n * Whether shared errors include their full text on the server even though `DEV` is false. This is\n * enabled while the app is being built (analysed or prerendered)\n */\nexport let verbose = false;\n\nexport function enable_verbose_errors() {\n\tverbose = true;\n}\n\n/**\n * @typedef {{ element?: Element }} ClientWarningOptions\n * - `element`: logged after the warning, so that it can be inspected in the browser's devtools\n */\n\n/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */\nexport const bold = 'font-weight: bold';\nexport const normal = 'font-weight: normal';\n\n/**\n * Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so\n * bundlers can remove both this call and the message text from production browser builds\n * @param {string} code\n * @param {string} message\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, caller) {\n\tconst error = new Error(`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`);\n\terror.name = 'SvelteKit error';\n\n\t// not available in every browser, in which case the stack also includes these two frames\n\tError.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError`) rather than throwing it. Unlike `capture_error` in `./server.js`, this can be\n * bundled for browsers, so the thrown error only contains the URL in production\n * @param {() => never} fn A function that calls a generated `client-errors` or `shared-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/**\n * A fake asset path used in `vite dev` and `vite preview`, so that we can\n * serve local assets while verifying that requests are correctly prefixed\n */\nexport const SVELTE_KIT_ASSETS = '/_svelte_kit_assets';\n\nexport const GENERATED_COMMENT = '// this file is generated — do not edit it';\n\nexport const ENDPOINT_METHODS = [\n\t'GET',\n\t'POST',\n\t'PUT',\n\t'PATCH',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY'\n];\n\nexport const MUTATIVE_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE'];\n\n/** methods whose responses depend on the request body, so they can never be prerendered */\nexport const BODY_DEPENDENT_METHODS = [...MUTATIVE_METHODS, 'QUERY'];\n\nexport const PAGE_METHODS = ['GET', 'POST', 'HEAD'];\n\nexport const SRC_ROOT = import.meta.dirname;\n\n// eslint-disable-next-line n/prefer-global/process\nexport const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;\n\n/**\n * If an an adapter deploys a catch-all serverless function, the rerouted URL\n * is stored in this header.\n */\nexport const REROUTED_URL_HEADER = 'x-sveltekit-rerouted-url';\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RequestStore } from 'types' */\n/** @import { AsyncLocalStorage } from 'node:async_hooks' */\nimport { IN_WEBCONTAINER } from '../../../constants.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/** @type {RequestStore | null} */\nlet sync_store = null;\n\n/** @type {AsyncLocalStorage<RequestStore | null> | null} */\nlet als;\n\nimport('node:async_hooks')\n\t.then((hooks) => (als = new hooks.AsyncLocalStorage()))\n\t.catch(() => {\n\t\t// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.\n\t\t// this isn't behind `supports` because it's basically just StackBlitz (i.e.\n\t\t// in-browser usage) that doesn't support it AFAICT\n\t});\n\n/**\n * Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).\n *\n * In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).\n * @since 2.20.0\n *\n * @returns {RequestEvent}\n */\nexport function getRequestEvent() {\n\tconst event = try_get_request_store()?.event;\n\n\tif (!event) {\n\t\tif (als) e.request_event_unavailable();\n\t\te.request_event_after_await();\n\t}\n\n\treturn event;\n}\n\nexport function get_request_store() {\n\tconst result = try_get_request_store();\n\tif (!result) {\n\t\tif (als) throw new Error('Could not get the request store. This is an internal error.');\n\t\te.request_store_after_await();\n\t}\n\treturn result;\n}\n\nexport function try_get_request_store() {\n\treturn sync_store ?? als?.getStore() ?? null;\n}\n\n/**\n * @template T\n * @param {RequestStore | null} store\n * @param {() => T} fn\n */\nexport function with_request_store(store, fn) {\n\ttry {\n\t\tsync_store = store;\n\t\treturn als ? als.run(store, fn) : fn();\n\t} finally {\n\t\t// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`\n\t\t// and handle only one request at a time in `src/runtime/server/index.js`.\n\t\tif (!IN_WEBCONTAINER) {\n\t\t\tsync_store = null;\n\t\t}\n\t}\n}\n","/** @import { Span } from '@opentelemetry/api' */\nimport { try_get_request_store } from './event.js';\n\nexport function get_origin() {\n\t// `request.url` rather than `event.url`, which throws inside queries\n\tconst request = try_get_request_store()?.event.request;\n\treturn request && new URL(request.url).origin;\n}\n\n/**\n * @template {{ tracing: { enabled: boolean, root: Span, current: Span } }} T\n * @param {T} event_like\n * @param {Span} current\n * @returns {T}\n */\nexport function merge_tracing(event_like, current) {\n\treturn {\n\t\t...event_like,\n\t\ttracing: {\n\t\t\t...event_like.tracing,\n\t\t\tcurrent\n\t\t}\n\t};\n}\n\nexport {\n\twith_request_store,\n\tgetRequestEvent,\n\tget_request_store,\n\ttry_get_request_store\n} from './event.js';\n\nexport { init_remote_functions } from './remote-functions.js';\n\nexport { init_tracing, otel, record_span } from './telemetry.js';\n\nexport * from '../shared.js';\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { BROWSER, DEV } from 'esm-env';\nimport { throw_error, verbose } from './internal/shared.js';\n\n/**\n * `$app/stores` has been removed in favour of `$app/state`\n * @param {void} _values\n * @returns {never}\n */\nexport function app_stores_removed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('app_stores_removed', `\\`$app/stores\\` has been removed in favour of \\`$app/state\\``, app_stores_removed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/app_stores_removed');\n}\n\n/**\n * Invalid array key `%key%`\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_array_conflict(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_array_conflict', `Invalid array key \\`${_values.key}\\``, form_field_array_conflict);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_array_conflict');\n}\n\n/**\n * Form cannot contain duplicated keys — `%name%` has %count% values\n * @param {{ \"name\": string; \"count\": string }} _values\n * @returns {never}\n */\nexport function form_field_duplicate(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_duplicate', `Form cannot contain duplicated keys — \\`${_values.name}\\` has ${_values.count} values`, form_field_duplicate);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_duplicate');\n}\n\n/**\n * Invalid key `%key%`: This key is not allowed to prevent prototype pollution.\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_forbidden_key(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_forbidden_key', `Invalid key \\`${_values.key}\\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_forbidden_key');\n}\n\n/**\n * Invalid field name `%name%`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_invalid_name(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_invalid_name', `Invalid field name \\`${_values.name}\\`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields`, form_field_invalid_name);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_invalid_name');\n}\n\n/**\n * Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_unbound(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_unbound', `Form contained a field that wasn't created with \\`form.fields.as(...)\\`: \\`${_values.name}\\``, form_field_unbound);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_unbound');\n}\n\n/**\n * %type% inputs must have a value\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function form_input_missing_value(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_input_missing_value', `${_values.type} inputs must have a value`, form_input_missing_value);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_input_missing_value');\n}\n\n/**\n * HTTP error status codes must be between 400 and 599 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_error_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_error_status', `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_error_status');\n}\n\n/**\n * Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)\n * @param {{ \"key\": string; \"exports\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)` : `Invalid export \\`${_values.key}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)`), invalid_export);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export');\n}\n\n/**\n * Invalid export `%key%` (`%key%` is a valid export in %locations%)\n * @param {{ \"key\": string; \"locations\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export_location(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export_location', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})` : `Invalid export \\`${_values.key}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})`), invalid_export_location);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export_location');\n}\n\n/**\n * Redirect status codes must be between 300 and 308 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_redirect_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_redirect_status', `Redirect status codes must be between 300 and 308 — ${_values.status} is invalid`, invalid_redirect_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_redirect_status');\n}\n\n/**\n * a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)\n * @param {{ \"location\": string; \"type\": string }} _values\n * @returns {never}\n */\nexport function load_invalid_response(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('load_invalid_response', `a \\`load\\` function ${_values.location} returned ${_values.type}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`, load_invalid_response);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/load_invalid_response');\n}\n\n/**\n * Cannot use `match(...)` inside a service worker, as it depends on the SvelteKit client instance\n * @param {void} _values\n * @returns {never}\n */\nexport function match_in_service_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('match_in_service_worker', `Cannot use \\`match(...)\\` inside a service worker, as it depends on the SvelteKit client instance`, match_in_service_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/match_in_service_worker');\n}\n\n/**\n * Invalid param definition\n * @param {void} _values\n * @returns {never}\n */\nexport function param_definition_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_definition_invalid', `Invalid param definition`, param_definition_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_definition_invalid');\n}\n\n/**\n * Async param matchers are not supported\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_async(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_async', `Async param matchers are not supported`, param_matcher_async);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_async');\n}\n\n/**\n * Param matcher must return a string, number, boolean, or bigint\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_result_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_result_invalid', `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_result_invalid');\n}\n\n/**\n * Cannot redirect to `%location%` with `{ external: true }`. The `javascript:` and `data:` protocols must be explicitly listed in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_javascript(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_javascript', `Cannot redirect to \\`${_values.location}\\` with \\`{ external: true }\\`. The \\`javascript:\\` and \\`data:\\` protocols must be explicitly listed in the \\`external\\` allowlist`, redirect_external_javascript);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_javascript');\n}\n\n/**\n * Cannot redirect to external URL `%location%`. To redirect to an external URL, pass `{ external: true }` or an allowlist of permitted origins as the third argument to `redirect`\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_allowed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_allowed', `Cannot redirect to external URL \\`${_values.location}\\`. To redirect to an external URL, pass \\`{ external: true }\\` or an allowlist of permitted origins as the third argument to \\`redirect\\``, redirect_external_not_allowed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_allowed');\n}\n\n/**\n * Cannot redirect to `%location%`: URL origin is not included in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_in_allowlist(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_in_allowlist', `Cannot redirect to \\`${_values.location}\\`: URL origin is not included in the \\`external\\` allowlist`, redirect_external_not_in_allowlist);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_in_allowlist');\n}\n\n/**\n * `redirect` `options.external` must be `true` or an array of allowed origins\n * @param {void} _values\n * @returns {never}\n */\nexport function redirect_external_option_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_option_invalid', `\\`redirect\\` \\`options.external\\` must be \\`true\\` or an array of allowed origins`, redirect_external_option_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_option_invalid');\n}\n\n/**\n * %type% are not valid remote function arguments\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function remote_argument_unsupported(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('remote_argument_unsupported', `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/remote_argument_unsupported');\n}\n\n/**\n * Missing params for dynamic route ID `%id%`\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_params_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_params_missing', `Missing params for dynamic route ID \\`${_values.id}\\``, resolve_params_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_params_missing');\n}\n\n/**\n * Missing parameter `%name%` in route `%id%`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_missing', `Missing parameter \\`${_values.name}\\` in route \\`${_values.id}\\``, route_param_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_missing');\n}\n\n/**\n * Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_slash(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_slash', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` cannot start or end with a slash — this would cause an invalid route like \\`foo/bar\\``, route_param_slash);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_slash');\n}\n\n/**\n * Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_value_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_value_invalid', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` must be a string, number, boolean, or bigint`, route_param_value_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_value_invalid');\n}\n\n/**\n * Page options are ignored when `router.type === 'hash'` (`%source%` has %options%)\n * @param {{ \"source\": string; \"options\": string }} _values\n * @returns {never}\n */\nexport function router_hash_page_options(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('router_hash_page_options', `Page options are ignored when \\`router.type === 'hash'\\` (\\`${_values.source}\\` has ${_values.options})`, router_hash_page_options);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/router_hash_page_options');\n}\n\n/**\n * The `$app/service-worker` module can only be imported into a service worker\n * @param {void} _values\n * @returns {never}\n */\nexport function service_worker_module_outside_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('service_worker_module_outside_worker', `The \\`$app/service-worker\\` module can only be imported into a service worker`, service_worker_module_outside_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/service_worker_module_outside_worker');\n}\n\n/**\n * Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead\n * @param {void} _values\n * @returns {never}\n */\nexport function url_hash_unavailable(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('url_hash_unavailable', `Cannot access \\`event.url.hash\\`. Consider using \\`page.url.hash\\` inside a component instead`, url_hash_unavailable);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/url_hash_unavailable');\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport * as e from '../messages/shared-errors.js';\nimport * as server_errors from '../messages/server-errors.js';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]*:/i;\n\nconst internal = new URL('a://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nexport function 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 * @param {string} location\n * @param {string} allowed\n */\nexport function matches_external_allowlist_entry(location, allowed) {\n\tif (location === allowed) return true;\n\n\t// TODO replace the try/catch with `URL.parse` when browser support allows (Chrome 126, Firefox 126, Safari 18)\n\ttry {\n\t\tconst allow = new URL(allowed);\n\t\tconst loc = new URL(location, allow);\n\n\t\t// this is stricter than `loc.origin === allow.origin`, which can fail in `blob:` cases\n\t\treturn loc.protocol === allow.protocol && loc.host === allow.host;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/** @type {string} */ param, /** @type {string[]} */ ...rest) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t * @type {(keyof URL)[]}\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\treturn e.url_hash_unavailable();\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\treturn server_errors.url_search_unavailable_prerender({ property });\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","// we use the export subpath to conditionally import the client/server `get_origin`\n// so that `node:async_hooks` isn't pulled into the client build\nimport { get_origin } from '#internal';\nimport { matches_external_allowlist_entry } from '../utils/url.js';\nimport * as e from '../messages/shared-errors.js';\n\n// See https://datatracker.ietf.org/doc/html/rfc2606 - no domains under the .invalid TLD can be registered\nconst REDIRECT_BASE = 'https://sveltekit-redirect.invalid';\n\n/**\n * Whether a redirect location is absolute, i.e. not a root-relative or path-relative URL,\n * and not pointing to the same origin as we're currently on (if determineable).\n * @param {string} location\n */\nexport function is_external_location(location) {\n\tconst origin = get_origin();\n\n\ttry {\n\t\treturn !matches_external_allowlist_entry(location, origin ?? REDIRECT_BASE);\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst javascript_protocols = new Set(['javascript:', 'data:']);\n\n/**\n * @param {string} location\n */\nfunction is_javascript_location(location) {\n\ttry {\n\t\treturn javascript_protocols.has(new URL(location, REDIRECT_BASE).protocol);\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} location\n * @param {{ external?: boolean | string[] }} [options]\n */\nexport function validate_redirect_location(location, options) {\n\tif (!is_external_location(location)) return;\n\n\tconst external = options?.external;\n\n\tif (!external) {\n\t\te.redirect_external_not_allowed({ location: JSON.stringify(location) });\n\t}\n\n\tif (external === true) {\n\t\tif (is_javascript_location(location)) {\n\t\t\te.redirect_external_javascript({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\tif (Array.isArray(external)) {\n\t\tif (!external.some((allowed) => matches_external_allowlist_entry(location, allowed))) {\n\t\t\te.redirect_external_not_in_allowlist({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\te.redirect_external_option_invalid();\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\nimport { bold, normal } from './internal/shared.js';\n\n/**\n * `$app/environment` is deprecated, use `$app/env` instead\n * @param {void} _values\n */\nexport function app_environment_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'app_environment_deprecated'}\\n%c${`\\`$app/environment\\` is deprecated, use \\`$app/env\\` instead`}\\nhttps://svelte.dev/e/kit/${'app_environment_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/app_environment_deprecated');\n\t}\n}\n\n/**\n * `asset('%path%')` should now be `asset('%fixed%')`\n * @param {{ \"path\": string; \"fixed\": string }} _values\n */\nexport function asset_leading_slash(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'asset_leading_slash'}\\n%c${`\\`asset('${_values.path}')\\` should now be \\`asset('${_values.fixed}')\\``}\\nhttps://svelte.dev/e/kit/${'asset_leading_slash'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/asset_leading_slash');\n\t}\n}\n\n/**\n * `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme\n * @param {{ \"route\": string; \"dependency\": string; \"scheme\": string }} _values\n */\nexport function depends_special_scheme(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'depends_special_scheme'}\\n%c${`\\`${_values.route}\\`: Calling \\`depends('${_values.dependency}')\\` will throw an error in Firefox because \\`${_values.scheme}\\` is a special URI scheme`}\\nhttps://svelte.dev/e/kit/${'depends_special_scheme'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/depends_special_scheme');\n\t}\n}\n\n/**\n * `%module%` is deprecated, use `%replacement%` instead\n * @param {{ \"module\": string; \"replacement\": string }} _values\n */\nexport function env_module_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'env_module_deprecated'}\\n%c${`\\`${_values.module}\\` is deprecated, use \\`${_values.replacement}\\` instead`}\\nhttps://svelte.dev/e/kit/${'env_module_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/env_module_deprecated');\n\t}\n}\n\n/**\n * Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {void} _values\n */\nexport function error_body_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'error_body_deprecated'}\\n%c${`Passing an \\`App.Error\\` body as the second argument is deprecated — pass the \\`message\\` as the second argument, and any additional properties as the third`}\\nhttps://svelte.dev/e/kit/${'error_body_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/error_body_deprecated');\n\t}\n}\n\n/**\n * The properties of `form.fields` are virtual, so operators like `in` and `Object.keys` are meaningless. If you need the current value of a form field, use `form.fields.x.value()`\n * @param {void} _values\n */\nexport function form_fields_enumerated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'form_fields_enumerated'}\\n%c${`The properties of \\`form.fields\\` are virtual, so operators like \\`in\\` and \\`Object.keys\\` are meaningless. If you need the current value of a form field, use \\`form.fields.x.value()\\``}\\nhttps://svelte.dev/e/kit/${'form_fields_enumerated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/form_fields_enumerated');\n\t}\n}\n\n/**\n * The `message` property of `handleError` is deprecated. Use `error.message` for expected and framework errors, or `'Internal Error'` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_message_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_message_deprecated'}\\n%c${`The \\`message\\` property of \\`handleError\\` is deprecated. Use \\`error.message\\` for expected and framework errors, or \\`'Internal Error'\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_message_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_message_deprecated');\n\t}\n}\n\n/**\n * The `status` property of `handleError` is deprecated. Use `error.status` for expected and framework errors, or `500` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_status_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_status_deprecated'}\\n%c${`The \\`status\\` property of \\`handleError\\` is deprecated. Use \\`error.status\\` for expected and framework errors, or \\`500\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_status_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_status_deprecated');\n\t}\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/shared.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { validate_redirect_location } from './url.js';\nimport * as e from '../messages/shared-errors.js';\nimport * as w from '../messages/shared-warnings.js';\n\nconst text_encoder = new TextEncoder();\n\nexport { VERSION } from '../version.js';\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} [message] The error message.\n * @overload\n * @param {{ status: number; message: string } extends App.Error ? number : never} status\n * @param {{ status: number; message: string } extends App.Error ? string : never} [message]\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} message The error message.\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties Additional properties of the App.Error type.\n * @overload\n * @param {number} status\n * @param {string} message\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @deprecated Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {any} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {any} [message] A string, or (deprecated) a partial App.Error object\n * @param {any} [properties] Additional properties of the App.Error type when passing a string message.\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, message, properties) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\te.invalid_error_status({ status: String(status) });\n\t}\n\n\tif (message !== undefined && typeof message !== 'string') {\n\t\tif (DEV) {\n\t\t\tw.error_body_deprecated();\n\t\t}\n\n\t\t({ message, ...properties } = message);\n\t}\n\n\tthrow new HttpError({ ...properties, status, message: message ?? `Error: ${status}` });\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (import('./public.js').HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @param {{ external?: boolean | string[] }} [options] To redirect to an external URL, you must pass `{ external: true }` to allow any external URL except `javascript:` URLs, or `{ external: [...] }` with an allowlist of permitted origins.\n * @throws {import('./public.js').Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid, the location cannot be used as a header value, or the location is an external URL without permission.\n * @return {never}\n */\nexport function redirect(status, location, options) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\te.invalid_redirect_status({ status: String(status) });\n\t}\n\n\tconst href = location.toString();\n\tvalidate_redirect_location(href, options);\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\thref\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n * @deprecated use `Response.json`\n */\nexport function json(data, init) {\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n * @deprecated use `new Response`\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '#lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is a validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ValidationError}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"ignoreList":[0,1,2,3,4,5,6,7,8],"mappings":";;;;;;;AAIA,IAAW,UAAU;AAErB,SAAgB,wBAAwB;CACvC,UAAU;AACX;;;;;;AAQA,IAAa,OAAO;AACpB,IAAa,SAAS;;;;;;;;;AAUtB,SAAgB,YAAY,MAAM,SAAS,QAAQ;CAClD,MAAM,wBAAQ,IAAI,MAAM,GAAG,KAAK,IAAI,QAAQ,6BAA6B,MAAM;CAC/E,MAAM,OAAO;CAGb,MAAM,oBAAoB,OAAO,MAAM;CAEvC,MAAM;AACP;;;;;;;AC/BA,IAAa,oBAAoB;AAIjC,IAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAEA,IAAa,mBAAmB;CAAC;CAAQ;CAAO;CAAS;AAAQ;;AAGjE,IAAa,yBAAyB,CAAC,GAAG,kBAAkB,OAAO;AAEnE,IAAa,eAAe;CAAC;CAAO;CAAQ;AAAM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5 @@
|
|
|
1
1
|
import { G as server_api_unavailable } from "./server-errors.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
2
|
+
//#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/functions.js
|
|
3
3
|
function noop() {}
|
|
4
4
|
/**
|
|
5
5
|
* @template T
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.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.
|
|
1
|
+
{"version":3,"file":"functions.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/utils/functions.js"],"sourcesContent":["import * as e from '../messages/server-errors.js';\n\nexport function noop() {}\n\n/**\n * @template T\n * @param {() => T} fn\n */\nexport function once(fn) {\n\tlet done = false;\n\n\t/** @type T */\n\tlet result;\n\n\treturn () => {\n\t\tif (done) return result;\n\t\tdone = true;\n\t\treturn (result = fn());\n\t};\n}\n\n/**\n * @param {string} name\n * @param {string} [parens]\n */\nexport function disallow_on_server(name, parens = '(...)') {\n\treturn () => {\n\t\te.server_api_unavailable({ name: `${name}${parens}` });\n\t};\n}\n"],"ignoreList":[0],"mappings":";;AAEA,SAAgB,OAAO,CAAC;;;;;AAMxB,SAAgB,KAAK,IAAI;CACxB,IAAI,OAAO;;CAGX,IAAI;CAEJ,aAAa;EACZ,IAAI,MAAM,OAAO;EACjB,OAAO;EACP,OAAQ,SAAS,GAAG;CACrB;AACD;;;;;AAMA,SAAgB,mBAAmB,MAAM,SAAS,SAAS;CAC1D,aAAa;EACZ,uBAAyB,EAAE,MAAM,GAAG,OAAO,SAAS,CAAC;CACtD;AACD"}
|