sveltekit-ui 1.1.71 → 1.1.73
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/.vercel/output/config.json +64 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/Checkbox.js +285 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/client.js +1609 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/client2.js +5320 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/docs.js +26418 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/env.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/exports.js +371 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/index.svelte.js +869 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/index2.svelte.js +220 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/index3.svelte.js +914 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/index4.svelte.js +2035 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/internal.js +823 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/internal2.js +34 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/server.js +4203 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/shared.js +298 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/state.js +76 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/utils.js +903 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/endpoints/sitemap.xml/_server.js +223 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/fallbacks/error.svelte.js +10 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/hooks.server.js +7 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/_layout.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/_layout.svelte.js +826 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/_page.svelte.js +345 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/components/_component_/_page.svelte.js +9431 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/test/_page.svelte.js +50 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/test2/_page.svelte.js +10909 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/test3/_page.server.js +9466 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/entries/pages/test3/_page.svelte.js +99 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/index.js +3515 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/0.js +10 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/1.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/2.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/3.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/4.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/5.js +8 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/nodes/6.js +10 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/vercel-tmp/index.js +42 -0
- package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/vercel-tmp/manifest.js +78 -0
- package/.vercel/output/functions/![-]/catchall.func/.vc-config.json +11 -0
- package/.vercel/output/functions/![-]/catchall.func/package.json +1 -0
- package/.vercel/output/static/_app/immutable/assets/0.D1AvWWSC.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/2.D3o4PLbP.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/3.DK3uvf0v.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/6.BnjxUmH7.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/Checkbox.CJEZNdbe.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/alloy-voice-sample.PT8wH6s9.mp3 +0 -0
- package/.vercel/output/static/_app/immutable/assets/docs.CDTCxDP7.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/echo-voice-sample.pUPbplSr.mp3 +0 -0
- package/.vercel/output/static/_app/immutable/assets/fable-voice-sample.DLFL6517.mp3 +0 -0
- package/.vercel/output/static/_app/immutable/assets/index.CCk09GbO.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/index.CYJKF3O7.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/index.DCBl_q1O.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/index.DatXVBdh.css +1 -0
- package/.vercel/output/static/_app/immutable/assets/nova-voice-sample.DWaD-VGb.mp3 +0 -0
- package/.vercel/output/static/_app/immutable/assets/onyx-voice-sample.DMRXZHJF.mp3 +0 -0
- package/.vercel/output/static/_app/immutable/assets/shimmer-voice-sample.Cho2QgFr.mp3 +0 -0
- package/.vercel/output/static/_app/immutable/chunks/BLfjN0VF.js +1 -0
- package/.vercel/output/static/_app/immutable/chunks/BddFMzPD.js +1 -0
- package/.vercel/output/static/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/.vercel/output/static/_app/immutable/chunks/BqBxxYmA.js +14 -0
- package/.vercel/output/static/_app/immutable/chunks/CJM4yLow.js +25 -0
- package/.vercel/output/static/_app/immutable/chunks/CRYWmS0s.js +19 -0
- package/.vercel/output/static/_app/immutable/chunks/CZIC9Qgj.js +11 -0
- package/.vercel/output/static/_app/immutable/chunks/CvmT24cS.js +3 -0
- package/.vercel/output/static/_app/immutable/chunks/D566uQC1.js +2 -0
- package/.vercel/output/static/_app/immutable/chunks/SvbogVTv.js +119 -0
- package/.vercel/output/static/_app/immutable/chunks/_g5tLpFU.js +3 -0
- package/.vercel/output/static/_app/immutable/chunks/u3U-vofW.js +15 -0
- package/.vercel/output/static/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/.vercel/output/static/_app/immutable/entry/app.td6ThZ7k.js +2 -0
- package/.vercel/output/static/_app/immutable/entry/start.2Q3_BAwG.js +1 -0
- package/.vercel/output/static/_app/immutable/nodes/0.C2Ckbl4e.js +8 -0
- package/.vercel/output/static/_app/immutable/nodes/1.DLziSd8k.js +1 -0
- package/.vercel/output/static/_app/immutable/nodes/2.BX7tnCWG.js +58 -0
- package/.vercel/output/static/_app/immutable/nodes/3.CEpCPaPY.js +22 -0
- package/.vercel/output/static/_app/immutable/nodes/4.Ux2eRH04.js +1 -0
- package/.vercel/output/static/_app/immutable/nodes/5.Cv9G2Xkm.js +1 -0
- package/.vercel/output/static/_app/immutable/nodes/6.DcYd4Shl.js +1 -0
- package/.vercel/output/static/_app/version.json +1 -0
- package/.vercel/output/static/android-chrome-192x192.png +0 -0
- package/.vercel/output/static/android-chrome-512x512.png +0 -0
- package/.vercel/output/static/apple-touch-icon.png +0 -0
- package/.vercel/output/static/favicon-inactive.svg +4 -0
- package/.vercel/output/static/favicon-themed.svg +11 -0
- package/.vercel/output/static/favicon-transparent-bg.webp +0 -0
- package/.vercel/output/static/favicon-transparent.webp +0 -0
- package/.vercel/output/static/favicon.png +0 -0
- package/.vercel/output/static/favicon.svg +3 -0
- package/.vercel/output/static/favicon.webp +0 -0
- package/.vercel/output/static/fonts/ProximaVara.woff2 +0 -0
- package/.vercel/output/static/fonts/Quicksand-VariableFont.woff2 +0 -0
- package/.vercel/output/static/fonts/RobotoSerif-VariableFont.woff2 +0 -0
- package/.vercel/output/static/full_logo.webp +0 -0
- package/.vercel/output/static/icon.png +0 -0
- package/.vercel/output/static/site.webmanifest +21 -0
- package/.vercel/output/static/thumbnail.png +0 -0
- package/.vercel/output/static/thumbnail.webp +0 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region \0virtual:__sveltekit/env
|
|
2
|
+
var variables = {};
|
|
3
|
+
var dynamic_private_env = {};
|
|
4
|
+
var explicit_public_env = {};
|
|
5
|
+
var rendered_env = {};
|
|
6
|
+
function set_env(env) {}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { variables as a, set_env as i, explicit_public_env as n, rendered_env as r, dynamic_private_env as t };
|
package/.vercel/output/functions/![-]/catchall.func/.svelte-kit/output/server/chunks/exports.js
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import "./server.js";
|
|
2
|
+
//#region node_modules/@sveltejs/kit/src/utils/array.js
|
|
3
|
+
/**
|
|
4
|
+
* Removes nullish values from an array.
|
|
5
|
+
*
|
|
6
|
+
* @template T
|
|
7
|
+
* @param {Array<T>} arr
|
|
8
|
+
*/
|
|
9
|
+
function compact(arr) {
|
|
10
|
+
return arr.filter(
|
|
11
|
+
/** @returns {val is NonNullable<T>} */
|
|
12
|
+
(val) => val != null
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/@sveltejs/kit/src/runtime/pathname.js
|
|
17
|
+
var DATA_SUFFIX = "/__data.json";
|
|
18
|
+
var HTML_DATA_SUFFIX = ".html__data.json";
|
|
19
|
+
/** @param {string} pathname */
|
|
20
|
+
function has_data_suffix(pathname) {
|
|
21
|
+
return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
|
|
22
|
+
}
|
|
23
|
+
/** @param {string} pathname */
|
|
24
|
+
function add_data_suffix(pathname) {
|
|
25
|
+
if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
|
|
26
|
+
return pathname.replace(/\/$/, "") + DATA_SUFFIX;
|
|
27
|
+
}
|
|
28
|
+
/** @param {string} pathname */
|
|
29
|
+
function strip_data_suffix(pathname) {
|
|
30
|
+
if (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + ".html";
|
|
31
|
+
return pathname.slice(0, -12);
|
|
32
|
+
}
|
|
33
|
+
var ROUTE_SUFFIX = "/__route.js";
|
|
34
|
+
/**
|
|
35
|
+
* @param {string} pathname
|
|
36
|
+
* @returns {boolean}
|
|
37
|
+
*/
|
|
38
|
+
function has_resolution_suffix(pathname) {
|
|
39
|
+
return pathname.endsWith(ROUTE_SUFFIX);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint
|
|
43
|
+
* @param {string} pathname
|
|
44
|
+
* @returns {string}
|
|
45
|
+
*/
|
|
46
|
+
function add_resolution_suffix(pathname) {
|
|
47
|
+
return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @param {string} pathname
|
|
51
|
+
* @returns {string}
|
|
52
|
+
*/
|
|
53
|
+
function strip_resolution_suffix(pathname) {
|
|
54
|
+
return pathname.slice(0, -11);
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js
|
|
58
|
+
/**
|
|
59
|
+
* @type {Span}
|
|
60
|
+
*/
|
|
61
|
+
var noop_span = {
|
|
62
|
+
spanContext() {
|
|
63
|
+
return noop_span_context;
|
|
64
|
+
},
|
|
65
|
+
setAttribute() {
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
setAttributes() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
addEvent() {
|
|
72
|
+
return this;
|
|
73
|
+
},
|
|
74
|
+
setStatus() {
|
|
75
|
+
return this;
|
|
76
|
+
},
|
|
77
|
+
updateName() {
|
|
78
|
+
return this;
|
|
79
|
+
},
|
|
80
|
+
end() {
|
|
81
|
+
return this;
|
|
82
|
+
},
|
|
83
|
+
isRecording() {
|
|
84
|
+
return false;
|
|
85
|
+
},
|
|
86
|
+
recordException() {
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
addLink() {
|
|
90
|
+
return this;
|
|
91
|
+
},
|
|
92
|
+
addLinks() {
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @type {SpanContext}
|
|
98
|
+
*/
|
|
99
|
+
var noop_span_context = {
|
|
100
|
+
traceId: "",
|
|
101
|
+
spanId: "",
|
|
102
|
+
traceFlags: 0
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region node_modules/@sveltejs/kit/src/utils/url.js
|
|
106
|
+
/**
|
|
107
|
+
* Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1
|
|
108
|
+
* @type {RegExp}
|
|
109
|
+
*/
|
|
110
|
+
var SCHEME = /^[a-z][a-z\d+\-.]+:/i;
|
|
111
|
+
var internal = new URL("sveltekit-internal://");
|
|
112
|
+
/**
|
|
113
|
+
* @param {string} base
|
|
114
|
+
* @param {string} path
|
|
115
|
+
*/
|
|
116
|
+
function resolve(base, path) {
|
|
117
|
+
if (path[0] === "/" && path[1] === "/") return path;
|
|
118
|
+
let url = new URL(base, internal);
|
|
119
|
+
url = new URL(path, url);
|
|
120
|
+
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @param {string} path
|
|
124
|
+
* @param {import('types').TrailingSlash} trailing_slash
|
|
125
|
+
*/
|
|
126
|
+
function normalize_path(path, trailing_slash) {
|
|
127
|
+
if (path === "/" || trailing_slash === "ignore") return path;
|
|
128
|
+
if (trailing_slash === "never") return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
129
|
+
else if (trailing_slash === "always" && !path.endsWith("/")) return path + "/";
|
|
130
|
+
return path;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Decode pathname excluding %25 to prevent further double decoding of params
|
|
134
|
+
* @param {string} pathname
|
|
135
|
+
*/
|
|
136
|
+
function decode_pathname(pathname) {
|
|
137
|
+
return pathname.split("%25").map(decodeURI).join("%25");
|
|
138
|
+
}
|
|
139
|
+
/** @param {Record<string, string>} params */
|
|
140
|
+
function decode_params(params) {
|
|
141
|
+
for (const key in params) params[key] = decodeURIComponent(params[key]);
|
|
142
|
+
return params;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @param {URL} url
|
|
146
|
+
* @param {() => void} callback
|
|
147
|
+
* @param {(search_param: string) => void} search_params_callback
|
|
148
|
+
* @param {boolean} [allow_hash]
|
|
149
|
+
*/
|
|
150
|
+
function make_trackable(url, callback, search_params_callback, allow_hash = false) {
|
|
151
|
+
const tracked = new URL(url);
|
|
152
|
+
Object.defineProperty(tracked, "searchParams", {
|
|
153
|
+
value: new Proxy(tracked.searchParams, { get(obj, key) {
|
|
154
|
+
if (key === "get" || key === "getAll" || key === "has") return (param, ...rest) => {
|
|
155
|
+
search_params_callback(param);
|
|
156
|
+
return obj[key](param, ...rest);
|
|
157
|
+
};
|
|
158
|
+
callback();
|
|
159
|
+
const value = Reflect.get(obj, key);
|
|
160
|
+
return typeof value === "function" ? value.bind(obj) : value;
|
|
161
|
+
} }),
|
|
162
|
+
enumerable: true,
|
|
163
|
+
configurable: true
|
|
164
|
+
});
|
|
165
|
+
/**
|
|
166
|
+
* URL properties that could change during the lifetime of the page,
|
|
167
|
+
* which excludes things like `origin`
|
|
168
|
+
* @type {(keyof URL)[]}
|
|
169
|
+
*/
|
|
170
|
+
const tracked_url_properties = [
|
|
171
|
+
"href",
|
|
172
|
+
"pathname",
|
|
173
|
+
"search",
|
|
174
|
+
"toString",
|
|
175
|
+
"toJSON"
|
|
176
|
+
];
|
|
177
|
+
if (allow_hash) tracked_url_properties.push("hash");
|
|
178
|
+
for (const property of tracked_url_properties) Object.defineProperty(tracked, property, {
|
|
179
|
+
get() {
|
|
180
|
+
callback();
|
|
181
|
+
return url[property];
|
|
182
|
+
},
|
|
183
|
+
enumerable: true,
|
|
184
|
+
configurable: true
|
|
185
|
+
});
|
|
186
|
+
tracked[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
187
|
+
return inspect(url, opts);
|
|
188
|
+
};
|
|
189
|
+
tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
190
|
+
return inspect(url.searchParams, opts);
|
|
191
|
+
};
|
|
192
|
+
if (!allow_hash) disable_hash(tracked);
|
|
193
|
+
return tracked;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Disallow access to `url.hash` on the server and in `load`
|
|
197
|
+
* @param {URL} url
|
|
198
|
+
*/
|
|
199
|
+
function disable_hash(url) {
|
|
200
|
+
allow_nodejs_console_log(url);
|
|
201
|
+
Object.defineProperty(url, "hash", { get() {
|
|
202
|
+
throw new Error("Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead");
|
|
203
|
+
} });
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Disallow access to `url.search` and `url.searchParams` during prerendering
|
|
207
|
+
* @param {URL} url
|
|
208
|
+
*/
|
|
209
|
+
function disable_search(url) {
|
|
210
|
+
allow_nodejs_console_log(url);
|
|
211
|
+
for (const property of ["search", "searchParams"]) Object.defineProperty(url, property, { get() {
|
|
212
|
+
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
|
213
|
+
} });
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Allow URL to be console logged, bypassing disabled properties.
|
|
217
|
+
* @param {URL} url
|
|
218
|
+
*/
|
|
219
|
+
function allow_nodejs_console_log(url) {
|
|
220
|
+
url[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
|
|
221
|
+
return inspect(new URL(url), opts);
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region node_modules/@sveltejs/kit/src/utils/hash.js
|
|
226
|
+
/**
|
|
227
|
+
* Hash using djb2
|
|
228
|
+
* @param {import('types').StrictBody[]} values
|
|
229
|
+
*/
|
|
230
|
+
function hash(...values) {
|
|
231
|
+
let hash = 5381;
|
|
232
|
+
for (const value of values) if (typeof value === "string") {
|
|
233
|
+
let i = value.length;
|
|
234
|
+
while (i) hash = hash * 33 ^ value.charCodeAt(--i);
|
|
235
|
+
} else if (ArrayBuffer.isView(value)) {
|
|
236
|
+
const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
237
|
+
let i = buffer.length;
|
|
238
|
+
while (i) hash = hash * 33 ^ buffer[--i];
|
|
239
|
+
} else throw new TypeError("value must be a string or TypedArray");
|
|
240
|
+
return (hash >>> 0).toString(36);
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region node_modules/@sveltejs/kit/src/utils/routing.js
|
|
244
|
+
/**
|
|
245
|
+
* @param {RegExpMatchArray} match
|
|
246
|
+
* @param {import('types').RouteParam[]} params
|
|
247
|
+
* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
|
|
248
|
+
*/
|
|
249
|
+
function exec(match, params, matchers) {
|
|
250
|
+
/** @type {Record<string, string>} */
|
|
251
|
+
const result = {};
|
|
252
|
+
const values = match.slice(1);
|
|
253
|
+
const values_needing_match = values.filter((value) => value !== void 0);
|
|
254
|
+
let buffered = 0;
|
|
255
|
+
for (let i = 0; i < params.length; i += 1) {
|
|
256
|
+
const param = params[i];
|
|
257
|
+
let value = values[i - buffered];
|
|
258
|
+
if (param.chained && param.rest && buffered) {
|
|
259
|
+
value = values.slice(i - buffered, i + 1).filter((s) => s).join("/");
|
|
260
|
+
buffered = 0;
|
|
261
|
+
}
|
|
262
|
+
if (value === void 0) if (param.rest) value = "";
|
|
263
|
+
else continue;
|
|
264
|
+
if (!param.matcher || matchers[param.matcher](value)) {
|
|
265
|
+
result[param.name] = value;
|
|
266
|
+
const next_param = params[i + 1];
|
|
267
|
+
const next_value = values[i + 1];
|
|
268
|
+
if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) buffered = 0;
|
|
269
|
+
if (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) buffered = 0;
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
if (param.optional && param.chained) {
|
|
273
|
+
buffered++;
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (buffered) return;
|
|
279
|
+
return result;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Find the first route that matches the given path
|
|
283
|
+
* @template {{pattern: RegExp, params: import('types').RouteParam[]}} Route
|
|
284
|
+
* @param {string} path - The decoded pathname to match
|
|
285
|
+
* @param {Route[]} routes
|
|
286
|
+
* @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
|
|
287
|
+
* @returns {{ route: Route, params: Record<string, string> } | null}
|
|
288
|
+
*/
|
|
289
|
+
function find_route(path, routes, matchers) {
|
|
290
|
+
for (const route of routes) {
|
|
291
|
+
const match = route.pattern.exec(path);
|
|
292
|
+
if (!match) continue;
|
|
293
|
+
const matched = exec(match, route.params, matchers);
|
|
294
|
+
if (matched) return {
|
|
295
|
+
route,
|
|
296
|
+
params: decode_params(matched)
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region node_modules/@sveltejs/kit/src/utils/exports.js
|
|
303
|
+
/**
|
|
304
|
+
* @param {Set<string>} expected
|
|
305
|
+
*/
|
|
306
|
+
function validator(expected) {
|
|
307
|
+
/**
|
|
308
|
+
* @param {any} module
|
|
309
|
+
* @param {string} [file]
|
|
310
|
+
*/
|
|
311
|
+
function validate(module, file) {
|
|
312
|
+
if (!module) return;
|
|
313
|
+
for (const key in module) {
|
|
314
|
+
if (key[0] === "_" || expected.has(key)) continue;
|
|
315
|
+
const values = [...expected.values()];
|
|
316
|
+
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
|
317
|
+
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return validate;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* @param {string} key
|
|
324
|
+
* @param {string} ext
|
|
325
|
+
* @returns {string | void}
|
|
326
|
+
*/
|
|
327
|
+
function hint_for_supported_files(key, ext = ".js") {
|
|
328
|
+
const supported_files = [];
|
|
329
|
+
if (valid_layout_exports.has(key)) supported_files.push(`+layout${ext}`);
|
|
330
|
+
if (valid_page_exports.has(key)) supported_files.push(`+page${ext}`);
|
|
331
|
+
if (valid_layout_server_exports.has(key)) supported_files.push(`+layout.server${ext}`);
|
|
332
|
+
if (valid_page_server_exports.has(key)) supported_files.push(`+page.server${ext}`);
|
|
333
|
+
if (valid_server_exports.has(key)) supported_files.push(`+server${ext}`);
|
|
334
|
+
if (supported_files.length > 0) return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
|
335
|
+
}
|
|
336
|
+
var valid_layout_exports = /* @__PURE__ */ new Set([
|
|
337
|
+
"load",
|
|
338
|
+
"prerender",
|
|
339
|
+
"csr",
|
|
340
|
+
"ssr",
|
|
341
|
+
"trailingSlash",
|
|
342
|
+
"config"
|
|
343
|
+
]);
|
|
344
|
+
var valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
|
|
345
|
+
var valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
|
|
346
|
+
var valid_page_server_exports = /* @__PURE__ */ new Set([
|
|
347
|
+
...valid_layout_server_exports,
|
|
348
|
+
"actions",
|
|
349
|
+
"entries"
|
|
350
|
+
]);
|
|
351
|
+
var valid_server_exports = /* @__PURE__ */ new Set([
|
|
352
|
+
"GET",
|
|
353
|
+
"POST",
|
|
354
|
+
"PATCH",
|
|
355
|
+
"PUT",
|
|
356
|
+
"DELETE",
|
|
357
|
+
"OPTIONS",
|
|
358
|
+
"HEAD",
|
|
359
|
+
"fallback",
|
|
360
|
+
"prerender",
|
|
361
|
+
"trailingSlash",
|
|
362
|
+
"config",
|
|
363
|
+
"entries"
|
|
364
|
+
]);
|
|
365
|
+
var validate_layout_exports = validator(valid_layout_exports);
|
|
366
|
+
var validate_page_exports = validator(valid_page_exports);
|
|
367
|
+
var validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
368
|
+
var validate_page_server_exports = validator(valid_page_server_exports);
|
|
369
|
+
var validate_server_exports = validator(valid_server_exports);
|
|
370
|
+
//#endregion
|
|
371
|
+
export { compact as S, add_resolution_suffix as _, validate_server_exports as a, strip_data_suffix as b, SCHEME as c, disable_search as d, make_trackable as f, add_data_suffix as g, noop_span as h, validate_page_server_exports as i, decode_params as l, resolve as m, validate_layout_server_exports as n, find_route as o, normalize_path as p, validate_page_exports as r, hash as s, validate_layout_exports as t, decode_pathname as u, has_data_suffix as v, strip_resolution_suffix as x, has_resolution_suffix as y };
|