screenreader-speech-capture 0.8.2-fix-ui-loopback.21 → 0.9.0-feat-bridge-focus-window.23
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/dist/cli.mjs +918 -250
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/{CM9WugkD.js → 0YgL1EU2.js} +36 -36
- package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CSCPyqWx.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CSCPyqWx.js.br +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CSCPyqWx.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Fimt9aTv.js → Cba3ZwaX.js} +11 -11
- package/dist/ui/client/ui/_app/immutable/chunks/Cba3ZwaX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cba3ZwaX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js +4 -0
- package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/{start.uodUAHNT.js → start.Dluk7nQO.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js +52 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js +5 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{4.DY8qq4Io.js → 4.CMHCNMDn.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +97 -54
- package/dist/ui/server/chunks/composition.js +112 -118
- package/dist/ui/server/chunks/composition.js.map +1 -1
- package/dist/ui/server/chunks/config.js +139 -3
- package/dist/ui/server/chunks/config.js.map +1 -1
- package/dist/ui/server/chunks/exports.js +19 -204
- package/dist/ui/server/chunks/exports.js.map +1 -1
- package/dist/ui/server/chunks/functions.js +1 -1
- package/dist/ui/server/chunks/icon-button.js +1 -1
- package/dist/ui/server/chunks/instance.js +9 -56
- package/dist/ui/server/chunks/instance.js.map +1 -1
- package/dist/ui/server/chunks/internal.js +55 -4
- package/dist/ui/server/chunks/internal.js.map +1 -1
- package/dist/ui/server/chunks/outlined-text-field.js +1 -1
- package/dist/ui/server/chunks/remote-1j2tn2d.js +4 -0
- package/dist/ui/server/chunks/remote.js +1565 -0
- package/dist/ui/server/chunks/remote.js.map +1 -0
- package/dist/ui/server/chunks/scope.js +13 -0
- package/dist/ui/server/chunks/scope.js.map +1 -0
- package/dist/ui/server/chunks/server-errors.js +48 -1
- package/dist/ui/server/chunks/server-errors.js.map +1 -1
- package/dist/ui/server/chunks/server2.js +24 -1
- package/dist/ui/server/chunks/server2.js.map +1 -1
- package/dist/ui/server/chunks/sessions.js +65 -0
- package/dist/ui/server/chunks/sessions.js.map +1 -0
- package/dist/ui/server/chunks/sessions.remote.js +56 -0
- package/dist/ui/server/chunks/sessions.remote.js.map +1 -0
- package/dist/ui/server/chunks/shared-errors.js +214 -0
- package/dist/ui/server/chunks/shared-errors.js.map +1 -0
- package/dist/ui/server/chunks/src.js +112 -42
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +3 -5
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +3 -4
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/_server.ts.js +12 -0
- package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +4 -9
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +2 -3
- package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +6 -9
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js +3 -3
- package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +2 -3
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/fallbacks/error.svelte.js +1 -1
- package/dist/ui/server/entries/hooks.server.js +145 -1
- package/dist/ui/server/entries/hooks.server.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.server.ts.js +2 -3
- package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +4 -2
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.server.ts.js +3 -3
- package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +11 -65
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +3 -2
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/params.js +60 -0
- package/dist/ui/server/entries/params.js.map +1 -0
- package/dist/ui/server/env.js +1 -1
- package/dist/ui/server/index.js +2 -2
- package/dist/ui/server/manifest-full.js +7 -6
- package/dist/ui/server/manifest.js +7 -6
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/1.js +1 -1
- package/dist/ui/server/nodes/2.js +1 -1
- package/dist/ui/server/nodes/3.js +1 -1
- package/dist/ui/server/nodes/4.js +1 -1
- package/dist/ui/server/remote-entry.js +1 -1565
- package/dist/ui/server/server.js +7 -6
- package/package.json +3 -2
- package/dist/ui/client/ui/_app/immutable/chunks/C67ohLw_.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/C67ohLw_.js.br +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/C67ohLw_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CKeiBgOI.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/CKeiBgOI.js.br +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/CKeiBgOI.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CVUOwNb5.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/CVUOwNb5.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CVUOwNb5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js +0 -4
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dksil5Gu.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/Dksil5Gu.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dksil5Gu.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DnL0kOQY.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DnL0kOQY.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/DnL0kOQY.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/h7UQ89-l.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/h7UQ89-l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/h7UQ89-l.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CBrC_IQm.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.CBrC_IQm.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CBrC_IQm.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.uodUAHNT.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.uodUAHNT.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.jZ-iBVjE.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/1.jZ-iBVjE.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/nodes/1.jZ-iBVjE.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.C9mfOUwo.js +0 -52
- package/dist/ui/client/ui/_app/immutable/nodes/2.C9mfOUwo.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.C9mfOUwo.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js +0 -5
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DY8qq4Io.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DY8qq4Io.js.gz +0 -0
- package/dist/ui/server/chunks/bridge-api.js +0 -105
- package/dist/ui/server/chunks/bridge-api.js.map +0 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js +0 -13
- package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js.map +0 -1
- package/dist/ui/server/remote-entry.js.map +0 -1
|
@@ -1,9 +1,145 @@
|
|
|
1
|
+
import { m as env_invalid } from "./server-errors.js";
|
|
2
|
+
// ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/env/index.js
|
|
3
|
+
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
4
|
+
/** @import { DefinedEnvVars, EnvVarConfig } from '@sveltejs/kit/env' */
|
|
5
|
+
/**
|
|
6
|
+
* Utility for defining [environment variables](https://svelte.dev/docs/kit/environment-variables),
|
|
7
|
+
* which are made available via `$app/env/public` and `$app/env/private`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```js
|
|
11
|
+
* import { defineEnvVars } from '@sveltejs/kit/env';
|
|
12
|
+
* import * as v from 'valibot';
|
|
13
|
+
*
|
|
14
|
+
* export const variables = defineEnvVars({
|
|
15
|
+
* API_URL: {
|
|
16
|
+
* schema: v.pipe(v.string(), v.url())
|
|
17
|
+
* },
|
|
18
|
+
* PORT: {
|
|
19
|
+
* schema: (value) => {
|
|
20
|
+
* if (value === undefined) return 3000;
|
|
21
|
+
* const port = Number(value);
|
|
22
|
+
* if (!Number.isInteger(port)) throw new Error('PORT must be an integer');
|
|
23
|
+
* return port;
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @template {Record<string, EnvVarConfig<any>>} T
|
|
30
|
+
* @param {T} variables
|
|
31
|
+
* @returns {DefinedEnvVars<T>}
|
|
32
|
+
*/
|
|
33
|
+
function defineEnvVars(variables) {
|
|
34
|
+
/** @type {Record<string, EnvVarConfig<any>>} */
|
|
35
|
+
const normalized = {};
|
|
36
|
+
for (const [name, config] of Object.entries(variables)) normalized[name] = typeof config.schema === "function" && !("~standard" in config.schema) ? {
|
|
37
|
+
...config,
|
|
38
|
+
schema: normalize_env_schema(config.schema)
|
|
39
|
+
} : config;
|
|
40
|
+
return normalized;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param {(value: string | undefined) => any} fn
|
|
44
|
+
* @returns {StandardSchemaV1<string | undefined, any>}
|
|
45
|
+
*/
|
|
46
|
+
function normalize_env_schema(fn) {
|
|
47
|
+
return { "~standard": { validate(value) {
|
|
48
|
+
let result;
|
|
49
|
+
try {
|
|
50
|
+
result = fn(value);
|
|
51
|
+
} catch (error) {
|
|
52
|
+
return { issues: [{ message: error instanceof Error ? error.message || "Invalid value" : String(error) }] };
|
|
53
|
+
}
|
|
54
|
+
if (result instanceof Promise) return result;
|
|
55
|
+
return { value: result };
|
|
56
|
+
} } };
|
|
57
|
+
}
|
|
58
|
+
// src/env.ts
|
|
59
|
+
/** Where the BFF finds the bridge when `SR_BRIDGE_API_URL` is not set (`pnpm dev:ui` next to `pnpm dev`). */
|
|
60
|
+
var DEFAULT_BRIDGE_URL = "http://127.0.0.1:5151";
|
|
61
|
+
/**
|
|
62
|
+
* The UI's environment, read when the app starts (`$app/env/private`). The bridge sets the
|
|
63
|
+
* variables before it loads the UI; `pnpm dev:ui` also reads `packages/ui/.env.local` (SvelteKit
|
|
64
|
+
* reads the `.env` files in dev only, and a variable set in the shell wins).
|
|
65
|
+
*/
|
|
66
|
+
var variables = defineEnvVars({ SR_BRIDGE_API_URL: {
|
|
67
|
+
description: "The bridge's origin (no path) the BFF calls; default http://127.0.0.1:5151.",
|
|
68
|
+
schema: (value) => {
|
|
69
|
+
if (value === void 0 || value === "") return DEFAULT_BRIDGE_URL;
|
|
70
|
+
if (!URL.canParse(value)) throw new Error(`SR_BRIDGE_API_URL is not a URL: ${value}`);
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
} });
|
|
74
|
+
// ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/utils/format.js
|
|
75
|
+
/**
|
|
76
|
+
* Joins a list as `a`, `a or b` or `a, b or c`, for use in diagnostics
|
|
77
|
+
* @param {string[]} items
|
|
78
|
+
*/
|
|
79
|
+
function join_or(items) {
|
|
80
|
+
return items.length > 1 ? `${items.slice(0, -1).join(", ")} or ${items.at(-1)}` : items[0];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Formats a list with one indented `- item` per line, for use in diagnostics
|
|
84
|
+
* @param {string[]} items
|
|
85
|
+
*/
|
|
86
|
+
function bullet_list(items) {
|
|
87
|
+
return items.map((item) => ` - ${item}`).join("\n");
|
|
88
|
+
}
|
|
89
|
+
// ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/internal/env.js
|
|
90
|
+
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
91
|
+
/** @import { EnvVarConfig } from '@sveltejs/kit/env' */
|
|
92
|
+
var MISSING = { message: `Value is missing. If it is optional, add a validator declaring it as such.` };
|
|
93
|
+
var BAD_VALIDATOR = { message: "Variable was configured with a validator that does not implement Standard Schema" };
|
|
94
|
+
var ASYNC_VALIDATOR = { message: "Variable uses an async validator, which is not supported" };
|
|
95
|
+
/**
|
|
96
|
+
* @param {Record<string, EnvVarConfig<any> | undefined>} variables
|
|
97
|
+
* @param {string | undefined} value
|
|
98
|
+
* @param {string} name
|
|
99
|
+
* @param {Record<string, StandardSchemaV1.Issue[]>} issues
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
function validate(variables, value, name, issues) {
|
|
103
|
+
const validator = (variables[name] ?? {}).schema;
|
|
104
|
+
if (!validator) {
|
|
105
|
+
if (value === void 0) issues[name] = [MISSING];
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
if (!validator["~standard"]) {
|
|
109
|
+
issues[name] = [BAD_VALIDATOR];
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const result = validator["~standard"].validate(value);
|
|
113
|
+
if (result instanceof Promise) {
|
|
114
|
+
issues[name] = [ASYNC_VALIDATOR];
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
if (result.issues) {
|
|
118
|
+
issues[name] = [...result.issues];
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
return result.value;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @param {Record<string, StandardSchemaV1.Issue[]>} issues
|
|
125
|
+
*/
|
|
126
|
+
function handle_issues(issues) {
|
|
127
|
+
const entries = Object.entries(issues);
|
|
128
|
+
if (entries.length === 0) return;
|
|
129
|
+
const list = entries.map(([name, issues]) => `${name}\n${bullet_list(issues.map((issue) => issue.message))}`).join("\n\n");
|
|
130
|
+
env_invalid({ issues: `\n${list}\n` }, { stackless: true });
|
|
131
|
+
}
|
|
1
132
|
// .svelte-kit/generated/build/env/config.js
|
|
2
|
-
var
|
|
133
|
+
var issues = {};
|
|
3
134
|
var dynamic_private_env = {};
|
|
4
135
|
var explicit_public_env = {};
|
|
5
136
|
var rendered_env = {};
|
|
6
|
-
|
|
7
|
-
|
|
137
|
+
handle_issues(issues);
|
|
138
|
+
function set_env(env) {
|
|
139
|
+
const issues = {};
|
|
140
|
+
dynamic_private_env.SR_BRIDGE_API_URL = validate(variables, env.SR_BRIDGE_API_URL, "SR_BRIDGE_API_URL", issues);
|
|
141
|
+
handle_issues(issues);
|
|
142
|
+
}
|
|
143
|
+
export { join_or as a, set_env as i, explicit_public_env as n, variables as o, rendered_env as r, dynamic_private_env as t };
|
|
8
144
|
|
|
9
145
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","names":[],"sources":["../../../.svelte-kit/generated/build/env/config.js"],"sourcesContent":["const variables = {};\nconst handle_issues = () => {};\n\nconst issues = {};\n\nexport { variables }\n\nexport const dynamic_private_env = {};\n\nexport const explicit_public_env = {};\n\nexport const rendered_env = {};\n\nhandle_issues(issues);\n\nexport function set_env(env) {\n\tconst issues = {};\n\
|
|
1
|
+
{"version":3,"file":"config.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/env/index.js","../../../src/env.ts","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/utils/format.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/internal/env.js","../../../.svelte-kit/generated/build/env/config.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n/** @import { DefinedEnvVars, EnvVarConfig } from '@sveltejs/kit/env' */\n\n/**\n * Utility for defining [environment variables](https://svelte.dev/docs/kit/environment-variables),\n * which are made available via `$app/env/public` and `$app/env/private`.\n *\n * @example\n * ```js\n * import { defineEnvVars } from '@sveltejs/kit/env';\n * import * as v from 'valibot';\n *\n * export const variables = defineEnvVars({\n * \tAPI_URL: {\n * \t\tschema: v.pipe(v.string(), v.url())\n * \t},\n * \tPORT: {\n * \t\tschema: (value) => {\n * \t\t\tif (value === undefined) return 3000;\n * \t\t\tconst port = Number(value);\n * \t\t\tif (!Number.isInteger(port)) throw new Error('PORT must be an integer');\n * \t\t\treturn port;\n * \t\t}\n * \t}\n * });\n * ```\n *\n * @template {Record<string, EnvVarConfig<any>>} T\n * @param {T} variables\n * @returns {DefinedEnvVars<T>}\n */\nexport function defineEnvVars(variables) {\n\t/** @type {Record<string, EnvVarConfig<any>>} */\n\tconst normalized = {};\n\n\tfor (const [name, config] of Object.entries(variables)) {\n\t\t// standard schemas can be callable (e.g. ArkType), so a function is only a validator if it isn't one\n\t\tnormalized[name] =\n\t\t\ttypeof config.schema === 'function' && !('~standard' in config.schema)\n\t\t\t\t? { ...config, schema: normalize_env_schema(config.schema) }\n\t\t\t\t: config;\n\t}\n\n\treturn /** @type {DefinedEnvVars<T>} */ (normalized);\n}\n\n/**\n * @param {(value: string | undefined) => any} fn\n * @returns {StandardSchemaV1<string | undefined, any>}\n */\nfunction normalize_env_schema(fn) {\n\treturn /** @type {StandardSchemaV1<string | undefined, any>} */ (\n\t\t/** @type {unknown} */ ({\n\t\t\t'~standard': {\n\t\t\t\tvalidate(/** @type {unknown} */ value) {\n\t\t\t\t\tlet result;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresult = fn(/** @type {string | undefined} */ (value));\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tissues: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessage: error instanceof Error ? error.message || 'Invalid value' : String(error)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tif (result instanceof Promise) return result; // will be rejected upstream\n\n\t\t\t\t\treturn { value: result };\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t);\n}\n","import { defineEnvVars } from '@sveltejs/kit/env';\n\n/** Where the BFF finds the bridge when `SR_BRIDGE_API_URL` is not set (`pnpm dev:ui` next to `pnpm dev`). */\nconst DEFAULT_BRIDGE_URL = 'http://127.0.0.1:5151';\n\n/**\n * The UI's environment, read when the app starts (`$app/env/private`). The bridge sets the\n * variables before it loads the UI; `pnpm dev:ui` also reads `packages/ui/.env.local` (SvelteKit\n * reads the `.env` files in dev only, and a variable set in the shell wins).\n */\nexport const variables = defineEnvVars({\n SR_BRIDGE_API_URL: {\n description: \"The bridge's origin (no path) the BFF calls; default http://127.0.0.1:5151.\",\n schema: (value) => {\n if (value === undefined || value === '') return DEFAULT_BRIDGE_URL;\n if (!URL.canParse(value)) throw new Error(`SR_BRIDGE_API_URL is not a URL: ${value}`);\n return value;\n },\n },\n});\n","/**\n * Joins a list as `a`, `a or b` or `a, b or c`, for use in diagnostics\n * @param {string[]} items\n */\nexport function join_or(items) {\n\treturn items.length > 1 ? `${items.slice(0, -1).join(', ')} or ${items.at(-1)}` : items[0];\n}\n\n/**\n * Formats a list with one indented `- item` per line, for use in diagnostics\n * @param {string[]} items\n */\nexport function bullet_list(items) {\n\treturn items.map((item) => ` - ${item}`).join('\\n');\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n/** @import { EnvVarConfig } from '@sveltejs/kit/env' */\n\nimport * as e from '../../messages/server-errors.js';\nimport { bullet_list } from '../../utils/format.js';\n\nexport const MISSING = {\n\tmessage: `Value is missing. If it is optional, add a validator declaring it as such.`\n};\n\nexport const BAD_VALIDATOR = {\n\tmessage: 'Variable was configured with a validator that does not implement Standard Schema'\n};\n\nexport const ASYNC_VALIDATOR = {\n\tmessage: 'Variable uses an async validator, which is not supported'\n};\n\n/**\n * @param {Record<string, EnvVarConfig<any> | undefined>} variables\n * @param {string | undefined} value\n * @param {string} name\n * @param {Record<string, StandardSchemaV1.Issue[]>} issues\n * @returns\n */\nexport function validate(variables, value, name, issues) {\n\tconst config = variables[name] ?? {};\n\t// `defineEnvVars` normalizes function validators to standard schemas\n\tconst validator = /** @type {StandardSchemaV1<string | undefined, any> | undefined} */ (\n\t\tconfig.schema\n\t);\n\n\tif (!validator) {\n\t\tif (value === undefined) issues[name] = [MISSING];\n\t\treturn value;\n\t}\n\n\tif (!validator['~standard']) {\n\t\tissues[name] = [BAD_VALIDATOR];\n\t\treturn;\n\t}\n\n\tconst result = validator['~standard'].validate(value);\n\n\tif (result instanceof Promise) {\n\t\tissues[name] = [ASYNC_VALIDATOR];\n\t\treturn;\n\t}\n\n\tif (result.issues) {\n\t\tissues[name] = [...result.issues];\n\t\treturn;\n\t}\n\n\treturn result.value;\n}\n\n/**\n * @param {Record<string, StandardSchemaV1.Issue[]>} issues\n */\nexport function handle_issues(issues) {\n\tconst entries = Object.entries(issues);\n\n\tif (entries.length === 0) {\n\t\treturn;\n\t}\n\n\tconst list = entries\n\t\t.map(([name, issues]) => `${name}\\n${bullet_list(issues.map((issue) => issue.message))}`)\n\t\t.join('\\n\\n');\n\n\t// the stack would only point into SvelteKit's generated modules\n\te.env_invalid({ issues: `\\n${list}\\n` }, { stackless: true });\n}\n","import { variables } from \"../../../../src/env.ts\";\nimport { validate, handle_issues } from '@sveltejs/kit/internal/env';\n\nconst issues = {};\n\nexport { variables }\n\nexport const dynamic_private_env = {};\n\nexport const explicit_public_env = {};\n\nexport const rendered_env = {};\n\nhandle_issues(issues);\n\nexport function set_env(env) {\n\tconst issues = {};\n\tconst SR_BRIDGE_API_URL = validate(variables, env.SR_BRIDGE_API_URL, \"SR_BRIDGE_API_URL\", issues);\n\tdynamic_private_env.SR_BRIDGE_API_URL = SR_BRIDGE_API_URL;\n\thandle_issues(issues);\n}"],"ignoreList":[0,2,3],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,cAAc,WAAW;;CAExC,MAAM,aAAa,CAAC;CAEpB,KAAK,MAAM,CAAC,MAAM,WAAW,OAAO,QAAQ,SAAS,GAEpD,WAAW,QACV,OAAO,OAAO,WAAW,cAAc,EAAE,eAAe,OAAO,UAC5D;EAAE,GAAG;EAAQ,QAAQ,qBAAqB,OAAO,MAAM;CAAE,IACzD;CAGL,OAAyC;AAC1C;;;;;AAMA,SAAS,qBAAqB,IAAI;CACjC,OACyB,EACvB,aAAa,EACZ,SAAgC,OAAO;EACtC,IAAI;EAEJ,IAAI;GACH,SAAS,GAAsC,KAAM;EACtD,SAAS,OAAO;GACf,OAAO,EACN,QAAQ,CACP,EACC,SAAS,iBAAiB,QAAQ,MAAM,WAAW,kBAAkB,OAAO,KAAK,EAClF,CACD,EACD;EACD;EAEA,IAAI,kBAAkB,SAAS,OAAO;EAEtC,OAAO,EAAE,OAAO,OAAO;CACxB,EACD,EACD;AAEF;;;ACzEA,IAAM,qBAAqB;;;;;;AAO3B,IAAa,YAAY,cAAc,EACrC,mBAAmB;CACjB,aAAa;CACb,SAAS,UAAU;EACjB,IAAI,UAAU,KAAA,KAAa,UAAU,IAAI,OAAO;EAChD,IAAI,CAAC,IAAI,SAAS,KAAK,GAAG,MAAM,IAAI,MAAM,mCAAmC,OAAO;EACpF,OAAO;CACT;AACF,EACF,CAAC;;;;;;ACfD,SAAgB,QAAQ,OAAO;CAC9B,OAAO,MAAM,SAAS,IAAI,GAAG,MAAM,MAAM,GAAG,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,MAAM,GAAG,EAAE,MAAM,MAAM;AACzF;;;;;AAMA,SAAgB,YAAY,OAAO;CAClC,OAAO,MAAM,KAAK,SAAS,OAAO,MAAM,CAAC,CAAC,KAAK,IAAI;AACpD;;;;ACRA,IAAa,UAAU,EACtB,SAAS,6EACV;AAEA,IAAa,gBAAgB,EAC5B,SAAS,mFACV;AAEA,IAAa,kBAAkB,EAC9B,SAAS,2DACV;;;;;;;;AASA,SAAgB,SAAS,WAAW,OAAO,MAAM,QAAQ;CAGxD,MAAM,aAFS,UAAU,SAAS,CAAC,EAAA,CAG3B;CAGR,IAAI,CAAC,WAAW;EACf,IAAI,UAAU,KAAA,GAAW,OAAO,QAAQ,CAAC,OAAO;EAChD,OAAO;CACR;CAEA,IAAI,CAAC,UAAU,cAAc;EAC5B,OAAO,QAAQ,CAAC,aAAa;EAC7B;CACD;CAEA,MAAM,SAAS,UAAU,YAAY,CAAC,SAAS,KAAK;CAEpD,IAAI,kBAAkB,SAAS;EAC9B,OAAO,QAAQ,CAAC,eAAe;EAC/B;CACD;CAEA,IAAI,OAAO,QAAQ;EAClB,OAAO,QAAQ,CAAC,GAAG,OAAO,MAAM;EAChC;CACD;CAEA,OAAO,OAAO;AACf;;;;AAKA,SAAgB,cAAc,QAAQ;CACrC,MAAM,UAAU,OAAO,QAAQ,MAAM;CAErC,IAAI,QAAQ,WAAW,GACtB;CAGD,MAAM,OAAO,QACX,KAAK,CAAC,MAAM,YAAY,GAAG,KAAK,IAAI,YAAY,OAAO,KAAK,UAAU,MAAM,OAAO,CAAC,GAAG,CAAC,CACxF,KAAK,MAAM;CAGb,YAAc,EAAE,QAAQ,KAAK,KAAK,IAAI,GAAG,EAAE,WAAW,KAAK,CAAC;AAC7D;;ACtEA,IAAM,SAAS,CAAC;AAIhB,IAAa,sBAAsB,CAAC;AAEpC,IAAa,sBAAsB,CAAC;AAEpC,IAAa,eAAe,CAAC;AAE7B,cAAc,MAAM;AAEpB,SAAgB,QAAQ,KAAK;CAC5B,MAAM,SAAS,CAAC;CAEhB,oBAAoB,oBADM,SAAS,WAAW,IAAI,mBAAmB,qBAAqB,MAClD;CACxC,cAAc,MAAM;AACrB"}
|
|
@@ -1,35 +1,6 @@
|
|
|
1
1
|
import { i as Redirect, r as HttpError } from "./shared.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Whether shared errors include their full text on the server even though `DEV` is false. This is
|
|
6
|
-
* enabled while the app is being built (analysed or prerendered)
|
|
7
|
-
*/
|
|
8
|
-
var verbose = false;
|
|
9
|
-
function enable_verbose_errors() {
|
|
10
|
-
verbose = true;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @typedef {{ element?: Element }} ClientWarningOptions
|
|
14
|
-
* - `element`: logged after the warning, so that it can be inspected in the browser's devtools
|
|
15
|
-
*/
|
|
16
|
-
/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */
|
|
17
|
-
var bold = "font-weight: bold";
|
|
18
|
-
var normal = "font-weight: normal";
|
|
19
|
-
/**
|
|
20
|
-
* Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so
|
|
21
|
-
* bundlers can remove both this call and the message text from production browser builds
|
|
22
|
-
* @param {string} code
|
|
23
|
-
* @param {string} message
|
|
24
|
-
* @param {Function} caller The generated helper, which is omitted from the stack along with this function
|
|
25
|
-
* @returns {never}
|
|
26
|
-
*/
|
|
27
|
-
function throw_error(code, message, caller) {
|
|
28
|
-
const error = /* @__PURE__ */ new Error(`${code}\n${message}\nhttps://svelte.dev/e/kit/${code}`);
|
|
29
|
-
error.name = "SvelteKit error";
|
|
30
|
-
Error.captureStackTrace?.(error, caller);
|
|
31
|
-
throw error;
|
|
32
|
-
}
|
|
2
|
+
import { J as request_event_unavailable, Y as request_store_after_await, q as request_event_after_await, tt as url_search_unavailable_prerender } from "./server-errors.js";
|
|
3
|
+
import { b as url_hash_unavailable, s as invalid_error_status } from "./shared-errors.js";
|
|
33
4
|
// ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/constants.js
|
|
34
5
|
/**
|
|
35
6
|
* A fake asset path used in `vite dev` and `vite preview`, so that we can
|
|
@@ -75,6 +46,22 @@ var sync_store = null;
|
|
|
75
46
|
/** @type {AsyncLocalStorage<RequestStore | null> | null} */
|
|
76
47
|
var als;
|
|
77
48
|
import("node:async_hooks").then((hooks) => als = new hooks.AsyncLocalStorage()).catch(() => {});
|
|
49
|
+
/**
|
|
50
|
+
* Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).
|
|
51
|
+
*
|
|
52
|
+
* In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).
|
|
53
|
+
* @since 2.20.0
|
|
54
|
+
*
|
|
55
|
+
* @returns {RequestEvent}
|
|
56
|
+
*/
|
|
57
|
+
function getRequestEvent() {
|
|
58
|
+
const event = try_get_request_store()?.event;
|
|
59
|
+
if (!event) {
|
|
60
|
+
if (als) request_event_unavailable();
|
|
61
|
+
request_event_after_await();
|
|
62
|
+
}
|
|
63
|
+
return event;
|
|
64
|
+
}
|
|
78
65
|
function get_request_store() {
|
|
79
66
|
const result = try_get_request_store();
|
|
80
67
|
if (!result) {
|
|
@@ -115,178 +102,6 @@ function merge_tracing(event_like, current) {
|
|
|
115
102
|
}
|
|
116
103
|
};
|
|
117
104
|
}
|
|
118
|
-
// ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/shared-errors.js
|
|
119
|
-
/**
|
|
120
|
-
* Invalid array key `%key%`
|
|
121
|
-
* @param {{ "key": string }} _values
|
|
122
|
-
* @returns {never}
|
|
123
|
-
*/
|
|
124
|
-
function form_field_array_conflict(_values) {
|
|
125
|
-
if (verbose) throw_error("form_field_array_conflict", `Invalid array key \`${_values.key}\``, form_field_array_conflict);
|
|
126
|
-
throw new Error("https://svelte.dev/e/kit/form_field_array_conflict");
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Form cannot contain duplicated keys — `%name%` has %count% values
|
|
130
|
-
* @param {{ "name": string; "count": string }} _values
|
|
131
|
-
* @returns {never}
|
|
132
|
-
*/
|
|
133
|
-
function form_field_duplicate(_values) {
|
|
134
|
-
if (verbose) throw_error("form_field_duplicate", `Form cannot contain duplicated keys — \`${_values.name}\` has ${_values.count} values`, form_field_duplicate);
|
|
135
|
-
throw new Error("https://svelte.dev/e/kit/form_field_duplicate");
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Invalid key `%key%`: This key is not allowed to prevent prototype pollution.
|
|
139
|
-
* @param {{ "key": string }} _values
|
|
140
|
-
* @returns {never}
|
|
141
|
-
*/
|
|
142
|
-
function form_field_forbidden_key(_values) {
|
|
143
|
-
if (verbose) throw_error("form_field_forbidden_key", `Invalid key \`${_values.key}\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);
|
|
144
|
-
throw new Error("https://svelte.dev/e/kit/form_field_forbidden_key");
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* 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
|
|
148
|
-
* @param {{ "name": string }} _values
|
|
149
|
-
* @returns {never}
|
|
150
|
-
*/
|
|
151
|
-
function form_field_invalid_name(_values) {
|
|
152
|
-
if (verbose) throw_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);
|
|
153
|
-
throw new Error("https://svelte.dev/e/kit/form_field_invalid_name");
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`
|
|
157
|
-
* @param {{ "name": string }} _values
|
|
158
|
-
* @returns {never}
|
|
159
|
-
*/
|
|
160
|
-
function form_field_unbound(_values) {
|
|
161
|
-
if (verbose) throw_error("form_field_unbound", `Form contained a field that wasn't created with \`form.fields.as(...)\`: \`${_values.name}\``, form_field_unbound);
|
|
162
|
-
throw new Error("https://svelte.dev/e/kit/form_field_unbound");
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* %type% inputs must have a value
|
|
166
|
-
* @param {{ "type": string }} _values
|
|
167
|
-
* @returns {never}
|
|
168
|
-
*/
|
|
169
|
-
function form_input_missing_value(_values) {
|
|
170
|
-
if (verbose) throw_error("form_input_missing_value", `${_values.type} inputs must have a value`, form_input_missing_value);
|
|
171
|
-
throw new Error("https://svelte.dev/e/kit/form_input_missing_value");
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* HTTP error status codes must be between 400 and 599 — %status% is invalid
|
|
175
|
-
* @param {{ "status": string }} _values
|
|
176
|
-
* @returns {never}
|
|
177
|
-
*/
|
|
178
|
-
function invalid_error_status(_values) {
|
|
179
|
-
if (verbose) throw_error("invalid_error_status", `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);
|
|
180
|
-
throw new Error("https://svelte.dev/e/kit/invalid_error_status");
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)
|
|
184
|
-
* @param {{ "key": string; "exports": string; "file"?: string }} _values
|
|
185
|
-
* @returns {never}
|
|
186
|
-
*/
|
|
187
|
-
function invalid_export(_values) {
|
|
188
|
-
if (verbose) throw_error("invalid_export", _values?.file !== void 0 ? `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);
|
|
189
|
-
throw new Error("https://svelte.dev/e/kit/invalid_export");
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Invalid export `%key%` (`%key%` is a valid export in %locations%)
|
|
193
|
-
* @param {{ "key": string; "locations": string; "file"?: string }} _values
|
|
194
|
-
* @returns {never}
|
|
195
|
-
*/
|
|
196
|
-
function invalid_export_location(_values) {
|
|
197
|
-
if (verbose) throw_error("invalid_export_location", _values?.file !== void 0 ? `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);
|
|
198
|
-
throw new Error("https://svelte.dev/e/kit/invalid_export_location");
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)
|
|
202
|
-
* @param {{ "location": string; "type": string }} _values
|
|
203
|
-
* @returns {never}
|
|
204
|
-
*/
|
|
205
|
-
function load_invalid_response(_values) {
|
|
206
|
-
if (verbose) throw_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);
|
|
207
|
-
throw new Error("https://svelte.dev/e/kit/load_invalid_response");
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Async param matchers are not supported
|
|
211
|
-
* @param {void} _values
|
|
212
|
-
* @returns {never}
|
|
213
|
-
*/
|
|
214
|
-
function param_matcher_async(_values) {
|
|
215
|
-
if (verbose) throw_error("param_matcher_async", `Async param matchers are not supported`, param_matcher_async);
|
|
216
|
-
throw new Error("https://svelte.dev/e/kit/param_matcher_async");
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Param matcher must return a string, number, boolean, or bigint
|
|
220
|
-
* @param {void} _values
|
|
221
|
-
* @returns {never}
|
|
222
|
-
*/
|
|
223
|
-
function param_matcher_result_invalid(_values) {
|
|
224
|
-
if (verbose) throw_error("param_matcher_result_invalid", `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);
|
|
225
|
-
throw new Error("https://svelte.dev/e/kit/param_matcher_result_invalid");
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* %type% are not valid remote function arguments
|
|
229
|
-
* @param {{ "type": string }} _values
|
|
230
|
-
* @returns {never}
|
|
231
|
-
*/
|
|
232
|
-
function remote_argument_unsupported(_values) {
|
|
233
|
-
if (verbose) throw_error("remote_argument_unsupported", `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);
|
|
234
|
-
throw new Error("https://svelte.dev/e/kit/remote_argument_unsupported");
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Missing params for dynamic route ID `%id%`
|
|
238
|
-
* @param {{ "id": string }} _values
|
|
239
|
-
* @returns {never}
|
|
240
|
-
*/
|
|
241
|
-
function resolve_params_missing(_values) {
|
|
242
|
-
if (verbose) throw_error("resolve_params_missing", `Missing params for dynamic route ID \`${_values.id}\``, resolve_params_missing);
|
|
243
|
-
throw new Error("https://svelte.dev/e/kit/resolve_params_missing");
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Cannot use `resolve(...)` with an absolute or protocol-relative URL (got "%id%")
|
|
247
|
-
* @param {{ "id": string }} _values
|
|
248
|
-
* @returns {never}
|
|
249
|
-
*/
|
|
250
|
-
function resolve_url_input(_values) {
|
|
251
|
-
if (verbose) throw_error("resolve_url_input", `Cannot use \`resolve(...)\` with an absolute or protocol-relative URL (got "${_values.id}")`, resolve_url_input);
|
|
252
|
-
throw new Error("https://svelte.dev/e/kit/resolve_url_input");
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Missing parameter `%name%` in route `%id%`
|
|
256
|
-
* @param {{ "name": string; "id": string }} _values
|
|
257
|
-
* @returns {never}
|
|
258
|
-
*/
|
|
259
|
-
function route_param_missing(_values) {
|
|
260
|
-
if (verbose) throw_error("route_param_missing", `Missing parameter \`${_values.name}\` in route \`${_values.id}\``, route_param_missing);
|
|
261
|
-
throw new Error("https://svelte.dev/e/kit/route_param_missing");
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`
|
|
265
|
-
* @param {{ "name": string; "id": string }} _values
|
|
266
|
-
* @returns {never}
|
|
267
|
-
*/
|
|
268
|
-
function route_param_slash(_values) {
|
|
269
|
-
if (verbose) throw_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);
|
|
270
|
-
throw new Error("https://svelte.dev/e/kit/route_param_slash");
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint
|
|
274
|
-
* @param {{ "name": string; "id": string }} _values
|
|
275
|
-
* @returns {never}
|
|
276
|
-
*/
|
|
277
|
-
function route_param_value_invalid(_values) {
|
|
278
|
-
if (verbose) throw_error("route_param_value_invalid", `Parameter \`${_values.name}\` in route \`${_values.id}\` must be a string, number, boolean, or bigint`, route_param_value_invalid);
|
|
279
|
-
throw new Error("https://svelte.dev/e/kit/route_param_value_invalid");
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead
|
|
283
|
-
* @param {void} _values
|
|
284
|
-
* @returns {never}
|
|
285
|
-
*/
|
|
286
|
-
function url_hash_unavailable(_values) {
|
|
287
|
-
if (verbose) throw_error("url_hash_unavailable", `Cannot access \`event.url.hash\`. Consider using \`page.url.hash\` inside a component instead`, url_hash_unavailable);
|
|
288
|
-
throw new Error("https://svelte.dev/e/kit/url_hash_unavailable");
|
|
289
|
-
}
|
|
290
105
|
// ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/utils/url.js
|
|
291
106
|
/**
|
|
292
107
|
* Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1
|
|
@@ -547,6 +362,6 @@ function text(body, init) {
|
|
|
547
362
|
headers
|
|
548
363
|
});
|
|
549
364
|
}
|
|
550
|
-
export {
|
|
365
|
+
export { MUTATIVE_METHODS as C, SVELTE_KIT_ASSETS as E, IN_WEBCONTAINER as S, REROUTED_URL_HEADER as T, get_request_store as _, depends_special_scheme as a, BODY_DEPENDENT_METHODS as b, decode_pathname as c, make_trackable as d, normalize_path as f, getRequestEvent as g, merge_tracing as h, text as i, disable_search as l, resolve as m, isRedirect as n, form_fields_enumerated as o, relative_pathname as p, json as r, SCHEME as s, error as t, has_scheme_or_authority as u, try_get_request_store as v, PAGE_METHODS as w, ENDPOINT_METHODS as x, with_request_store as y };
|
|
551
366
|
|
|
552
367
|
//# sourceMappingURL=exports.js.map
|